1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-12-23 11:21:29 +00:00
Commit graph

122 commits

Author SHA1 Message Date
Simon Frei
07162121e4
Correctly check db dir existence (fixes #1753) (#1755) 2022-02-09 10:42:03 +01:00
Simon Frei
1634019cc1
Bumped version to 1.19.0.2 2022-02-07 12:30:59 +01:00
Simon Frei
28bdd4421d
Fallback to shell if db deletion fails (fixes #1753) (#1754) 2022-02-07 09:16:28 +01:00
Simon Frei
81698e1acc
Bump android api level to 30 (ref #1721) (#1724) 2021-12-23 18:32:28 +01:00
Simon Frei
66cf49665c
Adjust to API change regarding pending folders/devices (#1678) 2021-07-27 12:50:35 +02:00
Simon Frei
abd8e9bc2f
Add folder-device with enc-password (fixes #1673) (#1674) 2021-07-18 13:06:57 +02:00
Simon Frei
733f873ae3
Stop camera when exiting QR scan with back button (fixes #1614) (#1641) 2021-04-19 16:21:37 +02:00
Simon Frei
517c5ca73d
Update zxing-android-embedded and small related fixes (#1642) 2021-04-19 16:20:20 +02:00
Simon Frei
b03d2465dc
Target android sdk 29 (#1575) 2020-12-12 16:20:06 +01:00
Sumit Anantwar
e12663f321
Add Internal Activity for QR Code Scanner (#1556)
* add internal QR Scanner Activity

* add CAMERA permission to Manifest

* add dimension for Button Height

* remove non-existent RestartActivity from Manifest

* accept licenses for Android SDK 29

* rollback gradle to 3.6.3

* add dependency for zxing:core:3.3.0 to support Android API 14+
2020-10-09 07:52:38 +01:00
Praveen Rajput
cdf6a69d1f
Theme: follow system default #1515 (#1555)
- Now app by default follows system theme for api level 28 and higher, for api level below 28, it fall backs to light theme.
2020-09-28 12:32:34 +01:00
Catfriend1
5cec53c8c7
Maybe fix root problems since v1.5.0+ / STMONITORED="1" (fixes #655) (#1505) 2020-05-17 16:51:31 +02:00
dependabot-preview[bot]
d657bfdc09
Bump dependencies (AndroidX, com.github.triplet.play 2.7.5, gradle 3.6.3) (#1491)
* Bump com.github.triplet.play from 2.5.0 to 2.7.5

Bumps com.github.triplet.play from 2.5.0 to 2.7.5.

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* Fix com.github.triplet.play dependency setup

* gradle-wrapper.properties: Update gradle 6.0.1 > 6.2.2

from: 5ad55348b8

* build.gradle: Update "com.android.tools.build:gradle" from 3.5.3 to 3.6.3

* gradle.properties: + android.useAndroidX=true

* Migrate to AndroidX: import androidx.databinding.DataBindingUtil

* Create setenv.cmd

* Fix lint error: RtlCompat

Right-to-left text compatibility issues
../../src/main/res/layout/activity_firststart_slide1.xml:46: To support older versions than API 17 (project specifies 16) you must also specify gravity or layout_gravity="center_horizontal"
 43             android:paddingLeft="@dimen/desc_padding"
 44             android:paddingRight="@dimen/desc_padding"
 45             android:text="@string/welcome_text"
 46             android:textAlignment="center"

 47             android:textColor="@android:color/white"
 48             android:textSize="@dimen/slide_desc" />
 49
../../src/main/res/layout/activity_firststart_slide2.xml:61: To support older versions than API 17 (project specifies 16) you must also specify gravity or layout_gravity="center_horizontal"
 58             android:paddingLeft="@dimen/desc_padding"
 59             android:paddingRight="@dimen/desc_padding"
 60             android:text="@string/storage_permission_desc"
 61             android:textAlignment="center"

 62             android:textColor="@android:color/white"
 63             android:textSize="@dimen/slide_desc" />
 64
../../src/main/res/layout/activity_firststart_slide3.xml:61: To support older versions than API 17 (project specifies 16) you must also specify gravity or layout_gravity="center_horizontal"
 58             android:paddingLeft="@dimen/desc_padding"
 59             android:paddingRight="@dimen/desc_padding"
 60             android:text="@string/location_permission_desc"
 61             android:textAlignment="center"

 62             android:textColor="@android:color/white"
 63             android:textSize="@dimen/slide_desc" />
 64
../../src/main/res/layout/fragment_external_versioning.xml:11: To support older versions than API 17 (project specifies 16) you must also specify gravity or layout_gravity="center_horizontal"
  8         android:layout_height="wrap_content"
  9         android:layout_margin="10dp"
 10         android:text="@string/command"
 11         android:textAlignment="center"

 12         android:textColor="@android:color/black"
 13         android:textSize="18sp"
 14         android:textStyle="bold" />
../../src/main/res/layout/fragment_simple_versioning.xml:23: To support older versions than API 17 (project specifies 16) you must also specify gravity or layout_gravity="center_horizontal"
 20             android:layout_height="wrap_content"
 21             android:layout_margin="10dp"
 22             android:text="@string/keep_versions"
 23             android:textAlignment="center"

 24             android:textColor="@android:color/black"
 25             android:textSize="18sp"
 26             android:textStyle="bold" />
../../src/main/res/layout/fragment_staggered_versioning.xml:17: To support older versions than API 17 (project specifies 16) you must also specify gravity or layout_gravity="center_horizontal"
 14             android:layout_width="match_parent"
 15             android:layout_height="wrap_content"
 16             android:text="@string/maximum_age"
 17             android:textAlignment="center"

 18             android:textColor="@android:color/black"
 19             android:textSize="18sp"
 20             android:textStyle="bold"
../../src/main/res/layout/fragment_staggered_versioning.xml:44: To support older versions than API 17 (project specifies 16) you must also specify gravity or layout_gravity="center_horizontal"
 41             android:layout_height="wrap_content"
 42             android:layout_margin="10dp"
 43             android:text="@string/versions_path"
 44             android:textAlignment="center"

 45             android:textColor="@android:color/black"
 46             android:textSize="18sp"
 47             android:textStyle="bold"
../../src/main/res/layout/fragment_trashcan_versioning.xml:23: To support older versions than API 17 (project specifies 16) you must also specify gravity or layout_gravity="center_horizontal"

* AndroidManifest: Add permission ACCESS_FINE_LOCATION

Ref.: 5755ed45ad

* Migrate to AndroidX, solves lint error "IncompatibleGradle"

according to:
- b04489e062

* Fix lint error: MissingPermission, catch SecurityException

* Revert "Create setenv.cmd"

This reverts commit e39c460837.

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Catfriend1 <Catfriend1@users.noreply.github.com>
2020-05-17 15:04:32 +01:00
Jakob Borg
72c6dfb8d0
Create empty file in marker directory (fixes #1249) (#1490)
* Create empty file in marker directory (fixes #1249)

HTH

* wip
2020-04-02 16:48:28 +01:00
Simon Frei
4414dcc8a4
Bump gradle from 3.1.3 to 3.4.2 (#1381)
* Bump gradle from 3.1.3 to 3.4.2

Bumps gradle from 3.1.3 to 3.4.2.

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* Fix mistakes resulting in build errors after gradle upgrade
2019-08-15 11:48:23 +02:00
Cody Mingus
3e0e983868 Adding dark theme (closes #653) (#1301) 2019-06-13 16:48:32 +02:00
Audrius Butkevicius
90272c4ece Revert "Support Variable Size Blocks (VSB)" (#1344) 2019-06-12 23:00:54 +02:00
admin_3.exe
a65e60b005 Don't open keyboard on save to Syncthing (#1328) 2019-06-04 22:48:57 +02:00
Catfriend1
cc4d1b4fcf Show notification badge if user interaction is required (#1310) 2019-04-27 09:14:39 +01:00
Max
6a36c2d5c0 Disable badge for persistent notification (fixes #1305) 2019-04-21 00:45:24 +02:00
Catfriend1
4537a28d75 Fallback to http if https with TLS 1.2 is unavailable (fixes #1255) (#1281) 2019-02-28 21:13:57 +01:00
Simon Frei
462a013ae2 Fast forward master to current release branch (#1282)
* Bump version number

* Restore modules

* Bump version

* Revert "Disable HTTPS (fixes #1255)"

This reverts commit 1f82ec0fc6.

* Bump version
2019-02-26 19:49:57 +00:00
Audrius Butkevicius
1f82ec0fc6
Disable HTTPS (fixes #1255) 2019-02-22 22:52:46 +00:00
Catfriend1
a7e6fb9118 Support Variable Size Blocks (VSB) (#1270)
* Support Variable Size Blocks (VSB) (fixes #153) (#156)

* ConfigXml/Folder - Add "useLargeBlocks"

* Update folder model defaults

* UI for Variable Size Blocks (VBS) (fixes #153)

* Prepare model/Folder for Syncthing 1.0.1
2019-02-12 22:21:39 +00:00
Catfriend1
94c94b4216 Fallback to built-in path selector (#1272) 2019-02-12 07:31:17 +00:00
Martin Carpella
700c55e9d3 Show reasons for disabled service in notification dialog (#1264) 2019-01-21 21:05:45 +00:00
Catfriend1
346cc35237 Fix Syncthing getting killed by ActivityManager when started using Intent (fixes #1247) 2019-01-09 21:49:58 +00:00
Catfriend1
d376ed7938 Fix home volume not recognized on Android 8 (fixes #58) (#59)
* Fix home volume not recognized on Android 8 (fixes #58)

* Fix Downloads volume not recognized on Android 8
2018-10-03 19:41:15 +01:00
Catfriend1
37c4574eca Fix UI glitch - folder type explanation not updating (fixes #53) (#54) 2018-10-03 19:41:15 +01:00
Catfriend1
55915d7956 Fix crash when ignoring devices or folders (fixes #50) (#52) 2018-10-03 19:41:15 +01:00
Catfriend1
34faf02e3c Fix override changes button not showing (fixes #38) (#39) 2018-10-03 19:41:15 +01:00
Catfriend1
54daf43d6f Fix phone plugged to charger detection (#27) 2018-10-03 19:41:15 +01:00
Catfriend1
ecd44b231f Speed up syncthing startup and reduce log spam (#60) 2018-10-03 19:41:14 +01:00
Catfriend1
f915331114 Fix DeviceListFragment NPE on Comparator (#20) 2018-10-03 19:41:14 +01:00
Catfriend1
680eb7dc86 Add "useLargeBlocks" to model/Folder.java (#1215) 2018-08-12 10:38:58 +01:00
Catfriend1
3bd1c753a6 Root only - Temporarily increase fs.inotify.max_user_watches to 128K (fixes #1208) (#1209)
Forum discussion: https://forum.syncthing.net/t/android-failed-to-set-up-inotify-handler-please-increase-inotify-limits/11924/15
2018-08-07 18:22:15 +01:00
Catfriend1
4b7024bf8a Add "receiveonly" folder type to UI and model (fixes #1210) (#1211) 2018-08-07 13:14:21 +01:00
Catfriend1
6a04d640bd
Improve run conditions and run conditions UI (#1189)
* WIP - Extend run condition monitor functions

* WIP - Better run conditions UI

* WIP - Allow applying run conditions to foreground and background
execution of the syncthing app

* WIP - Add mobile data run condition

* WIP - Fix RunConditionMonitor#onSharedPreferenceChanged

* WIP - Directly go to SettingsActivity#Run_Conditions screen
after the "change run condition" button has been clicked in
StateDialogActivity during STATE_DISABLED

* Disable Syncthing in flight mode (fixes #1173)
... and allow to enable it on phone that have problems
detecting wifi connection if the user manually enables
one during flight mode.

* Add run condition "Run on metered wifi" (fixes #937)

* Improve string

* Add run condition "Respect Android Auto-sync data quick toggle" (fixes #588)

* Remove SharedPreferences.OnSharedPreferenceChangeListener

* Added SyncthingService#reEvaluateRunConditions

* Implement mPendingRunConditions in SettingsActivity
to queue run condition changes until the user leaves
the preferences screen after making changes. (fixes #1196)

* Rename reEvaluateRunConditions to evaluateRunConditions
according to review

* Fix implementation of ContentResolver.removeStatusChangeListener

* Reordered run conditions
wifi, metered wifi, wifi whitelist, mobile data

* Review 1/2

* Fix logic for metered/non-metered wifi run condition

* Remove PreferenceScreen dividers on API level > 21

* Revert "Remove PreferenceScreen dividers on API level > 21"

This reverts commit ec037b02e4.

* Detect changes made to wifi connections in android's data usage dialog
related to the metered wifi flag.

* Review - Minor string improvements
Removed unused variable from RunConditionMonitor
Move always_run_in_background pref to pref category
"Behaviour".

* Review - "Start service automatically on boot" string

* Remove unused strings
2018-08-02 10:50:21 +02:00
Catfriend1
cdaf8e69c5
Add welcome wizard slides on first start requesting permissions (#1176)
* Prepare welcome wizard related to issues
https://github.com/syncthing/syncthing-android/issues/1129
https://github.com/syncthing/syncthing-android/issues/622

* Add drawables and texts

* Disable scrolling the ViewPager, we have buttons for that

* Add welcome wizard code
Ask for storage and location permission
Location permission is required to run the app
Recheck storage permission on each app start, if revoked the
welcome slides show again.

* Review

* Review - Do not quit the app when storage permission is not granted

* Review - Minor string improvements
2018-08-01 20:10:31 +02:00
Catfriend1
b50fcf1fa1
Fix races during config access, add missing null check (fixes #1194) (#1195)
* Fix race during config reload and missing null check
in FolderListFragment and DeviceListFragment (fixes #1194)

* Review - synchronize(mConfigLock) when mConfig is accessed

* Review - add two breaks in RestApi
in removeFolderInternal, removeDeviceInternal
2018-07-29 18:25:56 +02:00
Catfriend1
5426e750ef
Fix sending wrongly encoded commands into the unix subshell (fixes #1198) (#1199)
* Fix sending wrongly encoded commands into the unix subshell (fixes #1198)

This reverts commit 7541fa978e.
2018-07-28 01:05:41 +02:00
Catfriend1
b99d6d47d4 Revert "Disable write test to work around (ref #1198)"
This reverts commit a9a863ace9.
2018-07-28 00:54:48 +02:00
Audrius Butkevicius
a9a863ace9 Disable write test to work around (ref #1198) 2018-07-27 20:30:15 +01:00
Catfriend1
d0dbb695eb Implement mPendingRunConditions in SettingsActivity to queue run condition changes until the user leaves the preferences screen after making changes. (fixes #1196) 2018-07-26 23:52:36 +01:00
Catfriend1
d78b86f5b4 Fix missing blank line 2018-07-26 10:24:58 +02:00
Catfriend1
aad57de03d Initialize mFolder.type to FOLDER_TYPE_SEND_RECEIVE
according to the switch element having android:checked=false
by default in the xml layout.
2018-07-26 10:23:16 +02:00
Catfriend1
9382685fc9 More Log 2018-07-26 10:16:11 +02:00
Catfriend1
69913ebead Add paranoid safety checks to FolderActivity#onOptionsItemSelected (fixes #1190) 2018-07-25 14:02:02 +02:00
Catfriend1
02b6f987eb Refactor DeviceStateHolder and its receivers into RunConditionMonitor (#1187) 2018-07-24 20:10:10 +01:00
Catfriend1
6ead66b359 Add options button "undo ingoring devices and folders" (fixes #938) (#1185) 2018-07-18 18:11:11 +01:00