TWRP wipes after flashing AOSP 9 Pie - Xiaomi Mi A1 Questions & Answers

Hello everyone I have recently flashed AOSP pie 9 ROM but after that my TWRP recovery gets wipe and stock recovery gets installed and after reflashing TWRP I can't flash magisk and get root access.
Edit: Issue solved. The solution with Magisk not appearing even after clean flashed on AOSP 9:
Step1: Flash TWRP with Tissot manager: https://forum.xda-developers.com/mi-a1/development/treble-twrp-installer-treble-manager-t3793637 "Download" Note: You can leave Treble stuff and just flash TWRP
Step2: Goto Advanced and select Tissot Manager "Run"
After that flash magisk.
Note: It will also work on temporary TWRP but the with the @CosmicDan TWRP, it will get installed to both slot kernels so you don't need to hassle on selecting/changing slot.
Thank You!

Athakuri700 said:
Hello everyone I have recently flashed AOSP pie 9 ROM but after that my TWRP recovery gets wipe and stock recovery gets installed and because of that I can't flash magisk and get root access.
Click to expand...
Click to collapse
Ask in the AOSP 9 Thread!!! Don't create one?
And just flash TWRP again. Not hard to think of.

justboryata said:
Ask in the AOSP 9 Thread!!! Don't create one?
And just flash TWRP again. Not hard to think of.
Click to expand...
Click to collapse
Mistake, thanks

Solti le purai Naya banai dexa qn sodhna lai?

5anzay said:
Solti le purai Naya banai dexa qn sodhna lai?
Click to expand...
Click to collapse
More experienced than you. ? Junior. I have mentioned earlier it was a mistake and it got posted in both thread. Now if you know or not about deleting?????

Athakuri700 said:
More experienced than you. ? Junior. I have mentioned earlier it was a mistake and it got posted in both thread. Now if you know or not about deleting?????
Click to expand...
Click to collapse
Have you flashed the TWRP installer after the ROM, like on every other ROM for our A/B device with no dedicated recovery partition?

Haxomen said:
Have you flashed the TWRP installer after the ROM, like on every other ROM for our A/B device with no dedicated recovery partition?
Click to expand...
Click to collapse
The issue has been fixed ? I just forgot to switch A/B partition. Feeling fool on myself ? anyway thanks.

Athakuri700 said:
The issue has been fixed ? I just forgot to switch A/B partition. Feeling fool on myself ? anyway thanks.
Click to expand...
Click to collapse
You dont need to switch partitions, you just need to flash the twrp installer after the ROM

Haxomen said:
You dont need to switch partitions, you just need to flash the twrp installer after the ROM
Click to expand...
Click to collapse
I had no issue on installing TWRP, I was stuck on Magisk as it was not appearing even after neat flash.

Athakuri700 said:
I had no issue on installing TWRP, I was stuck on Magisk as it was not appearing even after neat flash.
Click to expand...
Click to collapse
Me too, just installed the magisk manager apk

Related

[TWRP 3.1.0-3] [Lenovo P2] [p2a42] [Unofficial]

