Partition A/B problem... - OnePlus 6 Questions & Answers

Guys need your expertise here..
During the process of unlock bootloader, root and finally Magisk..at certain point my phone enter a TWRP loop....
Almost without hope..om TWRP i saw a option to boot, if not im mistake, to opt from Partiton B, and then the phone boot normally..
Question:
Can i reverse this? Or is it normal? The phone works perfectly ok....but shouldn`t be on A?
Wait your expertize...
Mordorr

If it works, leave it.

Mord0rr said:
Guys need your expertise here..
During the process of unlock bootloader, root and finally Magisk..at certain point my phone enter a TWRP loop....
Almost without hope..om TWRP i saw a option to boot, if not im mistake, to opt from Partiton B, and then the phone boot normally..
Question:
Can i reverse this? Or is it normal? The phone works perfectly ok....but shouldn`t be on A?
Wait your expertize...
Mordorr
Click to expand...
Click to collapse
The purpose of A/B partition is seamless updates. You are on one partition while the seamless update does it update on the other partition. The normal Android user does not know what partition they are on, nor does it matter what partition the phone is on. Don't worry about it. It means nothing to the end user.

Thank you guys!
I feel more released now!
happy flashing!

Mord0rr said:
Guys need your expertise here..
During the process of unlock bootloader, root and finally Magisk..at certain point my phone enter a TWRP loop....
Almost without hope..om TWRP i saw a option to boot, if not im mistake, to opt from Partiton B, and then the phone boot normally..
Question:
Can i reverse this? Or is it normal? The phone works perfectly ok....but shouldn`t be on A?
Click to expand...
Click to collapse
The phone will switch the active slot every time you update or flash a full OOS zip. It sounds like at some point in rooting, you switched to the inactive slot. You're lucky it just bootlooped. Manually switching can put it into a state that only the unbrick tool will get it out of (as well as relocking and wiping your phone).
In general, you should not try to switch manually. Just let the system take care of that.
All you need to know about A/B can be found in this guide I wrote: https://forum.xda-developers.com/oneplus-6/how-to/guide-noobs-guide-to-b-partitions-op6-t3816123

Mord0rr said:
Guys need your expertise here..
During the process of unlock bootloader, root and finally Magisk..at certain point my phone enter a TWRP loop....
Almost without hope..om TWRP i saw a option to boot, if not im mistake, to opt from Partiton B, and then the phone boot normally..
Question:
Can i reverse this? Or is it normal? The phone works perfectly ok....but shouldn`t be on A?
Wait your expertize...
Mordorr
Click to expand...
Click to collapse
Whenever I flash a rom in twrp I always
Flash rom
Install twrp again
Reboot recovery
Install magisk
Reboot
That seems to take care of most of the a / B problems

Miss the old days without A/B crap......
Just nuke and install. Period.

Well, if you must know which slot, the DevCheck free app can tell:
https://drive.google.com/file/d/1DPUxg8khZLhsCVEIjg1zth5kChVTgl8N/view?usp=sharing

Related

Can't switch boot partition without a bootloop

