EDIT: New experiments conduct to a better description, more precision, more reproductibility
REPRODUCIBILITY: 83 % (5 times of 6 tries)
OS VERSION: 4.4.0.58 Licenced
HARDWARE: XA2 Dual SIM
UI LANGUAGE: UK EN
REGRESSION: ?
DESCRIPTION:
When using multi-user (2 users), data from one user gets suddenly totally deleted and phone goes to “Ahoj” first-boot-welcome-screen → Licence-acceptation-screen loop, leaving the user’s dir emptied, excepted [see post’s bottom]
This happens when starting (and?/or) stopping Android support and changing user right after.
PRECONDITIONS:
Set up two users,
Use the primary for Android things
Use the second user for daily use (android not available)
STEPS TO REPRODUCE:
- Go to primary user “Device Owner”
- Start or Stop (not sure which one, maybe both) Android Support
- Switch to secondary user and log in.
EXPECTED RESULT:
Log as secondary user.
ACTUAL RESULT:
“Ahoj” first-boot-welcome-screen → Licence-acceptation-screen loop. User data deleted.
MODIFICATIONS:
Storeman, Chum, Patchmanager (plain text mail, call autorec, lockscreen torch/mute),
Increased the user disk space allowed. Description here.
Allowed secondary call recordings. Description here
ADDITIONAL INFORMATION:
Long to build details list: Time consuming experiments because a reflash (dd part. 0p76) is needed each time.
Noticed:
- The case does not occur if I uninstall and reinstall PatchManager
- Seems not to occur either, if I try to enable
debug symbols on home partition
, even w/o downloading necessary packages and come back to settings.
Also interesting to note that the reset sometimes happen
-when changing from defaultuser to additional user
or, if not happened.
-when coming back to defaultuser from additional user.
Deleting -I believe- only the user’s data that was tried to log in at the “Ahoj” moment.
List of user's dir remaining files
Files found with recovery mode in the user’s dir after the bug occured and licence-acceptation-screen was accepted.
/home/defaultuser/.local
/home/defaultuser/.local/share
/home/defaultuser/.local/share/system
/home/defaultuser/.local/share/system/privileged
/home/defaultuser/.local/share/system/privileged/Secrets
/home/defaultuser/.local/share/system/privileged/Secrets/org.sailfishos.secrets.plugin.storage.sqlite
/home/defaultuser/.local/share/system/privileged/Secrets/org.sailfishos.secrets.plugin.storage.sqlite/secrets.db
/home/defaultuser/.local/share/system/privileged/Secrets/org.sailfishos.secrets.plugin.storage.sqlite/secrets.db-wal
/home/defaultuser/.local/share/system/privileged/Secrets/org.sailfishos.secrets.plugin.storage.sqlite/metadata.db-shm
/home/defaultuser/.local/share/system/privileged/Secrets/org.sailfishos.secrets.plugin.storage.sqlite/metadata.db-wal
/home/defaultuser/.local/share/system/privileged/Secrets/org.sailfishos.secrets.plugin.storage.sqlite/secrets.db-shm
/home/defaultuser/.local/share/system/privileged/Secrets/org.sailfishos.secrets.plugin.storage.sqlite/metadata.db
/home/defaultuser/.local/share/system/privileged/Secrets/org.sailfishos.secrets.plugin.encryptedstorage.sqlcipher
/home/defaultuser/.local/share/system/privileged/Secrets/org.sailfishos.secrets.plugin.encryptedstorage.sqlcipher/metadata.db-shm
/home/defaultuser/.local/share/system/privileged/Secrets/org.sailfishos.secrets.plugin.encryptedstorage.sqlcipher/metadata.db-wal
/home/defaultuser/.local/share/system/privileged/Secrets/org.sailfishos.secrets.plugin.encryptedstorage.sqlcipher/metadata.db
/home/defaultuser/.local/share/system/privileged/Secrets/initialsalt
/home/defaultuser/.local/share/system/privileged/Secrets/initialsalt/4c74c272-b47a-4488-a425-f0961fa00698
/home/defaultuser/.local/share/system/privileged/Secrets/initialsalt/4c74c272-b47a-4488-a425-f0961fa00698/file1
/home/defaultuser/.local/share/system/privileged/Secrets/initialsalt/4c74c272-b47a-4488-a425-f0961fa00698/file2
/home/defaultuser/.local/share/system/privileged/Secrets/initialsalt/4c74c272-b47a-4488-a425-f0961fa00698/file0
/home/defaultuser/.local/share/system/privileged/Secrets/lockcodecheck
/home/defaultuser/.local/share/system/privileged/Secrets/lockcodecheck/ed61657e-973d-4b5e-8d51-e2fd2b6b098c
/home/defaultuser/.local/share/system/privileged/Secrets/lockcodecheck/ed61657e-973d-4b5e-8d51-e2fd2b6b098c/file1
/home/defaultuser/.local/share/system/privileged/Secrets/lockcodecheck/ed61657e-973d-4b5e-8d51-e2fd2b6b098c/file2
/home/defaultuser/.local/share/system/privileged/Secrets/lockcodecheck/ed61657e-973d-4b5e-8d51-e2fd2b6b098c/file0
/home/defaultuser/.local/share/system/privileged/connman-vpn
/home/defaultuser/.local/share/system/privileged/connman
/home/defaultuser/.local/share/system/privileged/connman/settings
/home/defaultuser/android_storage