Hey guys
I already find way to compile to the latest twrp 3.1.0-3 unofficially, to fix some existing bugs in previous version twrp both official or unofficial, like in prevous twrp, if you try to encrypt your data, you will getting alot trouble or imposible to decrypt and enter and access data user again.
Bug fixs:
Encryption,
Decryption,
Aroma installer,
All are fully working properly
Flash with previous twrp recovery or by fastboot
How to flash:
https://www.xda-developers.com/how-to-install-twrp/
Unofficial-materialized-twrp-3.1.0-0-p2a42:
Updated on: 29/4/2017
https://mega.nz/#!rAQ2CCjS!lCzt34NzyVz1ZK7Gbg9zdJ0NVQ3udV2tekkWCxJ18AY
Unofficial-twrp-3.1.0-0-p2a42:
Updated on: 5/5/2017
https://mega.nz/#!XRQ2WbrD!tI4NuiZPDaIdXOvh1XEWDTt2Wp4We-9jHtTObyrSUuk
Unofficial-twrp-3.1.0-3-p2a42:
Updated on: 7/5/2017
https://mega.nz/#!DB4mCI4B!6qNmiPCa9RYz0O6qyumcKM-DzJip2gGcXOk93oX0IfU
Thanks to:
@teamwin
@celoxocis
Credit to: twrp team
Click to expand...
Click to collapse
Tried to flash it but I'm stuck on 3.0.3.0.
UPDATE: somehow sometimes my P2 boots version 3.0.2.0 and sometimes 3.0.3.0, but how?
ilmervanhattem said:
Tried to flash it but I'm stuck on 3.0.3.0.
UPDATE: somehow sometimes my P2 boots version 3.0.2.0 and sometimes 3.0.3.0, but how?
Click to expand...
Click to collapse
Just enter to twrp recovery mode click install section, click install image section on right bottom side, and navigate to where is twrp img that you already downloaded, and thick button on recovery option (make sure not to choose wong section other than thick recovery button), then flashed, next restart to enter to boot recovery one again.
hendibudi said:
Just enter to twrp recovery mode click install section, click install image section on right bottom side, and navigate to where is twrp img that you already downloaded, and thick button on recovery option (make sure not to choose wong section other than thick recovery button), then flashed, next restart to enter to boot recovery one again.
Click to expand...
Click to collapse
That's exactly what I did, but didn't work. Guess I'll flash it with fastboot.
ilmervanhattem said:
That's exactly what I did, but didn't work. Guess I'll flash it with fastboot.
Click to expand...
Click to collapse
Yes you can, just rename the downloaded file to twrp.img
Thanks for this version! The other twrps indeed are not working with aroma installers.
911-Future_Maker said:
Thanks for this version! The other twrps indeed are not working with aroma installers.
Click to expand...
Click to collapse
Finally i just make latest twrp-3.1.0-0 unofficial for lenovo p2a42, fix bugs encryption and decryption
Nice OP!
hendibudi said:
Finally i just make latest twrp-3.1.0-0 unofficial for lenovo p2a42
Click to expand...
Click to collapse
Lol Congrats bro! :highfive: I'm using your deodexed rom and your twrp.
911-Future_Maker said:
Lol Congrats bro! :highfive: I'm using your deodexed rom and your twrp.
Click to expand...
Click to collapse
I already file deodexed rom for nougat, after examine still one bug there.
hendibudi said:
I already file deodexed rom for nougat, after examine only one bug there, so i doubt to upload.
Click to expand...
Click to collapse
Hell yeah! Thanks man!
For some reason I can't install the latest materialiazed 3.1.0.0 via the flash image in twrp. It installs, but the theme is the standard, not like in the screenshots. I didn't tried the fastboot method as I'm lazy.
Thanks bro.. i'll try this!!
hendibudi said:
Flash with previous twrp recovery or by fastboot
Click to expand...
Click to collapse
Maybe the question sounds stupid but why it is not allowed to flash update.zip ( TWRP inside ) with original Lenovo recovery ?
pabgar said:
Maybe the question sounds stupid but why it is not allowed to flash update.zip ( TWRP inside ) with original Lenovo recovery ?
Click to expand...
Click to collapse
Because the stock recovery sucks on all phones without exception.
Hai hendibudi i allready install your twrp
But when i enter twrp mode power + vol-/+
Its show lenovo recovery
Why or something wrong?
rudim12f said:
Hai hendibudi i allready install your twrp
But when i enter twrp mode power + vol-/+
Its show lenovo recovery
Why or something wrong?
Click to expand...
Click to collapse
sorry it's solved (before reboot system i have to reboot to recovery first)
but after that before entering twrp always shown pattern lock
please help and btw i used twrp 3.1.00
thanks before
rudim said:
sorry it's solved (before reboot system i have to reboot to recovery first)
but after that before entering twrp always shown pattern lock
please help and btw i used twrp 3.1.00
thanks before
Click to expand...
Click to collapse
To prevent twrp ask for code security, use second line when you wanna create security, if twrp ask code security, remove your security first and create new one like above
hendibudi said:
To prevent twrp ask for code security, use second line when you wanna create security, if twrp ask code security, remove your security first and create new one like above
Click to expand...
Click to collapse
thank you hendibudi its work
just one more try to root systemless not work for me also materialized not work still with old one
i want your suggestion for this
rudim said:
thank you hendibudi its work
just one more try to root systemless not work for me also materialized not work still with old one
i want your suggestion for this
Click to expand...
Click to collapse
Thanks, i updated the file you can download again for material theme