Hello,
(how) can I get my Google Pixel to such a state where I choose in TWRP Slot A and I get a rooted system and if I choose Slot B in TWRP I get a stock unrooted version?
Reason behind is that I have some few apps that don't like the root like Banking Apps. This way I could do backups / restores with Titanium Backup but still use the TAN App after a simple reboot.
I installed today sailfish-nmf26u-factory, twrp-3.0.2-0-RC1 and SuperSU-v2.79-SR2. If I boot Slot A (was active during TWRP and SuperSU Install) then I can boot and have a rooted system. If I choose Slot B I get a bootloop. Luckily I can switch back to Slot A for the moment.
Cheers
Cheers. I did this days ago too, everything seems fine but for both system, I lost the ability to access developer option
bush911 said:
Cheers. I did this days ago too, everything seems fine but for both system, I lost the ability to access developer option
Click to expand...
Click to collapse
Have you tried tapping the build number repeatedly again until it shows up?
Yes I did. Something wrong with userdata, wipe userdata and fixed it
dtrud0h said:
Have you tried tapping the build number repeatedly again until it shows up?
Click to expand...
Click to collapse
There's already a few threads on here talking about it.
aholeinthewor1d said:
There's already a few threads on here talking about it.
Click to expand...
Click to collapse
Hey, don't want to complain but I could not find such a thread one week ago so I created this one. Can you give me a link?
Thank you!
KobiP
KobiP said:
Hey, don't want to complain but I could not find such a thread one week ago so I created this one. Can you give me a link?
Thank you!
KobiP
Click to expand...
Click to collapse
Totally understandable that these public forum threads can get jumbled up quickly. It's noone's fault; it's just the natural course of an ask-and-answer dialog. You'll find the discussions of your question loosely in just about every thread here -- mostly in the kernels threads, the TWRP thread, or the SU one, and many debates in every ROM discussion as well. I believe I demonstrated what you're trying to achieve in one of the first pages of the WETA ROM thread. There's also one fairly new specific thread on this on the Pixel XL side, but that one isn't very well-participated because I think most folks are tired of talks about the Pixel's dual slot system. However, I would look at the kernel threads, especially the Sakete one because Android Pay availability was the whole intention of his compiling that kernel. Or you can also compile your own kernel.
In practice, what you want to do is:
Make sure both slots are bootable.
In TWRP, know which slot you're on, install a kernel that is SafetyNet-patched in that slot, SU the other slot you wish to root. That's all.
You wrote slot B is boot looping. That indicates that you installed something that overwrote its boot image. Keep in mind that SU, TWRP, and kernel reside in Nougat's boot. To get slot B bootable again, I'd suggest you flash the stock boot.img back to that slot. Or you can use the flash-all.bat that's modified to skip restoring slot A.
Or, you can simply use the unmodified flash-all.bat to put everything back. Remove the -w switch if you don't want to lose data. Then install TWRP, boot the phone from both slots once. Install a new kernel to the slot you want to use AP. Root the other slot.
BTW, most banking apps work on rooted phones. They haven't jumped on the SafetyNet train yet. My PennyMac, PNC, Chase, Amex apps work.
quangtran1 said:
You wrote slot B is boot looping. That indicates that you installed something that overwrote its boot image. Keep in mind that SU, TWRP, and kernel reside in Nougat's boot. To get slot B bootable again, I'd suggest you flash the stock boot.img back to that slot. Or you can use the flash-all.bat that's modified to skip restoring slot A.
Or, you can simply use the unmodified flash-all.bat to put everything back. Remove the -w switch if you don't want to lose data. Then install TWRP, boot the phone from both slots once. Install a new kernel to the slot you want to use AP. Root the other slot.
Click to expand...
Click to collapse
Hey,
tnx for your advice. I think the Issue is somewhere else.
Try One, Slot A Active:
I executed flash-all.bat without the "-w" and then said fastboot set_active b and fastboot reboot bootloader. I can read "Boot-slot b". If I try to boot now I get a bootloop and after a few cycles I can boot. adb reboot bootloader and voila, back to "Boot-slot a". Now Slot B is broken
Try Two, Slot B Active:
Same, I executed flash-all.bat without the "-w" and then said fastboot set_active a. Reboot, see that slot A is active and then I get stuck in a bootloop. After a while I am booting to Android but this time in Slot B. Now Slot A is broken.
quangtran1 said:
BTW, most banking apps work on rooted phones. They haven't jumped on the SafetyNet train yet. My PennyMac, PNC, Chase, Amex apps work.
Click to expand...
Click to collapse
True, but my Push TAN App doesn't work, it simply crashes when starting the App and the Browser opens with a help page that says that I can't use this App on rooted phones... I tried to open the app now after the flash-all.bat and it opens just fine.
Cheers
Hello,
I tried again with sailfish-nof27b Version. This time I did not change the flash-all.bat so that it will reset my phone.
Then I flashed the latest SW to my phone (Slot A active). I can boot into Android and my phone is reset. Now I boot to the bootloader, switch to Slot B and get a bootloop. After a while it automatically switches back to Slot A and boots.
If I do run again flash-all.bat with Slot B active I can boot Slot B but not Slot A (bootlooping).
How can I get both Slots back to work on my phone?
Cheers
KobiP said:
Hello,
I tried again with sailfish-nof27b Version. This time I did not change the flash-all.bat so that it will reset my phone.
Then I flashed the latest SW to my phone (Slot A active). I can boot into Android and my phone is reset. Now I boot to the bootloader, switch to Slot B and get a bootloop. After a while it automatically switches back to Slot A and boots.
If I do run again flash-all.bat with Slot B active I can boot Slot B but not Slot A (bootlooping).
How can I get both Slots back to work on my phone?
Cheers
Click to expand...
Click to collapse
You can flash all the factory firmware u want if u don't use the modified command, like the guy said in the above post your not going to boot into that other slot.
Read this thread
https://forum.xda-developers.com/pixel/help/dual-booting-t3507924/post69834495#post69834495
mac796 said:
You can flash all the factory firmware u want if u don't use the modified command, like the guy said in the above post your not going to boot into that other slot.
Read this thread
https://forum.xda-developers.com/pixel/help/dual-booting-t3507924/post69834495#post69834495
Click to expand...
Click to collapse
Hey,
your linked post works amazing! Thank you very very much! Only thing to add is to flash a certain Slot (A/B) it must be active first. But now I can boot both Slots!

