Catfriend1 / syncthing-android

Syncthing-Fork - A Syncthing Wrapper for Android.
Mozilla Public License 2.0
1.2k stars 40 forks source link

Advanced configs gets reset on restart #1015

Closed 71walceli closed 11 months ago

71walceli commented 11 months ago

Description of the issue

Whenever Syncthing starts or restarts, some configurations, such as Allowed Networks or speed limits.I'm not sure what configs are actually affected,since the Advanced settinga dialog includes nornal settinga, but I'm aware only of those I mentioned.

Reproduction Steps

  1. Open app and get to Advanced config.
  2. Expand device config
  3. Set "Allowed Networks" to any CIDR IP address, e.g.: 192.168.0.0/24
  4. Save the config
  5. Restart Syncthing in any way, for example, via Web interrface or force closing
  6. Go back to device Allowed Networks.
  7. FIeld will be empty, and Syncthing won't honor the config, as if it was never set

This is just an example with some config I was interested, but it also happends to speed limits and some other configs I'm not aware of

Version Information

Device platform info

[ro.product.board]: [a31]
[ro.product.bootimage.brand]: [samsung]
[ro.product.bootimage.device]: [a31]
[ro.product.bootimage.manufacturer]: [samsung]
[ro.product.bootimage.model]: [SM-A315G]
[ro.product.bootimage.name]: [a31nsdx]
[ro.product.brand]: [samsung]
[ro.product.build.date]: [Tue Apr 11 01:21:20 KST 2023]
[ro.product.build.date.utc]: [1681143680]
[ro.product.build.fingerprint]: [samsung/a31nsdx/a31:12/SP1A.210812.016/A315GDXS2DWD1:user/release-keys]
[ro.product.build.id]: [SP1A.210812.016]
[ro.product.build.tags]: [release-keys]
[ro.product.build.type]: [user]
[ro.product.build.version.incremental]: [A315GDXS2DWD1]
[ro.product.build.version.release]: [12]
[ro.product.build.version.release_or_codename]: [12]
[ro.product.build.version.sdk]: [31]
[ro.product.cpu.abi]: [arm64-v8a]
[ro.product.cpu.abilist]: [arm64-v8a,armeabi-v7a,armeabi]
[ro.product.cpu.abilist32]: [armeabi-v7a,armeabi]
[ro.product.cpu.abilist64]: [arm64-v8a]
[ro.product.device]: [a31]
[ro.product.first_api_level]: [29]
[ro.product.locale]: [en-GB]
[ro.product.manufacturer]: [samsung]
[ro.product.model]: [SM-A315G]
[ro.product.name]: [a31nndx]
[ro.product.odm.brand]: [samsung]
[ro.product.odm.device]: [a31]
[ro.product.odm.manufacturer]: [samsung]
[ro.product.odm.model]: [SM-A315G]
[ro.product.odm.name]: [a31nndx]
[ro.product.product.brand]: [samsung]
[ro.product.product.device]: [a31]
[ro.product.product.manufacturer]: [samsung]
[ro.product.product.model]: [SM-A315G]
[ro.product.product.name]: [a31nsdx]
[ro.product.system.brand]: [samsung]
[ro.product.system.device]: [a31]
[ro.product.system.manufacturer]: [samsung]
[ro.product.system.model]: [SM-A315G]
[ro.product.system.name]: [a31nndx]
[ro.product.system_ext.brand]: [samsung]
[ro.product.system_ext.device]: [a31]
[ro.product.system_ext.manufacturer]: [samsung]
[ro.product.system_ext.model]: [SM-A315G]
[ro.product.system_ext.name]: [a31nsdx]
[ro.product.vendor.brand]: [samsung]
[ro.product.vendor.device]: [a31]
[ro.product.vendor.manufacturer]: [samsung]
[ro.product.vendor.model]: [SM-A315G]
[ro.product.vendor.name]: [a31nndx]
[ro.product.vendor_dlkm.brand]: [samsung]
[ro.product.vendor_dlkm.device]: [a31]
[ro.product.vendor_dlkm.manufacturer]: [samsung]
[ro.product.vendor_dlkm.model]: [SM-A315G]
[ro.product.vendor_dlkm.name]: [a31nsdx]
[ro.product_ship]: [true]

Android Log

It'll be attached as a separate file which you get via https://mega.nz/file/M4ZDSRoL#q0OrDOPvpJbHgzKPOjX45Fys_yVrtTJHC5kCXfgy4C8. Sorry I can't filter out the output :-(