TWRP and Root for Android 8.0 Oreo - OnePlus 3 Guides, News, & Discussion

I flashed the latest Open Beta 25 yesterday and it took me some time to figure out how to properly root that. I was searching for a compatible TWRP for Android Oreo and I stumbled upon one when I was reading through pages and pages of comments from our community.
So, I am writing the steps here with the necessary files so that everyone can find it in one place.
This is not my work. All credits go to the original developers. I am just consolidating the steps I followed here. If I am violating any rules, please feel free to close this thread.
Credits:
 @akhilnarang for Modified TWRP 
 @Chainfire For SuperSU
Necessary Downloads:
Oreo Compatible TWRP: https://drive.google.com/open?id=0B46mMEeAPSYGd3dBbzJhMWJUVE0
SuperSU Zip: https://drive.google.com/open?id=0B46mMEeAPSYGV1U3c3JSRmF2dWs
Steps to install TWRP and Root:
Note: My phone was encrypted when I tried this.
1. Copy the downloaded SuperSU Zip file to your phone.
2. Copy the TWRP file to the folder where ADB and Fastboot are installed.
3. Turn off your OnePlus 3/3T. Boot your OnePlus 3/3T into Fasboot mode > Press and hold the Volume Up Button + Power Button.
4. Connect your phone to your PC via USB Cable.
5. Open a command window on the folder where ADB and Fastboot are installed. Go to the folder where ADB and Fastboot are installed. Hold down Shift Key > Right Click on the empty space > Choose ‘Open CMD Here’.
6. Execute the below command in the command window to see if your device is properly connected:
Code:
fastboot devices
7. Make sure the TWRP file is in the ADB folder. Execute the below command to install TWRP on your OnePlus 3/3T running Android Oreo:
Code:
fastboot flash recovery TWRP-Oreo-OnePlus-3-3T.img
Do not restart your device upon installation. The procedure is not yet over.
8. Assuming you are now in Fastboot Mode, use the volume buttons and choose ‘Recovery Mode’ and then press the power button to enter TWRP Recovery.
9. Once you are in TWRP > Tap on ‘Install’ > Choose the SuperSU Zip file which you have downloaded from above > Swipe right to flash.
10. Reboot your device.
Let me know if you have any questions/doubts!
Source

If you have other TWRP already installed, any reason not just to install the compatible one by flashing image of compatible one using that?

gmlogan said:
If you have other TWRP already installed, any reason not just to install the compatible one by flashing image of compatible one using that?
Click to expand...
Click to collapse
We should be able to install twrp without connecting to pc if we already have twrp

gmlogan said:
If you have other TWRP already installed, any reason not just to install the compatible one by flashing image of compatible one using that?
Click to expand...
Click to collapse
You could do that. Shouldn't be an issue, I guess. The above steps are just what I followed.

Yes, but isn't Oreo package replacing TWRP with OnePlus recovery?
Sent from my OnePlus3 using XDA Labs

Unn113 said:
Yes, but isn't Oreo package replacing TWRP with OnePlus recovery?
Sent from my OnePlus3 using XDA Labs
Click to expand...
Click to collapse
Install the recovery img in TWRP again after the zip. Reboot to recovery to confirm it didn't overwrite TWRP

liam_davenport said:
Install the recovery img in TWRP again after the zip. Reboot to recovery to confirm it didn't overwrite TWRP
Click to expand...
Click to collapse
No, what he says is that, once you install the Oreo Update Zip from TWRP it will be replaced with TWRP. I guess we could avoid this by immediately flashing the TWRP Zip soon after flashing the Oreo Zip.

dreams.sri said:
No, what he says is that, once you install the Oreo Update Zip from TWRP it will be replaced with TWRP. I guess we could avoid this by immediately flashing the TWRP Zip soon after flashing the Oreo Zip.
Click to expand...
Click to collapse
He means stock Oreo zip. If you flash OnePlus stock rom in TWRP and don't reflash TWRP stock zip replaces it with OnePlus recovery

Got error 7 while trying to install official Oreo beta from TWRP. Maybe a recovery issue not sure. I needed to flash last N beta and update from settings to Oreo beta

Its only possible with oneplus recovery. Trust me.

articblaster7 said:
Its only possible with oneplus recovery. Trust me.
Click to expand...
Click to collapse
OK, but after you have flashed Orea Beat with their recovery will it run OK with Twrp for backups and rooting etc

I dont have time to test right now. But i'm sure to Will vê possible now or in a near future

mauk said:
Got error 7 while trying to install official Oreo beta from TWRP. Maybe a recovery issue not sure. I needed to flash last N beta and update from settings to Oreo beta
Click to expand...
Click to collapse
You could download the Stock Oxygen OS Recovery and fastboot flash the recovery > Go to Stock Recovery > Go to 'Install from ADB' > Connect phone to PC > Sideload the update Zip > Boot into OREO > Reboot to Fastboot > Flash TWRP > Flash SuperSU. Will hardly take 15 mins.

liam_davenport said:
He means stock Oreo zip. If you flash OnePlus stock rom in TWRP and don't reflash TWRP stock zip replaces it with OnePlus recovery
Click to expand...
Click to collapse
True that, agreed!:good:

dreams.sri said:
True that, agreed!:good:
Click to expand...
Click to collapse
so the process is
1) Flash oreo compatible recovery
2) Flash Rom
3) Flash TWRP recovery
4)Flash root

manishdev said:
so the process is
1) Flash oreo compatible recovery
2) Flash Rom
3) Flash TWRP recovery
4)Flash root
Click to expand...
Click to collapse
1. Flash Stock Recovery.
2. Sideload Oreo Zip
3. Flash Oreo Compatible TWRP
4. Flash SuperSU

manishdev said:
so the process is
1) Flash oreo compatible recovery
2) Flash Rom
3) Flash TWRP recovery
4)Flash root
Click to expand...
Click to collapse
Yes. It's ok like you write.

