How to unroot Mi A1? - Xiaomi Mi A1 Questions & Answers

Hi, guys.
I have rooted my Mi A1. But now after facing the problem with October update, I want to undo all changes made on my device and receive and install all future updates without any additional procedures - just receive OTA update click install button and that's all.
My first question is - is it possible?
The second is - can anybody explain me how can I do it?
Note: After flashing and getting root FlashFire shows me that system's active slot is slot B right now. Also after some attempts to install October OTA update (playing with slots A/B) my device shows me that I do not have any root access now. The screenshots are attached.
Thanks beforehand.

I think the best way is to flash stock image you can find on miui download site.

Samhain77 said:
I think the best way is to flash stock image you can find on miui download site.
Click to expand...
Click to collapse
I have acquainted with this material too. I want to know is there any problem if I will do flashing through miflash tool at this situation? Maybe I need to change something before any changing. Or it is not convenient for me right now?
Thanks.

dinozaur516 said:
I have acquainted with this material too. I want to know is there any problem if I will do flashing through miflash tool at this situation? Maybe I need to change something before any changing. Or it is not convenient for me right now?
Thanks.
Click to expand...
Click to collapse
Basically, if you flash the factory image, it should be (or I believe it is) written on the both partitions, so you can start with "clean shield", but on the newest update.
You can even preserve user data within the tool

matcho13579 said:
Basically, if you flash the factory image, it should be (or I believe it is) written on the both partitions, so you can start with "clean shield", but on the newest update.
You can even preserve user data within the tool
Click to expand...
Click to collapse
Ok, i just do not understand why factory image is written on two partitions. Why it cannot be written on one partition? Or it must be so? Can you explain me this issue?

dinozaur516 said:
Ok, i just do not understand why factory image is written on two partitions. Why it cannot be written on one partition? Or it must be so? Can you explain me this issue?
Click to expand...
Click to collapse
I'm not really sure if it's true or not, but I think it it. Like, if you have any problems with either partition A or B, simply flashing factory image over it should fix both, that's why I think it's true.

matcho13579 said:
I'm not really sure if it's true or not, but I think it it. Like, if you have any problems with either partition A or B, simply flashing factory image over it should fix both, that's why I think it's true.
Click to expand...
Click to collapse
As I understood, this device has 2 same images, am I right? And it means if one image size is 4 GB then it is multiplied by 2 and 2 images` size is equal to 8 GB.

dinozaur516 said:
As I understood, this device has 2 same images, am I right? And it means if one image size is 4 GB then it is multiplied by 2 and 2 images` size is equal to 8 GB.
Click to expand...
Click to collapse
Referring from here, it's not true:
A/B updates require an increase of only 320 MiB in flash, with a savings of 32MiB from removing the recovery partition and another 100MiB preserved by removing the cache partition.
Click to expand...
Click to collapse

matcho13579 said:
Referring from here, it's not true:
Click to expand...
Click to collapse
Oh! Thanks a lot. I did not know that

Will do returning to factory image. After the installation, I'll come back with my experience.

dinozaur516 said:
Oh! Thanks a lot. I did not know that
Click to expand...
Click to collapse
Actually it's true as I checked the tables on the site, but it's not that much of a difference if you own a 64 GB device, it won't take more than 400 MB of storage

matcho13579 said:
Actually it's true as I checked the tables on the site, but it's not that much of a difference if you own a 64 GB device, it won't take more than 400 MB of storage
Click to expand...
Click to collapse
Sure

I successfully flashed my Mi A1 to factory image via MiFlash tool. I used "Clean all and lock" mode. Everything is working and the device also installed October updates.

dinozaur516 said:
I successfully flashed my Mi A1 to factory image via MiFlash tool. I used "Clean all and lock" mode. Everything is working and the device also installed October updates.
Click to expand...
Click to collapse
So you have now a clean phone without your old user data?

Samhain77 said:
So you have now a clean phone without your old user data?
Click to expand...
Click to collapse
Yeap. I have installed all apps again. And everything works perfect.