Couldn't update Installation problem with august update

So this week i hadn't time enough to install the august update since my phone is rooted so i decided to do it now. What i did before trying to download the update :
1.Deleted all magisk modules that i had then rebooted
2.Unistalled magisk using restore image then rebooted
3.Went to sys update downloaded and it says installation failed
What do to? I'm not rooted now and i don't have twrp installed.
PS. don't want to install it via fastboot/miflash
Follow this guide in future. https://github.com/topjohnwu/Magisk/blob/master/docs/tips.md#ota-installation-tips
To fix your problem now, find a stock boot image for your update version you are currently on and flash it.
emiljano539 said:
PS. don't want to install it via fastboot/miflash
Click to expand...
Click to collapse
If you don't want to use Miflash (Why ?) you can boot temporary TWRP and flash .zip here:
https://forum.xda-developers.com/showpost.php?p=77353883&postcount=542
sipollo said:
If you don't want to use Miflash (Why ?) you can boot temporary TWRP and flash .zip here:
https://forum.xda-developers.com/showpost.php?p=77353883&postcount=542
Click to expand...
Click to collapse
Do i lose my data if i flash this via twrp?
Idk i don't really trust miflash
emiljano539 said:
Do i lose my data if i flash this via twrp?
Idk i don't really trust miflash
Click to expand...
Click to collapse
You won't lose your data.
ludditefornow said:
Follow this guide in future. https://github.com/topjohnwu/Magisk/blob/master/docs/tips.md#ota-installation-tips
To fix your problem now, find a stock boot image for your update version you are currently on and flash it.
Click to expand...
Click to collapse
flashed the stock boot image tried to install it but again it shows that error , i guess the only thing i can do is to flash it manually via fastboot/miflash
sipollo said:
You won't lose your data.
Click to expand...
Click to collapse
Okay thanks, do i have to remove the magisk and flash the stock boot.img or it doesn't matter?
emiljano539 said:
Okay thanks, do i have to remove the magisk and flash the stock boot.img or it doesn't matter?
Click to expand...
Click to collapse
It doesn't matter. You'll have to reinstall Magisk (if you want to).
sipollo said:
It doesn't matter. You'll have to reinstall Magisk (if you want to).
Click to expand...
Click to collapse
which one should i install from them because there are 2 tissot-T files ( for twrp)
"tissot-T-OPM1.171019.026.8.8.23.zip" or "tissot-T-OPM1.171019.026.V9.6.5.0.ODHMIFE.zip" ?
emiljano539 said:
which one should i install from them because there are 2 tissot-T files ( for twrp)
"tissot-T-OPM1.171019.026.8.8.23.zip" or "tissot-T-OPM1.171019.026.V9.6.5.0.ODHMIFE.zip" ?
Click to expand...
Click to collapse
tissot-T-OPM1.171019.026.V9.6.5.0.ODHMIFE.zip
The other file is the latest beta.
sipollo said:
tissot-T-OPM1.171019.026.V9.6.5.0.ODHMIFE.zip
The other file is the latest beta.
Click to expand...
Click to collapse
I installed the zip from twrp and now after reboot i am stucked in bootloop now i can't even boot into twrp. What to do?
After i flashed it in the end says:
Failed to mount /system Invalid argument
Which TWRP did you use?
sipollo said:
Which TWRP did you use?
Click to expand...
Click to collapse
the official one. what version should i use?
its funny now that i flashed the stock rom via mi flash tool and now again the installation shows error..
ludditefornow said:
Follow this guide in future. https://github.com/topjohnwu/Magisk/blob/master/docs/tips.md#ota-installation-tips
To fix your problem now, find a stock boot image for your update version you are currently on and flash it.
Click to expand...
Click to collapse
I'm facing same issue and I was following the guide.
Same here, can't install set Ota, even after remove magisk.
Other thing, cell won't show screen to put pin to boot, previous pin of sim so I think encryption is disable!? Any idea?

