Hey spaceminer . I suppose i did get in a little over my head, but after 6 days of research and trial and error, I sucessfully restored my OS with the backup file u gave me, Rooted with majisk v20..3 beta, and installed a few mods! I wanted to thank you again for helping me. But anywaysI do have a question. I was able to install the files u sent me with no problems, however every stock firmware zip , custom rom zip Ive tried to flash , and i mean every one says invalid zip file format. The bootloader is unlocked , its decrypted, and rooted. Its very frustrating as I have watched every tuturial , read everything i could find , about this, and just cannot flash my stock rom , or any custom roms, Tried the recovery method from a stock oreo backup file someone shared ,. When trying to use restore method , no partitions are available to select, when using install through twrp the invalid zip error. That error appeared with about 10 different zips Ive tried. I also noticed that on all of the zips have a corrupted disk img in 2 of the folders. how can it be that all of these zips are bad. Its got to be smtg Im missing. Anyone have any ideas?
Extract the firmware zip to your adb/fastboot folder. You should read the flashfile.xml inside of it to see what gets flashed to where. The syntax when flashing is also important. It should always have this kind of format.
[fastboot] [operation] [partition] [file]
Example:
Code:
fastboot flash boot boot.img
The flashfile however, does not list things in the same order as the flashing syntax. (Why? I don't know.)
It looks like this in the flashfile.xml...
Code:
<steps interface="AP">
<step operation="getvar" var="max-sparse-size"/>
<step operation="oem" var="fb_mode_set"/>
<step MD5="9283cdc0875db683ee35ce94a8a417cc" filename="gpt.bin" operation="flash" partition="partition"/>
<step MD5="db5960d9bb9737df2e9f3194497193e8" filename="bootloader.img" operation="flash" partition="bootloader"/>
<step MD5="d5634687e607d11a71b0e5dae45f0da8" filename="NON-HLOS.bin" operation="flash" partition="modem"/>
So... these turn into this when you actually flash things, because we need to follow the correct syntax.
Code:
fastboot flash partition gpt.bin
(gpt.bin actually makes the partitions, so that's why this one gets flashed to "partition". The rest will look very normal.)
Code:
fastboot flash bootloader bootloader.img
Code:
fastboot flash modem NON-HLOS.bin
Just remember to flash everything in order and you should be okay. If the
bootloader.img or gpt.bin fail to flash, just skip them. If you can flash them, do it, if not don't worry about it. Those things never downgrade, so if they don't flash, it just means you already have the newest version of those files installed. That being said...
How do you rollback to Oreo?
Flash everything in the Oreo firmware, and follow the flashfile like normal, but when you flash NON-HLOS.bin to your modem partition, use the NON-HLOS.bin from the latest Pie firmware instead. This fixes LTE on Oreo. If for some reason sound isn't working, or you have audio problems, flash adspso.bin from the latest Pie firmware to your dsp partition. Any time you flash a new modem, always remember to wipe the old ones with,
fastboot erase modemst1 and also,
fastboot erase modemst2. Good luck! I think this will get you where you want to be.