How to loose all your data with a single adb command - Xiaomi Mi 9 SE Questions & Answers

Hi,
I have experienced a data loss recently so I would like to share it with other Xiaomi users and maybe someone could share their experience.
During de-bloat cleaning I made a mistake. I wanted to disable "Security" app, but regular "disable-user" command did not work. I was a bit desperate so I decided to uninstall it using this command:
pm uninstall --user 0 com.miui.securitycenter
After that the system could not boot and always dropped to Recovery
I tried to re-flash the same firmware version using Mi Assitant PC, but that did not help. The only solution was to Wipe all the data. After that my Xiaomi 9 SE was able to boot. But all the data was lost.
My question is: is there a way to somehow boot the device in this situation without wiping all the data? Bootloader locked
Thanks

Hey,
I haven't found a way arround this. The Security App is still somewhere in the system image, but I could not find a way how to get to that file and how to restore it. For me it was the Cloud App. The device still boots, but gives annoying crash messages if you use the screenshot functionality or try to click the preview icon in the camera app.
If someone else finds a way around, I would be happy to hear and learn

Related

[Solved] Broke permissions settings, nandroid can't fix, need help

Re-written to be more concise and readable:
Long story short: I installed the program "Permissions Denied" from the market and restricted a few games. When I rebooted something was broken and I can't quite figure out what, but it runs deep through the phone.
The phone isn't bootlooping, but when I starts up it will very often become unresponsive immediately after getting to the lockscreen, my theory is that things are trying to load and crashing in the background. The only fix for this is to wait until it appear to reboot itself; the screen will come back on and show me a quick few cycles of the boot animation, then back to the lockscreen. After this, it asks to re-activate on the network. Whether or not everything works after this point has been highly variable. Currently, my phone is on but has no way of signing into a google account (isn't even an option in the list under settings).
If I try to restore a nandroid, at the very end it spits out "Error while restoring /data!". I've done this with a couple nandroids that I've used fine in the past. Fully wiping from CWM and installing a fresh rom yields similar results.
Basically my thinking at this point is to back up anything I want while I have access to the phone and try to do as full a factory reset as possible. Any ideas? Of note is that I've run the "fix permissions" function both in CWM and ROM Manager, and when I run it in ROM Manager the log shows permissions for a bunch of programs that have been wiped. So I'm guessing that permissions settings persist across wipes, but I don't know what to address that with specifically.
Bump? (rewrote OP to make it less of a train wreck of my late-night detective work)
Edit with maybe-progress: I found and installed an older apk for Permissions Denied and even though this is an older nandroid and everything has been wiped time and again, the permissions for the games I changed are still disabled.
Having trouble getting the program to actually undo anything though, and rebooting the phone is a rather tiresome task with all this going on just to find out nothing changed.
Does anyone know
1)Where permissions live, and if I can reflash whatever that is, as it is clearly corrupt here.
2)Where I can get a copy of the v2.9 apk for this app, as maybe it will be better at restoring what it did than the older version I dug up.
Edit2:I eventually just did a factory reset and it fixed everything. I had also emailed the developer of the app and he got back to me with the following advice:
It sounds like the permissions file is locked, packages.xml. Try opening my app, going into the settings, and make sure that the first option is NOT checked.
Then hit the unlock option to unlock the file.
If that doesn't work, try the following in a terminal...
su
chattr -ia /data/system/packages.xml\
Click to expand...
Click to collapse
Intuitively this sounds like it may have fixed the problem, so I'm posting it here in case anyone ends up with similar problems and finds this thread searching.

[Q] Lock Screen Password Reset?