Samhain77 said:
So you have now a clean phone without your old user data?
Click to expand...
Click to collapse
If you choose to save user data, they will be saved, you don't have to wipe user data, but it's recommended tho

matcho13579 said:
If you choose to save user data, they will be saved, you don't have to wipe user data, but it's recommended tho
Click to expand...
Click to collapse
I know, but i made it to be sure that everything will be installed like the first time.

dinozaur516 said:
Will do returning to factory image. After the installation, I'll come back with my experience.
Click to expand...
Click to collapse
i think flashing factory image with mi flash tool will solve the issue. have you flashed?

androwide said:
i think flashing factory image with mi flash tool will solve the issue. have you flashed?
Click to expand...
Click to collapse
Yeap, i made it. And everything is ok. I am on october update right now.

dinozaur516 said:
Yeap, i made it. And everything is ok. I am on october update right now.
Click to expand...
Click to collapse
great, i am also rooted with FlashFire method and going to flash factory image on my device to install the october security patch, but i would try "save user data" and flash, i know the root access will be gone, but i can root again with TWRP method or with the same.

Related

Preparing Nexus 6p for sale, how to wipe data?

I have read that the most secure way to wipe data permanently on android devices and preparing them for sale is to do two things:
1- encrypt the device
2- factory restore
Since Nexus 6p comes already with mandatory encryption, then the only thing I have to do is to just reset the device to factory setting, is that true?
one1111 said:
I have read that the most secure way to wipe data permanently on android devices and preparing them for sale is to do two things:
1- encrypt the device
2- factory restore
Since Nexus 6p comes already with mandatory encryption, then the only thing I have to do is to just reset the device to factory setting, is that true?
Click to expand...
Click to collapse
Yes, right. You will just need to flash the factory image, and your device will be encrypted, all by itself. This will completely wipe the storage, so make sure that you do a backup first.
DJBhardwaj said:
Yes, right. You will just need to flash the factory image, and your device will be encrypted, all by itself. This will completely wipe the storage, so make sure that you do a backup first.
Click to expand...
Click to collapse
Thanks DJBhardwaj, but why do I need to flash the factory image? the device is already encrypted?
one1111 said:
I have read that the most secure way to wipe data permanently on android devices and preparing them for sale is to do two things:
1- encrypt the device
2- factory restore
Since Nexus 6p comes already with mandatory encryption, then the only thing I have to do is to just reset the device to factory setting, is that true?
Click to expand...
Click to collapse
That's correct. Encrypt the device first via the settings menu (Settings/Security/Encrypt Phone), then flash the factory images to return to stock. See my guide for detailed instructions:
http://forum.xda-developers.com/nexus-6p/general/guides-how-to-guides-beginners-t3206928
Look at section 10 specifically, this instructs you how to return the device to the state it was in when it left the factory, including removing all of your personal data.
one1111 said:
Thanks DJBhardwaj, but why do I need to flash the factory image? the device is already encrypted?
Click to expand...
Click to collapse
Sorry, my bad. Just do a factory reset via stock recovery, or from within the Settings itself.
one1111 said:
Thanks DJBhardwaj, but why do I need to flash the factory image? the device is already encrypted?
Click to expand...
Click to collapse
To ensure that it's in a completely stock state for the buyer. Or has it never been modified?
Heisenberg said:
To ensure that it's in a completely stock state for the buyer. Or has it never been modified?
Click to expand...
Click to collapse
it has never been modified, no.
one1111 said:
it has never been modified, no.
Click to expand...
Click to collapse
My mistake! I'm so used to people having modified devices that I automatically assume every device is. As DJ already said a factory reset should suffice.
DJBhardwaj said:
Sorry, my bad. Just do a factory reset via stock recovery, or from within the Settings itself.
Click to expand...
Click to collapse
Don't use recovery unless you have already deleted all accounts. The new user will end up needing your Google login to be able to get into the phone.
Solutions Etcetera said:
Don't use recovery unless you have already deleted all accounts. The new user will end up needing your Google login to be able to get into the phone.
Click to expand...
Click to collapse
This happened to me when I sold a Moto X on Swappa. I ended up giving the buyer my credentials over the phone then changing them 5 minutes later.
Sent from my Nexus 6P using Tapatalk
Solutions Etcetera said:
Don't use recovery unless you have already deleted all accounts. The new user will end up needing your Google login to be able to get into the phone.
Click to expand...
Click to collapse
Wow. Good to add something to the knowledge.

