[guide] [root] [oreo&pie] [jeter/aljeter] [twrp, decrypt, magisk] [stock firmware]

Spaceminer

Senior Member
Sep 9, 2016
1,159
546
113
Olympus Mons
Well thanks for the File you sent .Its working fine. I did mention in the beginning that this was my first attempt at rooting. How else to learn then to ask questions? I guess Ill find another forum where Im not looked down upon. I was willing to pay for someones help...
You're welcome here, everyone is. And you're not being frowned upon because of your skill level. The questions you're asking though, have already been asked and answered all over XDA. There's a guide for practically anything android related here. This is also a place where people who develop and test software come to share knowledge. I mean, it's in the name. For these reasons, people here will expect you to do some research on your own before asking questions. Here's a good example...

Instead of saying something like "I don't know how to transfer a file to my phone." We would expect you to search for existing information and read up on how to do that. Because I promise you that information already exists here, as well as plenty of other websites, and a simple Google search would help you find it. We shouldn't need to guide you through that. Same thing with installing an app. There are guides here covering that too, explaining several different ways to do it. I'm insisting that you do some work and educate yourself first, because I don't want you to break your phone. Find a guide about adb/fastboot commands and read it. Find information about app installation and read it. I don't want to just give you fish. I want you to go fishing so that you can eat for life. That's why I gave you topics to read up on first, and said to come back if you're still having trouble.
 

Starkiller2

Senior Member
May 2, 2018
306
150
0
phoenix
Thanks I'm officially rooted. I believe renaming the file was causing the problem smh thanks for the info. Do you know if Xposed frame work will work on this device? I'm running into problems this was my purpose for rooting lol.
I only tried it for a short time so I can't say how well. There was a magisk module to put xposed framework in place, you may wanna try that. its what I used. if its still in the repo
 

GT72

Member
Feb 12, 2020
22
0
0
York, Pa
You're welcome here, everyone is. And you're not being frowned upon because of your skill level. The questions you're asking though, have already been asked and answered all over XDA. There's a guide for practically anything android related here. This is also a place where people who develop and test software come to share knowledge. I mean, it's in the name. For these reasons, people here will expect you to do some research on your own before asking questions. Here's a good example...

Instead of saying something like "I don't know how to transfer a file to my phone." We would expect you to search for existing information and read up on how to do that. Because I promise you that information already exists here, as well as plenty of other websites, and a simple Google search would help you find it. We shouldn't need to guide you through that. Same thing with installing an app. There are guides here covering that too, explaining several different ways to do it. I'm insisting that you do some work and educate yourself first, because I don't want you to break your phone. Find a guide about adb/fastboot commands and read it. Find information about app installation and read it. I don't want to just give you fish. I want you to go fishing so that you can eat for life. That's why I gave you topics to read up on first, and said to come back if you're still having trouble.
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?
 

Spaceminer

Senior Member
Sep 9, 2016
1,159
546
113
Olympus Mons
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.
 
  • Like
Reactions: GT72

GT72

Member
Feb 12, 2020
22
0
0
York, Pa
Hey, Was just curious , is that the stock pie firmware that u sent me, or is it a custom rom? I do really like the "no bloat" and the launcher. Its growing on me. The problem is that it wont detect my sim card.
 

GT72

Member
Feb 12, 2020
22
0
0
York, Pa
Just to clarify , Ive been trying to flash all of these zip files through twrp after transferring them to my sd card. Thats when i get the invalid zip file format. I thought u said thats the easiest way to do it when I started this. Is this the correct way ?

Update: Sucessfully Insalled stock oreo firmware! Now to try Majisk and root.
 
Last edited:

Spaceminer

Senior Member
Sep 9, 2016
1,159
546
113
Olympus Mons
Just to clarify , Ive been trying to flash all of these zip files through twrp after transferring them to my sd card. Thats when i get the invalid zip file format. I thought u said thats the easiest way to do it when I started this. Is this the correct way ?

Update: Sucessfully Insalled stock oreo firmware! Now to try Majisk and root.
Most zips can be flashed in twrp, just not firmware zips. If you wish to debloat, I can drum up a list of safe to remove apps. What I sent you was a backup of my stock Pie. Use Magisk v19.3, and disabler version 5/21/19 if you have any problems with root. (There are copies in this thread somewhere, if you can't find them I'll help you out.)

If you wish to take the plunge and debloat things yourself...

Make a backup of /vendor, /data, /oem, and /system first. Then navigate to /oem/app & /oem/priv-app and start deleting things you don't want. (Delete whole app folders.) Then do the same in /vendor/app, /system/app & /system/priv-app. If you delete the wrong thing(s), the system will bootloop. If that happens, just restore the last place you were working in and make a note not to do that again. It's good practice to always wipe the dalvik cache after removing apps. You can delete the folder /data/dalvik-cache and reboot, or you can do it from twrp's wipe > advanced wipe menu.
 