Hi Guys,
I faced below issue while flashing Oreo beta update on oneplus 3 using twrp.
Details:
TWRP: 3.1.1.2
Rooted: Magisk v14.0
Do I need to unroot and uninstall twrp before updating?
TWRP:
OnePlus3Oxygen_16_OTA_035_all_1710131629_83503ca929ca4b82.zip'
Checking for MD5 file...
Skipping MD5 check: no MD5 file found
I:Update binary zip
I:Zip does not contain SELinux file_contexts file in its root.
I:Legacy property environment initialized.
selinux_android_file_context: Error getting file context handle (No such file or directory)
Warning: No file_contextsscript aborted: E3004: This package is for "OnePlus 3" devices; this is a "".
E3004: This package is for "OnePlus 3" devices; this is a "".error: 3004
Updater process ended with ERROR: 7
I:Legacy property environment disabled.
I:Install took 0 second(s).
Error installing zip file '/sdcard/TWRP/OnePlus3Oxygen_16_OTA_035_all_1710131629_83503ca929ca4b82.zip'
Updating partition details...
Iata backup size is 8093MB, free: 37507MB.
I:Unable to mount '/usb_otg'
I:Actual block device: '', current file system: 'vfat'
...done
I:Set page: 'flash_done'

SuperSU not Working
dreams.sri said:
I flashed the latest Open Beta 25 yesterday and it took me some time to figure out how to properly root that. I was searching for a compatible TWRP for Android Oreo and I stumbled upon one when I was reading through pages and pages of comments from our community.
So, I am writing the steps here with the necessary files so that everyone can find it in one place.
This is not my work. All credits go to the original developers. I am just consolidating the steps I followed here. If I am violating any rules, please feel free to close this thread.
Credits:
@akhilnarang for Modified TWRP
@Chainfire For SuperSU
Necessary Downloads:
Oreo Compatible TWRP: https://drive.google.com/open?id=0B46mMEeAPSYGd3dBbzJhMWJUVE0
SuperSU Zip: https://drive.google.com/open?id=0B46mMEeAPSYGV1U3c3JSRmF2dWs
Steps to install TWRP and Root:
Note: My phone was encrypted when I tried this.
1. Copy the downloaded SuperSU Zip file to your phone.
2. Copy the TWRP file to the folder where ADB and Fastboot are installed.
3. Turn off your OnePlus 3/3T. Boot your OnePlus 3/3T into Fasboot mode > Press and hold the Volume Up Button + Power Button.
4. Connect your phone to your PC via USB Cable.
5. Open a command window on the folder where ADB and Fastboot are installed. Go to the folder where ADB and Fastboot are installed. Hold down Shift Key > Right Click on the empty space > Choose ‘Open CMD Here’.
6. Execute the below command in the command window to see if your device is properly connected:
Code:
fastboot devices
7. Make sure the TWRP file is in the ADB folder. Execute the below command to install TWRP on your OnePlus 3/3T running Android Oreo:
Code:
fastboot flash recovery TWRP-Oreo-OnePlus-3-3T.img
Do not restart your device upon installation. The procedure is not yet over.
8. Assuming you are now in Fastboot Mode, use the volume buttons and choose ‘Recovery Mode’ and then press the power button to enter TWRP Recovery.
9. Once you are in TWRP > Tap on ‘Install’ > Choose the SuperSU Zip file which you have downloaded from above > Swipe right to flash.
10. Reboot your device.
Let me know if you have any questions/doubts!
Source
Click to expand...
Click to collapse
hello, i followed all the steps but for some reason, my phone is stuck in boot loop. everything is normal untill i see my lockscreen,but as soon as i try to unlock or even press powerbutton , the phone restarts again everytime.

Will the same steps work for magisk?

Related

TWRP 3.0.2 for Acer Predator 8 ported by Ruben.

IMPORTANT NOTE ABOUT ROOTING:
After flashing TWRP 3.0.2, use the SuperSU 2.46 flashable zip, do NOT use latest version or will result in a bootloop. Good Luck and have fun with rooting.
REQUIREMENTS
1- Unlocked Bootloader (search on google if you dont know how to unlock)
2- Drivers and Adb/Fastboot commands knowledge
--------------------------------------------------------------------------------------------------------------------------------
New TWRP bugfix update! Now you can flash stock rom on TWRP without bricking! Download Page updated!
Bugs:
1- adb shell command needs to be sent before system partition is mounted or it will give an error, after doing adb shell you can mount system and do all the modifications you need.
2- You cant flash any img on twrp it gives an error, im trying to fix.
3- Backups do work, but everytime twrp restarts, the serial number folder seems to change (which means that on /TWRP/BACKUPS/serialnumber/backupsinside/ changes every reboot so you have to go get the backup inside the old serialnumber folder and put on the new serialnumber folder).
Im leaving an unsecured boot image because system does not boot android if anything seems changed. So please if system does not boot after flashing twrp/rooting, flash the unsecured boot img on fastboot
Steps to Install TWRP and root
1. Download and extrct the files: https : // drive. google . com/file/d/0BxzG5iupOOSKNTdlRC1Wd0VmTlk/view
2. Power off the tablet.
3. Enter fastboot mode by pressing the power button while holding down Vol -
4. Open up command prompt and navigate to the directory where fastboot.exe is located.
5. Pass the following commands:
fastboot flash boot unsecuredboot.img
fastboot flash recovery TWRP.img
6. Reboot into recovery (TWRP) and install SuperSU v2.46.zip ---
Continuation 6. Step by Step of Step 6 since people seem to have been running into issues with it:
After rebooting to TWRP and having SuperSU.zip in the tablet storage. Go on Install tab and press the supersu file and install/flash it then reboot the device.

[How-To] Install Oreo OTA! [T-Mobile]

