1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-11-26 14:21:16 +00:00
Commit graph

452 commits

Author SHA1 Message Date
Catfriend1
e6eaae06f0
Add Database Size status label to Settings/About (fixes #155) (#172)
* Add new label syncthing_database_size on Settings/About

* Add Util#runShellCommandGetOutput

* Make INDEX_DB_FOLDER constant public

* Add Database Size status label to Settings/About (fixes #155)

* Imported translation de-DE

* Fix lint: Application Context within SettingsFragment
2018-12-31 16:57:51 +01:00
Catfriend1
c36efcf038 Update APK version to 0.14.54.8 / 145408 2018-12-30 23:23:02 +01:00
Catfriend1
826dca6f52
Control syncthing start and stop by third-party automation apps like Tasker (fixes #161) (#169)
* Update tasker actions and broadcast intent extras (fixes #161)

according to https://github.com/Catfriend1/syncthing-android/wiki/Remote-Control-by-Broadcast-Intents

* Update AndroidManifest.xml intent filters

-
 com.github.catfriend1.syncthingandroid.action.START
-
 com.github.catfriend1.syncthingandroid.action.STOP

* Fix missing "public" declaration

* Add PREF_BROADCAST_SERVICE_CONTROL

* Add null check for mRunConditionMonitor

in SyncthingService#ACTION_REFRESH_NETWORK_INFO

* Disable RunConditionMonitor completely

when PREF_BROADCAST_SERVICE_CONTROL is enabled.

* Status tab: Display hint if service control by broadcast is enabled in prefs

* Update strings

* Imported translations
- de
- sv
2018-12-30 23:15:57 +01:00
Catfriend1
2a7fb4b376 Update APK version to 0.14.54.7 / 145407 2018-12-30 17:13:56 +01:00
Catfriend1
105ead51ca
Display syncthing's API key in Settings/About dialog (fixes #164) (#167)
* Display syncthing's api key in Settings/About dialog (fixes #164)

* Click to copy API key to clipboard

* Imported translation de-DE
2018-12-30 17:11:50 +01:00
Catfriend1
7fb47b3aba
Fix syncthing version not showing in Drawer (fixes #165) (#166)
Fix Syncthing version not showing in Drawer or incorrectly shown after app first start or update.
Show syncthing native version regardless if syncthing is running or not.
2018-12-30 16:13:09 +01:00
Catfriend1
0fcd84da0e
Improve "share to syncthing" and self-to-service binding (#162)
Related issues:
#158 - FolderActivity not correctly disposed after dialog close
#161 - mRunconditionmonitor not running after config import/export
#163 - "Share to syncthing-folder" doesn't work when syncthing is not running

* import/export Config: Only shutdown native if it is running (fixes #161)

* Remove FolderPickerActivity#kitkat_external_storage_warning

* Remove SyncthingActivity#registerOnServiceConnectedListener

* Make "share to folder" available when syncthing is online or offline (fixes #163)

Improve service connection

* Add script to forward web UI port of an AVD

Update README.md

* SettingsActivity: Improve service connection

* Correct self-class reference in FolderActivity (fixes #158)

* Correct self-class reference in DeviceActivity (fixes #158)

* Correct self-class reference in ShareActivity (fixes #158)

* Remove unused string 1/2

* Remove unused string 2/2
2018-12-30 15:58:39 +01:00
Catfriend1
b1c614cf21 Imported translations
- ru
2018-12-29 22:40:31 +01:00
Catfriend1
18c18ae7b6 Update APK version to 0.14.54.6 / 145406 2018-12-29 22:33:09 +01:00
Catfriend1
ad0ff6f77e
Properly verify Device ID's entered by the user synchronously (fixes #159) (#160)
* Add Utils/Luhn.java for check rune calculation

* Update model/Device.java defaults

according to Device defaults in ConfigXml#getDevices

* Remove errorListener from ConfigRouter#addDevice

* Remove errorListener from RestApi#addDevice

Remove no longer used RestApi#normalizeDeviceId

* Add checkDeviceID to model/Device.java

and verify device ID's entered by the user before writing them to the config.

* Fix lint by using Locale.ROOT for internal strings
2018-12-29 22:28:10 +01:00
Catfriend1
3a88b94487 Imported translations
- ca-rES
- de
- nl
2018-12-28 13:06:06 +01:00
Catfriend1
7bfeb16dcf Update APK version to 145405 / 0.14.54.5 2018-12-28 12:44:19 +01:00
Catfriend1
36bfdbda27
Preserve syncthing running/not running after a database or delta index reset (fixes #154) (#157)
* model/Completion: Switch off verbose log

* Preserve syncthing running/not running after a database or delta index reset (fixes #154)

Remove callback listener triggered by SyncthingService#shutdown.onKilledListener()

* service/EventProcessor: Switch off verbose log
2018-12-28 12:39:31 +01:00
Catfriend1
323f45ae23
Support Variable Size Blocks (VSB) (fixes #153) (#156)
* ConfigXml/Folder - Add "useLargeBlocks"

* Update folder model defaults

* UI for Variable Size Blocks (VBS) (fixes #153)
2018-12-28 12:38:35 +01:00
Catfriend1
d917ac5e73
Binder failed - cannot create handler inside thread that has not called looper.prepare (fixes #149) (#150)
Fix Binder failed - cannot create handler inside thread that has not called looper.prepare (fixes #149)
2018-12-24 09:51:25 +01:00
Catfriend1
190826e660
Refactor ConfigXml (#135)
Changelog:
- "Use default folder path given in config.xml" (#101)
- "IllegalStateException: Fragment already added" (#108)
- "Enhancement request for per-folder(device) sync conditions" (#110)
- "NPE crash after key and config regeneration" (#141)
- "Adjust the folder icon to show if it's send/receive or both" (#143)
- "CPU percentage is not shown on the status tab" (#144)
- "Always make individual sync conditions UI available" (#145)
- "IntroducedBy deviceID lost on config change through wrapper UI" (#146)
- "Wrapper doesn't use the same syntax as syncthing core's web UI for device addresses" (#147)
- "Syncthing wrapper "emergency" shutdown on native binary crash doesn't work" (#148)

Commits:

* WIP

* WIP

* Get folder list and paused setting when syncthing is not running

Preparation to solve #110

* Fix NPE in DeviceListFragment#DEVICES_COMPARATOR

* Remove blank line

* Add ConfigXml#getDevices and comparator

Make ConfigXml#saveChanges public

* SyncthingService evaluates per folder/device

sync conditions when syncthing is not running via ConfigXml

* Fix typos and add stubs

* Fix build errors

* DEBUG - Always run syncthing binary

* Fix NPE at RunConditionMonitor pointer

* Add setFolderPause, setDevicePause

to ConfigXml

* Improve logging

* Remove test mode

* Better log levels

* Make ConfigXml#updateIfNeeded private

* Remove SyncthingService#mStartupTask

AsyncTask no longer needed

* Update model/Options (fixes #101)

* Fix NPE after config regeneration (fixes #140)

* Refactor key and config generation

Refactor ConfigXml public functions to allow checking if a valid config exists and trigger key and config (re)genration if something is corrupted.

* Fix crash on export/import (fixes #142)

* ApiRequest - Disable verbose log in release builds

* ConfigXml#updateIfNeeded - Disable "startBrowser"

because it applies to desktop environments and cannot start a mobile browser app

* MainActivity - Always show all tabs

* Show folder/device tab contents from config.xml

if syncthing is not running

* Update ConfigXml#getDevices return model

- compression
- introducer

* Device tab - Hide in/out rate if syncthing is not running

 or if the device is paused

* Update device item layout

* MainActivity/Devices - Prevent showing outdated status

after syncthing core transitioned from "active" to "disabled"

* MainActivity/Folders - Prevent showing outdated status

after syncthing core transitioned from "active" to "disabled"

* Add ConfigRouter class

Provides a transparent access to the config if ...
a) Syncthing is running and REST API is available.
b) Syncthing is NOT running and config.xml is accessed.

* Add pref - Cache local device ID

* Allow excluding self in ConfigRouter#getDevices

* Allow excluding self in ConfigRouter#getDevices (2)

* Update Folder model default values

* Update Folder model defaults (2)

- copiers
- hashers

* WIP - ConfigXml - FolderActivity

Remove unused pref inject code
Cache local device ID in pref
Reduce verbose logging in release builds
Extend ConfigXml#getFolders
Extend ConfigXml#getDevices
Fix ConfigXml#setDevicePause

ToDo ConfigXml#getFolderIgnoreList needs to be implemented

* Implemented ConfigXml#getFolderIgnoreList

* Extend ConfigXml#getDevices

- device.addresses

* WIP - DeviceActivity

Make it available when syncthing is not running

* Fix unsuccessful API bumps while syncthing is starting

* Fix space

* Adjust the folder icon to show if it's send/receive or both (fixes #143)

* Fix lint - item_device_list

* Preserve active tab when syncthing core transitions between running and not running

* Add xmlns:android to item_folder_list

* Remove unused reference from item_folder_list

* Add device icon to device tab

* Fix CPU percentage not showing (fixes #144)

* SyncthingService - Polish iterator code

* Fix MainActivity#updateViewPager (fixes #108)

* Add ConfigXml#updateFolder, updateDevice (1)

* Add ConfigRouter#updateFolder, updateDevice

* Add missing "final" to ConfigXml#updateDevice

* WIP - FolderActivity - Update updateFolder via ConfigRouter

ToDo: Implement ConfigRouter here.

* ConfigRouter - Fix missing return

* DeviceActivity - Update device via ConfigRouter

* Always make individual sync conditions UI available (fixes #145)

regardless if syncthing core is running or not.
Remove SyncthingService dependency from SyncConditionsActivity

* Fix incorrect folder type icon shown

when syncthing core is not running

* Add "introducedBy" to folder and device model (fixes #146)

* Add Folder#getDevices to model

* ConfigXml#updateFolder - Writeback devices sharing the folder

Support preserving the "introducedBy" model field of Folder.java (fixes #146)

* Add ConfigXml#updateFolder - Versioning

* Remove SyncthingService dependency from FolderPickerActivity

because it is no longer required.

* Update ToDo remarks

* Add ConfigXml#updateDevice - Addresses

* Fix DeviceActivity#persistableAddresses to be more graceful (fixes #147)

and accept the same address syntax as syncthing core web UI does.

* Add ConfigXml#removeFolder, removeDevice

* Add ConfigXml#addDevice, addFolder

- Add ConfigXml#isDeviceIdValid
- Do not allow adding empty folder labels or empty device names.
- Update model Folder.java so ConfigXml can handle the ignorePerms XML attribute

* Fix Syncthing wrapper "emergency" shutdown on native binary crash (fixes #148)

* Update translation de

* Add ConfigXml#postFolderIgnoreList

* Update APK version to 0.14.54.3 / 4182

* Revert DEBUG - Always run syncthing binary

* Update whatsnew
2018-12-22 01:58:44 +01:00
Catfriend1
7791787bbc
Add automastic fallback to http on Android 4.x (fixes #137) (fixes #139) (#138)
* Add script to update submodule

* Update publish-release.sh

* Add helper script to build syncthing submodule only

* Enable HTTPS for REST/WebUI only if OS supports it (fixes #137)

* Update ApiRequest to handle both http or https

* Add Constants#osSupportsTLS12

* Update APK version to 0.14.54.2 / 4181

* Update README.md

* Update whatsnew
2018-12-16 10:44:55 +01:00
Catfriend1
ecef147e5b Updated APK version to 0.14.54.1/4180 2018-12-05 19:35:26 +01:00
Catfriend1
c6734331d4 Updated whatsnew and README.md 2018-12-04 20:24:28 +01:00
Catfriend1
7e1cd49b4c Update APK version to 0.14.53.1 / 4179 2018-12-04 20:16:00 +01:00
Catfriend1
1ca2dadd6f Update APK version to 0.14.52.2 / 4178 2018-11-29 23:08:18 +01:00
Catfriend1
92e6579242
Update filemanager recommendation package name (fixes #125) (#134)
The recommended app is still free on F-Droid at time of writing this.
2018-11-29 23:05:58 +01:00
Catfriend1
cb5c3b074c
Import translations / Force lint checks before build (#132)
* Update app desc en-GB

* Add git_fetch_branch.sh

* Abort on lint error

* Run lint when building the app

* Update app full description

* Imported translation values-sv
2018-11-29 22:16:51 +01:00
Catfriend1
1f7b068eac
Imported values-sv (#129) 2018-11-23 08:46:37 +01:00
Catfriend1
17f14a0d93
Update syncthing submodule to 0.14.52-release (#123)
* Update syncthing submodule to 0.14.52

* Update APK version to 0.14.52.1 / 4177
2018-11-20 23:40:43 +01:00
Catfriend1
49e337ebce Fix imported translations 2018-11-08 11:12:11 +01:00
Catfriend1
86ab7e1053 Imported translations 2018-11-08 10:59:15 +01:00
Catfriend1
5e00d6c65c
Add tip: Xiaomi autostart (#121)
* Add tip: Xiaomi autostart

* Imported translations
2018-11-02 13:27:24 +01:00
Catfriend1
8b15993494
Improve pref explanations (#119)
* Improve autostart explanation in prefs

* Imported translations

* Improve string

* Update flight mode run condition explanation

* Imported translations
2018-10-30 22:25:07 +01:00
Catfriend1
1f772935f2
Recent changes - open file/dir on click (#118)
* Initialize DiskEventData for tests

* Add FileUtils#getMimeTypeFromFileExtension

* Open file when user clicks on it in RecentChangesActivity

* Add RestApi#getFolderByID

* Add Constants#ENABLE_TEST_DATA

* Add strings

* Move open folder to FileUtils#openFolder

* Add FileUtils#openFolder, FileUtils#openFile

* Fix UI glitch

Make clear to the user that the folder label is not part of the physical full file path and name.

* Open file/folder on item click

Add test data

* Imported translations

* Fix lint

* Update APK version to 0.14.51.13 / 4176

* Update README.md, whatsnew

* Turn off test data mode

* Remove unused import
2018-10-30 21:50:48 +01:00
Catfriend1
7ca62c946a
Add "recent changes" UI to drawer (fixes #117) (#116)
* Add "recent changes" UI to drawer

* Update build.gradle - guava 26.0-android

* Add REST endpoint

* Add DiskEvent to model

* Add DiskEventData to model

* Add RestApi#getDiskEvents

* Add ChangeListAdapter#clear

* Implement data exchange between UI and service

* Display DiskEvents

* Add icons

* Return DiskEvents in reverse order

* Display device name instead of partial ID

* Format dateTime

* Update whatsnew

* Imported translations

* Update APK version to 0.14.51.12 / 4175

* Fix lint

* Review

* Update README.md
2018-10-28 22:46:51 +01:00
Catfriend1
8d59ba1a6c Updated russian translations 2018-10-27 16:39:50 +02:00
Catfriend1
84290ff560 Revert build.gradle to use guava:23.6-android
Reason: Crash on Android 5.x
2018-10-27 16:34:08 +02:00
Catfriend1
6ee9f26fb7
Fix lint issues after build.gradle update (#115)
* Update build.gradle
Remove unused menu resource
Insert constant instead of static string
Obey new wakelock tag naming rule

* Add annotations - importantForAutofill
2018-10-27 16:21:03 +02:00
Catfriend1
e0bf5589db
Incorporate feedback from issue #110 (1) + (3) (#114)
* Fix issue 110 (3) - remove checkmark

in per object sync conditions dialog

* Fix UI glitches, feedback issue #110 (1)

* Stop onscreen keyboard popping up

when FolderActivity starts

* RunConditionMonitor - Add more logging

* Always save UI state back to prefs

in SyncConditionsActivity until we abandon global run conditions.
2018-10-27 15:52:20 +02:00
Catfriend1
ba45aa9e82 Update build tools to 28.0.3 / gradle 4.6
Android Studio 3.1.2
2018-10-27 15:09:05 +02:00
Catfriend1
39e1329f41
Follow-Up to issue 108 "IllegalStateEx" workaround (fixes #108) (#113)
* MainActivity updateViewPager - Add isServiceActive

* Add numPages, setOffscreenPageLimit (fixes #108)

* Fix numPages
2018-10-26 17:23:25 +02:00
Catfriend1
6712ca657d
Fallback to built-in path selector (fixes #111) (#112)
* Fallback to built-in path selector (fixes #111)

* Update APK version to 0.14.51.11 / 4174
2018-10-25 16:20:23 +02:00
Catfriend1
334f24f027 Update APK version to 0.14.51.10 / 4173 2018-10-23 09:22:50 +02:00
Catfriend1
e94495f40b
Add bug notice (closes #108) (#109)
* Add bug notice (fixes #108)

* Update strings

* Updated translations
2018-10-23 09:19:13 +02:00
Catfriend1
f3dac90124 Add tip - Workaround for device disconnected on Huawei
* Update APK version to 0.14.51.9 / 4172

* Add tip - Workaround for device disconnected on Huawei
2018-10-22 08:49:32 +02:00
Catfriend1
200f50e940
Add offline "Tips & Tricks" library (fixes #91) (#102)
* Add TipsAndTricks activity

* Add TipListAdapter

* Fix lint

* Fix typo

* Fix toolbar

* Fix layout

* Add onClick listener

* Add tips

* Update APK version to 0.14.51.8 / 4171

* Update README.md and whatsnew

* Fix Android 4.x compatibility

* Imported translations
2018-10-21 20:50:52 +02:00
Catfriend1
5fbd99619e
Add dialog if no compatible file manager was found (fixes #97) (#98)
Added a dialog to suggest a compatible open-source file-manager app if none is found.
Updated translations
2018-10-21 12:59:47 +02:00
Catfriend1
78b1af9d02 Update README and translations 2018-10-16 10:26:44 +02:00
Catfriend1
f8692f02ef
Add individual sync conditions for devices (#96)
* SyncConditionsActivity - Rename "folder" to "object" as it can mean a folder or device.

* Implement per-device sync conditions

* Default custom wifi whitelist to "all enabled"

* Update APK version to 0.14.51.7 / 4170

* Add checkbox "use Wi-Fi whitelist" in global run conditions

* Rename variable
2018-10-16 10:18:15 +02:00
Catfriend1
b84d4da34f
Default global pref PREF_RUN_ON_WIFI to true (#95)
in SyncConditionsActivity, according to definition in  app_settings.xml
2018-10-15 01:13:14 +02:00
Catfriend1
f6f90c9c2b
Allow specifying different sync conditions per folder (fixes #57) (#66)
* WIP - https://github.com/Catfriend1/syncthing-android/issues/57

* Add sync conditions activity

* Update folder edit layout

Implement SyncConditionsActivity stub

* Add dialog open logic

* Fix UI glitches

* Update APK version to 0.14.51.4 / 4167

* Revert "Update APK version to 0.14.51.4 / 4167"

This reverts commit 47bc4aa9ba219c134047765cc2fb49a9fa651fbe.

* Implement WiFi Ssid Whitelist UI

* Read per-folder sync conditions from prefs

* Implement onCheckedChange listeners

* Implement saving object sync conditions

* Remove early draft stuff

* Implement per folder master switch for custom sync conditions

* FolderActivity - More log

* Improve generation of object-specific constants

* Added onSyncPreconditionChanged to RunConditionMonitor

* Fix UI glitch

* Fix non-harming typos

* Refactor "on mobile data" sync condition

* Refactor "on wifi" sync condition

* Refactor "on whitelisted wifi" sync condition

* Refactor "on metered wifi" sync condition

* Refactor RunConditionMonitor#decideShouldRun

* RunConditionMonitor - Rename variables

* Pause/Unpause folders using RunConditionMonitor events

* Implement RunConditionMonitor#SyncConditionResult

* Fix lint - use editor.apply instead of editor.commit

* Updated translations

* Add null check in RestApi

* Fix missing explanation text

* Fix german translation

* Update APK version to 0.14.51.6 / 4169

* Update whatsnew
2018-10-15 00:29:52 +02:00
Catfriend1
c5a436fb61 Update APK version to 0.14.51.5 / 4168
Updated whatsnew
2018-10-13 11:58:56 +02:00
Catfriend1
b63eeb002b
Remove pref "advanced_folder_picker", make it default to enabled (fixes #92) (#94)
Remove shared pref "advanced_folder_picker" and make it default to enabled - only relevant for Android 4.x
2018-10-13 11:54:00 +02:00
Catfriend1
85daca6eb7
Preserve xml encoding on read, parse and save (fixes #88) (#89)
* Preserve xml encoding on read, parse and save (fixes #88)
2018-10-11 22:42:34 +02:00
Catfriend1
f9145b9fd5 Update APK version to 0.14.51.4 / 4167 2018-10-10 02:48:21 +02:00
Catfriend1
6030d6105c QA: Remove unused format string 2018-10-10 02:37:50 +02:00
Catfriend1
28040869e6
Tell user if location is disabled but "run on selected" WiFi is enabled (fixes #16) (#87)
* Tell user if location is disabled but "run on selected" WiFi is enabled.

* Update status tab while user looks at the UI and syncthing is disabled

* UI: Offer a solution
2018-10-10 02:16:38 +02:00
Catfriend1
12bc08c6dd
Implement import/export of the index database (fixes #83) (#84)
* Add export of index database

* Add import of index database

* Shutdown service before export and restart it afterwards.

* Do not import database if it doesn't exist on sdcard

* Do not attempt to delete the database export directory on export if it does not exist.

* Return to MainActivity after successful export

* Import/Export using an AsyncTask

* Fix compatibility with Android 5.x
2018-10-10 01:06:25 +02:00
Catfriend1
79d0d7cc4c
Fix notification not being cancelled on app shutdown (#81)
Fix notification not being cancelled on app shutdown if the app was continously in DISABLED state.
2018-10-08 05:19:52 +02:00
Catfriend1
c224bcb04a
Fix service.startForeground on Android 8+ (fixes #18) (fixes #80) (#79)
* Add push APK to device after build script

* Fix typo in SyncthingService comment

* Refactor SettingsActivity - updatePersistentNotification

Call updatePersistentNotification after the settings screen was left and not when the user toggles the alwaysRunInBackgroundAsAService checkbox.

* Automatically start app if push-to-device is enabled

* Remove PREF_NOTIFICATION_TYPE

* Only push APK to device if build succeeded

* Fix notifications and foreground service start/stop

* Use startForegroundService on Android 8+

* Fix startActivity called from non-Activity context (fixes #80)

* Fix comment
2018-10-08 05:00:59 +02:00
Catfriend1
cd3bca5141 Update APK version to 0.14.51.3 / 4166 2018-10-07 18:30:02 +02:00
Catfriend1
2021ef6806
Disable wakelock experimental option on Android 6+ (#77) 2018-10-07 18:28:46 +02:00
Catfriend1
466fc971dd
Add launcher icon indicating a debug build (#76) 2018-10-07 17:33:41 +02:00
Catfriend1
ecd8e7cd21 Update APK version to 0.14.51.2 / 4165 2018-10-07 15:34:36 +02:00
Catfriend1
c83422bb28
Update build.gradle to CompileSdkVersion 28 (#74) 2018-10-07 15:32:55 +02:00
Catfriend1
c57f53bd33
Add mdpi drawables (#75) 2018-10-07 15:13:49 +02:00
Catfriend1
fa6e4f4fd8 Update syncthing to v0.14.51
Update APK version to 0.14.51.1 / 4164
2018-10-04 18:34:10 +02:00
Catfriend1
9b8b04c105
Update syncthing to v0.14.51.rc4 (#72)
Update APK version to 0.14.51.rc4.1 / 4163
2018-09-29 23:09:41 +02:00
Catfriend1
1f3abb127b
Update NDK to android-ndk-r18 (#68)
* Update NDK to android-ndk-r18

* Update build.gradle, resolve lint warnings
2018-09-22 19:19:18 +02:00
Catfriend1
73775a116d
Improve building wrapper and native binaries on Windows and Linux
* Do not ask for root if root is disabled in settings
* Show error in UI when libSyncthing.so is missing
* build-syncthing - Install Go on demand on windows
* build-syncthing - Install Android NDK on demand on windows
* Update README.md
* Update APK version to 0.14.51.rc3.6 / 4162
2018-09-22 18:31:36 +02:00
Catfriend1
0203aebc40
Allow stopping the service manually when running as a service (#65) (fixes #63)
Allow stopping the service manually when running as a service in extraordinary cases to avoid the user has to reboot the phone (fixes #63)
2018-09-20 23:39:02 +02:00
Catfriend1
0ed501c362
Update Play/FDroid screenshots for en-GB (#64)
* Update APK version to 0.14.51.rc3.5 / 4161

* Update Play/FDroid screenshots for en-GB
2018-09-20 22:44:48 +02:00
Catfriend1
d1feb89082 Updated APK version to 0.14.51.rc3.4 / 4160 2018-09-17 09:15:17 +02:00
Catfriend1
38db4d9c32
Add import/export for app settings (SharedPreferences) (#61)
* Add export of SharedPreferences app settings
Add import/export to drawer

* Add import for app settings (SharedPreferences)
Move last_sync_id pref to Constants.java

* Add drawer icon for import / export feature

* Start or stay stopped according to run conditions after import

* Close SettingsActivity after sharedPref import
2018-09-17 09:13:07 +02:00
Catfriend1
861d92b855 Updated APK version to 0.14.51.rc3.3 / 4159
Updated whatsnew
2018-09-15 22:40:45 +02:00
Catfriend1
3eab8fe132
Speed up syncthing startup and reduce log spam (#60) 2018-09-15 22:26:16 +02:00
Catfriend1
ebb26d6a4b
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-09-15 22:06:32 +02:00
Catfriend1
cc0a35dc4e
Fix android.view.ViewRootImpl$CalledFromWrongThreadException (#56) 2018-09-15 21:09:15 +02:00
Catfriend1
6e3899f7e0
Fix UI glitch - folder type explanation not updating (fixes #53) (#54) 2018-09-15 20:37:56 +02:00
Catfriend1
23c9663023
Fix crash when ignoring devices or folders (fixes #50) (#52)
Fix unignoring devices and folders
Improve performance of RestApi#getDevices
2018-09-15 20:16:20 +02:00
Catfriend1
d084026548 Updated APK version to 0.14.51.rc3.2 / 4158 2018-09-15 12:52:16 +02:00
Catfriend1
3f93ec3ca4
Update Play screenshots de-DE (#51)
* Remove play language de_DE

* Update Play screenshots de-DE
2018-09-15 12:49:34 +02:00
Catfriend1
bdce748ac4
Fix parsing connectionServiceStatus (#49)
* Catch failures on gson-parsing SystemInfo

* Fix parsing connectionServiceStatus on recent syncthing version

* Add SystemStatusConnectionServiceStatusElement to model
2018-09-14 21:05:51 +02:00
Catfriend1
8a5e5d7e47
Update play descriptions (#47)
* Update play - app title and contact email

* Update apk version to 4157 - 0.14.51.rc3.1
Update EN, DE play descriptions to indicate the fork

* Add fork notice to all languages
2018-09-14 20:19:08 +02:00
Catfriend1
fdcafc6d1b
Update syncthing to v0.14.51-rc.2 (#43)
* Update syncthing to v0.14.51-rc.1

* Update syncthing to v0.14.51-rc.2

* Update fdroid metadata

* Update python build script
Use prebuilt go binaries from google and check SHA-256
after downloading requires files from google.
2018-09-13 09:57:31 +02:00
Catfriend1
9a8a43d273 Bumped version to 0.14.50.rc2.6 / 4154 2018-09-01 22:40:14 +02:00
Catfriend1
836624a93f
Rename app to "Syncthing-Fork" (#42)
* Rename app to "Syncthing-Fork"
* Update com.github.catfriend1.syncthingandroid.yml for F-Droid
* Update README.md
* Updated whatsnew
2018-09-01 22:33:13 +02:00
Catfriend1
850cad223c
Fix type of "mIgnoreListContent" in FolderActivity (#41)
App worked okay, but the type was wrong. Better fix it.
Verified working after fix.
2018-08-28 08:49:19 +02:00
Catfriend1
609cf1fffe Bumped version to 0.14.50.rc2.5 / 4153 2018-08-26 13:04:33 +02:00
Catfriend1
19991abd0d
Support in-app editing of folder's ignore list items (fixes #19) (#40)
* Read ignore list from REST
* Add write back of ignore list via REST endpoint call
* Disable the edit ignore EditText when a new folder is created to preserve existing ".stignore" contents
2018-08-26 13:02:37 +02:00
Catfriend1
bad36c4809
Fix override changes button not showing (fixes #38) (#39) 2018-08-26 10:47:55 +02:00
Catfriend1
a9ad589a95
Don't lock the drawer (#37)
If you start syncthing and run conditions do not apply, the drawer is locked. You can then only change settings, press the back or home button to leave the app running but exiting the app is not possible.
2018-08-26 01:24:29 +02:00
Catfriend1
49dc1d80af
Imported translations, bumped version to 0.14.50.rc2.4 / 4152 (#36) 2018-08-25 23:39:32 +02:00
Catfriend1
640d7f1e02
Remove unused import (#35) 2018-08-25 23:30:47 +02:00
Catfriend1
c44996012a
Fix shutdown during pending startup of the runtime (#34) 2018-08-25 23:09:09 +02:00
Catfriend1
4164798955
Stop polling when the user doesn't look at a tab (#32)
* Fix status tab refresh

* Stop polling when the user doesn't look at a tab
2018-08-25 22:28:25 +02:00
Catfriend1
a834edb2bd
Fix runtime left behind on app update (#31)
* Fix runtime left behind on app update

* Always kill runtime synchronously and run it asynchronously

* More log output
2018-08-25 21:35:00 +02:00
Catfriend1
bbeecc8777
Add "Uptime" to status tab (#30) 2018-08-25 17:52:43 +02:00
Catfriend1
d42f11ccff
Import translations (#29)
* Imported translations

* Update prepare-release.bash

* Imported translations
2018-08-25 02:21:28 +02:00
Catfriend1
e6af3ce3d2
Fix phone plugged to charger detection (#27)
* Fix phone plugged to charger detection

* Add detection for wireless charging
Correct API level from 21 to 17

* Fix typo in strings.xml
2018-08-25 01:21:30 +02:00
Catfriend1
f50b933278 Bump version to 0.14.50.rc2.3 / 4151 2018-08-23 09:47:17 +02:00
Catfriend1
8fea022982
Fix exit code 9 handling in SyncthingRunnable (#25)
Display syncthing native exit code on crash
2018-08-23 09:45:54 +02:00
Catfriend1
fb0479e5f2
Reorder welcome wizard slides (#24) 2018-08-23 08:05:31 +02:00
Catfriend1
ce9ea0b1d1 Bump version to 0.14.50.rc2.2 2018-08-22 22:58:29 +02:00
Catfriend1
d9a8cbb0d7
Better default prefs and crash detection
Move pref "use_root" to behaviour category (#23)
Always show notification if syncthing binary crashed
fixes #https://github.com/Catfriend1/syncthing-android/issues/17
fixes #https://github.com/syncthing/syncthing-android/issues/1172
fixes #https://github.com/syncthing/syncthing-android/issues/1220
2018-08-22 22:50:23 +02:00
Catfriend1
0bfc7e3e27
Remove "loading" overlay dialog as the status tab tells (#22)
us if syncthing is starting or restarting.
2018-08-22 22:23:35 +02:00
Catfriend1
b48bed7319
Add "Ignore battery optimizations" to welcome wizard (#21)
* Move "Ignore battery optimizations" dialog from MainActivity
to FirstStartActivity

* Add welcome slide "ignore doze"

* Make "ignore doze" mandatory
2018-08-22 22:12:02 +02:00
Catfriend1
b358c6cf2d
Fix DeviceListFragment NPE on Comparator (#20) 2018-08-22 12:59:31 +02:00
Catfriend1
2614887862
Remove upstream support URLs (#11) 2018-08-20 02:03:18 +02:00
Catfriend1
b60c019f46
Update build.gradle and suppress lint warnings temporarily (#9) 2018-08-20 00:26:26 +02:00
Catfriend1
6a8f8b3267
Update package name and version (#8)
* Update package name and version
2018-08-20 00:02:15 +02:00
Catfriend1
d2bf20aaa6
Revert "Update package name and version (#6)" (#7)
This reverts commit a19b43f73a.
2018-08-20 00:00:37 +02:00
Catfriend1
a19b43f73a
Update package name and version (#6) 2018-08-19 23:58:31 +02:00
Catfriend1
e0d8153b6d
Add explanation in UI why syncthing is (not) running (fixes #729)
* WIP - Allow expanding the drawer if syncting is not running
- Hide syncthing process stats in Drawer if syncthing is not running
- Hide menu action button if syncthing is not running (except settings and exit)

* WIP - Add RunConditionsMonitor#getRunDecisionExplanation

* WIP - Show run status explanation in StatusFragment

* Fix duplicate declaration in RunConditionMonitor

* Explain all syncthing service statuses instead of only
differentiating between ACTIVE and NON-ACTIVE

* Remove parts marked "// to-remove"

* Remove unused resources

* Move syncthing live status from drawer into status tab

* Fix handler start and stop in StatusFragments
Note: onResume is intentionally not overidden as the fragment
is not active after the user left and reentered the app

* Fix crash on orientation change

* Only update MainActivity.ViewPager when a service state occured
This fixes a UI glitch occuring because onResume also results in
onServiceStateChanged as the serviceStateChangeListeners are
re-registered.

* Remove unused strings
2018-08-19 23:22:38 +02:00
Catfriend1
b7cfd12c06
Add welcome slide for secure key generation (#4)
* Add welcome slide "key generation"

* Improve slide icon

* Add key generation via ConfigXml to welcome wizard slide
If key and config files are already present in syncthing's data folder
they won't be overwritten (as ConfigXml checks for that). It's also
no problem to go through the slides again, e.g. if the storage permission
got revoked after the first app launch granting it.

* Remove test mode

* Remove "Enjoy Syncthing."

* Improve string "Consider backing up your sync data"

* Show welcome slides only if mandatory prerequisites are
missing. Show only slides that are necessary because of
missing prerequisites. Mandatory prerequisites are
a) storage permission b) existance of keys and config
Remove key generation UI from StateDialogActivity as this
is no longer required in the main UI as we ensure generating
keys and config before launching to MainActivity.

* Minor review adjustments

* Review - Improve explanation string on config corruption
2018-08-19 23:10:02 +02:00
Catfriend1
680eb7dc86 Add "useLargeBlocks" to model/Folder.java (#1215) 2018-08-12 10:38:58 +01:00
Licaon_Kter
4428ac869f Keep Wi-Fi naming consistent (#1213) 2018-08-09 07:47:52 +01:00
Audrius Butkevicius
7279ac7630 Bumped version to 0.10.14-beta1 2018-08-07 19:22:35 +01:00
Audrius Butkevicius
cd2df3b117 Imported translations 2018-08-07 19:18:16 +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
815f945bb4 Bumped version to 0.10.13 2018-07-27 20:38:00 +01:00
Audrius Butkevicius
f5bec66232 Imported translations 2018-07-27 20:34:59 +01: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
Audrius Butkevicius
7cfe0855bb Bumped version to 0.10.12 2018-07-24 21:52:18 +01:00
Audrius Butkevicius
ecb6200503 Imported translations 2018-07-24 21:47:51 +01: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
Catfriend1
765bc4a984 Add error description UI on folder error (fixes #965) (#1182) 2018-07-18 07:42:12 +01:00
Catfriend1
b8511cfd41 Add "Override changes" UI button (fixes #396) (#1183) 2018-07-18 07:20:26 +01:00
Catfriend1
88535ed16f Remove shell boilerplate code (fixes #1181) (#1180) 2018-07-17 10:26:33 +01:00
Catfriend1
40b16cb065 Implement proper permission handling using SAF (fixes #1160) 2018-07-15 22:34:25 +01:00
Catfriend1
23f407ed74 Add pull order to folder create and edit UI (fixes #677) (#1178) 2018-07-08 11:32:03 +01:00
Catfriend1
53aec6a313 Fix recurring device, folder accept notifications, add ignore action (fixes #679) (#1177) 2018-07-07 19:35:18 +01:00
Catfriend1
b9f45f5162 remove duplicate line (#1175) 2018-06-30 11:14:50 +01:00
Catfriend1
d83060975c Fix warning about missing write perm in root mode (fixes #1165) (#1166) 2018-06-24 11:37:06 +01:00
Catfriend1
1442eb9fce Fix multiple chances of a usage reporting dialog NPE (fixes #1154) 2018-06-20 22:47:13 +01:00
Catfriend1
bea4bc3d01 Create or restore fragments before setAdapter (fixes #1162) 2018-06-20 21:16:34 +01:00
nobikik9
31d3aba636 Add randomization to default camera folder name (fixes #1159) 2018-06-20 18:50:21 +01:00
Catfriend1
1a6db23281 Show meaningful error message if config file is missing (fixes #1156) (#1157) 2018-06-18 00:06:44 +01:00
Catfriend1
0f954c07fb Rename RestApi.restart to RestApi.saveConfigAndRestart (#1158) 2018-06-18 00:02:45 +01:00
Catfriend1
73e32ce5d0 Fix NPE during addDeviceViewAndSetListener#deviceView.setChecked (#1153) 2018-06-17 22:32:57 +01:00
Catfriend1
9ecc9d79d8 Fix NPE in DrawerFragment if syncthing is terminated (fixes #1148) (#1149) 2018-06-17 22:32:13 +01:00
Catfriend1
eb1266508f Fix ClassCastException in SyncthingService onCreate (fixes #1150) 2018-06-17 22:01:54 +01:00
Catfriend1
b93da522e1 Fix static leak in LogActivity#AsyncTask (#1142) 2018-06-17 19:35:05 +01:00
Catfriend1
6122c8befa Fix leak in SyncthingService.StartupTask (fixes #1135) 2018-06-17 19:05:04 +01:00
Catfriend1
64e3684d04 Rename sttrace_cache variable (#1136) 2018-06-17 19:01:07 +01:00
Catfriend1
f2064ab3b1 Fix static leak in SettingsActivity#TestRootTask (#1141) 2018-06-17 17:27:55 +01:00
Catfriend1
585191bd66 Fix static leak in ShareActivity#CopyFilesTask (#1140) 2018-06-17 17:06:07 +01:00
Catfriend1
691edabaf6 Rename sttrace pref to debug_facilities_enabled (fixes #1133) 2018-06-17 11:04:09 +01:00
Catfriend1
2b360dab54 FolderActivity - fix NPE - don't update if removed (fixes #1143) 2018-06-16 14:25:36 +01:00
Catfriend1
3cb13b68f5 Remove unused class PostScanRequest (#1139) 2018-06-15 08:03:51 +01:00
Martin Carpella
a82aa49f52 Fix Android Studio 3.1.3 build-tool warnings (#1131) 2018-06-12 18:28:03 +01:00
Catfriend1
2125910407 Fix lint "unused quantity translations" (#1130) 2018-06-10 12:17:02 +01:00
Audrius Butkevicius
e9da786efa Bumped version to 0.10.11 2018-06-10 00:12:45 +01:00
Audrius Butkevicius
8284c015c7 Imported translations 2018-06-10 00:08:16 +01:00
Catfriend1
e9eef4332b Refactor SyncthingService (lifecycle), DeviceStateHolder, RestApi, multiple fixes (#1119) 2018-06-09 23:39:42 +01:00
Catfriend1
165c136bea Multiple fixes (fixes #871, fixes #1115, fixes #1116)
Handle storage permissions
Fix multiple processes being started.
2018-06-02 20:49:55 +01:00
Catfriend1
6a4c99848d Cache available debug facilities and fall back to hardcoded list (fixes #1113, fixes #504) 2018-06-01 22:02:37 +01:00
Catfriend1
d1cb58fc7e Fix some lint warnings (#1112) 2018-06-01 22:00:29 +01:00
Catfriend1
950e3734ed fix Lint warning
about extraneous text in resource file folder fragment
2018-05-31 11:59:02 +02:00
Catfriend1
a1383c7a60 Add sttrace option dialog (#1109) 2018-05-31 00:43:05 +01:00
Catfriend1
53fc6fdd3c Reduce syncthing restart requests (#1099) 2018-05-29 20:35:49 +01:00
Catfriend1
b33d966eff Don't log config (fixes #1107) 2018-05-29 19:57:26 +01:00
a3d49970ee
Merge pull request #1105 from Catfriend1/fixDoubleBinaryStarts
remove duplicate SyncthingRunnable start trigger (fixes #1104)
2018-05-27 23:55:58 +02:00
Catfriend1
5815d8f056 Rename variables (ref#1102) 2018-05-27 20:57:12 +01:00
Catfriend1
17098106eb Merge branch 'master' of https://github.com/syncthing/syncthing-android into fixDoubleBinaryStarts 2018-05-27 21:34:03 +02:00
Catfriend1
6fc81918e9 Replace "grep" with java code (fixes #887) (#1102) 2018-05-27 20:28:35 +01:00
Catfriend1
2e908783ff Cleanup code duplications in FirstStartActivity (ref #622) 2018-05-27 19:58:02 +01:00
Catfriend1
976b47532e remove duplicate SyncthingRunnable start trigger
fixes issue https://github.com/syncthing/syncthing-android/issues/1104
2018-05-27 20:51:43 +02:00
Catfriend1
ec626cd9fe Fix loading text (#1101) 2018-05-26 16:44:45 +01:00
Catfriend1
b14a1aa177 fix parseInt exception - fixes https://github.com/syncthing/syncthing… (#1097)
* fix parseInt exception - fixes https://github.com/syncthing/syncthing-android/issues/1090
If the user enters an invalid integer, a message is shown telling
the accepted value range.

* fix min value
2018-05-24 19:07:40 +01:00
Lokesh Krishna
c43ee663a2 Support for adaptive icons (#1095)
* Moved launcher icons from drawable to mipmap

* Added alternative drawable resource

* Added background and foreground layers

* Changed refernce in manifest to mipmap

* Updated background
2018-05-23 12:42:10 +01:00
Licaon_Kter
cb286490ed Make current proxy text clearer (#1093) 2018-05-21 21:03:04 +01:00
Catfriend1
e800286bc1 Fix build lint warnings (#1087) 2018-05-11 12:23:02 +01:00
533557c135 Fix crash in settings onApiChange call (fixes #1084) 2018-05-10 18:13:49 +01:00
Audrius Butkevicius
49853d77fc Update whatsnew 2018-05-09 19:43:39 +01:00
Audrius Butkevicius
df7d8c138e Fixup translations 2018-05-09 19:42:18 +01:00
Audrius Butkevicius
e25bfe3e04 Bumped version to 0.10.10 2018-05-09 19:26:46 +01:00
Audrius Butkevicius
b8d9326cc7 Imported translations 2018-05-09 18:57:37 +01:00
Catfriend1
f13ed587d7 Fix incorrect remote device syncing status UI (fixes #1062) 2018-05-09 18:54:58 +01:00
Catfriend1
7e3c6c0b8f Reread the config on configSaved event (fixes #1078) 2018-05-07 13:47:05 +01:00
Catfriend1
cb1575b890 Fix chromium running multiple times in the background (fixes #1064) 2018-05-07 08:47:07 +01:00
Catfriend1
d5da9d7883 UI - improve fileWatcher explanation (#1077) 2018-05-06 10:45:08 +01:00
Audrius Butkevicius
16223f4c61 Shorten whats new 2018-05-03 22:00:04 +01:00
Audrius Butkevicius
8482ea610b Bumped version to 0.10.9 2018-05-03 21:44:11 +01:00
Audrius Butkevicius
9ae02d30eb Imported translations 2018-05-03 21:40:13 +01:00
Catfriend1
71c9cadce9 Bypass system proxy for local webgui access (fixes #440) 2018-05-02 23:11:09 +01:00
Catfriend1
3738f609ba Correct device renaming, save config via temp file (fixes #1059) 2018-04-30 21:32:49 +01:00
Catfriend1
22e03d65da Fix DevicesAdapter NullPtr exception (#1075) 2018-04-30 07:01:46 +01:00
Audrius Butkevicius
5d5bbd4653 Imported translations 2018-04-29 23:23:38 +01:00
Catfriend1
b7f0c02238 Add pause support for folders and devices (fixes #856) 2018-04-29 23:17:27 +01:00
Catfriend1
030ef4ee7b Add proxy settings to settings UI (fixes #766) 2018-04-29 16:49:59 +01:00
Catfriend1
69885e2aa2 Adjust folder rescan interval (#1069) 2018-04-28 16:44:55 +01:00
Audrius Butkevicius
638789c7b1
Update minSdk to 16 (#1067) 2018-04-27 23:29:25 +01:00
Catfriend1
f6f09515c5 Send an alternative intent on folder open (fixes #838) 2018-04-27 22:52:53 +01:00
Catfriend1
299b556923 Migrate to built in fs notifications, add restart on wakeup toggle
* Added UI experimental option to enable/disable FolderObserver

* Disable android watcher by default.

* WIP - dismiss file watcher notification

todo - SyncthingRunnable has to run and migrate the config v27>28 before the file watcher notification can be dismissed.

* fix object type

* remove unackednotifications instead of altering it

* removed extra blank lines

* fix removeChild

* updated syncthing to v0.14.47-rc.2

* WIP - log remove of unackedNotificationID

* WIP - improved config migration 27>28

Prevent generating the unackedNotification fsWatcher in WebGUI by manual bumping the config version to #28.

* fix typo

* WIP - polish version bump code

* syncthing/imsodin-debugAndroidWatch

* update syncthing to v0.14.47-rc.3

* fix NPE on first app start

* fix pref condition

* add ConfigXML support for fsWatcher transition

Added UI experimental option to enable/disable FolderObserver

Disable android watcher by default.

WIP - dismiss file watcher notification

todo - SyncthingRunnable has to run and migrate the config v27>28 before the file watcher notification can be dismissed.

fix object type

remove unackednotifications instead of altering it

removed extra blank lines

fix removeChild

updated syncthing to v0.14.47-rc.2

WIP - log remove of unackedNotificationID

WIP - improved config migration 27>28

Prevent generating the unackedNotification fsWatcher in WebGUI by manual bumping the config version to #28.

fix typo

WIP - polish version bump code

syncthing/imsodin-debugAndroidWatch

update syncthing to v0.14.47-rc.3

fix NPE on first app start

fix pref condition

* updated syncthing to v0.14.47+3d02fcd notify-fix

* updated ConfigXml, FolderObs explanation, st 0.14.47-rc.4

* fixed string escape

* add restartOnWakeup setting to the UI

* restartOnWakeup = false by default on first app start and config generation

* improved logging of restartOnWakeup option to produce meaningful logs

* restartOnWakeup enabled by default
see discussion in https://github.com/syncthing/syncthing-android/issues/368

* PR improved according to review

* fix intendation - Atom Tab Indent = 4

* move configXml migration to separate function

* changeLocalDeviceName only affects "self device" - fixes https://github.com/syncthing/syncthing-android/issues/1059

* revert changeLocalDeviceName fix

* fixed changed result in migrateSyncthingOptions

* improved dismissing unackedNotificationID

* extend folder settings UI by fsWatcherEnabled checkbox

* remove FolderObserver

+ Constant.PREF_USE_TOR according to AudriusButkevicius' review added instead of static strings

* remove folderchange listener

* WIP - temporary - restApi logging

for better understanding whats going on

* prevent removingthe wrong unackedNotificationID

* fix build

* give me more log

* fix PostConfig REST request not working

due to missing fields in the folder model

* remove unused string

toast_folder_observer_stack_overflow using AndroidStudio

* fix typo

* trigger rebuild

* fix UI icon

* Revert to Syncthing to 0.14.46 and cherry-pick

* improved code according to review

* fix translation indent
2018-04-27 21:24:47 +01:00
Catfriend1
203dfc753f Add UI support for delta index resets (fixes #1060) 2018-04-27 20:57:15 +01:00
Audrius Butkevicius
f8f3f723e4
Roll out to beta track by default 2018-04-18 23:46:20 +01:00
Audrius Butkevicius
285797f89b Bumped version to 0.10.8 2018-04-10 23:33:30 +01:00
Audrius Butkevicius
66ee130e7d
Docker image, and windows builds (#1049) 2018-04-09 21:13:25 +01:00
Martin Carpella
7194e25a5c Use separate notification channel while monitoring run conditions (#1046) 2018-03-28 22:52:36 +01:00
Martin Carpella
7ab45a9d88 Request ACCESS_COARSE_LOCATION on Android 8.1 (fixes #999) 2018-03-28 22:04:25 +01:00
c4336569e5 Bumped version to 0.10.7 2018-03-14 23:13:05 +09:00
e9d7355656 Bumped version to 0.10.6 2018-03-14 16:31:45 +09:00
9b56c96be0 Imported translations 2018-03-14 16:29:45 +09:00
db840ab1cf Bumped version to 0.10.5 2018-03-09 20:05:19 +09:00
8f324a866d Imported translations 2018-03-09 20:04:22 +09:00
8a0b010773 Externalize string 2018-02-24 16:33:18 +09:00
Catfriend1
6a31e9d78e
Fix root startup of libsyncthing.so binary
Call suOut.flush on starting the syncthing binary using root
Fixes issue https://github.com/syncthing/syncthing-android/issues/1005
2018-02-23 16:58:13 +01:00
18075f7151 Bumped version to 0.10.4 2018-01-28 01:07:42 +09:00
Andrey D
a0a40b6f17
MainActivity.java: Don't show Usage Reporting dialog if aready decided 2018-01-26 09:41:55 +02:00
a989e4df97 Bumped version to 0.10.3 2018-01-25 17:00:17 +09:00
a2b3a1b4d6 Imported translations 2018-01-25 16:00:25 +09:00
08bf74d7aa Don't show usage reporting dialog again if reporting was disabled 2018-01-24 13:37:18 +09:00
4705332a9a Fix usage reporting dialog setting wrong version (fixes #1003) 2018-01-24 13:13:18 +09:00
6c77b67bc2 Fix Travis build 2017-12-27 03:47:23 +09:00
0ace9015bc Bumped version to 0.10.2 2017-12-27 03:06:01 +09:00
edb3958573 Imported translations 2017-12-27 03:04:11 +09:00
b59f2b4798 Update build tools and dependencies (fixes #1001) 2017-12-27 02:59:48 +09:00
531f1c4041 Delay file scan events (fixes #857) 2017-12-10 17:17:56 +09:00
9d1d954807 Update guava 2017-12-06 03:01:30 +09:00
8f3456e0dc Bumped version to 0.10.1 2017-12-05 21:07:32 +09:00
e5e5b26d38 Imported translations 2017-12-05 21:07:00 +09:00
40270f4da4 Update dependencies, clean code 2017-12-05 20:53:33 +09:00
0350ff5f40 Implement notification channels (fixes #966) 2017-12-04 12:29:30 +09:00
Cristian Beskid
65f10d1c23 Fix redundant web UI reload (#990)
Don't reload the web UI if it was already loaded.
2017-11-15 16:20:47 +09:00
9686406aaa Merge branch 'fix-webview-reload-on-orientation-change' of https://github.com/sferra/syncthing-android into sferra-fix-webview-reload-on-orientation-change 2017-11-13 16:52:28 +09:00
3b05663041 Bumped version to 0.10.0 2017-11-13 11:23:50 +09:00
473b2040fc Don't upgrade plugin to 3.0 yet, as it breaks lint
https://stackoverflow.com/a/47127584/1837158
2017-11-13 11:09:26 +09:00
9671bc584a Updated dependencies 2017-11-13 09:46:29 +09:00
d9a48de886 Merge branch 'develop' 2017-11-13 09:31:37 +09:00
bb2dc295c7 Bumped version to 0.10.0-beta4 2017-11-09 12:26:05 +09:00
8177fa4e2c Imported translations 2017-11-09 12:25:46 +09:00
cb5e9b48ba Improve Volley retry policy to problems with events (fixes #904) 2017-11-05 21:50:03 +09:00
433829036d Delete files properly from MediaStore (fixes #983) 2017-11-05 21:31:34 +09:00
ba791c6ae3 Bumped version to 0.10.0-beta3 2017-10-25 15:20:56 +09:00
3a6a6030bf Don't crash if password BCrypt formatted 2017-10-25 10:59:58 +09:00
bdb3593468 Bumped version to 0.10.0-beta2 2017-10-25 00:00:20 +09:00
09efecaead Fix crash related to usage reporting update (fixes #978) 2017-10-24 23:58:37 +09:00
6c542600fa Fix version 2017-10-24 22:26:31 +09:00
abbc123995 Bumped version to 0.10.0-beta1 2017-10-24 21:32:45 +09:00
51f6809b2b Imported translations 2017-10-24 21:29:24 +09:00
485d76163e Revert "Revert build script changes"
This reverts commit 18c419b2ed.
2017-10-24 14:55:28 +09:00