Spaceminer

Senior Member
Sep 9, 2016
1,159
546
113
Olympus Mons
Material Twrp

Flash this to recovery using fastboot or directly install the image from your existing twrp. Be sure to grab the appropriate version for your device.

xt1922-x

xt1922-3

amx
 

Attachments

Last edited:

GT72

Member
Feb 12, 2020
22
0
0
York, Pa
Most zips can be flashed in twrp, just not firmware zips. If you wish to debloat, I can drum up a list of safe to remove apps. What I sent you was a backup of my stock Pie. Use Magisk v19.3, and disabler version 5/21/19 if you have any problems with root. (There are copies in this thread somewhere, if you can't find them I'll help you out.)

If you wish to take the plunge and debloat things yourself...

Make a backup of /vendor, /data, /oem, and /system first. Then navigate to /oem/app & /oem/priv-app and start deleting things you don't want. (Delete whole app folders.) Then do the same in /vendor/app, /system/app & /system/priv-app. If you delete the wrong thing(s), the system will bootloop. If that happens, just restore the last place you were working in and make a note not to do that again. It's good practice to always wipe the dalvik cache after removing apps. You can delete the folder /data/dalvik-cache and reboot, or you can do it from twrp's wipe > advanced wipe menu.
hi, Im having trouble finding the 5-21-19 version of the disabler. the one in the link is 1-6 -2020 (or 1-16 ). And it doesnt seem to work...
 

riquemonteiro

Senior Member
Aug 21, 2011
62
4
0
www.facebook.com
Is this working? I mean, everytime i try this, i **** up my phone

I just got an used G6 Play, like 1 week ago

And i want to use custom roms but EVERYTIME i try to do this, it goes as following:

I boot the twrp.img, it asks the password, i skip, i backup boot.img and recovery.img and ok, i reboot to bootloader

Then i flash recovery twrp.img, ok, i enter recovery mode in twrp, then ok

Then i Format Data, flash Disable.zip and Magisk.zip, then, if i try to reboot, it gives warning "No OS installed"

This can't be right, i mean..

So everytime after this i have to re-install the Stock Rom. And i dont know what i'm doing wrong, i mean. Any help?
 

dotKin

Senior Member
Jun 19, 2019
110
32
38
Is this working? I mean, everytime i try this, i **** up my phone

I just got an used G6 Play, like 1 week ago

And i want to use custom roms but EVERYTIME i try to do this, it goes as following:

I boot the twrp.img, it asks the password, i skip, i backup boot.img and recovery.img and ok, i reboot to bootloader

Then i flash recovery twrp.img, ok, i enter recovery mode in twrp, then ok

Then i Format Data, flash Disable.zip and Magisk.zip, then, if i try to reboot, it gives warning "No OS installed"

This can't be right, i mean..

So everytime after this i have to re-install the Stock Rom. And i dont know what i'm doing wrong, i mean. Any help?
Ignore that warning, it shows up even when you have a system. What happen if you reboot to system anyways?
 

madbat99

Senior Member
Mar 1, 2014
5,539
3,285
113
Is this working? I mean, everytime i try this, i **** up my phone

I just got an used G6 Play, like 1 week ago

And i want to use custom roms but EVERYTIME i try to do this, it goes as following:

I boot the twrp.img, it asks the password, i skip, i backup boot.img and recovery.img and ok, i reboot to bootloader

Then i flash recovery twrp.img, ok, i enter recovery mode in twrp, then ok

Then i Format Data, flash Disable.zip and Magisk.zip, then, if i try to reboot, it gives warning "No OS installed"

This can't be right, i mean..

So everytime after this i have to re-install the Stock Rom. And i dont know what i'm doing wrong, i mean. Any help?
After you format data and type yes, reboot recovery then flash disabler then magisk (magisk 19.3). Once booted up you can update magisk in magisk manager.
 

riquemonteiro

Senior Member
Aug 21, 2011
62
4
0
www.facebook.com
After you format data and type yes, reboot recovery then flash disabler then magisk (magisk 19.3). Once booted up you can update magisk in magisk manager.
Thats what i do everytime

Here follows:

I format data, type yes, reboot recovery and then swipe to allow modifications

Then i flash disabler, then magisk, then i reboot and it goes straight to bootloop.

So i see no other choice. I literally am not able to disable encrypt and root my phone with this method i think.
 

dotKin

Senior Member
Jun 19, 2019
110
32
38
Thats what i do everytime

Here follows:

I format data, type yes, reboot recovery and then swipe to allow modifications

Then i flash disabler, then magisk, then i reboot and it goes straight to bootloop.

So i see no other choice. I literally am not able to disable encrypt and root my phone with this method i think.
Is your device aljeter? Some vendor images didn't work for me and I had to flash a generic vendor.img, not from a carrier or country specific