Storage mounting issues after flashing TWRP

Just unlocked and flashed TWRP. No matter what I try, I can't get it to recognise my storage to install SuperSU.
What can I do to fix this?
I am on stock OOS 5.1.5
Thanks
EDIT - Worked it out. I formatted the data and it then let me install SuperSU.
EDIT 2 - After installing SuperSU zip file, the phone wasn't rooted when rebooting and also, TWRP won't recognise my data once I rebooted into it again.
Any ideas?
gman88667733 said:
Just unlocked and flashed TWRP. No matter what I try, I can't get it to recognise my storage to install SuperSU.
What can I do to fix this?
I am on stock OOS 5.1.5
Thanks
EDIT - Worked it out. I formatted the data and it then let me install SuperSU.
EDIT 2 - After installing SuperSU zip file, the phone wasn't rooted when rebooting and also, TWRP won't recognise my data once I rebooted into it again.
Any ideas?
Click to expand...
Click to collapse
After twrp installation and before the first system reboot you need to flash magisk so twrp will be stick in place.
I really don't know if it works with supersu. Do you want to stay encrypted(internal storage)? Which twrp(file name) did you flash?
Preferably encrypted. I flashed twrp 3.1.1 cheeseburger.
I am trying to install Franco Kernel. So I unlocked the bootloader, flashed TWRP 3.1.1 and then tried to flash Super SU or Magisk and neither worked. It came up with an issue with file mounting.
gman88667733 said:
Preferably encrypted. I flashed twrp 3.1.1 cheeseburger.
I am trying to install Franco Kernel. So I unlocked the bootloader, flashed TWRP 3.1.1 and then tried to flash Super SU or Magisk and neither worked. It came up with an issue with file mounting.
Click to expand...
Click to collapse
It seems to me you did not use latest blu spark or codeworkx recovery instead you used official twrp.
It's recommended to not use official twrp. Please change the twrp and test again.
strongst said:
It seems to me you did not use latest blu spark or codeworkx recovery instead you used official twrp.
It's recommended to not use official twrp. Please change the twrp and test again.
Click to expand...
Click to collapse
You are correct. I did not use the blu spark TWRP.
Can I use TWRP 3.1.1 BLU spark version, or shall I use 3.2.1 blu spark?
Thanks.
gman88667733 said:
You are correct. I did not use the blu spark TWRP.
Can I use TWRP 3.1.1 BLU spark version, or shall I use 3.2.1 blu spark?
Thanks.
Click to expand...
Click to collapse
Just use latest blu spark twrp with treble in file name from here https://forum.xda-developers.com/oneplus-5/development/kernel-t3651933
strongst said:
Just use latest blu spark twrp with treble in file name from here https://forum.xda-developers.com/oneplus-5/development/kernel-t3651933
Click to expand...
Click to collapse
All done! I now have another issue. I originally tried to flash Super SU and it did not work. I have tried to flash Magisk today after flashing franco kernel and get an error says that there is an unsupported boot image program or something.
I am on stock OOS, with franco kernel and no root. How can I get it so that I am on stock OOS with franco kernel and Magisk?
Thanks.
gman88667733 said:
All done! I now have another issue. I originally tried to flash Super SU and it did not work. I have tried to flash Magisk today after flashing franco kernel and get an error says that there is an unsupported boot image program or something.
I am on stock OOS, with franco kernel and no root. How can I get it so that I am on stock OOS with franco kernel and Magisk?
Thanks.
Click to expand...
Click to collapse
Did you uninstall supersu according to instructions or just dirty flashed magisk(bad idea)?
strongst said:
Did you uninstall supersu according to instructions or just dirty flashed magisk(bad idea)?
Click to expand...
Click to collapse
I attempted to dirty flash Magisk (however it did not install)
So what do I need to do to uninstall SuperSU?
The main issue is, after installing supersu, my phone still wasn't rooted!
gman88667733 said:
I attempted to dirty flash Magisk (however it did not install)
So what do I need to do to uninstall SuperSU?
Click to expand...
Click to collapse
https://forum.xda-developers.com/showpost.php?p=63615067&postcount=2459
strongst said:
https://forum.xda-developers.com/showpost.php?p=63615067&postcount=2459
Click to expand...
Click to collapse
Thanks. Will I need to flash a stock boot.img too? If so, where would I find this given I am on stock OOS.
gman88667733 said:
Thanks. Will I need to flash a stock boot.img too? If so, where would I find this given I am on stock OOS.
Click to expand...
Click to collapse
Normally not, but if needed: every rom zip comes along with a boot.img inside the zip. Just extract it from this rom zip and you have the kernel of this rom :good:
strongst said:
Normally not, but if needed: every rom zip comes along with a boot.img inside the zip. Just extract it from this rom zip and you have the kernel of this rom :good:
Click to expand...
Click to collapse
How do I get the ROM zip for OOS stock?
strongst said:
Normally not, but if needed: every rom zip comes along with a boot.img inside the zip. Just extract it from this rom zip and you have the kernel of this rom :good:
Click to expand...
Click to collapse
Interestingly, I just flashed the unSU zip, wiped cache and then tried Magisk. It says I need to flash a stock boot.img
What is the process of doing this?
Thanks
gman88667733 said:
Interestingly, I just flashed the unSU zip, wiped cache and then tried Magisk. It says I need to flash a stock boot.img
What is the process of doing this?
Thanks
Click to expand...
Click to collapse
Flash the boot.img through twrp
strongst said:
Flash the boot.img through twrp
Click to expand...
Click to collapse
Do I need to wipe or anything? Or do I just flash the boot.img, wipe cache and then flash Magisk? Or shall I boot fully into the OS, then back into TWRP to flash it?
Still not sure where I get the correct boot.img from!
Edit - can I dirty flash the whole firmware? I would like to do this so I can do a clean backup with the stock kernel before I then flash Magisk and Franco. Would this work?
gman88667733 said:
Do I need to wipe or anything? Or do I just flash the boot.img, wipe cache and then flash Magisk? Or shall I boot fully into the OS, then back into TWRP to flash it?
Still not sure where I get the correct boot.img from!
Edit - can I dirty flash the whole firmware? I would like to do this so I can do a clean backup with the stock kernel before I then flash Magisk and Franco. Would this work?
Click to expand...
Click to collapse
You can also flash the complete rom with kernel.
But just look inside the downloaded rom zip file, there's the boot.img you're looking for. You don't need to wipe anything or boot into OS for flashing just the kernel!
strongst said:
You can also flash the complete rom with kernel.
But just look inside the downloaded rom zip file, there's the boot.img you're looking for. You don't need to wipe anything or boot into OS for flashing just the kernel!
Click to expand...
Click to collapse
Thanks for that, all up and running now.
Do you know where I can find the Franco governor profiles? I've had a good look around but can't find them again!
Thanks
gman88667733 said:
Thanks for that, all up and running now.
Do you know where I can find the Franco governor profiles? I've had a good look around but can't find them again!
Thanks
Click to expand...
Click to collapse
The profiles are inside the app manager imo https://forum.xda-developers.com/on...francokernel-r1-8th-aug-t3653500/post73328473
strongst said:
The profiles are inside the app manager imo https://forum.xda-developers.com/on...francokernel-r1-8th-aug-t3653500/post73328473
Click to expand...
Click to collapse
I have the app manager. However there is only 'Ravi' profile under the governor profile options.