*DON'T FLASH BACK TO NOUGAT IF YOU ENJOY USING YOUR PHONE*
Ok guys ive made my return and im happy to bring the oreo ota with me.!
Steps to install if your on a rom.
1. Use this flash all link Here
2. After finished and setup your going to need a pc and sideload knowledge
3. Download these ota files
Latest August https://drive.google.com/file/d/1OhWZPTWcuo7zRu9bjiezjKEZxreOk6v7/view OREO
4. Get your phone into recovery mode.
4.a the file is gonna have a lot of letters please do not rename or it wont work
4.b before you get into recovery you will see a dead Android. This IS normal. Your going to want to hold power and push volume up. It's a split second kinda thing. Not something you guys forever. Hot that a few times if it doesn't work the first time.
5 your going to want to go to in recovery to apply update via adb for the August one
6. run the command adb sideload (now drag the file to the command prompt and press enter)
7 if all good you will see a verifiying update the step 1/2 when you see that your fine.
8 Let it do its thing and at the end you may see and error about a drive disregard that.
9 now follow steps 4-7 again but with Oreo ota
10 reboot your system and now you should have oreo!
If your stock locked and never been cocked you can try to install the same method above without using the flash all and if it works congrats if not unlock your bootloader and use the method above.
if any help is needed contact me @ [email protected]
HOW TO ROOT
1. DOWNLOAD THIS. https://drive.google.com/file/d/1zz3Fl9m4-_ozWW1U3ww_e6K_cHPPEMSv/view?usp=drivesdk
2. FASTBOOT BOOT OR FLASH IT RUNNING "FASTBOOT BOOT /PATH/TO/BOOT.IMG" OR FASTBOOT FLASH /PATH/TO/BOOT.IMG
3. REBOOT AND PROFIT.
TWRP 3.2.1-0 Bootable and Permanent
Bootable Fastboot boot this *ONLY FOR OREO*
*Permanent is broken* Use boot able
Unencryption for oreo
Encryption Remover *FOR OREO ONLY*
*Must format then flash*
OREO FLASH ALL OREO *YOU CAN ONLY FLASH THIS AFTER YOU HAVE TAKEN THE OTA* *IF YOU FLASH THIS AND YOU HAVENT AND YOUR PHONE BLOWS UP PLEASE VIDEO IT SO I CAN POST IT ON HERE AND SHOW WHAT NOT TO DO*
Thank to @XirXes for the ota files
There is no root available as of yet we need a boot image to get root once there is one we will have roms and root coming.
Screenies
Here you go
Installation went smooth. thanks for the OTA.
now towait for the root and all will be set
wow you are FAST. awesome work for those that did not get the notification. Can you go "back" to 7.1.1 if desired for whatever reason?
Amd4life said:
wow you are FAST. awesome work for those that did not get the notification. Can you go "back" to 7.1.1 if desired for whatever reason?
Click to expand...
Click to collapse
No. As of right now Oreo starts you clean when you do this
Amd4life said:
wow you are FAST. awesome work for those that did not get the notification. Can you go "back" to 7.1.1 if desired for whatever reason?
Click to expand...
Click to collapse
I recommend (from experience) not trying that.
Making a test twrp real quick
Damn...thanks for your work
joemossjr said:
Making a test twrp real quick
Click to expand...
Click to collapse
Looking to this!
Oreo build is almost as fastest as the Flash [emoji3][emoji16]
Sent from my Moto Z (2) using Tapatalk
Thanks, @joemossjr ! It installed for me too. In my case, for some reason, I had to rename it to update.zip before adb sideload would work, but I'm not sure why. Oreo, yayyyy!
can someone please pull a system backup not image? i have a twrp that you can boot not flash and pull the stuff
where's the TWRP, so only use a fastboot flash boot image.zip?
joemossjr said:
can someone please pull a system backup not image? i have a twrp that you can boot not flash and pull the stuff
Click to expand...
Click to collapse
I could, do you have the TWRP link?
---------- Post added at 12:55 PM ---------- Previous post was at 12:47 PM ----------
What I wanted to do was boot slot _b rooted 7.1.1 and copy slot _a stock Oreo, but it nagged me about potentially bricking in fastboot after fastboot set_active _b (i.e., due to invalid bootloader, etc.). A bootable TWRP straight to recovery would solve the issue. All I wanted to do was get a copy of Oreo boot_a, but adb as non-root user does not have permission to dd copy /dev/block/bootdevice/by-name/boot_a . So, yay for bootable TWRP!
@jhofseth please write me on hagnouts
please message me on hangouts people who want to help [email protected]
When you brick and have to go to a leaked 8.0 image
Unable to flash update
For whatever reason i'm unable to flash the update, and i'm currently left with a soft-bricked device. When trying to flash the update via recovery gives me
Code:
E:failed to unmount /
E:failed to set up expected mounts for install; aborting
failed to open driver control: no such file or directory
installation aborted
also when selecting install from ADB it says
Code:
Supported API: 3
stopping adbd...
failed to open driver control: no such file or directory
failed to open driver control: no such file or directory
is there something i can do to remedy this??
forgot to mention that yes i did install the first package and properly executed the flashall command from the first zip folder, and i did try sideloading the second package as it was and as an update.zip file to no success.
Shiro12 said:
For whatever reason i'm unable to flash the update, and i'm currently left with a soft-bricked device. When trying to flash the update via recovery gives me
also when selecting install from ADB it says
is there something i can do to remedy this??
forgot to mention that yes i did install the first package and properly executed the flashall command from the first zip folder, and i did try sideloading the second package as it was and as an update.zip file to no success.
Click to expand...
Click to collapse
Do you go completely stock?

[Guide][Redmi 7A] TWRP, Root with Magisk, Custom ROM [GSI][Pie]