Hi All,
My 10 y.o. son changed the lockscreen password on his Kindle Fire 2 HD 7" and is now unable to access. He has used all but 2 of the allowed unlock attempts, and is now 2 tries away from an automatic factory reset. The device has all stock settings, has not been rooted nor any other modifications. I'm trying to figure out if there is anything I can do to crack/read/reset the lockscreen PIN / password with the device in its current state, or if a factory reset is the only option? The big issue is he does not want to lose his game save data. I work in IT, and am very comfortable with both Linux & Windows command line tools. Is it possible for me to access the files on his Kindle, or to perform root modifications while unable to get past the lock screen password? I have read many posts on this forum, but cannot find one which speaks to my specific situation. Thanks in advance for any replies!
danimal71 said:
Hi All,
My 10 y.o. son changed the lockscreen password on his Kindle Fire 2 HD 7" and is now unable to access. He has used all but 2 of the allowed unlock attempts, and is now 2 tries away from an automatic factory reset. The device has all stock settings, has not been rooted nor any other modifications. I'm trying to figure out if there is anything I can do to crack/read/reset the lockscreen PIN / password with the device in its current state, or if a factory reset is the only option? The big issue is he does not want to lose his game save data. I work in IT, and am very comfortable with both Linux & Windows command line tools. Is it possible for me to access the files on his Kindle, or to perform root modifications while unable to get past the lock screen password? I have read many posts on this forum, but cannot find one which speaks to my specific situation. Thanks in advance for any replies!
Click to expand...
Click to collapse
http://www.addictivetips.com/androi...e-pattern-unlock-on-android-via-adb-commands/
http://www.youtube.com/watch?v=SzdWc0ymtUU
Thanks for the link; I am not sure if USB Debugging / Enable ADB is enabled on this Kindle Fire HD device. If it is not, will this approach work? Since the lock screen password is unknown, I am not able to go into the device & check/modify this setting.
The YouTube video is not of practical use, since I am trying to avoid having to perform a factory reset.
danimal71 said:
Thanks for the link; I am not sure if USB Debugging / Enable ADB is enabled on this Kindle Fire HD device. If it is not, will this approach work? Since the lock screen password is unknown, I am not able to go into the device & check/modify this setting.
The YouTube video is not of practical use, since I am trying to avoid having to perform a factory reset.
Click to expand...
Click to collapse
No, the instructions there assume you have debugging enabled AND your computer is added to the list of authorized computers (on the device) to send adb commands. That's a nice little security feature Google added recently to prevent stolen devices from being hacked into
soupmagnet said:
No, the instructions there assume you have debugging enabled AND your computer is added to the list of authorized computers (on the device) to send adb commands. That's a nice little security feature Google added recently to prevent stolen devices from being hacked into
Click to expand...
Click to collapse
Thanks, so if I'm reading this correctly - if I am unable to connect via ADB, I have no option except for the factory reset? Am I able to root the device while the lock screen password is unknown, or would that process also be blocked to me? The factory reset is easy enough, and I know we can reinstall his games, apps, and books - but the big problem (for my son at least!) is that he will lose all of his Dragonvale progress save data!
I have a different approach on it that may be more complicated and I don't know the full method of doing this, but if u can flash twrp onto the recovery and the custom bootloader for kf2 (is it fff?) Then in twrp u could mount the partition, plug it into your pc, and copy the data folder for that game. But I am unfamiliar with the process for modifying the boot loader on kf2's since I don't have one. I know u could probably flash twrp from fastboot, but idk if the kf2 has be booted up with adb and root to install fff. Probably could force it into recovery by softbricking it but I don't suggest doing that from fastboot because it might hard brick if u flash a bad image for all I know. Only way I can think of safely getting it to soft brick and go into twrp is to get someone else with a rooted kf2 to do something like use adb to move their framework-res.apk to sdcard and then backup the system partition while the kindle is in a broken state and pull the backup, then put their framework back, chmod it and reboot and hand u the system image that's broken so u could flash it from fastboot. Usually when you do something like this the ki dle will go into recovery. Told ya my method was really complicated and well slightly risky.
Sent from my Amazon Kindle Fire HD running CM10.1 Tablet UI using xda-developers app
unlock lockscreen password
danimal71 said:
Hi All,
My 10 y.o. son changed the lockscreen password on his Kindle Fire 2 HD 7" and is now unable to access. He has used all but 2 of the allowed unlock attempts, and is now 2 tries away from an automatic factory reset. The device has all stock settings, has not been rooted nor any other modifications. I'm trying to figure out if there is anything I can do to crack/read/reset the lockscreen PIN / password with the device in its current state, or if a factory reset is the only option? The big issue is he does not want to lose his game save data. I work in IT, and am very comfortable with both Linux & Windows command line tools. Is it possible for me to access the files on his Kindle, or to perform root modifications while unable to get past the lock screen password? I have read many posts on this forum, but cannot find one which speaks to my specific situation. Thanks in advance for any replies!
Click to expand...
Click to collapse
As you are an IT experts, you may try to unlock your lock screen password with some free tool, such as Ophcrack. Also you can try other Windows Password Recovery tools to keep all data safe. I got this Youtube video: youtu.be/QyGptsC3VLg

