doc: Multi-Profile system documentation#20751
Open
criticalAY wants to merge 1 commit intoankidroid:mainfrom
Open
doc: Multi-Profile system documentation#20751criticalAY wants to merge 1 commit intoankidroid:mainfrom
criticalAY wants to merge 1 commit intoankidroid:mainfrom
Conversation
| │ └── ... | ||
| ├── app_webview/ # Used by the "Default" (legacy) profile | ||
| ├── databases/ # Used by the "Default" (legacy) profile | ||
| ├── files/ # Used by the "Default" (legacy) profile |
Member
There was a problem hiding this comment.
Note that this is different from files below
|
|
||
| ### Internal storage(located at /data/data/com.ichi2.anki/): | ||
| /data/data/com.ichi2.anki/ | ||
| ├── Alice/ # Created by setDataDirectorySuffix("Alice") |
Member
There was a problem hiding this comment.
Are we not using profileIds here?
What if someone makes a profile named 'shared_prefs'?
Contributor
Author
There was a problem hiding this comment.
Yes but I thought it's simpler to explain using name instead as we have done in original issue
Comment on lines
+29
to
+41
| /storage/emulated/0/Android/data/com.ichi2.anki/files/ | ||
| ├── AnkiDroid/ # Default Profile Root | ||
| │ ├── collection.anki2 | ||
| │ ├── collection.media/ | ||
| │ └── backup/ | ||
| ├── Alice/ # Default Profile Root | ||
| │ ├── AnkiDroid | ||
| │ ├── collection.anki2 | ||
| │ ├── collection.media/ | ||
| │ └── backup/ | ||
| ├── Bob/ | ||
| │ ├── AnkiDroid | ||
| │ ... |
Member
There was a problem hiding this comment.
How does AnkiDroid Directory work with this?
Comment on lines
+48
to
+49
| - The metadata is serialized into a JSON string and saved into the global profiles_prefs.xml file. | ||
| - The profile is "registered" but "dormant." No folders exist on the disk yet. |
Member
There was a problem hiding this comment.
- It would be useful to have a sample structure + definition of the global registry
- Maybe a glossary to disambiguate the names of the global registry and the 'profile-specific' shared preferences
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose / Description
Document how mulit-profile works and how the folder structure looks like
Fixes
NA
Approach
NA
How Has This Been Tested?
NA
Learning (optional, can help others)
Always document first so that we don't mess up later
Checklist
Please, go through these checks before submitting the PR.