Google Pixel: Root + TWRP and basic understanding HELP!

Ok, so I'm coming from the Nexus 6P which has a different file system, I get that. But, this is so confusing to me.
I have gotten TWRP to work and SuperSU, however, they both do not work at the same time.
If SuperSU is working correctly and I want to go to TWRP, TWRP is all encrypted it looks like. It is not until I boot to bootloader and manually use fastboot boot that I can get TWRP to work right. Doing this causes me to lose root and vice versa...
I guess I am wondering what steps people usually take to install a rom and kernel correctly while keeping twrp and root at the same time.
I realize this probably makes no sense, but it doesn't to me either and I'm trying to explain it as best I can.
GohanBurner said:
Ok, so I'm coming from the Nexus 6P which has a different file system, I get that. But, this is so confusing to me.
I have gotten TWRP to work and SuperSU, however, they both do not work at the same time.
If SuperSU is working correctly and I want to go to TWRP, TWRP is all encrypted it looks like. It is not until I boot to bootloader and manually use fastboot boot that I can get TWRP to work right. Doing this causes me to lose root and vice versa...
I guess I am wondering what steps people usually take to install a rom and kernel correctly while keeping twrp and root at the same time.
I realize this probably makes no sense, but it doesn't to me either and I'm trying to explain it as best I can.
Click to expand...
Click to collapse
Your problem with TWRP isn't related to root. When you boot TWRP you have to enter your pin or pattern lock (whatever you use to unlock the phone when it's booted up) before it can decrypt the data. If you don't get offered the chance to unlock, reboot recovery until the lockscreen appears. It's a bug in TWRP. I don't have much trouble with it myself but once in a while I have the same thing happen. It might take one reboot, it might take several. Eventually it'll work for you though.
robocuff said:
Your problem with TWRP isn't related to root. When you boot TWRP you have to enter your pin or pattern lock (whatever you use to unlock the phone when it's booted up) before it can decrypt the data. If you don't get offered the chance to unlock, reboot recovery until the lockscreen appears. It's a bug in TWRP. I don't have much trouble with it myself but once in a while I have the same thing happen. It might take one reboot, it might take several. Eventually it'll work for you though.
Click to expand...
Click to collapse
I fastboot booted TWRP and installed the zip so I would keep TWRP, then I flashed the SR4 SuperSU zip. I rebooted and tried going back into TWRP though my ROM and all my folders looked like this:
a9239xwhg802348
8208dncbjs8d0s99
3n9c8bnd8s0s93n3
8db0xndne8s8n3n
nz0sd8fn2308df0n
etc...
I used fastboot boot twrp again and everything went back to normal, but then I lost root. I did the exact same thing again and now it seems I have both working at the same time. You can see how this is so confusing lol. I have no idea why it didn't work the first time when I did the exact same thing.
GohanBurner said:
I fastboot booted TWRP and installed the zip so I would keep TWRP, then I flashed the SR4 SuperSU zip...
Click to expand...
Click to collapse
It could be that you didn't use the latest SuperSU. 2.78SR4 is not the newest. Flash 2.79SR3 and see is that works.
I installed the latest SuperSU and all is working correctly, yet there are still some issues I am having...
-Randomly, TWRP will reboot into some kind of encrypted state. Where all the folders listed are like "asd8a0b93eea9dnb9" instead of what's actually in there like the Download folder. Rebooting a few times sometimes fixes it.
-Sometimes phone will just boot into stock recovery even though I have flashed the TWRP installer.
-Need confirmation on what exactly Slot A and Slot B are. Are those just states? Like installing one rom on Slot A and installing one rom on Slot B allows the ability to switch between the two?
-Do I basically need to have a computer handy any time I want to install a ROM because of the fact TWRP sometimes doesn't stick? Or can I run fastboot boot (terminal) commands from inside the system?
-Is there any specific order I need to flash things? Vendor, SuperSU, TWRP, etc?

