Skip to content

Change siyuan to private folder on Android #1516

Closed
@HaujetZhao

Description

@HaujetZhao

In what scenarios do you need this function?

Note books should be created in Documents folder on Android, the present parent location is /storage/emulated/0/siyuan/data, which disobey some principle of Android.

Describe the optimal solution

Put app private data in /storage/emulated/0/Android/data/org.b3log.siyuan and put the Notebooks in /storage/emulated/0/Documents/siyuan/

Activity

88250

88250 commented on Feb 14, 2021

@88250
Member

Hi, if we put data in the private-scoped folder, the third-party app can't read it, how to sync via the third-party app?

HaujetZhao

HaujetZhao commented on Feb 14, 2021

@HaujetZhao
Author

Then put the sync-needed file with the Notebooks in the /storage/emulated/0/Documents/siyuan/ folder, just like pictures of Instagram put in the /storage/emulated/0/Pictures/Instagram/

changed the title [-]Note books should be created in Documents folder on Android, not the root path of the storage[/-] [+]Change siyuan dir on Android[/+] on Feb 14, 2021
self-assigned this
on Feb 14, 2021
added this to the 0.9.8 milestone on Feb 14, 2021
88250

88250 commented on Feb 14, 2021

@88250
Member

Documents dir is also deprecated from Android 10, so I think we should keep all data to app private dir.

changed the title [-]Change siyuan dir on Android[/-] [+]Change siyuan to private folder on Android[/+] on Feb 14, 2021
HaujetZhao

HaujetZhao commented on Feb 14, 2021

@HaujetZhao
Author

As long as put it in /storage/emulated/0/Android/data/org.b3log.siyuan but not /data/data/org.b3log.siyuan, file manager apps can still have access to these files and do sync things.

Probably add a location custom setting, for users who use their own other sync tools.

88250

88250 commented on Feb 15, 2021

@88250
Member
saad909

saad909 commented on Mar 31, 2025

@saad909

there should be option to select custom folder where to store notebooks similar to obsidian app. Only this thing is keeping me from shifting to siyuan from obsidian

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @88250@HaujetZhao@saad909

      Issue actions

        Change siyuan to private folder on Android · Issue #1516 · siyuan-note/siyuan