[Multi-user][Android] User data get deleted and lost, device reset

You can however create this script and temporarily point the /usr/bin/rm symlink to it:

#!/bin/sh
echo "rm called: " $0 $* > /dev/stderr
echo -n "rm parent: "$PPID ": " > /dev/stderr
tr "\0" " " < /proc/$PPID/cmdline > /dev/stderr
echo > /dev/stderr
exec /usr/bin/busybox rm "$@"
2 Likes

This issue happened to me yesterday, when switching between default user and guest (Access disk of device not starting properly). I did have patchmanager installed, so I havenā€™t been able to rule that cause out.

What I did find was that when I tried to start Jolla-settings from icon it failed to start. But when starting from terminal it successfully launched, though with warnings that ā€œmanagerā€ couldnā€™t be created (canā€™t remember the exact wording) and that the database was locked. Will try to recreate the behavior when I have more time.

Sorry to hear you experienced this @Mohjive, but thanks for reporting it.

1 Like

Did you start or stop Android Support just before changing user?

I never manually start or stop Android service. It may have been OOM killed, before I tried to switch to guest user, or implicitly started by me launching an Andoid app.

Unfortunately I canā€™t recall the exact details, as I was focusing on the user switching rather than Android support :smiley:

I have also experiencing and user data deletion after switching to a secondary user.

I have Android support, but noting special do with it. Although Android data are not lost, in contrary to other sailfish user data.

I donā€™t tried to re produce it. But what I identified as having done is :

  • from admin user (defaultuser) ask switching to a secondary user (not used for month) from interface
  • rapidly after switched, ask to switch again to admin user
  • when logged to admin user, the profiled was reset to new user, and ā€œfirst startup setupā€ was launched.

This is very annoying, If I have a save, this one is over a month old.

Sorry it happened to you too.
Do you remember if Android Support was On while you did the described steps?

1 Like

Yes, I supposed y than Android support was On.
I never stop it explicitly, and have application than start in background (like messaging app Element)

1 Like

Same experience for me this morning. I need to reflah the smartphone !
I loose few datas but i loose some :frowning:
And reflash is very easy, itā€™s after : you need one day to restore the smartphone as before the bug.
Jolla has the chance that iā€™m an afficionado :slight_smile:

1 Like

Same.
Happened again today, all data lost (secondary user is my main user) , after failing to start android in defaultuser.
No way to use recovery since the new (and appreciated) alphanumeric user as recovery is not accepting the password.

It happend to me today. When I checked my phone (XA2 plus, 4.4.0.72) guest user was activated. I donā€™t know how it happend. So I switched back to device owner/admin and all data was lost, \nemo was almost empty and only an android data folder (donā€™t remember the excact name) was there.
Is there any chance to restore the data? My last backup is some weeks old. I think the whisperfish database (used mybackup) changed in the meantime and the backup would not be functional for it.

Thanks for any help.

Hi, very sorry. This prob is a big annoyance.
Nemo? I guess coming from an old SF version.
Anyway. I donā€™t remember if data subsists. Seems once I switched off immediately and could find some data through recovery mode. Not sure though. Maybe worth it exploring the filesystem from there.

Strange that it happened all of a sudden. Scarry!
Generally happens after fiddling Android start/stop button and changing user.

About WF, sorry, I donā€™t know. Maybe ask on the WF thread.
Good luck.