Using dualboot patcher to dualboot Oreo/Nougat... Need a way to flash vendor otf - Nexus 6P Q&A, Help & Troubleshooting

Hi everyone! As the title says I'm trying to dualboot my Nexus 6P with Oreo and Nougat. I'm trying to achieve this because I want to have Nethunter on my Nexus 6P over 7.1.2 while keeping an updated ROM as primary.
After so many trial and error I managed to succesfully install both Oreo (Lineage 15.1) as primary ROM and Nougat (PureNexus 7.1.2) with Nethunter as data ROM.
The only "problem" that I'm still trying to solve is: I have to flash the Nougat's vendor whenever I want to boot to my Nethunter ROM and flash back to Oreo's vendor when I want to get back to my Oreo ROM.
As you have noticed, this is both inconvenient and impractical at the same time. So what I've been looking for is a way to flash the vendor image on the fly after rebooting the device but before the ROM gets loaded by.
What I've found so far is that I can use OpenRecoveryScript (though I've been unable to find how to use it) to load an script with twrp.
If someone has any idea on how to achieve this I'd be totally grateful.
PD: If someone wants any help to get the same or similar setup as I've done just ask (Didn't explain here just to keep the post simple)

Related

[Discussion] DualBootPatcher

I created this thread in order to get some discussion going with the possibility to use DualBootPatcher for our Device. The device is supported and so far i got roms to patch but no luck to get it booting.
I hope we can share some information here to get us some dual booting.
Device must be rooted and decrypted for starters.
Got now rr as primary rom and will try later on to flash some roms on the second space... Let you know if that works out.
Tried to dual RR and liquid rom ..No luck. Just reboots to twrp..
Skickat från min ONEPLUS A5010 via Tapatalk
superior8888 said:
Tried to dual RR and liquid rom ..No luck. Just reboots to twrp..
Skickat från min ONEPLUS A5010 via Tapatalk
Click to expand...
Click to collapse
I have also rr as primary but second rom install ended in error 1 in twrp. Maybe you can try to reset data of second rom with the dualboot patcher zip.
It might be helpful to read the Dual Boot Patcher thread for the OP5, as there may be some important info there that is relevant for getting it to work on the 5T.
I tried rr as primary, no problem. Tried adding 2nd rom as secondary, as data slot 1, and no dice. Even tried removing assert lines in the updater script as suggested in op5 with rr as 2nd rom but that didn't work either; either booted back to twrp or booted to a black screen. If anyone makes it work please document and share your work. I'm encrypted by the way, even though you're "supposed" to be decrypted I was able to switch between primary and the non-booting rom just fine.
Anyone having any luck with this?
matteosaeed said:
Anyone having any luck with this?
Click to expand...
Click to collapse
Nope primary install goes good with a oos rom not stock. But when you try to install a second rom it gives error 1 in twrp and rom don't boot up.
That's great! Old MultiROM user here!
Ok, so I was able to successfully patch and boot into LOS and RR. LOS as primary and as slot 1 ROM, and RR as slot 2 ROM while encrypted. This wouldn't allow me to access any files in the phone via file managers for either slot ROMs, only in primary, so you must be decrypted if you're wanting to use/see the data in your internal memory on secondary ROMs. By the way I was only able to boot Nougat ROMs, dualpatcher doesn't work for Oreo ROMs yet. I'll do a small write up tomorrow, it's 1 am here ?
superior888 said:
I created this thread in order to get some discussion going with the possibility to use DualBootPatcher for our Device. The device is supported and so far i got roms to patch but no luck to get it booting.
I hope we can share some information here to get us some dual booting.
Device must be rooted and decrypted for starters.
Click to expand...
Click to collapse
Here is what I did:
IF YOU DON'T KNOW HOW TO DECRYPT, BACK UP YOUR STUFF, FLASH, ROOT, ETC, STOP READING NOW, THIS IS SOME HEAVY STUFF GETTING READY TO HAPPEN ?
If you want functional internal storage and have access to it on all secondary ROMs you must be decrypted. This guide assumes you have all required files on phone and/or computer
1. Flash bluspark recovery (wouldn't work on codeworkx for me)
2. Back up all your data, including internal storage somewhere safe
3. Wipe system, cache, and data (not internal)
4. Coming from Phoenix, so I flashed the Nougat firmware and then LOS 14.1 and booted it
5. Flash magisk 14.0, then install dualbootpatcher app
6. After granting root permission to dualbootpatcher go ahead and go to ROMs and set kernel now
7. Now you must patch another Nougat ROM as data-slot, ID 1 or 2 or 3, whatever you want. You can use the same LOS 14.1 as a test, or the RR Nougat version
8. Transfer the patched ROM to your PC or laptop and without unzipping/extracting the zip go to META-INF/com/google/android and open updater-script with notepad++. Delete the first two lines that's start with the word "assert" and save
9. It should now ask you if you want to update the zip, hit yes. Then transfer the updated patched ROM back to your phone
(you can do this from your phone too using winrar and your favorite file manager; it s a tad easier on your computer as you don't have to extract anything)
10. Now reboot into recovery and flash the patched ROM (do not flash from within the app)
11. Now flash the dualboot utilities in recovery and it should take you to an Aroma menu where you can see both primary and and data slot ROM. Tap the data slot ROM and choose "switch to". If you did everything right it should say "succeeded" and now you can reboot your phone and should boot into the secondary ROM.
12. To root data slot ROMs you must patch the magisk zip for that data slot ROM and then flash it in recovery, the same goes for gapps. Make sure whatever you patch does not have the "assert" lines in the updater script after patching it, else you must delete these lines.
Try it and report back. I can hardly debug my own device so I can't provide much support for you. The above is what I did while encrypted, so again, if you want functional internal storage for the additional ROMs must be decrypted before you try this.
cubandanger05 said:
Ok, so I was able to successfully patch and boot into LOS and RR. LOS as primary and as slot 1 ROM, and RR as slot 2 ROM while encrypted. This wouldn't allow me to access any files in the phone via file managers for either slot ROMs, only in primary, so you must be decrypted if you're wanting to use/see the data in your internal memory on secondary ROMs. By the way I was only able to boot Nougat ROMs, dualpatcher doesn't work for Oreo ROMs yet. I'll do a small write up tomorrow, it's 1 am here ?
Click to expand...
Click to collapse
Thanks for updating us, I'm an old multirom user as well and I'm going to keep my eye on this.
cubandanger05 said:
Here is what I did:
IF YOU DON'T KNOW HOW TO DECRYPT, BACK UP YOUR STUFF, FLASH, ROOT, ETC, STOP READING NOW, THIS IS SOME HEAVY STUFF GETTING READY TO HAPPEN
If you want functional internal storage and have access to it on all secondary ROMs you must be decrypted. This guide assumes you have all required files on phone and/or computer
1. Flash bluspark recovery (wouldn't work on codeworkx for me)
2. Back up all your data, including internal storage somewhere safe
3. Wipe system, cache, and data (not internal)
4. Coming from Phoenix, so I flashed the Nougat firmware and then LOS 14.1 and booted it
5. Flash magisk 14.0, then install dualbootpatcher app
6. After granting root permission to dualbootpatcher go ahead and go to ROMs and set kernel now
7. Now you must patch another Nougat ROM as data-slot, ID 1 or 2 or 3, whatever you want. You can use the same LOS 14.1 as a test, or the RR Nougat version
8. Transfer the patched ROM to your PC or laptop and without unzipping/extracting the zip go to META-INF/com/google/android and open updater-script with notepad++. Delete the first two lines that's start with the word "assert" and save
9. It should now ask you if you want to update the zip, hit yes. Then transfer the updated patched ROM back to your phone
(you can do this from your phone too using winrar and your favorite file manager; it s a tad easier on your computer as you don't have to extract anything)
10. Now reboot into recovery and flash the patched ROM (do not flash from within the app)
11. Now flash the dualboot utilities in recovery and it should take you to an Aroma menu where you can see both primary and and data slot ROM. Tap the data slot ROM and choose "switch to". If you did everything right it should say "succeeded" and now you can reboot your phone and should boot into the secondary ROM.
12. To root data slot ROMs you must patch the magisk zip for that data slot ROM and then flash it in recovery, the same goes for gapps. Make sure whatever you patch does not have the "assert" lines in the updater script after patching it, else you must delete these lines.
Try it and report back. I can hardly debug my own device so I can't provide much support for you. The above is what I did while encrypted, so again, if you want functional internal storage for the additional ROMs must be decrypted before you try this.
Click to expand...
Click to collapse
Thanks! I'll try this next days.
Thanks. Nothing works with Oreo as of yet i suppose :/
superior888 said:
Thanks. Nothing works with Oreo as of yet i suppose :/
Click to expand...
Click to collapse
It may be possible to have oreo as primary and flash Nougat as data slot roms. I tried with Phoenix as primary and I could boot into rr Nougat in data slot but Phoenix wouldnt boot. If someone can try rr oreo as primary and report back. I'm tempted to try with otg and see if I can install secondary roms using extsd option
*Quick update*
I was able to keep latest Phoenix oreo ROM as primary and install and boot Nougat RR as data-slot and as secondary using the latest dualbootpatcher app which may have fixed the "failed to update mbtool" error I was getting on Phoenix ROM. Also I used Magisk 14.0 for root as the latest version 16.0 kept booting back to recovery on non primary ROMs.
I'm still unable to flash Oreo ROMs as data-slot or secondary. At least we're able to keep Oreo as primary and test Nougat ROMs until dualbootpatcher app is compatible with Oreo or until some other fix is released.
Internal storage/data is still encrypted and unreadable on all non-primary ROMs; you must be decrypted prior to installing additional ROMs to have access to it, which I haven't tested yet.
See screenshots
Thanks for keeping up with this. I'm really interested but traveling without my PC so don't want to get stuck without a backup plan. Hopefully it's sorted by the time I get back home or I'll help test some more too.
es0tericcha0s said:
Thanks for keeping up with this. I'm really interested but traveling without my PC so don't want to get stuck without a backup plan. Hopefully it's sorted by the time I get back home or I'll help test some more too.
Click to expand...
Click to collapse
It's been relatively "safe" all the testing that I've done, not many scares, but you can never be too careful.
Edit: Now that it's working almost as intended we should make an official "how to" thread
cubandanger05 said:
It's been relatively "safe" all the testing that I've done, not many scares, but you can never be too careful.
Click to expand...
Click to collapse
If I wasn't out of the country, it'd probably be different. I've customized 100s of phones, 1000s of times but sometimes it's better safe than sorry. I'm great at fixing stuff because I've broken about everything I can (sometimes on purpose, sometimes not lol) but I need navigation and translation more than another custom rom I suppose.
es0tericcha0s said:
If I wasn't out of the country, it'd probably be different. I've customized 100s of phones, 1000s of times but sometimes it's better safe than sorry. I'm great at fixing stuff because I've broken about everything I can (sometimes on purpose, sometimes not lol) but I need navigation and translation more than another custom rom I suppose.
Click to expand...
Click to collapse
? understandable

I messed up flashing a ROM. Need Help.

My stock ROM was being problematic so I decided to flash a custom ROM (lineage oreo 8.1) and Raiden Kernel. unlocked bootloader and Installed TWRP 3.2.1 and wiped my phone. Installed kernel first and that probably ****ed up my device. I cannot flash my ROM which shows error 7. This isn't the first time I'm using TWRP as I have rooted and flashed ROMs on other devices before but I'm stuck now. Please help. I'll provide with any and every details you guys might need in the process. Thank You.
Try a format.
That might fix it

4 cores fix and updates.

Not even a month ago my Nexus 6P went to bootloop. After a few days of failed attempts and all hopes lost I finally managed to install the fix that deactivates the A-57.
To be able to do all this I downloaded and installed the factory image from the Google site, then launched the command "Flash-All.bat" followed by the installation via ADB of the fix and the recovery TWRP.
Before all this mess I used the LineageOS ROM, while now I'm on official firmware, which among other things I can't even update by installing the latest security patches because the modified boot image is overwritten with the one that requires the use of the whole SoC, A-57 included, with the inevitable return of the bootloop.
I was wondering if there is any modified version of the LineageOS ROM that allows unlucky Nexus 6P users like me to be able to easily use and update the aforementioned ROM, without the risk of finding the phone in bootloop at every start.
I also wondered if after installing the XDA fix that disables the A-57 you can update the device with the latest patches, since maybe I may also have something wrong too.
My question is if a 6P with the BSD fix installed is condemned to remain "as is" forever or if can still receive updates.
You dont have to bother with the terrible stock os. Just use further lineage os.
Howto in short:
1. flash twrp 4 cores from here: https://basketbuild.com/devs/osm0sis/osmods
2. flash latest lineageos from official lineage download site with twrp
3. after flashing now every single time a linegage os image, you have to run N5X-6P_BLOD_Workaround_Injector_Addon-AK2-signed.zip from the link above
Thats all. Just use the N5X-6P_BLOD_Workaround_Injector_Addon-AK2-signed.zip to configure every single time your lineageos to use 4 instead of 8 cores.
More detailed howto: https://forum.xda-developers.com/nexus-6p/general/bootloop-death-blod-workaround-zip-t3819515

Which stable rom and how should I flash?

Hi,
A few months back I unlocked the bootloader, installed TWRP (I don't know which version, probably letsmakecakes version) and flashed a LOS build from Darkjoker. I ran into a few problems, like asking password on first boot and a Zip Treble compatibility error while trying to flash the rom. I can't recall how I overcome it, I think I deleted something inside the rom zip and then it worked I believe.
But this is an old build, it has a few major bugs (data not working for me, sometimes the phone freezes while connecting to certain networks, etc). I'm dying to change it.
I want to mantain the feel of LOS and stock Android (I don't need costumization), and I've looked into LOS 16 from AmulyaX and Pixel Experience 9.0. Which one would you guys recommend?
Also, with the problems I had when first flashing this phone, I'm a bit afraid of the process. I want to install OrangeFox Recovery and one of these roms. How should I procceed? Can you ELI5 please?
Thank you!
I unlocked my bootloader just yesterday. And before that I made sure that I remove all security locks including screen lock and app lock. This way TWRP did not encrypt my phone. After flashing TWRP I booted into recovery and flashed Orange Fox Recovery zip and it automatically booted into itself. I wanted to stick with MIUI bcz of the battery backup and smoothness so I went for RevOS MIUI. Loving the ROM so far.

I'm confused about flashing steps from one rom to another

Hello everyone,
I've flashed my phone before but it has been such a long time that I don't know If what I'm planning to do is correct. I'm running Pixel Experience with android 9, which I flashed via OrangeFox. I want to update my rom to a new one with android 10 (maybe official Lineage or new pixelexp). Can someone confirm that these are the correct steps to take, please?
1) Update OrangeFox if needed (I think I still have the latest stable release)
2) Format Data
3) Flash ROM
4) Flash Gapps if not included
5) Flash magisk
I have a couple more questions: I've read stuff about encrypted/decrypted and I don't know what that means. Is there a way to know what I'm doing, if I need any additional step to prevent loops or something? Like disabling fingerprints and pins on my phone or something?
Also, to update firmware, at which step do I do it? Is it a flashable zip too?
Sorry for so many questions. Thank you

Categories

Resources