Backup non-rooted LG G4 stuck in "UI stopped working" loop

Hello everyone,
Yesterday, after I tried to charge my LG G4, it stopped booting properly: it seems to boot "normally" under the hood, except that the system UI is not properly loading so instead I get a black screen and a message "Unfortunately system UI stopped working". If I click "ok", it comes back within two seconds (the screen stays black apart from the error message). I cannot do anything, like unlock the phone or access anything on it, despite the fact that I can hear notifications coming in.
Unfortunately phone is not rooted, developper mode isn't enabled, and I don't have a custom recovery. I would do a factory reset if it weren't for my Google Authenticator codes, some of which I haven't properly backed up like an idiot. Thus I was wondering what I could do to back up my phone or solve the issue.
Here is what I've already tried:
Press down VOLUME DOWN + POWER to enter recovery mode, but since I don't have custom recovery this only gives me the option to do a hard factory reset and lose all my data.
Use adb commands to access my phone, but I get "unauthorized device" because I haven't enabled developper tools on the phone.
Use the app "LG Bridge" on my mac, but it also doesn't work for the above reason.
I see three possibilities, but I don't know whether any is genuinely doable:
Solve the issue of the error message, which from what I've read requires me to wipe the cache. But how to do that without custom recovery?
Somehow bypass the UI to unlock the phone and unable developer tools
Manage to backup the phone from my computer while its locked without developper tools enabled.
Note that obviously this is my phone, I know my passwords, I have access to my Google account, etc.
Any help would be greatly appreciated, without my Google Authenticator data I'll be locked out of an important email account.
satiricon22 said:
Hello everyone,
Yesterday, after I tried to charge my LG G4, it stopped booting properly: it seems to boot "normally" under the hood, except that the system UI is not properly loading so instead I get a black screen and a message "Unfortunately system UI stopped working". If I click "ok", it comes back within two seconds (the screen stays black apart from the error message). I cannot do anything, like unlock the phone or access anything on it, despite the fact that I can hear notifications coming in.
Unfortunately phone is not rooted, developper mode isn't enabled, and I don't have a custom recovery. I would do a factory reset if it weren't for my Google Authenticator codes, some of which I haven't properly backed up like an idiot. Thus I was wondering what I could do to back up my phone or solve the issue.
Here is what I've already tried:
Press down VOLUME DOWN + POWER to enter recovery mode, but since I don't have custom recovery this only gives me the option to do a hard factory reset and lose all my data.
Use adb commands to access my phone, but I get "unauthorized device" because I haven't enabled developper tools on the phone.
Use the app "LG Bridge" on my mac, but it also doesn't work for the above reason.
I see three possibilities, but I don't know whether any is genuinely doable:
Solve the issue of the error message, which from what I've read requires me to wipe the cache. But how to do that without custom recovery?
Somehow bypass the UI to unlock the phone and unable developer tools
Manage to backup the phone from my computer while its locked without developper tools enabled.
Note that obviously this is my phone, I know my passwords, I have access to my Google account, etc.
Any help would be greatly appreciated, without my Google Authenticator data I'll be locked out of an important email account.
Click to expand...
Click to collapse
Well at least you can backup your phone in download mode with SALT ( https://bit.do/SALTatXDA ) but restoring is another story.
Sent from my LG-H815 using XDA Labs
Thanks a lot for your reply! I'll try backing up with SALT tonight. There are two things I'm wondering:
How do you think I could extra data from the backup?
Will I be able to wipe the cache or enable usb debugging with SALT? That might solve the issue.
satiricon22 said:
Thanks a lot for your reply! I'll try backing up with SALT tonight. There are two things I'm wondering:
How do you think I could extra data from the backup?
Will I be able to wipe the cache or enable usb debugging with SALT? That might solve the issue.
Click to expand...
Click to collapse
You can mount the userdata partition on Linux (e.g in FWUL) and then browse through it like it's on your phone.
You can wipe the cache paetition in SALT yes. It's in the advanced menu there (erase partitions -> select cache and only that). It will not wipe the dalvik cache though.
I dunno about the USB debugging though. Maybe there is a way but if so you would need a very unrestricted download mode (depends on model and firmware). And the whole process is not easy.
It requires again SALT and there you have in the advanced menu the option to open a shell.
Here you can mount userdata with
mount /data
But it's usually mounted already. Then it's a try and error. You could e. G. try to delete the dalvik cache etc.
Sent from my LG-H815 using XDA Labs
steadfasterX said:
You can mount the userdata partition on Linux (e.g in FWUL) and then browse through it like it's on your phone.
You can wipe the cache paetition in SALT yes. It's in the advanced menu there (erase partitions -> select cache and only that). It will not wipe the dalvik cache though.
I dunno about the USB debugging though. Maybe there is a way but if so you would need a very unrestricted download mode (depends on model and firmware). And the whole process is not easy.
It requires again SALT and there you have in the advanced menu the option to open a shell.
Here you can mount userdata with
mount /data
But it's usually mounted already. Then it's a try and error. You could e. G. try to delete the dalvik cache etc.
Sent from my LG-H815 using XDA Labs
Click to expand...
Click to collapse
Hi!
I've found out that the Google Auth keys are in /data/data/com.google.android.apps.authenticator2/databases/databases. So I need to backup /data/. However, when I show the list of partitions with SALT, I don't see /data/. Is there a way to backup /data/ on my unrooted device?
Secondly, I haven't managed to wipe the dalvik cache with the command shell, would you be able to point me in the right direction?
Thank you so much!

Help Needed: OP 5T - forgot screen lock pattern

Hi,
Somehow I managed to forget my screenlock pattern (freshly changed) on my OnePlus 5T and it seems like my enrolled fingerprints are useless now. I need some help to recover access to my phone (preferably without factory reset).
This is the current situation of my phone:
- Phone Rooted
- TWRP Custom Recovery
- USB Debugging enabled
- WiFi On/Data and GPS OFF
- Currently logged in with my google account on the phone, but can't access it over the google account (i kind of disabled history and other features in my google acc).
- Also "Unknown Sources" is enabled on my phone.
If there is any way to recover the password via ADB, or to unlock the Data, that would be just awesome...
Thanks for any help.
derei said:
Hi,
Somehow I managed to forget my screenlock pattern (freshly changed) on my OnePlus 5T and it seems like my enrolled fingerprints are useless now. I need some help to recover access to my phone (preferably without factory reset).
This is the current situation of my phone:
- Phone Rooted
- TWRP Custom Recovery
- USB Debugging enabled
- WiFi On/Data and GPS OFF
- Currently logged in with my google account on the phone, but can't access it over the google account (i kind of disabled history and other features in my google acc).
- Also "Unknown Sources" is enabled on my phone.
If there is any way to recover the password via ADB, or to unlock the Data, that would be just awesome...
Thanks for any help.
Click to expand...
Click to collapse
Hey Bud,
I had a similar issue when I restored a nandroid backup and the password had been glitched so that I couldn't sign into my phone anymore.
Anyways here's a shortened version of a solution I found here: https://forums.oneplus.com/threads/fix-wrong-pin-pattern-when-restoring-twrp-nandroid-backup.452384/
1. Boot into TWRP
2. Open the file manager inside of TWRP and delete (or rename - they get restored whenever the phone is booted so deleting them does no harm) the following files inside "/data/system":
-password.key
-pattern.key
-locksettings.db-wal
-locksettings.db-shm
-locksettings.db
(they might not all be there but whichever ones you can find, delete/rename)
3. Reboot your phone and you should no longer have any kind of pin/pattern on your lockscreen
4. Re-setup your password and don't forget it this time!
Hope this helps :good:
BenisMusical said:
Hey Bud,
I had a similar issue when I restored a nandroid backup and the password had been glitched so that I couldn't sign into my phone anymore.
Anyways here's a shortened version of a solution I found here: https://forums.oneplus.com/threads/fix-wrong-pin-pattern-when-restoring-twrp-nandroid-backup.452384/
1. Boot into TWRP
2. Open the file manager inside of TWRP and delete (or rename - they get restored whenever the phone is booted so deleting them does no harm) the following files inside "/data/system":
-password.key
-pattern.key
-locksettings.db-wal
-locksettings.db-shm
-locksettings.db
(they might not all be there but whichever ones you can find, delete/rename)
3. Reboot your phone and you should no longer have any kind of pin/pattern on your lockscreen
4. Re-setup your password and don't forget it this time!
Hope this helps :good:
Click to expand...
Click to collapse
Hi, thanks.
I've been checking that post, but something didn't quite match. The following files are available on my phone ( /data/system):
-gatekeeper.password.key
-gatekeeper.pattern.key
-locksettings.db-shm
-locksettings.db
-locksettings.db-wal
So, as you can see, there are two files with the "gatekeeper" prefix. Are those two supposed to be also deleted (renamed)? Did you have them when you did your fix?
Thanks.
derei said:
Hi, thanks.
I've been checking that post, but something didn't quite match. The following files are available on my phone ( /data/system):
-gatekeeper.password.key
-gatekeeper.pattern.key
-locksettings.db-shm
-locksettings.db
-locksettings.db-wal
So, as you can see, there are two files with the "gatekeeper" prefix. Are those two supposed to be also deleted (renamed)? Did you have them when you did your fix?
Thanks.
Click to expand...
Click to collapse
Hey man,
When I fixed my issue I didn't touch those - worst comes to worst just rename the files that were on the list I gave and leave the other 2. If it doesn't work then you can try renaming the files you found from my list as well as the two you have highlighted in red.
Give that a try
BenisMusical said:
Hope this helps :good:
Click to expand...
Click to collapse
Just did the steps (including the gatekeeper. prefixed files) - I just renamed them, so I can revert back. Indeed I was able to get my phone unlocked, but everything is blank. Only a wallpaper, status bar and Nav Bar. No apps, no app drawer, nothing. I can access the Settings, but that doesn't help much... (except that I can set a new password).
Going in Settings -> Apps, shows me all the apps, which is good. But I can't see them on screen.
Also, the following are happening:
- Settings -> Apps -> Defaults: Nothing set up for "Home App". And there is a blank grey menu when I click on it.
- Settings -> Apps -> Application List -> OnePlus Launcher: clicking on Open By Default, crashes the Settings Menu.
Is it possible that I did something wrong here?
derei said:
Just did the steps (including the gatekeeper. prefixed files) - I just renamed them, so I can revert back. Indeed I was able to get my phone unlocked, but everything is blank. Only a wallpaper, status bar and Nav Bar. No apps, no app drawer, nothing. I can access the Settings, but that doesn't help much... (except that I can set a new password).
Going in Settings -> Apps, shows me all the apps, which is good. But I can't see them on screen.
Also, the following are happening:
- Settings -> Apps -> Defaults: Nothing set up for "Home App". And there is a blank grey menu when I click on it.
- Settings -> Apps -> Application List -> OnePlus Launcher: clicking on Open By Default, crashes the Settings Menu.
Is it possible that I did something wrong here?
Click to expand...
Click to collapse
Possibly?
When I followed the method in the link in my previous post I had no issues - I just had to setup a new lock method.
It may have been the gatekeeper files - when I did this method previously I didn't touch those as I didn't know they were there
Do you have a backup from TWRP by any chance that you could restore?
BenisMusical said:
Possibly?
When I followed the method in the link in my previous post I had no issues - I just had to setup a new lock method.
It may have been the gatekeeper files - when I did this method previously I didn't touch those as I didn't know they were there
Do you have a backup from TWRP by any chance that you could restore?
Click to expand...
Click to collapse
Restored the gatekeeper files, but no success. Same behaviour. I have a backup, but is only a "initial backup" - sort of how the phone was at first. I was too dumb to do a backup after I set up everything.
It seems my only way now would be to do a factory reset and lose all data.
Unless there would be a way to recover the password from the database? I know is encrypted and salted, but that salt also has to be stored somewhere... maybe there would be a way to revert that hash into a pattern? grr, this is extremely frustrating.
derei said:
Restored the gatekeeper files, but no success. Same behaviour. I have a backup, but is only a "initial backup" - sort of how the phone was at first. I was too dumb to do a backup after I set up everything.
It seems my only way now would be to do a factory reset and lose all data.
Unless there would be a way to recover the password from the database? I know is encrypted and salted, but that salt also has to be stored somewhere... maybe there would be a way to revert that hash into a pattern? grr, this is extremely frustrating.
Click to expand...
Click to collapse
I apologise for possibly making matters worse whilst trying to help but this is beyond my understanding of TWRP's capabilities
It might be worth restoring your previous backup even if it is blank and then setting up your phone again. During the setup choose an option that should be something like: "Restore from the cloud" which will allow google to restore most of your app data. However, your internal storage will be completely wiped . Once that's all good and setup then definitely make a backup - it's a good habit to get into and will save you a lot of hassle in future.
I don't know if there's anything else I can suggest you to do,
hope this doesn't take up too much time - I personally know how infuriating it is to spend hours on something when there's no easy solution. You'd be better starting from a clean flash of OOS.
Sorry, there's nothing else I can think of to help you out
Best of luck bud.
BenisMusical said:
Sorry, there's nothing else I can think of to help you out
Best of luck bud.
Click to expand...
Click to collapse
I'm grateful for your effort. It offered a solution. It just got more complicated than expected. Probably the last Oxygen update patched some security issues - which is not bad after all (it's just bad for me NOW).
Personal data is encrypted with the screen lock pattern, so your only choice is a factory reset

