Mi A1 won’t start up (System UI has stopped working) - Xiaomi Mi A1 Questions & Answers

I just installed one of the Oreo Themes.zip that doesn’t need root I noticed it was name like android.xxxxx in device theme list I taped it then my phone force shutdown and restart and said that my data is corrupt and I either try again or factory reset I clicked try again it tells me to enter my pin code I enter it then it stops at System UI has stopped working and restart again Pls help
is there way to wipe partition cache?

You can use mi flash if you have your bootloader unlocked i think, or you have to format.

If you have bootloader unlocked, you can try uninstalling theme from TWRP (delete /data/app/themename) and deleting file /data/system/overlays.xml
With locked bootloader I'm afraid you're out of luck and must perform factory reset (you'll probably lose data on internal SD as well).

_mysiak_ said:
If you have bootloader unlocked, you can try uninstalling theme from TWRP (delete /data/app/themename) and deleting file /data/system/overlays.xml
With locked bootloader I'm afraid you're out of luck and must perform factory reset (you'll probably lose data on internal SD as well).
Click to expand...
Click to collapse
i didnt unlock the bootloader

furyxda said:
i didnt unlock the bootloader
Click to expand...
Click to collapse
Did you try to boot in safe mode? Maybe you can open settings...

sipollo said:
Did you try to boot in safe mode? Maybe you can open settings...
Click to expand...
Click to collapse
Just did . still getting System UI has stopped working
i think i will just factory reset

You can flash stock rom by miflash with saving data.
Wysłane z mojego Mi A1 przy użyciu Tapatalka

Mirdeusz said:
You can flash stock rom by miflash with saving data.
Wysłane z mojego Mi A1 przy użyciu Tapatalka
Click to expand...
Click to collapse
1. since May, bootloader unlocking will erase data unless done very specifically
2. system reflash won't help, themes are installed and configured in /data partition
@furyxda - you might try to unlock bootloader (follow that special procedure which might keep your data), reboot to bootloader, boot TWRP, remove theme and overlays.xml file, reboot. Worst case scenario is that you will lose your data..

_mysiak_ said:
1. since May, bootloader unlocking will erase data unless done very specifically
2. system reflash won't help, themes are installed and configured in /data partition
@furyxda - you might try to unlock bootloader (follow that special procedure which might keep your data), reboot to bootloader, boot TWRP, remove theme and overlays.xml file, reboot. Worst case scenario is that you will lose your data..
Click to expand...
Click to collapse
Some users reported that after unlocking bootloader (even with vol- pressed) the first time you boot TWRP data will be wiped anyway.

sipollo said:
Some users reported that after unlocking bootloader (even with vol- pressed) the first time you boot TWRP data will be wiped anyway.
Click to expand...
Click to collapse
No idea if it's really true or not, I didn't try it and don't plan to But this guy has probably nothing to lose and as he's going to wipe his data anyway, it's worth a try..
@furyxda - another idea, if you boot up the phone (ignore systemui crashes and don't click anywhere) and connect it to the PC. Can you connect to it over ADB (type "adb devices")? If you had functional ADB before the crash, you might be able to remove problematic theme via ADB.

Solution
Did anyone find a solution to this problem? At least save the data on internal storage? Please suggest me some possible methods.. Please !!

Have you tried safe mode?

TrueMS said:
Have you tried safe mode?
Click to expand...
Click to collapse
Safe mode doesn't work. Reboots with same error. But I am able to recognize the phone in fastboot mode. But bootloader locked, so no luck with it too.

Well, in my a1 i tried to install themes and yes one of them made my SystemUI crash. What i did was re flashing the stock and i lost all my data because of a damn theme
There is nothing you can do except to reflash the rom

Related

Encryption unlocked & rooted?

I've been reading something that interested me.
https://www.reddit.com/r/MotoX/comments/2kx2lv/how_do_you_encrypt_a_rooted_moto_x/
Specifically.
I had the same issue today. Booted into safe mode, then I was able to encrypt.
Press power button to get power off popup menu. Press and hold power off. You will get another popup offering to reboot in safe mode.
Safe mode worked. This uncomplicates my process of rooting, unrooting, encrypting, and having issues rerooting after encryption. This is also a crazy easy single step process for an issue that has given me months of headaches.
You shall be the first person ever that I have given gold to.
Thank you so much!
Click to expand...
Click to collapse
I enter my password in the encryption settings menu and hit the Encrypt button
Click to expand...
Click to collapse
How would encryption effect flashing a new rom?
What are your guys thoughts on encryptimg a unlocked and rooted phone?
I do not want to enable it yet till it is comfirmed its ok.
Thanks.
Um I haven't had a problem and I've encrypted the software many times as I have installed many rooms and I always encrypt after setting everything up post root so it should just work without issue. Maybe they just weren't being patient and it can take a bit of time
timde9 said:
Um I haven't had a problem and I've encrypted the software many times as I have installed many rooms and I always encrypt after setting everything up post root so it should just work without issue. Maybe they just weren't being patient and it can take a bit of time
Click to expand...
Click to collapse
What about unencrypting? To say to flash a new kernel or rom?
Well that's an interesting question. I am testing twrp builds from hashbang to try and get encryption fully supported for this device in twrp. Until that time you can actually still flash zips via adb sideload no problem
timde9 said:
Well that's an interesting question. I am testing twrp builds from hashbang to try and get encryption fully supported for this device in twrp. Until that time you can actually still flash zips via adb sideload no problem
Click to expand...
Click to collapse
Ohh. Cool. I'll have to learn adb.
@timde9
I've got twrp installed.
To get to recovrry mode, do I go into recovery mode in twrp and then the recovery button in twrp to install packages m zips from adb?
to install packages via adb is pretty simple really you just open twrp go to advanced menu and open "adb sideload" from there. Then connect your device to your computer install adb and sideload an app with this syntax
"adb sideload ***.zip"
That is radical. Ty for this.
Encryption went like a breeze.
took no more than 20 min. I feel safe now.
timde9 said:
Well that's an interesting question. I am testing twrp builds from hashbang to try and get encryption fully supported for this device in twrp. Until that time you can actually still flash zips via adb sideload no problem
Click to expand...
Click to collapse
Just found out after encrypting twrp fails to mount data to backup. I might restore without encryption. That way I have access to backups on my phone too.
So I am having a problem restoring a backup. Since I cannot decrypt, to get rid of data from being locked down, do I flash with a rom? I am stuck.
Ok I have to do a factory reset. But not sure if this exists and works through twrp. Or if I have to do a factory reset some otherway.
Ok I skipped trying to reinstall rom and did a little searching.
This guy but with a 6P had exact issue.
For me to wipe data I need to
Code:
fastboot format userdata
https://www.reddit.com/r/Nexus6P/comments/3qnzz0/twrp_unable_to_mount_data/
Hitti2 said:
Ok I skipped trying to reinstall rom and did a little searching.
This guy but with a 6P had exact issue.
For me to wipe data I need to
Code:
fastboot format userdata
https://www.reddit.com/r/Nexus6P/comments/3qnzz0/twrp_unable_to_mount_data/
Click to expand...
Click to collapse
Is this ok to do? I don't want mess anything up.
Hitti2 said:
Is this ok to do? I don't want mess anything up.
Click to expand...
Click to collapse
That will erase all your data including files, apps, etc. Anything installed to /system should be untouched.
asuhoops8628 said:
That will erase all your data including files, apps, etc. Anything installed to /system should be untouched.
Click to expand...
Click to collapse
Thanks for confirming this. Exactly what I need when time comes to decrypt "wipe" I will use this.
I wasn't sure if it would delete the partition or wipe, this is why I asked.
Ty.
Hitti2 said:
Thanks for confirming this. Exactly what I need when time comes to decrypt "wipe" I will use this.
I wasn't sure if it would delete the partition or wipe, this is why I asked.
Ty.
Click to expand...
Click to collapse
Upon reading this again, just to be safe, you might want to start with just a fastboot erase. I think format does the same thing, but I have never used it.
Since you would be specifying the partition with both commands, I do not think you are in risk of completely blowing up your user partition if you choose to use fastboot format, but once again, I have always just used fastboot erase.
Hitti2 said:
Ok I skipped trying to reinstall rom and did a little searching.
This guy but with a 6P had exact issue.
For me to wipe data I need to
Code:
fastboot format userdata
https://www.reddit.com/r/Nexus6P/comments/3qnzz0/twrp_unable_to_mount_data/
Click to expand...
Click to collapse
So I went to use this. I got an error.
Code:
Formatting is not supported for filesystem with type 'raw'
So now, that I am guessing, since twrp can now decrypt, I should just be able to go into twrp and do a full wipe and reinstall of the trupurexmm 2.5 And encryption should be gone?
Hitti2 said:
So I went to use this. I got an error.
Code:
Formatting is not supported for filesystem with type 'raw'
So now, that I am guessing, since twrp can now decrypt, I should just be able to go into twrp and do a full wipe and reinstall of the trupurexmm 2.5 And encryption should be gone?
Click to expand...
Click to collapse
Nope. Encryption is still enabled. I flashed trupurexmm 2.5 following
5. How To Install A ROM with TWRP Recovery
Prerequisites: unlocked bootloader, TWRP recovery.
Installing a ROM is a pretty straight forward and easy process. Before you install anything you should make a nandroid backup (instructions above).
Download a ROM and appropriate Gapps package and place on your device.
Boot into your custom recovery.
Perform a full wipe.
Select the wipe option from the TWRP home screen.
Select advanced wipe.
Check the system, data, cache, and dalvik cache options.
Swipe to wipe.
Install the ROM.
Select the install option from the TWRP home screen.
Navigate to where you have the ROM zip stored on your sd card and select it.
Swipe to install.
Most ROMs will run an installer script at this point but some ROMs have what is called an Aroma Installer which allow you to choose some install options before the script runs.
You will also need to install the appropriate gapps package directly after installing the ROM.
Once you've installed all necessary zips you'll have an option to wipe cache/dalvik and an option to reboot system. Wipe the cache/dalvik, hit the back button, and hit the reboot system button.
Click to expand...
Click to collapse
I'm having an issue encrypting. Encryption will not start on my rooted moto x. I factory reset and encrypted, but could not get root working. Flashed everything via adb sideload in twrp but root refueses to work. Any ideas
Sent from my XT1575 using Tapatalk

Reset Phone on Root

Hi, I keep seeing that some people brick their phones due to the changes in the process. Question, Due to some battery drainage I am getting, I am trying to do a phone reset.
I currently have TWRP installed and rooted the phone using the jccuando method. What is the best way to reset the phone to factory so I can re-root again and do what I need to do without bricking? Any advice would be much appreciated!
matteosaeed said:
Hi, I keep seeing that some people brick their phones due to the changes in the process. Question, Due to some battery drainage I am getting, I am trying to do a phone reset.
I currently have TWRP installed and rooted the phone using the jccuando method. What is the best way to reset the phone to factory so I can re-root again and do what I need to do without bricking? Any advice would be much appreciated!
Click to expand...
Click to collapse
Definitely boot to twrp via hardware keys or a boot to recovery app.. Do not do it from the settings menu. It will put you into twrp bootloop until you boot from the hard keys anyway. Just remember to flash supersu after you factory reset before you boot or you'll have to boot back into twrp again and flash it.
Swizzle82 said:
Definitely boot to twrp via hardware keys or a boot to recovery app.. Do not do it from the settings menu. It will put you into twrp bootloop until you boot from the hard keys anyway. Just remember to flash supersu after you factory reset before you boot or you'll have to boot back into twrp again and flash it.
Click to expand...
Click to collapse
Thank you so much. So I see I can get to twrp no problem. What to do inside twrp before I bootloop or do I need to reset factory before I get to twrp? Then what to do after I am in a bootloop ?
matteosaeed said:
Thank you so much. So I see I can get to twrp no problem. What to do inside twrp before I bootloop or do I need to reset factory before I get to twrp? Then what to do after I am in a bootloop ?
Click to expand...
Click to collapse
If you used the method I told you there should be no bootloop. Just got to the section wipe and slide the slider for a factory reset. Then afterwards press back and go to your external sd and flash supersu again then reboot it will reboot twice after you flash supersu so don't worry.
Swizzle82 said:
If you used the method I told you there should be no bootloop. Just got to the section wipe and slide the slider for a factory reset. Then afterwards press back and go to your external sd and flash supersu again then reboot it will reboot twice after you flash supersu so don't worry.
Click to expand...
Click to collapse
Thank you. I actuallt just got done. I did factory reset instead and booted up fine. I took your advice and flashed supersu after the factory reset and i am all good now. I wonder the difference between factory reset and the format data. I was a little scared to factory reset so it woud not erase the rom.
matteosaeed said:
Thank you. I actuallt just got done. I did factory reset instead and booted up fine. I took your advice and flashed supersu after the factory reset and i am all good now. I wonder the difference between factory reset and the format data. I was a little scared to factory reset so it woud not erase the rom.
Click to expand...
Click to collapse
Format data erases all user data. Factory reset erases all but internal storage. So data format is more extensive.
Swizzle82 said:
Format data erases all user data. Factory reset erases all but internal storage. So data format is more extensive.
Click to expand...
Click to collapse
Cool thank you. I didnt have a problem since i backed up my apps with titanium.
Swizzle82 said:
Format data erases all user data. Factory reset erases all but internal storage. So data format is more extensive.
Click to expand...
Click to collapse
Hi, did everything with no problem. I got another question and not sure if you have the answer. I was hoping to re-lock the bootloader again. Do you know of a way to do that and get the phone to boot up to the system? I am trying to avoid the bootloader reboot message after turning on the phone! Thank you for all your help!
matteosaeed said:
Hi, did everything with no problem. I got another question and not sure if you have the answer. I was hoping to re-lock the bootloader again. Do you know of a way to do that and get the phone to boot up to the system? I am trying to avoid the bootloader reboot message after turning on the phone! Thank you for all your help!
Click to expand...
Click to collapse
Do not relock unless you're pure stock no twrp or modded boot img. The annoying message will always be there.
Swizzle82 said:
Do not relock unless you're pure stock no twrp or modded boot img. The annoying message will always be there.
Click to expand...
Click to collapse
Cool. I tried to relock and unlock. No problem. I just want the stock recovery. Do you know if this is flash able yet ?
matteosaeed said:
Cool. I tried to relock and unlock. No problem. I just want the stock recovery. Do you know if this is flash able yet ?
Click to expand...
Click to collapse
There is a new thread about how to return to stock somewhere here in the forum..
Swizzle82 said:
There is a new thread about how to return to stock somewhere here in the forum..
Click to expand...
Click to collapse
Sweet. I have been looking at the forum and everything says tarp has to be installed and running . I'll keep looking. Thank you sir .
Absolutely do not re-lock your bootloader unless you are 100% stock. If you brick the phone with a locked bootloader, you are screwed.

Trying to root but unsuccessfull

So I've installed TWRP properly I believe, when I try to flash supersu I get lots of errors on TWRP, what can I do? Also right now I'm in a bootloop please help
This is what I did, I did format data from TWRP so naturally I have no OS installed right now but I can't flash a ROM either since I keep getting Error 1 on TWRP. System partition will mount every now and then and then unmount
can you get screen shoot with other phone ? what is version of twrp you have now ? and phone locked or unlocked?
The problem is that I can't mount data
JohnPyn said:
The problem is that I can't mount data
Click to expand...
Click to collapse
ok its happen to me and i fix by my self
just lock your bootloader and it make factory reset by it self
then open and flash TWRP and make wipe or format data as you need try and tell me
Lock bootloader? It's possible to flash twrp with locked bootlaoder?
JohnPyn said:
Lock bootloader? It's possible to flash twrp with locked bootlaoder?
Click to expand...
Click to collapse
I think he has unlocked it after the factory reset.

Mi A1 Forced Encryption

I'm sorry if this is posted again but I can't find anything about my problem.
My Mi A1 in unrooted.
I had installed gcam without rooting it to continue receiving OTA, after the latest update I wanted to disable gcam. During the process the application unlocked the bootloader but didnt lock it again.
When I disabled it after the reboot my phone did a factory reset and enrypted itself. I want to decrypt my phone so I used some ways I found on the internet like:
Simple factory reset.
Locked bootloader.
Factory reset again, even though after the lock it did it itself.
Flashed fastboot stock rom.
Flashed twrp read only, wiped system and flashed fastoboot stock rom again!
Still the phone forced encrypt itself after every way I tried:
For gcam I used this way: https://forum.xda-developers.com/mi-a1/how-to/tool-google-camera-root-magisk-enable-t3747585
I didn't check the thread because I already had the app to do the installation.
For fastboot installation I used this: https://forum.xda-developers.com/mi-a1/how-to/ota-official-fastboot-image-n2g47h-7-12-t3728929
EDIT: What if I unlock the bootloader with MiUnlock and relock it via fastboot?
Phone is encrypted by default. Why would you want to have it decrypted? But if you insist.. you have to install magisk, disable forced encryption and reformat data partition in TWRP.
Locking or unlocking the bootloader after May update wipes your data, this is normal for Android and now our phones.
Encryption is default, it would have been encrypted before the wipe as it is now after the wipe, why do you want it unencrypted?
kudos1uk said:
Locking or unlocking the bootloader after May update wipes your data, this is normal for Android and now our phones.
Encryption is default, it would have been encrypted before the wipe as it is now after the wipe, why do you want it unencrypted?
Click to expand...
Click to collapse
Thank you very much, I never experienced this again after unlocking so I thought it was because of the encrypt, I hadn't checked if it was encrypted before the wipe and I assumed it wasn't.
_mysiak_ said:
Phone is encrypted by default. Why would you want to have it decrypted? But if you insist.. you have to install magisk, disable forced encryption and reformat data partition in TWRP.
Click to expand...
Click to collapse
I didn't know the phone was encrypted by default.
Thank you for the possible way though.
Yeah, it is encrypted by default and hw encryption is used. So don't think that it can affect your performance in any way.
_mysiak_ said:
Phone is encrypted by default. Why would you want to have it decrypted? But if you insist.. you have to install magisk, disable forced encryption and reformat data partition in TWRP.
Click to expand...
Click to collapse
After reformatting data partition, do I need to do anything else?
ubmit said:
After reformatting data partition, do I need to do anything else?
Click to expand...
Click to collapse
Keep Magisk installed, otherwise it will probably get encrypted again by stock boot image. Not sure, I didn't try it.. I want my data secure.

HELP with resetting wifi config on V11.0.0.IN11BA

hey guys, i really need your help urgently.
i just finished setting up my OP8Pro to my needs and then i restored wifi networks from my Titanium Backup from Android 8, i booted and it won't boot anymore.
i get a FATAL EXCEPTION IN SYSTEM PROCESS: WifiHandlerThread...
so now i need to reset these settings via stock recovery and i already modified my recovery to enable ADB but i can't access /data
anyone has a hint for me how to access /data and where to find the wifi config on Android 11?
it's not stored in /data/misc/wifi anymore :/
thanks a lot in advance!
You can reset WiFi within WiFi settings in settings.
But I would probably just clear data on the app you restored either in settings/apps or simply via titanium.
If it still fails then boot to recovery and wipe system.
Your storage will remain unaffected.
You could also try safe mode, power off and hold vol up and down as soon as you see the bootloader warning
Fyi I wouldn't bother restoring WiFi passwords like that, there's other ways of doing it.
Google can back these up for you for example, there are apps which can do it like swift (I think can do it)
dladz said:
You can reset WiFi within WiFi settings in settings.
But I would probably just clear data on the app you restored either in settings/apps or simply via titanium.
If it still fails then boot to recovery and wipe system.
Your storage will remain unaffected.
You could also try safe mode, power off and hold vol up and down as soon as you see the bootloader warning
Fyi I wouldn't bother restoring WiFi passwords like that, there's other ways of doing it.
Google can back these up for you for example, there are apps which can do it like swift (I think can do it)
Click to expand...
Click to collapse
thanks for your answer but unfortunately i can't boot anymore and i can't decrypt /data anymore even after reflashing stock recovery.
what's the best way to flash via fastboot to preserve data?
thank you!
eis0r said:
thanks for your answer but unfortunately i can't boot anymore and i can't decrypt /data anymore even after reflashing stock recovery.
what's the best way to flash via fastboot to preserve data?
thank you!
Click to expand...
Click to collapse
You'd have to grab one of the fastboot ROMs then flash.
Why can't you open recovery? Isn't your pin / password being accepted?
If it's not and fastboot installation can't be done then honestly I'd just MSM your current firmware..it's easier than fastboot tbh.
You'd need to bootloader unlock after but this is going to wipe everything anyway.
dladz said:
You'd have to grab one of the fastboot ROMs then flash.
Why can't you open recovery? Isn't your pin / password being accepted?
If it's not and fastboot installation can't be done then honestly I'd just MSM your current firmware..it's easier than fastboot tbh.
You'd need to bootloader unlock after but this is going to wipe everything anyway.
Click to expand...
Click to collapse
my bootloader is already unlocked and i was rooted on 11.0.0... i can boot into fastboot and recovery but i'm not prompted my unlock pattern.
this was working before testing adb integrated recovery and restoring stock recovery...
eis0r said:
my bootloader is already unlocked and i was rooted on 11.0.0... i can boot into fastboot and recovery but i'm not prompted my unlock pattern.
this was working before testing adb integrated recovery and restoring stock recovery...
Click to expand...
Click to collapse
I don't get you mate??
I'm saying that if you use the MSM tool it will lock your bootloader so you'll need to unlock it again.
In regards to your recovery if you can get to it then choose English, then wipe, then system, then wipe system.
That will get you back like I said in my previous post.
If it's not asking for your pin/password (there is no pattern)
Then you're fine
I've not used that recovery but I don't see a point in using it
dladz said:
I don't get you mate??
I'm saying that if you use the MSM tool it will lock your bootloader so you'll need to unlock it again.
In regards to your recovery if you can get to it then choose English, then wipe, then system, then wipe system.
That will get you back like I said in my previous post.
If it's not asking for your pin/password (there is no pattern)
Then you're fine
I've not used that recovery but I don't see a point in using it
Click to expand...
Click to collapse
sorry i haven't used MSM yet so i didn't know it'll relock the bootloader but i'm more familiar with fastboot flashing so i'd like to stick with that also because i read of problems with the fingerprint reader when relocking the bootloader.
i thought i could delete reset the faulty wifi config via adb by using the adb-enabled stock recovery but i wasn't able to mount /data with it since it's encrypted and it's not asking for my pattern to decrypt it.
neither the stock recovery is asking for it now...
i don't want to lose my data hence i'm looking for a way to get it back running without completely reinstalling.
do you think it could work by only flashing system partition via fastboot?
thanks man!
eis0r said:
sorry i haven't used MSM yet so i didn't know it'll relock the bootloader but i'm more familiar with fastboot flashing so i'd like to stick with that also because i read of problems with the fingerprint reader when relocking the bootloader.
i thought i could delete reset the faulty wifi config via adb by using the adb-enabled stock recovery but i wasn't able to mount /data with it since it's encrypted and it's not asking for my pattern to decrypt it.
neither the stock recovery is asking for it now...
i don't want to lose my data hence i'm looking for a way to get it back running without completely reinstalling.
do you think it could work by only flashing system partition via fastboot?
thanks man!
Click to expand...
Click to collapse
Use the thanks button buddy
I think you've certainly got a shot at it and what's the worst that can happen?
Did you actually try to wipe system in recovery? That would be my way to go.
MSM is extremely easy but I understand not wanting to lose storage.
That being said if you're correct about decryption then it won't matter anyway
dladz said:
Use the thanks button buddy
I think you've certainly got a shot at it and what's the worst that can happen?
Did you actually try to wipe system in recovery? That would be my way to go.
MSM is extremely easy but I understand not wanting to lose storage.
That being said if you're correct about decryption then it won't matter anyway
Click to expand...
Click to collapse
well after trying lots of different things i ended up wiping system settings in stock recovery. atleast i didn't lose storage.
thanks a lot for your help tho!
eis0r said:
well after trying lots of different things i ended up wiping system settings in stock recovery. atleast i didn't lose storage.
thanks a lot for your help tho!
Click to expand...
Click to collapse
You're very welcome mate, I've done the same a few times..it's not that much of a loss really, a lot of apps pick up where they left off and if you do have titanium then your back ups are retained.
Glad you're sorted.
PS: this would have had the same effect that installing system would have had, only this time you get a clean slate

Categories

Resources