However... It's stuffed into a Nougat boot.img... so it's only good for recovery...
FlashIt supports A/B with --slot, but of course for TWRP to be installed that requires a flashable zip, which generally requires recovery unless you want to do it manually (since I think all TWRP's zips do is replace the ramdisk whole).
That second part of your answer is confusing again. I thought PH-1 was Oreo for awhile now. Are you saying someone has hacked a dedicated recovery partition for the PH-1 out of another partition? You're still very short on details for a bug report or a feature request..
I'd like to help you and make FlashIt support whatever it can but you need to help me help you.
The only version of TWRP that we have is hacked into a nougat kernel... It won't boot the OS... But it will boot into recovery...
So the common move for us is to flash TWRP before doing any modification...
FlashIt wants to flash TWRP to a recovery partition that doesn't exist... Since TWRP is in the boot.img... and I for the life of me... Without renaming it... Cannot figure out how to get TWRP to my boot partition...
confirm. # 4789534541138316
flashit.sh --exact boot twrp.img
Or something very close to that. Type flashit.sh --help if you're not sure. I mentioned --exact a couple replies ago.
Edit: Oh wait, you're right. --exact still uses whatever the file is named.. I'll tackle it 2 ways; I'll see about adding an argument to --exact to specify a different target, and have twrp-* named images fall back to boot partition when no recovery exists.
Hey @osm0sis I hope you don't mind me asking you this as I'm a complete noob at doing this but I figured you'd be the best person to help me with this. I'm basically trying to make a flashable zip in twrp that deletes the line: import /system/vendor/etc/init/hw/init.kerneltune.rc which is line 35 of the file init.qcom.rc located at the directory vendor/etc/init/hw. I'd really appreciate a bit of help as I'm not sure what is required to do this. Thank you. Vendor needs to not be mounted btw. I'm on a OnePlus 5T running TreskMod (custom aosp ROM)
So something like this function is pretty much all you need: https://github.com/osm0sis/AnyKernel...e.sh#L425-L431
Check out this for the rest: https://forum.xda-developers.com/and...e-zip-t2934449
|automation, batch, flashable zip, script, tool|
|Thread Tools||Search this Thread|