Moving from mm to n, and possibly back to mm

Hey guys and girls, I would like to test nougat, currently on mm(du) but in the end may go back to mm until more ROMs update. Question is, will I have any issues switching back? I have heard people having issues downgrading once they update to nougate
jamescable said:
Hey guys and girls, I would like to test nougat, currently on mm(du) but in the end may go back to mm until more ROMs update. Question is, will I have any issues switching back? I have heard people having issues downgrading once they update to nougate
Click to expand...
Click to collapse
Worked fine for me using the factory image to revert back.
Just use the factory images to downgrade.(optional) format user data. I've made the jump multiple times with no issues.
toknitup420 said:
Just use the factory images to downgrade. Make sure to format userdata. I've made the jump multiple times with no issues.
Click to expand...
Click to collapse
You definitely don't need to format userdata.
Heisenberg said:
You definitely don't need to format userdata.
Click to expand...
Click to collapse
If people don't want to wipe that's fine. I prefer a clean install everytime.
toknitup420 said:
If people don't want to wipe that's fine. I prefer a clean install everytime.
Click to expand...
Click to collapse
Of course, personal preference. But it isn't needed. Saying "make sure to" gives the impression that it's actually required when it isn't, there's no gain at all from wiping the internal storage.
Heisenberg said:
Of course, personal preference. But it isn't needed. Saying "make sure to" gives the impression that it's actually required when it isn't, there's no gain at all from wiping the internal storage.
Click to expand...
Click to collapse
I edited that post. It says optional now. :good:

TWRP Backup not working properly