TWRP App

Is it possible to use the official TWRP app to install on the 6T? Thanks in advance to anyone nice enough to answer ?
Bildo41383 said:
Is it possible to use the official TWRP app to install on the 6T? Thanks in advance to anyone nice enough to answer ?
Click to expand...
Click to collapse
I'm sure it is. I don't see why it wouldn't be seeing how we just got an official TWRP now.
https://www.androidpolice.com/2018/...ble-for-oneplus-6t-moto-z3-and-other-devices/
TheKnux said:
I'm sure it is. I don't see why it wouldn't be seeing how we just got an official TWRP now.
https://www.androidpolice.com/2018/...ble-for-oneplus-6t-moto-z3-and-other-devices/
Click to expand...
Click to collapse
Will I need to reflash majisk as well?
Bildo41383 said:
Will I need to reflash majisk as well?
Click to expand...
Click to collapse
More than likely. A lot of people reported that after flashing Magisk via the zip in TWRP, the phone doesn't boot until you flash Magisk. I as well encountered this issue. If you flash TWRP and reboot recovery and then reboot to system you'll be stuck with a recovery loop until you flash Magisk. Hope this helps.

Samsung j530f root android 9?

hi all, please any exprert can tell me how to root an Samsung j530f android 9? all threads talk about 8.1 only.
i need install one of xda official custom roms for my phone, any help please.
You don't need root to flash a custom rom. You just need a custom recovery like twrp.
If you don't know what you are doing then do a bit more research or you could completely f$#k up your device
Easy...
I just tested it onto the new PIE-Update...just work fine...install TWRP and flash Magisk...works like a charm
MaStErB_1984 said:
I just tested it onto the new PIE-Update...just work fine...install TWRP and flash Magisk...works like a charm
Click to expand...
Click to collapse
Where i get twrp for android 9, i only find trwp for android 7 on this device?
Edit: i did try to flash the twrp in AP slot on odin, but i was greeted with boot loop
Remix os user said:
Where i get twrp for android 9, i only find trwp for android 7 on this device?
Edit: i did try to flash the twrp in AP slot on odin, but i was greeted with boot loop
Click to expand...
Click to collapse
No difference between TWRP for pie or noghat
Just flash latest TWRP via Odin
amirizad_7436 said:
No difference between TWRP for pie or noghat
Just flash latest TWRP via Odin
Click to expand...
Click to collapse
But how i flash? I flash twrp in the AP slot again?
Remix os user said:
But how i flash? I flash twrp in the AP slot again?
Click to expand...
Click to collapse
If you correctly have TWRP installed,then no.no need
If not yes
Be sure that you untick auto reboot at Odin
If you don't do that TWRP won't install
When install TWRP install magisk.zip
That's all
You don't understand i did try to flash first time the twrp in AP slot on odin, but i was greeted with boot loop
Remix os user said:
You don't understand i did try to flash first time the twrp in AP slot on odin, but i was greeted with boot loop
Click to expand...
Click to collapse
Are you sure that you flashed the right TWRP?
Did you enable OEM lock and USBdebug?
Did you untick auto reboot at Odin?
There are many user that uses TWRP without any problem
I'm sure you did it wrong man
GL
amirizad_7436 said:
Are you sure that you flashed the right TWRP?
Did you enable OEM lock and USBdebug?
Did you untick auto reboot at Odin?
There are many user that uses TWRP without any problem
I'm sure you did it wrong man
GL
Click to expand...
Click to collapse
Now i did correct but this time i haved twrp but i ended up bricking again the android but i can boot to twrp.
Sorry for bad english
Remix os user said:
Now i did correct but this time i haved twrp but i ended up bricking again the android but i can boot to twrp.
Sorry for bad english
Click to expand...
Click to collapse
Would you please pm me at telegram
My ID at telegram is(amirizad_7436)
But i have a question, where are you located? i'm in Romania
Remix os user said:
But i have a question, where are you located? i'm in Romania
Click to expand...
Click to collapse
This will really help to you?!
If you wanna help pm me with screenshots to explain what you should do to fix your problem
Xda is international place
No matter where we are
We just trying to help each other
GL

Categories

Resources