appml / neutrinote

neutriNote - the original extensible Markdown + Math note app. Non-commerical. No lock-ins. Only 3 MB footprint & highly optimized. Designed for plaintext purists.
GNU General Public License v3.0
339 stars 23 forks source link

Can't change Local Repository. Seems hard-coded? #19

Closed qazip closed 1 year ago

qazip commented 2 years ago

I am using latest version on F-Droid. Android 10.

I am trying to change the Local Repository to a folder of "my own" that I keep synced via Syncthing. However, after clicking "Local Repository Path" in the settings, there is only a pop-up showing me the current Local Repository Path. It is impossible to change it. Is this how it's supposed to be?

appml commented 2 years ago

I am using latest version on F-Droid. Android 10.

I am trying to change the Local Repository to a folder of "my own" that I keep synced via Syncthing. However, after clicking "Local Repository Path" in the settings, there is only a pop-up showing me the current Local Repository Path. It is impossible to change it. Is this how it's supposed to be?

This is due to the compliance of app specific folder as recommended here for protecting privacy in more recent Android. Therefore, consider setting up a mirror for the Local Repository and point to it from Syncthing since mirror is accessible to 3rd party apps.

Hope this helps.

DerSaxxe commented 2 years ago

But there is a problem if you don't set the path at the first start. Then you are not able to set it in settings. The only way is to remove the right for accessing storage. Then the app starts with the same dialog like the first start.

appml commented 2 years ago

But there is a problem if you don't set the path at the first start. Then you are not able to set it in settings. The only way is to remove the right for accessing storage. Then the app starts with the same dialog like the first start.

This is due to changing local repository could corrupt note data. Please use the steps below to change its path:

https://appml.github.io/nano/#relocate

Also see Android's policy on file access:

https://developer.android.com/training/data-storage/app-specific

Alternatively, mirror is recommended for newer devices.

https://appml.github.io/nano/#mirror

Thanks.

appml commented 1 year ago

Android system restrictions.