I used TWRP Backup, to get a backup of my phone. I was on B574 official build. After that, I installed B574 Deodex (a custom rom slightly changed from the official). One big extra that the Deodex gave me, is that with the xposed installed, I could have my call app, operational. This Rom, has some drawbacks, so I decided to return to the official one, using my backup through TWRP. The problem is, that although I had everything wiped (including system and internal storage), my restored rom, has issues similar to the deodex one (including the issues I had originally with the official build). Am I doomed to go for a new fresh install and without the Xposed? Does anyone know why I get a hybrid of both Roms?
Thanks in advance!
spirto82 said:
I used TWRP Backup, to get a backup of my phone. I was on B574 official build. After that, I installed B574 Deodex (a custom rom slightly changed from the official). One big extra that the Deodex gave me, is that with the xposed installed, I could have my call app, operational. This Rom, has some drawbacks, so I decided to return to the official one, using my backup through TWRP. The problem is, that although I had everything wiped (including system and internal storage), my restored rom, has issues similar to the deodex one (including the issues I had originally with the official build). Am I doomed to go for a new fresh install and without the Xposed? Does anyone know why I get a hybrid of both Roms?
Thanks in advance!
Click to expand...
Click to collapse
What issues? I have this rom.
Harassment filter does not work (whether you try through phone manager or call app) and since I install it, my external storage is not recognized by my pc. I can only see the picture folder.
Sent from my Huawei P8 Lite Ale - L21C432B574 using Tapatalk.
spirto82 said:
Harassment filter does not work (whether you try through phone manager or call app) and since I install it, my external storage is not recognized by my pc. I can only see the picture folder.
Click to expand...
Click to collapse
Hmmm.... I don't have this problem. My harassment filter is working also the pc detects external and internal storage (using MTP).
Unfortunately for me the harassment auto closes and I cannot detect my SD.
Sent from my Huawei P8 Lite Ale - L21C432B574 using Tapatalk.
spirto82 said:
Unfortunately for me the harassment auto closes and I cannot detect my SD.
Click to expand...
Click to collapse
If you are talking about online number identification then that feature doesn't work (you need to manually add number either via dialer or in text messages). Can you detect sdcard using hi suite?
Suleiman01 said:
If you are talking about online number identification then that feature doesn't work (you need to manually add number either via dialer or in text messages). Can you detect sdcard using hi suite?
Click to expand...
Click to collapse
No. To give you a hint , I had 2 calls and 2 messages in the harassment and I couldn't see who was it. It doesn't open at all. Can you give me instructions on what did you do, in order to install the rom? Although I am pretty sure, I followed every single instruction .....
spirto82 said:
No. To give you a hint , I had 2 calls and 2 messages in the harassment and I couldn't see who was it. It doesn't open at all. Can you give me instructions on what did you do, in order to install the rom? Although I am pretty sure, I followed every single instruction .....
Click to expand...
Click to collapse
Did you flash this file too?
Suleiman01 said:
Did you flash this file too?
Click to expand...
Click to collapse
I did it, but not at the first installation, cause I didn't have any problem.
spirto82 said:
I did it, but not at the first installation, cause I didn't have any problem.
Click to expand...
Click to collapse
Type this in dialer *#*#2846579#*#*
Now go in Network information query and then vendor country info
My vendor is hw and country is eu.
Suleiman01 said:
Type this in dialer *#*#2846579#*#*
Now go in Network information query and then vendor country info
My vendor is hw and country is eu.
Click to expand...
Click to collapse
both of them are missing, It says that "it does not exist". What exactly is this?
spirto82 said:
both of them are missing, It says that "it does not exist". What exactly is this?
Click to expand...
Click to collapse
Your location is lost. You need to flash that file to fix that problem.
Suleiman01 said:
Your location is lost. You need to flash that file to fix that problem.
Click to expand...
Click to collapse
ok.fixed that. now what?
spirto82 said:
ok.fixed that. now what?
Click to expand...
Click to collapse
Try clearing cache and dalvik cache(via TWRP) and check if it is working or not.
althought, I had tried cleaning them, somehow I got factory reset. At this moment i am getting the backup through huawei backup. We'll see. Thanks in advance! From the moment I got factory reset, the harassment filter works. Let's see after the backup is restored ......
Suleiman01 said:
Try clearing cache and dalvik cache(via TWRP) and check if it is working or not.
Click to expand...
Click to collapse
Ok, done it. The problem remains. After having factory reset, it seemed to work (didn't have any problem), but after a while, I got the same issue. The harassment filter gets a forced close. Also while attempting to enter something like "management rights", I have the same response from the system, having a forced close.
spirto82 said:
Ok, done it. The problem remains. After having factory reset, it seemed to work (didn't have any problem), but after a while, I got the same issue. The harassment filter gets a forced close. Also while attempting to enter something like "management rights", I have the same response from the system, having a forced close.
Click to expand...
Click to collapse
Can you flash official firmware again(use different version now).
Suleiman01 said:
Can you flash official firmware again(use different version now).
Click to expand...
Click to collapse
I think I'll get to the official 574 .... thanks!

how to format completely the oneplus 6t?

Hello everybody,
How could I format completely the oneplus 6t? And reinstall a fresh stock rom?
Wipe data, install full ota in twrp.
Or use msm download
Have to missuse your thread for my question since it's pretty related, sorry!
Is msm also completely deleting the internal battery calibration/stats?
The battery stats are kept in a chip on the battery. Just use MSM to format the device completely or flash the OTA as bladestonez said.
You can boot into Qualcomm download mode flash a fresh stock ROM using your PC.
Would installing full ota of stock rom via TWRP also lock the bootloader?
Goormeetsingh said:
Would installing full ota of stock rom via TWRP also lock the bootloader?
Click to expand...
Click to collapse
No. Only way to do that is to to go into fastboot mode and input the command to lock the bootloader. It will, however, remove root privileges.
naja09 said:
Have to missuse your thread for my question since it's pretty related, sorry!
Is msm also completely deleting the internal battery calibration/stats?
Click to expand...
Click to collapse
Battery stats are only numbers, no need to erase them. It's just a tool to evaluate the battery life based on past data. They don't drive battery usage.
Striatum_bdr said:
Battery stats are only numbers, no need to erase them. It's just a tool to evaluate the battery life based on past data. They don't drive battery usage.
Click to expand...
Click to collapse
Never reaching the min and max will shrink the usable battery range since the chip "forgets" the possible max and min values.
That's at least what I thought?
naja09 said:
Never reaching the min and max will shrink the usable battery range since the chip "forgets" the possible max and min values.
That's at least what I thought?
Click to expand...
Click to collapse
I believe the 6t uses a lithium ion (li-ion) battery. As far as I know, li-on batteries don't have "memory" like lipo batteries do. So charging habits shouldn't mess with it at all.
bladestonez said:
Wipe data, install full ota in twrp.
Or use msm download
Click to expand...
Click to collapse
hi again !
would be possible to format on twrp "data" , "system" and "internal storage" ? and then reinstall a full OTAstock rom ?
thank you !
hougga said:
hi again !
would be possible to format on twrp "data" , "system" and "internal storage" ? and then reinstall a full OTAstock rom ?
thank you !
Click to expand...
Click to collapse
Do NOT format system
Format data aka factory reset
Install full ota not incremental
bladestonez said:
Do NOT format system
Format data aka factory reset
Install full ota not incremental
Click to expand...
Click to collapse
Okey! But will it be enough to start again from zero?
Or do you suggest the method with msm? (which i find it more difficult)
hougga said:
Okey! But will it be enough to start again from zero?
Or do you suggest the method with msm? (which i find it more difficult)
Click to expand...
Click to collapse
You will be fine msm is not required. Only difference you'll notice between the two is msm relocks the bootloader do you then have to unlock and install twrp again.
bladestonez said:
You will be fine msm is not required. Only difference you'll notice between the two is msm relocks the bootloader do you then have to unlock and install twrp again.
Click to expand...
Click to collapse
Thank you buddy for the help! Will stick then to twrp!
Formatting data and installing new full OTA rom.
Thank you!

Any fix for the auto rotation on Android 10?

Any fix for the auto rotation/ambient/proximity on Android 10?
I'm kinda stuck there tho...
Yes, acquiring root, oddly enough. This fixed it all for me:
cultofluna said:
Fastboot this
https://drive.google.com/file/d/1J0kRVpSkyTbWa9xTSDTk7FnVOot8u7Og/view?usp=drivesdk
fastboot flash boot_a magisk_patched.img
fastboot flash boot_b magisk_patched.img
fastboot reboot
Click to expand...
Click to collapse
Sorry @cultofluna but I'll keep quoting you as you have provided the most simple solution in the eQuation [emoji6]
Wrapped with delicious Fajita [emoji896]
yot2703 said:
Any fix for the auto rotation/ambient/proximity on Android 10?
I'm kinda stuck there tho...
Click to expand...
Click to collapse
Clean flash will solve all your issues
Yeah I didn't wanted do factory reset my phone but I had this issue, I decided to do it and used OnePlus switch to back everything up, and made a backup of my WhatsApp messages and factory reset my phone, I about 30 minutes I was up and running again without any issues and all my apps, it's been my daily driver for the last week
cultofluna said:
Clean flash will solve all your issues
Click to expand...
Click to collapse
Is there a way to clear system flash without recovery?
alryder said:
Is there a way to clear system flash without recovery?
Click to expand...
Click to collapse
Are you rooted or stock?
cultofluna said:
Are you rooted or stock?
Click to expand...
Click to collapse
I am rooted on Android 10 OB1
Has anyone actually been able to identify why upgrade to Android 10 kills screen autorot? It pains me to have to clear and reinstall everything....
MightySashiman said:
Has anyone actually been able to identify why upgrade to Android 10 kills screen autorot? It pains me to have to clear and reinstall everything....
Click to expand...
Click to collapse
Second that. With only one phone, and away from base, just found the autorotate, or should I say NO autorotate issue. Clear and reinstall would be a grumpy large task. Surely there is a tweak that can restore this, somebody ??

Categories

Resources