Downgrade from Q to Pie without unlocking bootloader possible?

Long story short: I have a new Poco X3 NFC on the way I want to extract the mail database from K-9 Mail on my aging Mi A2 Lite. I am still using POP3 (silly me) and I would somehwat hate to lose all my local mail copies on my phone. It's not possible to get to the database without root and my phone isn't rooted. Root can only be achived with unlocked bootloader but unlocking the bootloader will wipe all data.
I've read this super cool guide to evade the wipe by marstonpear but from the comments it seems that this doesn't work on Android Q (or 10) which my phone is at.
Can anyone confirm that this really doesn't work on Q?
Is there a way to downgrade without unlocking the bootloader or am I stuck?
Okay I've dug um some more info that I previously didn't find. Supposedly the method still works on V11.0.5.0.QDLMIXM. My phone is at the more recent V11.0.12.0.QDLMIXM. Since the differences should mostly be security updates this raises my confidence that the methode will still work on my phone. Will try once my Poco X3 NFC has arrived.
You may be able to use adb backup without unlocking the bootloader to backup the k9 data and restore to the new phone?
The bootloader unlock without data wipe is possible but be very careful. Lots of people have lost data.
LEECH666 said:
Long story short: I have a new Poco X3 NFC on the way I want to extract the mail database from K-9 Mail on my aging Mi A2 Lite. I am still using POP3 (silly me)
Click to expand...
Click to collapse
You can try to activate a mailbox with a provider with IMAP service. You configure it on k9 and move the emails to the new account verifying that they are also copied to the server via imap service. After on the new mobile you can decide to move them back to the main account.
Sorry for my bad english
a1291762 said:
You may be able to use adb backup without unlocking the bootloader to backup the k9 data and restore to the new phone?
The bootloader unlock without data wipe is possible but be very careful. Lots of people have lost data.
Click to expand...
Click to collapse
Thank you for the hints, but I think adb backup is exclusively not supported due to privacy concerns. All in all the backup / migration situation on Android is still extremely terrible.
mizi_ said:
You can try to activate a mailbox with a provider with IMAP service. You configure it on k9 and move the emails to the new account verifying that they are also copied to the server via imap service. After on the new mobile you can decide to move them back to the main account.
Sorry for my bad english
Click to expand...
Click to collapse
Thank you, that's an interesting approach. I will try to figure this out before trying to unlock the bootloader as this seems less prone to complete dataloss.
I know next to nothing about how IMAP works besides that all mail reside on the server and are centrally organized (and synced between clients?). I've always used POP3 and it works well enough for me. Thunderbird on the PC with POP3 is my main client so I never felt the need to switch, in fact IMAP wasn't even supported for a long time with my main email provider and space was scarce.
LEECH666 said:
Thank you for the hints, but I think adb backup is exclusively not supported due to privacy concerns. All in all the backup / migration situation on Android is still extremely terrible.
Click to expand...
Click to collapse
Why? I made and restored backup exactly on V11.0.12.0.QDLMIXM using adb. Can't tell you how to unzip the backup * .ab file. But I am sure it is possible.
Thanks for the input alsgs4. I can certainly give it a try but I do not have high hopes for it to work.
Edit: I tried and it doesn't seem to work. I only get a 549 bytes file if I use:
adb backup -f k9.ab -apk com.fsck.k9
Either the package name is wrong or it just doesn't work.
Okay so I just found out, that supposedly my main email account (web.de) is added as an IMAP account in K-9 but something is weird. I tried to move a not so important mail from the inbox to the archive folder and in K-9 it moves to mail to the archive folder but it's not reflected on the account itself at all when checking in the web.de web login. I tried again with a secondary email account (outlook.com) that has always been IMAP and it works there like it should (moving back and forth between inbox and archive folder with phone and web login). Maybe web.de is just weird / crappy.
I managed to unlock the bootloader without wiping date following the instructions below - but be careful to follow it to the letter:
USB debug ON
OEm unlock ON
Then connect the phone to your PC:
adb devices
adb reboot bootloader
fastboot oem unlock - start pressing only vol down button and then hit enter, HOLD vol down until the phone boots into fastboot mode again.
fastboot reboot - start pressing only vol down button and then hit enter, HOLD vol down until the phone boots into fastboot mode again.
Now you are ready to boot into your system. Either boot by holding power button or typing - fastboot reboot then press enter
Make sure you dont actually hit ENTER on the fastboot steps UNTIL you've started pressing the vol down button on your phone
I also had to be quick with typing the fastboot commands on the PC when using the adb commands
After that you can then root using magisk patched boot.img file - let me know if you need the instructions on how to do this
Thank you FOREST37. I am aware of this method as can be seen by the link I've embedded into the text of my first post. I was just uncertain if it still worked for Android 10.
My X3 NFC arrived yesterday. I will report back if everything works out.
Okay I've finally found the time to unlock the bootloader on my Mi A2 Lite and the guide from marstonpear worked like a charm on system version V11.0.12.0.QDLMIXM . Time to flash TWRP / Magisk / Titanium Backup and use root to start digging for that mail storage. Thanks to everyone who's provided some help to me on this topic.
Okay I got TWRP installed via this guide, and flashed Magisk, installed Titanium Backup and at first the K9 backup failed but now it seems to have worked and the TB folder doesn't turn up empty like on the first two tries. No idea what's going on there. Transfered everything over to my new phones external SD and tried restoring the app. After 20 minutes the restore was still not done. Rebooted the phone, reinstalled K-9 via Google Play Store and restored the apps data only in TB and it's finally working! Looks like the Android backup / migration situation has become even worse. What a bl**dy odyssey. Thanks again to anyone who provided information to get this done.

Categories

Resources