bootloop after using twrp (can't start smartphone, please help!)

i cant really explain what i was doing but i was trying to root the phone and after rooting it i tried to fix an issue with twrp crashing. it ended up with me stuck in a bootloop that i cant get out of. i have basicly no experience in the stuff so i am in desperate need of help. you can reply to the forum or msg me on an a platform like discord (TobiS137#2131) preferably discord tho. thanks in advance! i really want it fixed asap so if you can help then please be quick. please reply under the thread if you have msg me on discord. i really need help.
TobiS137 said:
i cant really explain what i was doing but i was trying to root the phone and after rooting it i tried to fix an issue with twrp crashing. it ended up with me stuck in a bootloop that i cant get out of. i have basicly no experience in the stuff so i am in desperate need of help. you can reply to the forum or msg me on an a platform like discord (TobiS137#2131) preferably discord tho. thanks in advance! i really want it fixed asap so if you can help then please be quick. please reply under the thread if you have msg me on discord. i really need help.
Click to expand...
Click to collapse
Enter fastboot, flash official twrp.Flash magisk in twrp.
vrda08 said:
Enter fastboot, flash official twrp.Flash magisk in twrp.
Click to expand...
Click to collapse
can you help me further? as i said i am a huge newbie and i only understood a little of that. is there any other ways you can contact me?
vrda08 said:
Enter fastboot, flash official twrp.Flash magisk in twrp.
Click to expand...
Click to collapse
Can you explain what exactly were you doing ?!
Just hold the power button for 60 seconds or so, it should reboot normally. Did you flash twrp or just do fastboot boot twrp?
I'm new to this while A/B partition. I went through all the steps and my phone is rooted, with Magisk and TWRP. All seems to be fine. My question is this. When I boot to the recovery (TWRP) and choose the reboot option it defaults to Current Slot: Partition B. If I reboot to partition B it goes back to TWRP. I have to select Partition A to get the device to boot to the system.
Is this normal? Do I need to set it up in a different way?
samteeee said:
Can you explain what exactly were you doing ?!
Click to expand...
Click to collapse
i was trying to root the phone (wich i did) and then the twrp app that was on my phone after i had tried to install it using the img. it then turned into an ap that told me to update it in google play
after that was done i tried to flash it but everytime i tried it just crashed. a little time later after trying some more times i found that i started it in the bootloader and it ended up with me stuck in a bootloop. again i might not have explained enough. i am huge noob so i really need help.
ooshkamils said:
Just hold the power button for 60 seconds or so, it should reboot normally. Did you flash twrp or just do fastboot boot twrp?
Click to expand...
Click to collapse
i think i did fastboot boot twrp. still not sure tho :\ . Does it change anything that i use twrp enchilada or does that not matter?
ooshkamils said:
Just hold the power button for 60 seconds or so, it should reboot normally. Did you flash twrp or just do fastboot boot twrp?
Click to expand...
Click to collapse
i think i did fastboot boot twrp. still not sure tho :\
discord
ignore the "discord" title. i dont think the phone has an OS right now. when i turn it on it goes directly to twrp. if i reboot the system it just goes back to twrp recovery. i think i need a way to install an OS (preferably OxygenOS if that is even possible). i realised that you guys properbly won't msg on discord. you dont have to. you can use the forums . i just really want help to get my phone back up and running. it is a OnePlus 6 btw if that is important.
TobiS137 said:
i think i did fastboot boot twrp. still not sure tho :\
Click to expand...
Click to collapse
To keep TWRP as the phones recovery, you'd first need to do as you did "Fastboot boot twrp" but that command will only allow you to boot into TWRP through your pc or whatever you ran that command on. After you've entered that temporary recovery, you'll need the TWRP installer .zip file, and flash that inside of that temporary TWRP. Then you can reboot into recovery on your phone again since it has been installed to one of the partitions.
TobiS137 said:
ignore the "discord" title. i dont think the phone has an OS right now. when i turn it on it goes directly to twrp. if i reboot the system it just goes back to twrp recovery. i think i need a way to install an OS (preferably OxygenOS if that is even possible). i realised that you guys properbly won't msg on discord. you dont have to. you can use the forums . i just really want help to get my phone back up and running. it is a OnePlus 6 btw if that is important.
Click to expand...
Click to collapse
You have to flash magisk after flashing twrp or else you are going to get this bootloop you are talking about
phone open again
my phone is back up and running again. i changed the partitian slot from A( the broken one with no OS) to B(the unchanged one) and it is now working again. if anyone is having the same problem the try to change to the second slot. it happend in twrp enchilada 3.2.2-0 if it is important. thank you all for your support.
I may be mistaken but I believe all you need to do is flash magisk to get up and running again
hallo dare said:
You have to flash magisk after flashing twrp or else you are going to get this bootloop you are talking about
Click to expand...
Click to collapse
Why? You should be able to just flash the TWRP installer into TWRP and so its flashed into both boot_a and boot_b. It should boot ok to system from there, Magisk is just another mod to the boot partitions, like a custom kernel, etc. It should not be necessary at all, why you guys keep sayin Magisk is necessary for anything? it isn't.
RusherDude said:
Why? You should be able to just flash the TWRP installer into TWRP and so its flashed into both boot_a and boot_b. It should boot ok to system from there, Magisk is just another mod to the boot partitions, like a custom kernel, etc. It should not be necessary at all, why you guys keep sayin Magisk is necessary for anything? it isn't.
Click to expand...
Click to collapse
Because you do. The OP6 will not boot with custom recovery unless it's rooted. I believe this is because the recovery and boot partitions are merged on this device. You're welcome to bootloop all day if you don't believe us.
iElvis said:
Because you do. The OP6 will not boot with custom recovery unless it's rooted. I believe this is because the recovery and boot partitions are merged on this device. You're welcome to bootloop all day if you don't believe us.
Click to expand...
Click to collapse
Asking "why?" is not to not believe you, and the personal bootloop all day attack is out of the matter. TWRP is flashed on the ramdisk and should boot stock, unless something derped, if it doesn't boot I honeslty don't understand why, what is the exact reason? TWRP installer doesn't overwrite the boot, just patches it to have a mini recovery on it. It should boot...
RusherDude said:
Asking "why?" is not to not believe you, and the personal bootloop all day attack is out of the matter. TWRP is flashed on the ramdisk and should boot stock, unless something derped, if it doesn't boot I honeslty don't understand why, what is the exact reason? TWRP installer doesn't overwrite the boot, just patches it to have a mini recovery on it. It should boot...
Click to expand...
Click to collapse
I don't know for sure either, beyond what I said above. But everyone who has reported not flashing magisk has bootlooped.
If I sounded snippy, it was only because your post above was appearing to deny the reality of what is a very well-known issue with this phone.
iElvis said:
I don't know for sure either, beyond what I said above. But everyone who has reported not flashing magisk has bootlooped.
If I sounded snippy, it was only because your post above was appearing to deny the reality of what is a very well-known issue with this phone.
Click to expand...
Click to collapse
I am not denying anything! just surprised because on TWRP website they clearly state that no post-twrp-flashing step is needed:
https://twrp.me/oneplus/oneplus6.html
The OnePlus 6 uses the newer AB partition scheme first introduced on the Pixel 1. As such there is no recovery partition. Instead, the recovery is part of the boot image. You will temporarily boot TWRP to perform and later perform a more permanent TWRP installation. First download the TWRP zip file directly on your device. If you don't download the zip file to your device first for any reason, you will need to adb push the zip to the device because MTP is not currently working on the OnePlus 6 in TWRP. If you are unable to use adb, you can also use a USB stick with an OTG cable, if you have those handy. Power off the device. Hold volume up to get into fastboot mode. Run this command on your computer: fastboot boot twrp-3.2.1-0-enchilada.img
In TWRP, tap on Install and browse to the zip and install it (the zip will probably be in /sdcard/Downloads). TWRP will now be installed to both slots. TWRP is now installed and you can reboot and use your device as normal.
MTP is disabled because it causes a kernel panic sometimes with the stock kernel.
Click to expand...
Click to collapse
Maybe the issue here is that the unofficial TWRP that everyone used NEEDS magisk while the official doesn't?
RusherDude said:
Maybe the issue here is that the unofficial TWRP that everyone used NEEDS magisk while the official doesn't?
Click to expand...
Click to collapse
I think most people have moved to the official version. If it doesn't need magisk to avoid a bootloop, that's news to me. Not saying it's not the case, but I haven't seen any mention of it.

[Recovery Release] Working TWRP for Sony L1 (G3311 Single SIM others to be confirmed)

Requirements:
1. Bootloader Must Be Unlocked.
2. Have a backup of your working Magisk Patched boot.img saved to your External SDcard.​A little INFO:
The Sony L1 recovery seems to be disabled by SONY for some unknown and Probably stupid reason.
I have tried all ways to get the TWRP and Stock recovery to boot up from the fotakernel partition (recovery) but TWRP and even the stock recovery refuse to boot.
Anyway to cut a very long story short I am releasing this TWRP which is 95% functional and needs to be flashed to the boot partition
Working Method/flow:
Make sure you have a Back up of your working Boot.img "You know the one you used to root the device in the first place".
For ease of use You can use this app by XDA dev @wanam (Thread here) app on playstore Here You can also use this app to flash the v5-twrp-l1.img to your "boot" partition or you can go old skool and use dd (Via adb shell) or use the Magisk patched_boot.img you first rooted with..
Make SURE to Copy this working boot.img to your External SDcard.
When you require TWRP flash the downloaded TWRP to your boot partition using Fastboot (cmd's below) or the above app then reboot
You will now boot to TWRP.
Do what you need to do in TWRP.
IMPORTANT:
Remember Just before you leave TWRP go to INSTALL choose your external SDCard choose "image" from the install screen find your boot.img and select "boot" with the little radio button.
Once flashed choose reboot system.
Now when you boot you will be back to normal :good:
Things Not Working:
1. You will not be able to mount encrypted data therefore you would need to FORMAT your data and then leave it unencrypted.
SuperSU and Magisk will disable forceencrypt for you.
2. Does not Charge or show battery % so I don't know if it's actually charging. (Probably Qnovo battery module used by sony)
It will probably work on all variants but I am not able to test that.
It's use is for backups and restores wipes and installs for which it seems fully functional. :good:
Install Instructios.
Boot to the bootloader then
Code:
fastboot flash boot v5-twrp-l1.img
Then
Code:
fastboot reboot
Download HERE v5-twrp-l1.img
Hi @bigrammy!! I have it booting ok, obviously encryption is not working! I was able to do a backup but couldn't boot back into system, just keeps going back to twrp! I had to flashi the patched 3313 boot image from another post to get back into system! Good work though! Tested on g3311
Chronic2k13 said:
Hi @bigrammy!! I have it booting ok, obviously encryption is not working! I was able to do a backup but couldn't boot back into system, just keeps going back to twrp! I had to flashi the patched 3313 boot image from another post to get back into system! Good work though! Tested on g3311
Click to expand...
Click to collapse
:laugh:
Ok maybe I should update the OP as it seems it's not really clear enough that obviously the boot is replaced by the recovery.
Method would be make sure you have a Back up your working Boot.img You know the one you used to root the device in the first place.
You can also use dd (Via adb shell) or a app from the playstore or better still use the Magisk patched_boot.img .
Copy this working boot.img to your External SDcard.
When required flash the recovery to your boot partition using Fastboot then reboot
You will now boot to TWRP.
Do what you need to do in TWRP.
Then just before you leave TWRP go to INSTALL choose your external SDCard choose "image" from the install screen find your boot.img and select "boot" with the little radio button.
Once flashed choose reboot system.
Now when you boot you will be back to normal :good:
OP Updated let me know if it's clearer to understand now.
Thanks for reporting back. :good:
I'll give it a go! Many thanks! Just one question though. How do I enter recovery mode from then on? Is it still power down, power and volume down yeah?
Chronic2k13 said:
I'll give it a go! Many thanks! Just one question though. How do I enter recovery mode from then on? Is it still power down, power and volume down yeah?
Click to expand...
Click to collapse
I don't think you have really read or understood the OP
You are only ever flashing the "boot partition".
When you need to use TWRP you flash the TWRP.img to the boot partition and when your done you flash back your boot.img again to the boot partition as in the OP.
BTW Have you ever been able to enter the STOCK recovery using Power and Volume Down or using any commands
My phone could not enter the STOCK recovery at all let alone a custom one and since no one ever replied to my question about this I assumed this was the case for everyone as many sony devices from 7.0 had the recovery disabled?
I'm unable to get into stock recovery too!
So,
If we don't have a Recovery partition maybe we can
Create one...
Tutorial in here
https://iwf1.com/how-to-re-partitio...-all-options-included-change-size-fs-type-etc
I'll try it if i have time.
I tested twrp 2 times
Worked every time.
I've tried to install superSu.zip via twrp, looked all right, rebooted the phone and now it's in bootloop for over 2 hours...
It's getting hotter... i ca't turn it off
The only thing that works is keeping Power and Volume Up pressed and it looks restarting...
What can i do to revive it safely?
alegatorul said:
I tested twrp 2 times
Worked every time.
I've tried to install superSu.zip via twrp, looked all right, rebooted the phone and now it's in bootloop for over 2 hours...
It's getting hotter... i ca't turn it off
The only thing that works is keeping Power and Volume Up pressed and it looks restarting...
What can i do to revive it safely?
Click to expand...
Click to collapse
Mate you really need to be careful unless you really know what your doing
You will likely brick the phone if you continue to blindly mess with re-partitioning and the like.
If you were in TWRP which was flashed to the boot partition as directed in the OP then flashing the supersu.zip will simply modify your TWRP.img not your boot.img since TWRP is living in the boot partition at the time you run the .zip hence your looping.
This device has bootloader issues since it will not allow the booting of another partition except "boot" recovery, fotakernel, rdimage, all tested all failed to boot the TWRP recovery and stock recovery.
There is another method used by some sony devices but this will need to be heavily modified for this MediaTek SoC and will require a lot of study and script re-writes.
Spending all this time on a device that's pretty much obsolete before it was launched since it's not planned to receive oreo and Sony 90% locked down the bootloader is kinda futile so use the phone for what it is then throw it in the bin when done in a year or two.
Mate, you are right
Hi, please make recovery for L1 G3312 i hope you can do it.
tweak8 said:
Hi, please make recovery for L1 G3312 i hope you can do it.
Click to expand...
Click to collapse
I think this one may very well work for the dual SIM also so please try it and then report back with some actual details.
eg: bootloader status, firmware version, your region, etc etc.
Thanks.
Works great on the G3113 model, thank you for developing this! Now hoping to find a custom rom to install via .zip.
This "HERE v5-twrp-l1.img" is working in my Xperia L1 G3312.
But, after installing TWRP, phone does not get into boot normally. Everytime it boots into recovery mode. I think that it needs separate twrp partition. This twrp is overwriting the main boot. If anyone can make separate partition for TWRP recovery. This problem will be solved.
Hello. I ignored all your post like a retard and basically just went to the last step to flash the image. The twrp works but it wouldn't boot into normal mode but just boot to twrp everytime so I downloaded some random boot image I saw online and installed it. Now it's just stuck in the sony logo and won't even turn off. Is there anything I can do or is it rip for good?
dumb person said:
Hello. I ignored all your post like a retard and basically just went to the last step to flash the image. The twrp works but it wouldn't boot into normal mode but just boot to twrp everytime so I downloaded some random boot image I saw online and installed it. Now it's just stuck in the sony logo and won't even turn off. Is there anything I can do or is it rip for good?
Click to expand...
Click to collapse
No it's only the boot.img Flash the boot.img in this thread https://forum.xda-developers.com/xperia-l1/how-to/root-l1-g3313-magisk-t3693350 if you can get into fastboot that is.
If not then use FlashTool to flash the stock boot.sin and system.sin only. That should get you working again.
This "HERE v5-twrp-l1.img" is working in my Xperia L1 G3312.
But, after installing TWRP, phone does not get into boot normally. Everytime it boots into recovery mode. I think that it needs separate twrp partition. This twrp is overwriting the main boot. If anyone can make separate partition for TWRP recovery. This problem will be solved.
In twrp mode, I can do everything smoothly..... but phone does not get into boot normally..... After installing stock boot again, phone boot into normally, but twrp has gone completely..... So, it is clear that boot & twrp partition overwrites each other due to no separate partition.... So, we need separate partition for boot & twrp.... then everything will be solved...
bigrammy said:
No it's only the boot.img Flash the boot.img in this thread https://forum.xda-developers.com/xperia-l1/how-to/root-l1-g3313-magisk-t3693350 if you can get into fastboot that is.
If not then use FlashTool to flash the stock boot.sin and system.sin only. That should get you working again.
Click to expand...
Click to collapse
I downloaded the boot from the link you posted and flashed it. Now it phone works again. Many thanks!!
riadjblicd said:
This "HERE v5-twrp-l1.img" is working in my Xperia L1 G3312.
But, after installing TWRP, phone does not get into boot normally. Everytime it boots into recovery mode. I think that it needs separate twrp partition. This twrp is overwriting the main boot. If anyone can make separate partition for TWRP recovery. This problem will be solved.
In twrp mode, I can do everything smoothly..... but phone does not get into boot normally..... After installing stock boot again, phone boot into normally, but twrp has gone completely..... So, it is clear that boot & twrp partition overwrites each other due to no separate partition.... So, we need separate partition for boot & twrp.... then everything will be solved...
Click to expand...
Click to collapse
Yes but Sony Disabled the recovery partition (fotakernel) by design so you can not boot from it.
The OP is clear about the need to flash the TWRP to your boot partition and the reason I also give full instruction in the workflow/method but people simply don't read anymore it seems. :crying:
TWRP can be injected into the boot.img so you can boot normally or boot TWRP using the volume keys at boot time but I can't be bothered working on this since Sony are not going to update the Android Version.
While the phone is OK I have far better phones to spend my time on at the moment.
how to backup boot.img without root? if its impossible then how do i root this phone?

urgent: oneplus 7 pro TWRP bootloop

I'm very new to everything related to rooting and I think I screwed up, I'm not even sure if this is what a bootloop is.
My device won't boot back into android, I've tried to look for a solution but I don't understand any of the terms those people use.
I followed a tutorial to help me root my phone which I think might have worked but now I can't do anything.
I installed the latest twrp .zip on my phone and elementalX (I think I downloaded it for android 10 instead of 11), I tried a couple of commands in the terminal suggested by other people but none of them did anything.
I really want my phone back, even if that means that it won't be rooted, I made a backup of my data so all that matters to me is that I can use my phone again.
If you know anything that can help me, please try to explain it in a way I might understand as I don't even really know what flashing means.
wattage0 said:
I'm very new to everything related to rooting and I think I screwed up, I'm not even sure if this is what a bootloop is.
My device won't boot back into android, I've tried to look for a solution but I don't understand any of the terms those people use.
I followed a tutorial to help me root my phone which I think might have worked but now I can't do anything.
I installed the latest twrp .zip on my phone and elementalX (I think I downloaded it for android 10 instead of 11), I tried a couple of commands in the terminal suggested by other people but none of them did anything.
I really want my phone back, even if that means that it won't be rooted, I made a backup of my data so all that matters to me is that I can use my phone again.
If you know anything that can help me, please try to explain it in a way I might understand as I don't even really know what flashing means.
Click to expand...
Click to collapse
Can you boot into fastboot then toggle the volume key to recovery , does it go to twrp or something else?
hammered58 said:
Can you boot into fastboot then toggle the volume key to recovery , does it go to twrp or something else?
Click to expand...
Click to collapse
that goes back to twrp
wattage0 said:
that goes back to twrp
Click to expand...
Click to collapse
Good then try the below steps
This sequence has worked for me every time
1. Reboot twrp/lineage recovery, format data. Reboot bootloader
2. Fastboot boot into TWRP FBEv2
3. Sideload official TWRP 3.5.2.9-0 installer (found on TWRP website). Reboot recovery
4. Copy OOS 11.zip to internal storage. Or OTG drive,, Flash OOS 11.zip. Reboot recovery again
5. Format data in OOS stock recovery & Reboot
6. After boot into OOS 11, just local upgrade rom .zip again, you will have OOS in both slots

Categories

Resources