Hello,
I finally managed to install a custom GSI Rom with TWRP and Magisk on my Redmi 7A. And I want to share a detailed guide for everyone who is struggling to do the same. Tested with MIUI 10.2.5.0 Global. Cannot guarantee for other versions.
WARNING:
You need to backup your data before installing. I am not responsible for any damage or loss that might occur. Proceed at your own risk.
Prerequisites:
- Your bootloader must be unlocked (https://en.miui.com/unlock/)
- GSI Rom of your choice. Only a64 A/B (arm32_binder64_ab). No other GSIs will do.
- ADB and Fastboot
- patched boot.img
- TWRP recovery
- vbmeta.img
- Magisk
- Permissiver_v4.zip
- Certification patch
- Treble Overlay file
- GApps (if needed)
Installation guide:
1. Download the files.
GSI Rom:
https://forum.xda-developers.com/project-treble/trebleenabled-device-development
I installed Lineage OS 16 GSI (lineage-16.0-20191017-UNOFFICIAL-treble_a64_bvN). Everything works, except for auto-brightness.
https://forum.xda-developers.com/pr...i-lineageos-16-0-gsi-arm64-ab-how-to-t3908029
Minimal ADB and Fastboot
https://forum.xda-developers.com/showthread.php?t=2317790
Patched boot img file
(You have to choose the correct file according to your system version!)
http://www.mediafire.com/folder/zx0167qqaknc3/Redmi_7a_patched_boot
TWRP recovery
https://www.mediafire.com/file/irntn5ccdiguuuu/TWRP-20191023-3.3.1.0-pine.img/file
vbmeta file
http://www.mediafire.com/file/bgpn9b87b4t8yye/vbmeta.img/file
Magisk
https://forum.xda-developers.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445
Permissiver
http://www.mediafire.com/file/61q8wln4y18ir5k/Permissiver_v4.zip/file
Certification Patch
http://www.mediafire.com/file/fboh2jocqak8cep/Certification_Patch.zip/file
Treble Overlay file (treble-overlay-xiaomi-redmi7a.apk)
http://www.mediafire.com/file/yc7vz3vg13mcrck/treble-overlay-xiaomi-redmi7a.apk/file
GApps (for Lineage OS 16 GSI choose 'ARM' & '9.0')
https://opengapps.org/
2. Unpack Minimal ADB and Fastboot to C:\ drive of your PC
3. Rename patched boot file to boot.img
4. Rename custom recovery file to recovery.img
5. Place boot.img, recovery.img, vbmeta.img in ADB folder
6. Turn off your phone.
7. Reboot phone to fastboot mode by holding Volume-down button while pressing On/Off-button. You know you are in fastboot mode when you see a cartoon bunny.
8. Connect the phone to your PC via USB.
9. On your PC open command prompt and nagivate to ADB folder, or open command prompt window directly from right-click menu in ADB folder; just right-click on empty space and choose 'Open command prompt here'
10. In command prompt, enter the following commands:
Code:
fastboot flash boot boot.img
Code:
fastboot flash vbmeta vbmeta.img
Code:
fastboot flash recovery recovery.img
11. Now reboot to recovery: Press Volume-Up button on your phone and enter the following in command prompt:
Code:
fastboot reboot
or just turn off the phone and reboot by holding Volume-Up and On/Off button (release On/Off when phone turns on, keep holding Volume-Up until you see screen of TWRP recovery)
12. Swipe to allow modifications. If TWRP asks for PIN, enter the PIN code you set for your unlock screen.
13. In TWRP choose Wipe > Advanced Wipe. Select 'Dalvik / ART cache', 'System', 'Data', 'Cache'. Then Swipe to Wipe.
14. Move the downloaded GSI file (*.img) to your phone. (Simply drag and drop in your PC's file manager to SD-card/memory of phone).
15. Flash the GSI Rom: In TWRP choose 'Install' > 'Install Image' and select the GSI. If you put the GSI on your external SD-card you first need to choose Select Storage > Micro SD card. After choosing the GSI file, at Select Partition to Flash Image choose System Image. Then Swipe to confirm Flash.
16. Reboot to Recovery
17. Move Magisk zip and Permissiver_v4.zip to your phone.
18. In TWRP choose Install. Select the Magisk zip-file on your phone and then Swipe to confirm flash.
19. Flash Permissiver_v4.zip the same way.
20. Flash GApps if needed
21. Flash Certification_Patch.zip.
22. Go back and choose Reboot > System
23. Fix big rounded corners on home screen:
Once you are in Android and in case you experience big ugly round corners around your home screen, put treble-overlay-xiaomi-redmi7a.apk in System > Overlay directory. You need a file manager with root access if you want to do this from within Android.
24. Fix brightness adjustment issue (no auto-brightness though):
Enable USB debugging in Developer Options menu. To make developer menu appear in Android, you need to tap 7 times on Android's 'build number'.
Now open command prompt from ADB folder on your PC while your phone is still connected via USB. Enter the following:
Code:
adb shell
su
setprop persist.sys.qcom-brightness $(cat /sys/class/leds/lcd-backlight/max_brightness)
You need to allow adb shell to get root access or the command will throw an error. Your phone should show a confirmation dialog when entering the command. If it doesn't show the dialog, open Magisk Manager app and give root access for Shell in Superuser menu.
25. Enjoy!
Can you please help me have magisk in official rom or stock rom?
DebrupGhosh said:
Can you please help me have magisk in official rom or stock rom?
Click to expand...
Click to collapse
For Magisk on stock Rom:
Your bootloader must be unlocked already!
1. Flash patched boot.img & recovery.img via fastboot
2. Reboot to TWRP
3. In TWRP, go to Wipe > Format Data > "yes"
4. In TWRP, flash Magisk zip
5. Reboot to System
Note: You will lose all your data on the phone. Do a backup of your personal stuff before proceeding.
cg730620 said:
For Magisk on stock Rom:
1. Flash patched boot.img & recovery.img via fastboot
2. Reboot to TWRP
3. In TWRP, go to Wipe > Format Data > "yes"
4. In TWRP, flash Magisk zip
5. Reboot to System
Note: You will lose all your data on the phone. Do a backup of your personal stuff before proceeding.
Click to expand...
Click to collapse
trying the same with miui 11.0.2 indian with repeated reboots and the files on internal storage gets encrypted or something like that.(patched boot image via patcher tool you shared)
after flashing no verity opt encrypt the android sign on boot animation is now showing but this time screen turns off and on
even tried flashing vbmeta.img
DebrupGhosh said:
trying the same with miui 11.0.2 indian with repeated reboots and the files on internal storage gets encrypted or something like that.
after flashing no verity opt encrypt the android sign on boot animation is now showing but this time screen turns off and on
even tried flashing vbmeta.img
Click to expand...
Click to collapse
Did you unlock your bootloader? It must be unlocked before flashing anything.
cg730620 said:
Did you unlock your bootloader? It must be unlocked before flashing anything.
Click to expand...
Click to collapse
Of course i did
WiFi is not working
cg730620 said:
Hello,
I finally managed to install a custom GSI Rom with TWRP and Magisk on my Redmi 7A. And I want to share a detailed guide for everyone who is struggling to do the same. Tested with MIUI 10.2.5.0 Global. Cannot guarantee for other versions.
WARNING:
You need to backup your data before installing. I am not responsible for any damage or loss that might occur. Proceed at your own risk.
Prerequisites:
- Your bootloader must be unlocked (https://en.miui.com/unlock/)
- GSI Rom of your choice. Only a64 A/B (arm32_binder64_ab). No other GSIs will do.
- ADB and Fastboot
- patched boot.img
- TWRP recovery
- vbmeta.img
- Magisk
- Permissiver_v4.zip
- Certification patch
- Treble Overlay file
- GApps (if needed)
Installation guide:
1. Download the files.
GSI Rom:
https://forum.xda-developers.com/project-treble/trebleenabled-device-development
I installed Lineage OS 16 GSI (lineage-16.0-20191017-UNOFFICIAL-treble_a64_bvN). Everything works, except for auto-brightness.
https://forum.xda-developers.com/pr...i-lineageos-16-0-gsi-arm64-ab-how-to-t3908029
Minimal ADB and Fastboot
https://forum.xda-developers.com/showthread.php?t=2317790
Patched boot img file
(You have to choose the correct file according to your system version!)
http://www.mediafire.com/folder/zx0167qqaknc3/Redmi_7a_patched_boot
TWRP recovery
https://www.mediafire.com/file/irntn5ccdiguuuu/TWRP-20191023-3.3.1.0-pine.img/file
vbmeta file
http://www.mediafire.com/file/bgpn9b87b4t8yye/vbmeta.img/file
Magisk
https://forum.xda-developers.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445
Permissiver
http://www.mediafire.com/file/61q8wln4y18ir5k/Permissiver_v4.zip/file
Certification Patch
http://www.mediafire.com/file/fboh2jocqak8cep/Certification_Patch.zip/file
Treble Overlay file (treble-overlay-xiaomi-redmi7a.apk)
http://www.mediafire.com/file/yc7vz3vg13mcrck/treble-overlay-xiaomi-redmi7a.apk/file
GApps (for Lineage OS 16 GSI choose 'ARM' & '9.0')
https://opengapps.org/
2. Unpack Minimal ADB and Fastboot to C:\ drive of your PC
3. Rename patched boot file to boot.img
4. Rename custom recovery file to recovery.img
5. Place boot.img, recovery.img, vbmeta.img in ADB folder
6. Turn off your phone.
7. Reboot phone to fastboot mode by holding Volume-down button while pressing On/Off-button. You know you are in fastboot mode when you see a cartoon bunny.
8. Connect the phone to your PC via USB.
9. On your PC open command prompt and nagivate to ADB folder, or open command prompt window directly from right-click menu in ADB folder; just right-click on empty space and choose 'Open command prompt here'
10. In command prompt, enter the following commands:
Code:
fastboot flash boot boot.img
Code:
fastboot flash vbmeta vbmeta.img
Code:
fastboot flash recovery recovery.img
11. Now reboot to recovery: Press Volume-Up button on your phone and enter the following in command prompt:
Code:
fastboot reboot
or just turn off the phone and reboot by holding Volume-Up and On/Off button (release On/Off when phone turns on, keep holding Volume-Up until you see screen of TWRP recovery)
12. Swipe to allow modifications. If TWRP asks for PIN, enter the PIN code you set for your unlock screen.
13. In TWRP choose Wipe > Advanced Wipe. Select 'Dalvik / ART cache', 'System', 'Data', 'Cache'. Then Swipe to Wipe.
14. Move the downloaded GSI file (*.img) to your phone. (Simply drag and drop in your PC's file manager to SD-card/memory of phone).
15. Flash the GSI Rom: In TWRP choose 'Install' > 'Install Image' and select the GSI. If you put the GSI on your external SD-card you first need to choose Select Storage > Micro SD card. After choosing the GSI file, at Select Partition to Flash Image choose System Image. Then Swipe to confirm Flash.
16. Reboot to Recovery
17. Move Magisk zip and Permissiver_v4.zip to your phone.
18. In TWRP choose Install. Select the Magisk zip-file on your phone and then Swipe to confirm flash.
19. Flash Permissiver_v4.zip the same way.
20. Flash GApps if needed
21. Flash Certification_Patch.zip.
22. Go back and choose Reboot > System
23. Fix big rounded corners on home screen:
Once you are in Android and in case you experience big ugly round corners around your home screen, put treble-overlay-xiaomi-redmi7a.apk in System > Overlay directory. You need a file manager with root access if you want to do this from within Android.
24. Fix brightness adjustment issue (no auto-brightness though):
Enable USB debugging in Developer Options menu. To make developer menu appear in Android, you need to tap 7 times on Android's 'build number'.
Now open command prompt from ADB folder on your PC while your phone is still connected via USB. Enter the following:
Code:
adb shell
su
setprop persist.sys.qcom-brightness $(cat /sys/class/leds/lcd-backlight/max_brightness)
You need to allow adb shell to get root access or the command will throw an error. Your phone should show a confirmation dialog when entering the command. If it doesn't show the dialog, open Magisk Manager app and give root access for Shell in Superuser menu.
25. Enjoy!
Click to expand...
Click to collapse
I have followed every step. The wifi is not even turning on. I know there must be some small bug. Please help me clear it!
cg730620 said:
Patched boot img file
(You have to choose the correct file according to your system version!)
Click to expand...
Click to collapse
Somehow there is ver 10.2 and 10.4 missing 10.3 which is the one which I have.
What should I do?
Thanks very much for the detailed instructions!
I got it working with lineage-17-arm
Got the beta opengapps from...
https://sourceforge.net/projects/opengapps/
Before copying the treble-overlay-xiaomi-redmi7a.apk file, I had to type...
chmod a+r treble-overlay-xiaomi-redmi7a.apk
mount -o rw,remount /
I followed the steps, and i got stuck on Redmi Logo, My bootloader is unlocked.
Tried to install 2 ROMs without success.
In the second ROM (Lineage 17) when i tried to install gapps, it gave me an error saying insufficient space.
i had to get back to Miui.
Josseda673 said:
I followed the steps, and i got stuck on Redmi Logo, My bootloader is unlocked.
Tried to install 2 ROMs without success.
In the second ROM (Lineage 17) when i tried to install gapps, it gave me an error saying insufficient space.
i had to get back to Miui.
Click to expand...
Click to collapse
Before installing gapps, after installing the rom. Go to TWRP > wipe > "system" > repair > resize fs > reboot. Then install gapps.
It didn't boot after I installed gapps on lineage 16, but it was ok on lineage 17.
Redmi 7A Miui 10.3 Patcher file missing?
Does anyone know where I could find patched file for Miui 10.3, because there is only for ver 10.2 and 10.4, and I can't update miui on my phone that's why I'm asking. Thanks.
in TWRP, after instaling the ROM and trying to install gaps, or whatever I get:
Failed to mount '/system_root' (invalid argument)
I also can't mount system partition in mounting options.
What does it means?
.
After installing TWRP successfully I tried with both roms: lineage-16.0-20191017-UNOFFICIAL-treble_a64_bvN and lineage-17.0-20191117-UNOFFICIAL-treble_a64_bvN
it fails to install any apps (Magisk, permissiver, G-Apps, etc.).
Example from Magisk:
- Mounting /system
! Cannot mount /system
- Unmounting partition
...
Failed to mount "system/root" (invalid argument)
When I now try to reboot again into Recovery TWRP says "No OS Installed".
any help is appreciated!
Same
Hello!,
it's possible with MIUI 11 (PCMINXM) ? or i need to roll back to MIUI10?
Camera records corrupted videos
Any idea how to make camera record videos? Photos work, but when I try to record videos, it seems to be recording, but when I try to play it back it seems corrupted (e.g.: showing length of the video to be over 104h long - so seems like indexing problem). Tried to play with camera_config.xml at root/vendor/etc/camera but no luck so far... :crying:
P.S.: The problem seems to be independent of the app used - Open Camera with Camera2 API enabled does not change a thing.
---------- Post added at 09:16 PM ---------- Previous post was at 09:11 PM ----------
shr!pad said:
Hello!,
it's possible with MIUI 11 (PCMINXM) ? or i need to roll back to MIUI10?
Click to expand...
Click to collapse
Worked for me when flashing from Miui 11 EU - just followed the instructions with little problems.
Blazer291 said:
Any idea how to make camera record videos? Photos work, but when I try to record videos, it seems to be recording, but when I try to play it back it seems corrupted (e.g.: showing length of the video to be over 104h long - so seems like indexing problem). Tried to play with camera_config.xml at root/vendor/etc/camera but no luck so far... :crying:
P.S.: The problem seems to be independent of the app used - Open Camera with Camera2 API enabled does not change a thing.
Same thing with mine, first time i did solve it installing gapps again, but a few days later the problem got back. I´m about to update to last firmware and see if it solves the issue, ill comment later.
Click to expand...
Click to collapse
Same thing with mine, first time i did solve it installing gapps again, but a few days later the problem got back. I´m about to update to last firmware and see if it solves the issue, ill comment later.
Click to expand...
Click to collapse
Don't do that - it's too much work.
Fixed mine by editing camera_config.xml so it has only the config for the model and vendor of the camera that it actually has been fitted with. Now using Open Camera with Camera2 API everything works fine. :victory:
P.S.: So the cause of the problem really seems to be the conflict of different camera configs within the configuration file.
brother please! can you tell me how to do it? like a mini guide, i dont have magisk nor root on my phone. do i need to root it?
would appriciate it so much!!

[GUIDE][REDMI 7A] Root with Magisk on Miui 11.0.7 Global

Well, a lot of people wanting to root global miui 11.0.7 and not being able to... So I did it on my Global redmi 7a - MIUI 11.0.7 Global.
Simple though. Apart from whats being said, u can update Magisk to v20.+ after flashing
the 19 version, through the app Magisk Manager automatically installed after flashing.
Prerequisites & Downloads:
- Your bootloader must be unlocked (https://en.miui.com/unlock/)
- ADB and Fastboot -> I did on windows version, maybe can be done on linux...
- patched boot.img for miui 11.0.7 global
- vbmeta.img
- Magisk v19.3 zip -> place it on the root of your external sdcard
This is basically copied from cg730620's post [Guide][Redmi 7A] TWRP, Root with Magisk, Custom ROM [GSI][Pie] and Avedroid's vid
1 - Unlock bootloader and flash stock miui 11.0.7 recovery rom, using miflash 2017
CAREFUL! On the lower right corner check the first option, "clean all", or you may end up with a locked bootloader.
-> exactly the same from the quoted post from now on, what differs is the files and we are only flashing magisk v19.3
"2. Install Minimal ADB and Fastboot
3. Rename patched boot file to boot.img
4. Rename custom recovery file to recovery.img
5. Place boot.img, recovery.img, vbmeta.img in Program Files (x86)/Minimal ADB and Fastboot/ folder
6. Turn off your phone.
7. Reboot phone to fastboot mode by holding Volume-down button while pressing On/Off-button. You know you are in fastboot mode when you see a cartoon bunny.
8. Connect the phone to your PC via USB.
9. On your PC open command prompt and nagivate to ADB folder, or open command prompt window directly from right-click menu in ADB folder; just right-click on empty space and choose 'Open command prompt here'
10. In command prompt, enter the following commands:
Code:
Code:
fastboot flash boot boot.img
Code:
Code:
fastboot flash vbmeta vbmeta.img
Code:
Code:
fastboot flash recovery recovery.img
11. Now reboot to recovery: Press Volume-Up button on your phone and enter the following in command prompt:
or just turn off the phone and reboot by holding Volume-Up and On/Off button (release On/Off when phone turns on, keep holding Volume-Up until you see screen of TWRP recovery)
12. Swipe to allow modifications. If TWRP asks for PIN, enter the PIN code you set for your unlock screen.
13. In TWRP choose Wipe > Advanced Wipe. Select 'Dalvik / ART cache', 'System', 'Data', 'Cache'. Then Swipe to Wipe.
18. In TWRP choose Install. Select the Magisk zip-file on your phone and then Swipe to confirm flash.
Reboot to system, open Magisk, update and there u go.
Same steps of the beginning of Avedroid's video, only with modified boot.img and Magisk Version
https://www.youtube.com/watch?v=NSs08O6uGVI&t=324s
After 16:30 of the video he flashes a custom gsi rom which is not of the interest of this thread, just flash magisk.
Thanks to all who made it possible, especially Avedroid and cg730620
Post questions and answers here, please, NOT in PM.
Good luck!
Thank's it's work fine on custom gsi too, i just flash patch boot, vbmeta, finally install magisk success
I did everything right, however, when it came to installing Magisk, the following error occurred: "Updater process ended with ERROR: 1".
So I redid the whole process, but before installing Magisk I did the following: I went to Mount, I deselected the System partition and after that the installation proceeded normally.
Well, I don’t know if this is the best way to fix this problem, I don’t understand much of these things, but it ended up working for me.
Thanks for the post
I will do some tests to see if everything is working.
Can I just do this on MIUI 11.0.5 Global?
Omborkar said:
Can I just do this on MIUI 11.0.5 Global?
Click to expand...
Click to collapse
Download patched boot.img for ur rom instead of 11.0.7 boot.img I uploaded. Or patch it yourself.
I have a problem. Everytime I do the wipe it says only: "Failed to mount "vendor"(invalid argument)"
What to do?
Google play not certified... after flashing and installed magisk... Got solution??? Thanks
I've rooted my MoKee OS Android 10 rom. Can somebody help me change the system font? The font changer module in Magisk is not appearing in the search bar.
vincecabalan said:
I've rooted my MoKee OS Android 10 rom. Can somebody help me change the system font? The font changer module in Magisk is not appearing in the search bar.
Click to expand...
Click to collapse
I Tried To Root Mokee But Failed. Can You Please Tell Me How You Root Mokee
Hello, what files do I need to rename to boot.img and recovery.img? I'm lost
3. Rename the patched boot file to boot.img
4. Rename the custom recovery to recovery.img
RsAbubokor4 said:
I Tried To Root Mokee But Failed. Can You Please Tell Me How You Root Mokee
Click to expand...
Click to collapse
Extract boot.img of installer mokee.zip Patch boot image https://patcher.yaalex.xyz/ select include magisk Expect to do uploud after downloading rename boot.img sdcard Go twrp flash boot install magisk manager apk
Credit to @idcamper
vincecabalan said:
Extract boot.img of installer mokee.zip Patch boot image https://patcher.yaalex.xyz/ select include magisk Expect to do uploud after downloading rename boot.img sdcard Go twrp flash boot install magisk manager apk
Credit to @idcamper
Click to expand...
Click to collapse
I did according to this advice, uploaded boot.img to this site. Magisk works, but Wifi won't work . When I uploaded boot.img, Wifi works, then it shows that Magisk is not installed, but it was installed.
speed_cars said:
I did according to this advice, uploaded boot.img to this site. Magisk works, but Wifi won't work . When I uploaded boot.img, Wifi works, then it shows that Magisk is not installed, but it was installed.
Click to expand...
Click to collapse
try this process after flash zip of the last magisk from reset factory
Can i do this on miui 11.0.3.0 indian rom based on Android 10. If yes then i need recovery.img pls help.
4. Rename custom recovery file to recovery.img
- where i can download this?, or this is the outcome of step 1?
Everything works fine, exept password. When i set new password, let's say it is 1234, i set the password in the setting, then i press the power button for lock screen, i put the password in as usual, but it just says try again over and over, im pretty sure that it is not my fault. Thanks for reply.
Anyone have patched boot 11.0.4?
jurubebaamarga said:
Well, a lot of people wanting to root global miui 11.0.7 and not being able to... So I did it on my Global redmi 7a - MIUI 11.0.7 Global.
Simple though. Apart from whats being said, u can update Magisk to v20.+ after flashing
the 19 version, through the app Magisk Manager automatically installed after flashing.
Prerequisites & Downloads:
- Your bootloader must be unlocked (https://en.miui.com/unlock/)
- ADB and Fastboot -> I did on windows version, maybe can be done on linux...
- patched boot.img for miui 11.0.7 global
- vbmeta.img
- Magisk v19.3 zip -> place it on the root of your external sdcard
This is basically copied from cg730620's post [Guide][Redmi 7A] TWRP, Root with Magisk, Custom ROM [GSI][Pie] and Avedroid's vid
1 - Unlock bootloader and flash stock miui 11.0.7 recovery rom, using miflash 2017
CAREFUL! On the lower right corner check the first option, "clean all", or you may end up with a locked bootloader.
-> exactly the same from the quoted post from now on, what differs is the files and we are only flashing magisk v19.3
"2. Install Minimal ADB and Fastboot
3. Rename patched boot file to boot.img
4. Rename custom recovery file to recovery.img
5. Place boot.img, recovery.img, vbmeta.img in Program Files (x86)/Minimal ADB and Fastboot/ folder
6. Turn off your phone.
7. Reboot phone to fastboot mode by holding Volume-down button while pressing On/Off-button. You know you are in fastboot mode when you see a cartoon bunny.
8. Connect the phone to your PC via USB.
9. On your PC open command prompt and nagivate to ADB folder, or open command prompt window directly from right-click menu in ADB folder; just right-click on empty space and choose 'Open command prompt here'
10. In command prompt, enter the following commands:
Code:
Code:
fastboot flash boot boot.img
Code:
Code:
fastboot flash vbmeta vbmeta.img
Code:
Code:
fastboot flash recovery recovery.img
11. Now reboot to recovery: Press Volume-Up button on your phone and enter the following in command prompt:
or just turn off the phone and reboot by holding Volume-Up and On/Off button (release On/Off when phone turns on, keep holding Volume-Up until you see screen of TWRP recovery)
12. Swipe to allow modifications. If TWRP asks for PIN, enter the PIN code you set for your unlock screen.
13. In TWRP choose Wipe > Advanced Wipe. Select 'Dalvik / ART cache', 'System', 'Data', 'Cache'. Then Swipe to Wipe.
18. In TWRP choose Install. Select the Magisk zip-file on your phone and then Swipe to confirm flash.
Reboot to system, open Magisk, update and there u go.
Same steps of the beginning of Avedroid's video, only with modified boot.img and Magisk Version
After 16:30 of the video he flashes a custom gsi rom which is not of the interest of this thread, just flash magisk.
Thanks to all who made it possible, especially Avedroid and cg730620
Post questions and answers here, please, NOT in PM.
Good luck!
Click to expand...
Click to collapse
I wish to obtain root / access to magisk,
Wanting to know if I can do this without losing data (having to delete system data)
Thank you
Hello.
So I was trying to root my Redmi 7A - v10.2.1 with TWRP 3.3.1 but now I am stuck in a bootloop.
What I did:
1. Flash boot.img
2. Flash recovery.img
3. Flash vbmeta.img
4. reboot
Phone rebooted to system and TWRP was installed.
Then I booted to TWRP to install Magisk-v23.0.zip,
I went to Advanced Wipe, then wiped 'Dalvik / ART cache', 'System', 'Data', 'Cache'.
When I rebooted, it went into a bootloop, when I go to TWRP it says 'No OS INSTALLED".
What did I do wrong? And how to recover?
Thanks.
Cinox said:
I did everything right, however, when it came to installing Magisk, the following error occurred: "Updater process ended with ERROR: 1".
So I redid the whole process, but before installing Magisk I did the following: I went to Mount, I deselected the System partition and after that the installation proceeded normally.
Well, I don’t know if this is the best way to fix this problem, I don’t understand much of these things, but it ended up working for me.
Thanks for the post
I will do some tests to see if everything is working.
Click to expand...
Click to collapse
Im also getting the same error,, but what do you mean by "deselected the System partition". I see "system_root" in Mount but not "System"

[OFFICIAL] Motorola Edge 5G Racer TWRP

The developers have a lot going on at the moment, i know many have been asking for it, now that it is Official, i think it's safe enough for Public Use. I'm sure the DEVs will post a "more Official" Thread in the right spot. I did not post under Recovery because that is for DEV Use ONLY.
Official TWRP img and Installer zip : https://twrp.me/motorola/motorolamotoedge.html
***Dont forget to flash copy-partitions.zip if you are flashing a Custom ROM. The main device trees now include this, meaning it comes with MOST, NOT ALL, Custom ROMs. YOU WILL NOT BREAK ANYTHING, if the Custom ROM you are flashing already includes this and you flash the copy-partitions.zip. Better to be safe then sorry. This is required anytime you fastboot flash back to STOCK Firmware.INSTALL "Copy Partitions Zip" FROM POST #2
Installation:
NOTE: Your bootloader MUST be UNLOCKED before booting or installing TWRP If you already have TWRP installed: Download the latest zip and install the zip using TWRP, or flash directly the image directly to recovery in fastboot. If you do not already have TWRP installed: Download both the img and the zip. Copy the zip to your device. You will need to have the latest fastboot binaries and the correct drivers installed. Power off your device completely. Hold volume down and turn on the device. Your device should now be in the bootloader menu. Connect the device to your PC. Open a command window and run the following command from the proper location:
Zip method: fastboot boot path/to/twrp.img
This will temporarily boot TWRP on your device. Use ADB or MTP to push the zip onto your device:
adb push path/to/twrp.zip /sdcard
Go to install and browse to the zip and install the zip. The zip will install TWRP on recovery partition of both slots.
Image Method: fastboot flash recovery_ path/to/twrp.img
Moto_Fan said:
The developers have a lot going on at the moment, i know many have been asking for it, now that it is Official, i think it's safe enough for Public Use. I'm sure the DEVs will post a "more Official" Thread in the right spot. I did not post under Recovery because that is for DEV Use ONLY.
Official TWRP img and Installer zip : https://twrp.me/motorola/motorolamotoedge.html
***Dont forget to flash copy-partitions.zip if you are flashing a Custom ROM. The main device trees now include this, meaning it comes with MOST, NOT ALL, Custom ROMs. YOU WILL NOT BREAK ANYTHING, if the Custom ROM you are flashing already includes this and you flash the copy-partitions.zip. Better to be safe then sorry. This is required anytime you fastboot flash back to STOCK Firmware.INSTALL "Copy Partitions Zip" FROM POST #2
Installation:
NOTE: Your bootloader MUST be UNLOCKED before booting or installing TWRP If you already have TWRP installed: Download the latest zip and install the zip using TWRP, or flash directly the image directly to recovery in fastboot. If you do not already have TWRP installed: Download both the img and the zip. Copy the zip to your device. You will need to have the latest fastboot binaries and the correct drivers installed. Power off your device completely. Hold volume down and turn on the device. Your device should now be in the bootloader menu. Connect the device to your PC. Open a command window and run the following command from the proper location:
Zip method: fastboot boot path/to/twrp.img
This will temporarily boot TWRP on your device. Use ADB or MTP to push the zip onto your device:
adb push path/to/twrp.zip /sdcard
Go to install and browse to the zip and install the zip. The zip will install TWRP on recovery partition of both slots.
Image Method: fastboot flash recovery_ path/to/twrp.img
Click to expand...
Click to collapse
Having a problem, even unlocking the bootloader. Unlock my device, doesn't show a blue button, and msg, says"it can't be unlocked" . In any case, I downloaded all the software that was on page, when I can figure this out.
reggjoo said:
Having a problem, even unlocking the bootloader. Unlock my device, doesn't show a blue button, and msg, says"it can't be unlocked" . In any case, I downloaded all the software that was on page, when I can figure this out.
Click to expand...
Click to collapse
If you can't go passed #1, don't go any further, but I can only recommend.

Categories

Resources