[ROM] [GSI] [AOSP] [10] [A041C] [PhhTreble] CUBOT NOTE 7 - Miscellaneous Android Development

Before doing any of this, I am not responsible of any bricked devices, carefully read everything I written before doing anything. I wish you the best luck . You do it once and you will know how to do it every other time.
Spoiler: Minor bug
Keep in mind with this GSI the home screen (custom too) and quick settings will be choppier than on stock firmware on idle (when I charge up the battery it is less noticeable), this can be less annoying by disabling all animations in developer options.
Spoiler: Magisk
Magisk with TWRP
If you want to flash magisk you need TWRP and only place to download it i unofficialtwrp for the phone (be careful what you do while flashing it and DO NOT FLASH orange-Red-state-disabler because your phone will not boot after you flash it and reboot) and when you have it installed you download magisk apk, rename magisk.apk to magisk.zip, put it on an SD card because internal storage is encrypted and flash. If you get issues you will need to download V12 Firmware and reflash all of it using SP Flash tool, but when I did it the phone generated a new IMEI??? I fixed that using MAUI Meta and the IMEI was working after that so when I flashed modded magisk boot img from V12 firmware it all worked.
Magisk with official app
If you want to flash Magisk using magisk app and you are on latest firmware V15 you can’t do it by using Magisk app because every link to the V15 firmware is dead (but if you are on V12 you are lucky because the link for it is alive ) but you do get a working SuperUser app in the GSI if that’s enough. If you want Magisk, your boot img needs to match the firmware or stuff like WIFI will not work because the kernel does not match the rest of the firmware. That means you need to use the SP Flash Tool to completely reflash the whole firmware, but when I did it the phone generated a new IMEI??? I fixed that using MAUI Meta and the IMEI was working after that so when I flashed modded magisk boot img from V12 firmware it all worked.
-----------------
Spoiler: Known issues
Known issues:
So far none besides what I mentioned in minor bug.
-----------------
Spoiler: Things needed
Things needed:
Computer running Windows XP or newer
Phone itself booted into Android and a USB cable
ADB and Fastboot driver with Platform-Tools (there is a tutorial on my youtube channel how to use it)
ZIP file attached below
Phh Terble GSI (only these builds worked for me):
Full gappps
GO Gapps
AOSP Vanilla
If you want to use anything but Phh Treble you need to find an Android 10 arm32 binder64 ab image.
Time and Patience.
------------------------
Spoiler: Preparation
Preparation:
In phone settings, go to about phone and last thing which says "Build Number" tap it 7 times to unlock developer options, go back and go to System, Advanced and developer options.
In developer options, scroll down to "USB Debugging" and toggle it.
Plug the phone into the computer, and on the computer go to platform-tools folder and in the toolbar (thing which shows the path to folder) type cmd.exe.
in command prompt, type in adb devices, and the phone should have a popup asking to allow this computer, check the "Always allow from this computer" option and tap OK.
When you have ADB and Fastboot and Platform-Tools on your computer download the ZIP attached below, open it and copy all the files from it into your platform-tools folder, than download the GSI, open it, copy the img file in the same platform-tools folder and rename it to system.img if you want for convinience.
---------------------
Spoiler: Procedure
Procedure:
In CMD type:
Code:
fastboot reboot bootloader
Now type these commands seperately
Code:
fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
Code:
fastboot --disable-verity --disable-verification flash vbmeta_system vbmeta_system.img
Code:
fastboot --disable-verity --disable-verification flash vbmeta_vendor vbmeta_vendor.img
Code:
fastboot reboot fastboot
Computer will say <Waiting for device> and when the phone boots into fastbootd computer will detect it
Now type in:
Code:
fastboot flash product product_gsi.img
Code:
fastboot flash system system.img
Code:
fastboot –w
Code:
fastboot reboot
If there is a wrong resolution boot screen and the phone boots congratulations your phone is now running a GSI

Delete

Smedslund said:
Delete
Click to expand...
Click to collapse
cant delete myself from what i seen so i reported myself and will get deleted at one point, i moved to here
*REMOVED LINK*
and let me know if I made the same mistake
EDIT: The thread has been moved to the right place by itself and the repost had been deleted. I am glad this is over.

Related

[Guide] How to flash Q GSI on OP6/T

Warning
Not for faint hearts. Proceed at your own risk.
Note: Before You can flash any GSI, You have to unlock Your bootloader. Back up your N**es if you haven't yet.
Objective:
The objective of this guide is to install Q GSI. I will predominantly concentrate on Erfan's GSI (pixel and Google Generic GSI) found on his telegram group. This should work for any other functional GSI just fine though. This guide is tested on OP6 but I really dont find any reason why it wouldn't work on OP6T. Test it at your own risk and report if it works.
Requirements:
OP6 with unlocked bootloader
OOS 9.0.7 (or equivalent for OP6T) flashed to both slots (important!)
Latest ADB and fastboot installed
Knowledge to use ADB and fastboot
GSI image (This guide will be focused on Erfarn's GSI)
Permisiver-V4.zip from here
TWRP (I used blu spark v9.101)
OOS 9.0.7 Boot and vbmeta Warning: DONOT USE THESE FOR OP6T! Extract them from OOS 9.0.7 equivalent for 6T yourself
The Guide:
1. Flash OOS 9.0.7 (or equivalent for 6T) to both slots.
2. Reboot to bootloader and flash the following:
Code:
fastboot flash boot_a boot.img
fastboot flash boot_b boot.img
fastboot flash system_a GSI.img
fastboot flash system_b GSI.img
fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
All those should be flashed in one go without rebooting. boot and vbmeta are those taken from OOS stock rom.
3. Boot twrp from fastboot (without rebooting from fastboot)
4. Factory reset
5. Flash permisiver-V4.zip (push with adb if not available)
6. Pull "/vendor/build.prop" to PC, find the below line and comment it by prepending a "#" and push it back into same location
Code:
ro.frp.pst=/dev/block/bootdevice/by-name/config
7. Flash magisk if required
8. Reboot​
Credits:
Erfan - GSI used for the guide, permisiver
Known issues:
Fingerprint sensor doesn't work after 1st reboot (No fix at this time)
Dash charge seem not to work (unclear for now)
OBB files have issue. Known issue on DP5.
Can't finish device setup (Follow fix for "No audio on Call" )
No audio on call
1. Install this GMS version
2. Grant all permission to Google Play Services
3. Finish device setup from the notification
No camera available
1. Go to developer settings and turn off "Camera Laser Sensor"
2. Download OOS camera from here and install
Pixel launcher might crash upon reboot
1. Delete /vendor/overlays folder using root or from twrp
in-call audio always routed through Speaker.
Note: The below fix is a temporary, dirty fix. Will update this when a better fix is found
Edit "/system/vendor/etc/audio_policy_configuration.xml" and add this to <attachedDevices> node.
Code:
<item>Earpiece</item>
so your final result looks like:
Code:
<attachedDevices>
<item>Earpiece</item>
<item>Speaker</item>
<item>Built-in Mic</item>
<item>Built-in Back Mic</item>
</attachedDevices>
Note: It is fine if you have extra or less items. You only have to worry about "Earpiece"
vijai2011 said:
Warning
Not for faint hearts. Proceed at your own risk.
Note: Before You can flash any GSI, You have to unlock Your bootloader. Back up your N**es if you haven't yet.
Objective:
The objective of this guide is to install Q GSI. I will predominantly concentrate on Erfan's GSI (pixel and Google Generic GSI) found on his telegram group. This should work for any other functional GSI just fine though. This guide is tested on OP6 but I really dont find any reason why it wouldn't work on OP6T. Test it at your own risk and report if it works.
Requirements:
OP6 with unlocked bootloader
OOS 9.0.7 (or equivalent for OP6T) flashed to both slots (important!)
Latest ADB and fastboot installed
Knowledge to use ADB and fastboot
GSI image (This guide will be focused on Erfarn's GSI)
Permisiver-V4.zip from here
TWRP (I used blu spark v9.101)
OOS 9.0.7 Boot and vbmeta Warning: DONOT USE THESE FOR OP6T! Extract them from OOS 9.0.7 equivalent for 6T yourself
The Guide:
1. Flash OOS 9.0.7 (or equivalent for 6T) to both slots.
2. Reboot to bootloader and flash the following:
Code:
fastboot flash boot_a boot.img
fastboot flash boot_b boot.img
fastboot flash system_a GSI.img
fastboot flash system_b GSI.img
fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
All those should be flashed in one go without rebooting. boot and vbmeta are those taken from OOS stock rom.
3. Boot twrp from fastboot (without rebooting from fastboot)
4. Factory reset
5. Flash permisiver-V4.zip (push with adb if not available)
6. Pull "/vendor/system.prop" to PC, find the below line and comment it by prepending a "#" and push it back into same location
Code:
ro.frp.pst=/dev/block/bootdevice/by-name/config
7. Flash magisk if required
8. Reboot​
Click to expand...
Click to collapse
Hello thanks for this amazing guide. I am stuck at the 6th step. Could you please clarify on them. Using TWRP File Manager shows no system.prop and adb pull also failed. If you could clarify on this step a little. Thanks in Advance.
Mannan Qamar said:
Hello thanks for this amazing guide. I am stuck at the 6th step. Could you please clarify on them. Using TWRP File Manager shows no system.prop and adb pull also failed. If you could clarify on this step a little. Thanks in Advance.
Click to expand...
Click to collapse
Mount vendor partition
Sorry if it's a dumb question, but I understood till step 5. Could someone please help me better with Step 6? The pull, vendor,....push. Really want to get this Pixel GSI to work.
vijai2011 said:
Mount vendor partition
Click to expand...
Click to collapse
Already did. Still same. We'd all appreciate it if you could clarify on that step with some more instructions as to how to pull and then push said file. Thanks
For step six
Use twrp file manager(advanced option)
Move system prop from /vendor to /sdcard(internal storage is called sdcard)
Edit the prop via pc
Put it back into internal storage
Move it again from /sdcard to /vendor
VaSU# said:
For step six
Use twrp file manager(advanced option)
Move system prop from /vendor to /sdcard(internal storage is called sdcard)
Edit the prop via pc
Put it back into internal storage
Move it again from /sdcard to /vendor
Click to expand...
Click to collapse
Hi, thanks. I already checked and there is no system.prop in /vendor.
Mannan Qamar said:
Hi, thanks. I already checked and there is no system.prop in /vendor.
Click to expand...
Click to collapse
Sorry, corrected it. It should be "/vendor/build.prop" and not "/vendor/system.prop"
Also, if you wish to do it entirely in adb from recovery, the steps are:
Code:
adb shell
cp /vendor/build.prop /sdcard
exit
adb pull /sdcard/build.prop .
Then modify the file and again,
Code:
adb push build.prop /sdcard
adb shell
cp -f /sdcard/build.prop /vendor/build.prop
I would say doesnt boot on 6T.
ashokmor007 said:
I would say doesnt boot on 6T.
Click to expand...
Click to collapse
If you got to the point of bootlooping at the OS boot animation (not bootloader splash screen), it could be incompatibility issue. But if you didn't even make it to that point, I'd say something was not done right
Could someone pm me with some extra help on step 6? Really sorry. Also, would love if it can be done via TWRP itself
---------- Post added at 04:46 PM ---------- Previous post was at 04:45 PM ----------
sohailss111 said:
Could someone pm me with some extra help on step 6? Really sorry. Also, would love if it can be done via TWRP itself
Click to expand...
Click to collapse
Has anyone managed to boot it on the OP6?
cant fix de speaker problem ... can u send me that file pls
In the op6/t we have official Q so what's the benefits of this q version?
i found a quick fix for fingerprint ... now this rom is complete
@vijai2011
stuck on splash screen
did all steps 2 times to be sure
using dp6
correction :-
the vendor the incomptible ( need to use vendor from oos dp3 )
flash the oos dp3 and then do the step
works then
but still we lost fastboot boot command because latest BL from dp3 oos is not having that command and you need to use boot img from this post for a recovery since you cant use fastboot boot command
https://forum.xda-developers.com/oneplus-6/development/rom-pixel-3-xl-port-oneplus-6-t3856031
use vbmeta and boot image from this post
correction 2 :-
you can use normal steps also
1. flash oos zip 2 times to get on both slot
2. flash the gsi
3. flash dm verity disabler https://zackptg5.com/android.php#disverfe
4. flash magisk

[MAGISK][ROOT][BOOT.IMG] How to patch the Oneplus 8, 8T and 8 Pro stock Boot Image (boot.img) from the currently installed Stock ROM

Quick and concise how to for obtaining a Stock Boot Image from your Oneplus 8, 8T or 8 Pro device and patching with Magisk to create a fastboot flashable patched boot.img.
DISCLAIMER:
Code:
#include <std_disclaimer.h>
/*
*
* We are not responsible for bricked, broken or dead devices. This is a high-level
* how to for users with a basic knowledge of ADB and Fastboot. YOU alone are
* choosing to make these modifications, and you are solely responsible for your
* device's fit for use and wellbeing.
*
* Backup your data!
*
*/
PREREQUISITS:
An unpatched Stock Boot.img running on your device
General knowledge and understanding of ADB and Fastboot
Download latest op8, op8p, or op8t Horizon Kernel img from [e.g., op8p_7.img]:
https://dl.akr-developers.com/?dir=oneplus/horizon_kernel/R/images
Download latest Magisk Canary build from Github [e.g., app-debug.apk]:
https://raw.githubusercontent.com/topjohnwu/magisk_files/canary/app-debug.apk
DEVICE/PC OPERATIONS:
→ ADB
Enumerate devices
Code:
adb devices
Boot into Fastboot
Code:
reboot bootloader
→ FASTBOOT
Enumerate devices
Code:
fastboot devices
Determine the current slot (A/B), whichever slot you're on should be the "good" img
Code:
fastboot getvar current-slot
Boot with the custom kernel downloaded from Horizon to use root [NOTE: Include the full path of the img if not in the same directory]
e.g., fastboot boot "C:\Users\User\Downloads\op8p_R7.img"​
Code:
fastboot boot xxxxxxx.img
→ ADB
Copy the boot.img from each slot to the root of the device
Code:
adb shell
su
dd if=/dev/block/sde11 of=/sdcard/boot_a.img
dd if=/dev/block/sde35 of=/sdcard/boot_b.img
→ Android Device [NOTE: Some Android 11 devices experience patching issues on the Beta Channel like bootloop] [NOTE: Some users experience issues on Canary like no SIM detected; if so switch to Beta]
Install Magisk app-debug.apk (Canary)
Go to Settings → Update Channel → Canary
Go to Home → Install → Install → Select and Patch A File
Navigate to internal storage and select the stock boot.img [choose the img from whichever slot you're on]
When it’s done patching copy the file, named magisk_patched.img, from the root → Downloads of your device to PC
→ ADB
Code:
reboot bootloader
→ FASTBOOT
Test to ensure it boots before flashing; if not you'll need to patch the other img
Code:
fastboot boot magisk_patched.img
→ Android Device
If the device boots and you have root in the Magisk Manager app, reboot the device into Fastboot then flash the active slot [NOTE: Both slots do not need to be flashed; just the current active slot]
→ FASTBOOT
Flash the patched image file [NOTE: Include the full path of the img if not in the same directory]
e.g., fastboot flash boot_b "C:\Users\User\Downloads\magisk_patched.img"
Code:
fastboot flash boot magisk_patched.img
fastboot reboot
- OR -​
Code:
fastboot flash boot_a magisk_patched.img
fastboot reboot
- OR -​
Code:
fastboot flash boot_b magisk_patched.img
fastboot reboot
ADDITIONAL RESOURSES:
→ FASTBOOT
If you need to set the other slot to be the active slot use:
Code:
fastboot --set-active=a
- OR -​
Code:
fastboot --set-active=b
→ ADB
ADB Magisk Bootloop Fix
Code:
adb shell
magisk --remove-modules
→ OTA Help
Magisk stock boot.img missing fix [NOTE: Android 11 onwards, the /sbin folder might not exist, so Magisk will randomly create a folder under /dev and use it as the base folder]
Rename to: stock_boot_0.img
Compress with gzip = stock_boot_0.img.gz
Copy stock_boot_0.img.gz file to the root of: /data
Edit the config file: /dev/xxxxxxx/.magisk/config → Change SHA1= to 0
Magisk Manager → Uninstall Magisk → Restore Images
→ ADB
Determine the random folder name generated by Magisk on Android 11+
Code:
ls -laR /dev | grep '.magisk/rootdir'
→ ADB
Determine the Boot Image partition location [NOTE: Will list all partitions; look for boot_a and boot_b]
Code:
ls /dev/block/bootdevice/by-name/ -all
Tried some other way on android 11 but failed, so back to android 10.
maybe i won't get android 11 until TWRP is work.
can't easily backup data without root is very annoying, thanks for the work!
I have followed every step, but root only last until I restart my Oneplus.
What am I doing wrong? Why want the device stay rooted?
mrram said:
I have followed every step, but root only last until I restart my Oneplus.
What am I doing wrong? Why want the device stay rooted?
Click to expand...
Click to collapse
Guessing here, but have a second look at these two commands:
Code:
fastboot boot magisk_patched.img
△ This will NOT flash the rooted image, it will only boot up once so you can test it or use it for temporary root
verses
Code:
fastboot flash boot magisk_patched.img
▲ This will flash the rooted image and is used after you've tested the patched image to be sure it doesn't bootloop and to have persistent root
If I use this Horizon kernel to boot with root on 11.0.4.4, could I use directly Magisk 22.0 to root the device permanently? Thanks in advance.
MagikGab said:
If I use this Horizon kernel to boot with root on 11.0.4.4, could I use directly Magisk 22.0 to root the device permanently? Thanks in advance.
Click to expand...
Click to collapse
I only use the Horizon to boot then grab my kernel to patch with Magisk. You could use the Horizon kernel, but you would have to flash it, not just boot it. So, root device, backup stock dtbo, flash Horizon & dtbo, re-root if lost during flash. I would recommend against that until there's a custom recovery available in case there were any issues. Additionally, you must backup your stock dtbo if you ever want to return to stock. You should visit the Horizon thread for more details, but again if you're not familiar with kennel mods you might not want to start learning on a device without a custom recovery.
CarvedArt said:
I only use the Horizon to boot then grab my kernel to patch with Magisk. You could use the Horizon kernel, but you would have to flash it, not just boot it. So, root device, backup stock dtbo, flash Horizon & dtbo, re-root if lost during flash. I would recommend against that until there's a custom recovery available in case there were any issues. Additionally, you must backup your stock dtbo if you ever want to return to stock. You should visit the Horizon thread for more details, but again if you're not familiar with kennel mods you might not want to start learning on a device without a custom recovery.
Click to expand...
Click to collapse
I'd like only to root my device, remaining as more stock as possible, for now. If I want to avoid using a custom kernel (also for the rooting process), should I extract the boot.img with Python, then patch it with Magisk 22? Thanks in advance for your reply, but I'm coming from a Xiaomi that was quite easier to root
MagikGab said:
I'd like only to root my device, remaining as more stock as possible, for now. If I want to avoid using a custom kernel (also for the rooting process), should I extract the boot.img with Python, then patch it with Magisk 22? Thanks in advance for your reply, but I'm coming from a Xiaomi that was quite easier to root
Click to expand...
Click to collapse
Just follow the steps above -- that'll get you a stock kernel (your current kernel) patched with Magisk and permanently rooted. The above process is only using the Horizon kernel to boot your device with root so that you can extract your kernel and patch it. The final result will be as stock as you can get with root.
Hey everyone. OP8 Pro user here. Just took OTA going from 11.0.9.9 running Magisk Canary 23 to the newest 11.0.10.10. I restored images before taking the OTA and reinstalled magisk to the other slot like I always do to retain root. Ive now lost root and am trying to boot the last two versions of the Horizon kernel. Ive tried the two latest ones (r9.2 and r9.2.1 from February 2021) and while they do boot my phone, I cant get SU access to extract the stock images.
Anything else that anyone things I should try? All i want from Christmas is root.
Isn't there a more easy way to obtain root?
That's strange. I use OnePlus smartphones with LineageOS for years now and cannot remember to execute such a complicated procedure. Just now I got a OnrPlus 8, installed LineageOS and Magisk and restored my apps with Titanium. So, it definitely worked.
Now, after a Lineage system update, root is gone.
Unfortunately I cannot tell exactly how I installed Magisk. I have a very poor memory. Think I just installed the app and said either just "install" or patched the zip with TRWP
But I definitely never downloaded or extracted any boot image manually.
Has anyone an explanation for this?
Even more strange: I just tried to flash magisk.zip again with TRWP. Now it tells me
"Magisk patched boot image detected"
and later:
"Failed to mount '/system_root' (Device or resource busy)"
After reboot the Magisk app now offers me three choices in the install tab:
- choose a file and patch (only this one existed before)
- direct installation (recommended)
- install into inactive slot (after OTA)
I don't understand the last one and tried the recommendet one.
Now, root is there again. Do I have to do this after each update? With my OnePlus5 I didn't.
Unfortunately I have another problem with my OnePlus8 and Lineage:
I'm using AdAway which replaces the hosts file, but on my OP8 it cannot.
"Unable to cppy the hosts file to /System partition. Please check if the Magisk Systemless module is active"
What does it mean? The Magisk app says: "ramdisk yes"
tosho1 said:
Unfortunately I have another problem with my OnePlus8 and Lineage:
I'm using AdAway which replaces the hosts file, but on my OP8 it cannot.
"Unable to cppy the hosts file to /System partition. Please check if the Magisk Systemless module is active"
What does it mean? The Magisk app says: "ramdisk yes"
Click to expand...
Click to collapse
Magisk → Settings (Gear icon) → Systemless hosts ← Click it
tosho1 said:
Isn't there a more easy way to obtain root?
That's strange. I use OnePlus smartphones with LineageOS for years now and cannot remember to execute such a complicated procedure. Just now I got a OnrPlus 8, installed LineageOS and Magisk and restored my apps with Titanium. So, it definitely worked.
Now, after a Lineage system update, root is gone.
Unfortunately I cannot tell exactly how I installed Magisk. I have a very poor memory. Think I just installed the app and said either just "install" or patched the zip with TRWP
But I definitely never downloaded or extracted any boot image manually.
Has anyone an explanation for this?
Even more strange: I just tried to flash magisk.zip again with TRWP. Now it tells me
"Magisk patched boot image detected"
and later:
"Failed to mount '/system_root' (Device or resource busy)"
After reboot the Magisk app now offers me three choices in the install tab:
- choose a file and patch (only this one existed before)
- direct installation (recommended)
- install into inactive slot (after OTA)
I don't understand the last one and tried the recommendet one.
Now, root is there again. Do I have to do this after each update? With my OnePlus5 I didn't.
Click to expand...
Click to collapse
LineageOS is not the stock ROM so it's slightly different and not covered in this thread.
Thank you, CarvedArt. I wasn't aware of this.
Does anyone have the latest stable Android 13 patched boot image for the IN2015 that they can share with me ?

Looking for a walkthrough on installing a custom ROM on a BLU G90 PRO

I need WIFI calling enabled and non of the unlocked phones they sell at Best Buy or Amazon come with the feature activated. It is literally not listed in the settings I am looking at installing a custom ROM with WIFI calling activated like it is on my old Samsung A50. I honestly don't know the first thing about the root program that android runs on so I am looking for someone that has patience that can help a noob.
I have watched many youtube videos on this topic but I have found nothing on my specific phone.
Thanks in advance
Anubis2002 said:
I need WIFI calling enabled and non of the unlocked phones they sell at Best Buy or Amazon come with the feature activated. It is literally not listed in the settings I am looking at installing a custom ROM with WIFI calling activated like it is on my old Samsung A50. I honestly don't know the first thing about the root program that android runs on so I am looking for someone that has patience that can help a noob.
I have watched many youtube videos on this topic but I have found nothing on my specific phone.
Thanks in advance
Click to expand...
Click to collapse
About ROOT: https://forum.xda-developers.com/t/...attery-charge-limit-root-application.4251443/
About GSI: You not need TWRP. But if you want backup your userdata so need install that.
All depend about your decision: I'm install GSI and test. I chose the perfect GSI for me; so I don't need the backup => you not need custom recovery so use stock recovery.
I want GSI and need backup => need TWRP.
In the true both recoveries [stock & TWRP] has the fastbootd implemented!
So you need:
1- unlock bootloader;
2- stock or specific vbmeta file;
3- know how use fastboot commands for flash GSI;
4- Every time is more security flashing Custom ROMs if you have stock ROM!
Are you ready for flash GSI??!
Even if something goes wrong and you can't "revive" the device again?
Do you have everything it takes to feel relaxed if something goes wrong or successful?!!
I can put the instructions myself. But I will never be responsible for your actions and choices.​So make up your mind!
lopestom said:
About ROOT: https://forum.xda-developers.com/t/...attery-charge-limit-root-application.4251443/
About GSI: You not need TWRP. But if you want backup your userdata so need install that.
All depend about your decision: I'm install GSI and test. I chose the perfect GSI for me; so I don't need the backup => you not need custom recovery so use stock recovery.
I want GSI and need backup => need TWRP.
In the true both recoveries [stock & TWRP] has the fastbootd implemented!
So you need:
1- unlock bootloader;
2- stock or specific vbmeta file;
3- know how use fastboot commands for flash GSI;
4- Every time is more security flashing Custom ROMs if you have stock ROM!
Are you ready for flash GSI??!
Even if something goes wrong and you can't "revive" the device again?
Do you have everything it takes to feel relaxed if something goes wrong or successful?!!
I can put the instructions myself. But I will never be responsible for your actions and choices.​So make up your mind!
Click to expand...
Click to collapse
I also have the Blu G90 Pro and trying to get root , could you please give me detailed instructions on using magisk or how to flash with trwp, i have flashed trwp through fastboot but cant decrypt data and when you restart device it reverts back to stock recovery.
also cant find stock firmware for this version BLU_G0370WW_V10.0.04.03_GENERIC to use magisk to patch boot.img
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
EdsterX71 said:
I also have the Blu G90 Pro and trying to get root , could you please give me detailed instructions on using magisk or how to flash with trwp, i have flashed trwp through fastboot but cant decrypt data and when you restart device it reverts back to stock recovery.
Click to expand...
Click to collapse
Spoiler: Unlock & Install Custom recovery - BLU G90 Pro
- OEM Unlock - select
- USB Debugging - select
cmd command:
Code:
adb devices
Code:
adb reboot bootloader
(or use the menu option).
The screen should show "FASTBOOT mode" at the bottom of the screen in small font.
cmd command:
Code:
fastboot flashing unlock
or
Code:
fastboot flashing unlock_critical
Read phone screen for instructions.
You will have to press volume up key to continue to unlock.
- Reboot phone. Setting again without data info. Power off.
Power & VOL+ to show FASTBOOT mode - recovery
Go to stock recovery and make WIPE data/factory reset & WIPE cache partitions.
Spoiler: Install Custom recovery
stock recovery - bootloader => fastboot (not fastbootd)
cmd command:
Code:
fastboot --disable-verity --disable-verification flash vbmeta vbmetaAndroidSC_mod.img
cmd command:
Code:
fastboot flash recovery recoveryTWRP350_G0370WW.img
cmd command:
Code:
fastboot reboot-recovery
File download from my github: TWRP3.5.0_10 BLU G90 PRO
EdsterX71 said:
also cant find stock firmware for this version BLU_G0370WW_V10.0.04.03_GENERIC to use magisk to patch boot.imgView attachment 5337319
Click to expand...
Click to collapse
About updated ROM version: You can remove/copy all partitions from last version any time. So boot.img or recovery.img can have with SPFT Read Back process with scatter file from v10.0.03.03 stock ROM.
Stock ROM G90 Pro BLU_G0370WW_V10.0.03.03
ROOT: Simple. Use custom recovery and flashing magisk-zip
or if you have boot.img stock so use magisk manager to have boot_patched.img and flash via fastboot.
lopestom said:
Spoiler: Unlock & Install Custom recovery - BLU G90 Pro
- OEM Unlock - select
- USB Debugging - select
cmd command:
Code:
adb devices
Code:
adb reboot bootloader
(or use the menu option).
The screen should show "FASTBOOT mode" at the bottom of the screen in small font.
cmd command:
Code:
fastboot flashing unlock
or
Code:
fastboot flashing unlock_critical
Read phone screen for instructions.
You will have to press volume up key to continue to unlock.
- Reboot phone. Setting again without data info. Power off.
Power & VOL+ to show FASTBOOT mode - recovery
Go to stock recovery and make WIPE data/factory reset & WIPE cache partitions.
Spoiler: Install Custom recovery
stock recovery - bootloader => fastboot (not fastbootd)
cmd command:
Code:
fastboot --disable-verity --disable-verification flash vbmeta vbmetaAndroidSC_mod.img
cmd command:
Code:
fastboot flash recovery recoveryTWRP350_G0370WW.img
cmd command:
Code:
fastboot reboot-recovery
File download from my github: TWRP3.5.0_10 BLU G90 PRO
About updated ROM version: You can remove/copy all partitions from last version any time. So boot.img or recovery.img can have with SPFT Read Back process with scatter file from v10.0.03.03 stock ROM.
Stock ROM G90 Pro BLU_G0370WW_V10.0.03.03
ROOT: Simple. Use custom recovery and flashing magisk-zip
or if you have boot.img stock so use magisk manager to have boot_patched.img and flash via fastboot.
Click to expand...
Click to collapse
Flawless instructions , thank you so much! TRWP & Root!
i had to flash Stock ROM G90 Pro BLU_G0370WW_V10.0.03.03
then follow your instructions .
Because firmware BLU_G0370WW_V10.0.04.03_GENERIC the WIIFI and Bluetooth did not function when using older version boot.img .
lopestom said:
Spoiler: Unlock & Install Custom recovery - BLU G90 Pro
- OEM Unlock - select
- USB Debugging - select
cmd command:
Code:
adb devices
Code:
adb reboot bootloader
(or use the menu option).
The screen should show "FASTBOOT mode" at the bottom of the screen in small font.
cmd command:
Code:
fastboot flashing unlock
or
Code:
fastboot flashing unlock_critical
Read phone screen for instructions.
You will have to press volume up key to continue to unlock.
- Reboot phone. Setting again without data info. Power off.
Power & VOL+ to show FASTBOOT mode - recovery
Go to stock recovery and make WIPE data/factory reset & WIPE cache partitions.
Spoiler: Install Custom recovery
stock recovery - bootloader => fastboot (not fastbootd)
cmd command:
Code:
fastboot --disable-verity --disable-verification flash vbmeta vbmetaAndroidSC_mod.img
cmd command:
Code:
fastboot flash recovery recoveryTWRP350_G0370WW.img
cmd command:
Code:
fastboot reboot-recovery
File download from my github: TWRP3.5.0_10 BLU G90 PRO
About updated ROM version: You can remove/copy all partitions from last version any time. So boot.img or recovery.img can have with SPFT Read Back process with scatter file from v10.0.03.03 stock ROM.
Stock ROM G90 Pro BLU_G0370WW_V10.0.03.03
ROOT: Simple. Use custom recovery and flashing magisk-zip
or if you have boot.img stock so use magisk manager to have boot_patched.img and flash via fastboot.
Click to expand...
Click to collapse
lopestom said:
Spoiler: Unlock & Install Custom recovery - BLU G90 Pro
- OEM Unlock - select
- USB Debugging - select
cmd command:
Code:
adb devices
Code:
adb reboot bootloader
(or use the menu option).
The screen should show "FASTBOOT mode" at the bottom of the screen in small font.
cmd command:
Code:
fastboot flashing unlock
or
Code:
fastboot flashing unlock_critical
Read phone screen for instructions.
You will have to press volume up key to continue to unlock.
- Reboot phone. Setting again without data info. Power off.
Power & VOL+ to show FASTBOOT mode - recovery
Go to stock recovery and make WIPE data/factory reset & WIPE cache partitions.
Spoiler: Install Custom recovery
stock recovery - bootloader => fastboot (not fastbootd)
cmd command:
Code:
fastboot --disable-verity --disable-verification flash vbmeta vbmetaAndroidSC_mod.img
cmd command:
Code:
fastboot flash recovery recoveryTWRP350_G0370WW.img
cmd command:
Code:
fastboot reboot-recovery
File download from my github: TWRP3.5.0_10 BLU G90 PRO
About updated ROM version: You can remove/copy all partitions from last version any time. So boot.img or recovery.img can have with SPFT Read Back process with scatter file from v10.0.03.03 stock ROM.
Stock ROM G90 Pro BLU_G0370WW_V10.0.03.03
ROOT: Simple. Use custom recovery and flashing magisk-zip
or if you have boot.img stock so use magisk manager to have boot_patched.img and flash via fastboot.
Click to expand...
Click to collapse
In TRWP the option for select storage for exsdcard (0)mb will not mount micro sdcard?
And which partitons do you select for a full backup.
thanks
EdsterX71 said:
In TRWP the option for select storage for exsdcard (0)mb will not mount micro sdcard?
And which partitons do you select for a full backup.
thanks
Click to expand...
Click to collapse
Unfortunately in the compiling TWRP time I haven't MicroSD to testing.
But now I know about and need fix so easy. The fix is not easy because my time and the issues about different adress/partition of MicroSD in G90 Pro. So I needed more knowledge and informations to fix that and need only write correct adress/partition. That's is to mount/start MicroSD automatically in the TWRP. But....
I not remember now because I not using MicroSD or OTG in the TWRP or ROMs. But maybe worked with the option in the TWRP - Wipe - FORMAT DATA; Reboot - Recovery. Test!
I have PBRP (other awesome Custom Recovery) if you want test too.
EdsterX71 said:
Flawless instructions , thank you so much! TRWP & Root!
i had to flash Stock ROM G90 Pro BLU_G0370WW_V10.0.03.03
then follow your instructions .
Because firmware BLU_G0370WW_V10.0.04.03_GENERIC the WIIFI and Bluetooth did not function when using older version boot.img .
Click to expand...
Click to collapse
It's a shame you didn't try to remove the boot.img file from version 10.0.04.03 because it would be interesting to know the kernel changes. But as far as I know it was a security update and the fix for call volume I think.
I not using Xposed a very time ago. Sorry. You need search/ask in the Xposed forun.
lopestom said:
Unfortunately in the compiling TWRP time I haven't MicroSD to testing.
But now I know about and need fix so easy. The fix is not easy because my time and the issues about different adress/partition of MicroSD in G90 Pro. So I needed more knowledge and informations to fix that and need only write correct adress/partition. That's is to mount/start MicroSD automatically in the TWRP. But....
I not remember now because I not using MicroSD or OTG in the TWRP or ROMs. But maybe worked with the option in the TWRP - Wipe - FORMAT DATA; Reboot - Recovery. Test!
I have PBRP (other awesome Custom Recovery) if you want test too.
It's a shame you didn't try to remove the boot.img file from version 10.0.04.03 because it would be interesting to know the kernel changes. But as far as I know it was a security update and the fix for call volume I think.
I not using Xposed a very time ago. Sorry. You need search/ask in the Xposed forun.
Click to expand...
Click to collapse
Yes I would like to try PBRP , Thanks, I really like the specs on the Blu G90 Pro... But to be honest the camera is crap.
EdsterX71 said:
EdsterX71 said:
In TRWP the option for select storage for exsdcard (0)mb will not mount micro sdcard?
And which partitons do you select for a full backup.
thanks
Click to expand...
Click to collapse
n TRWP the option for select storage for exsdcard (0)mb will not mount micro sdcard?
And which partitons do you select for a full backup.
thanks
Click to expand...
Click to collapse
boot.img for 10.0.04.02
And yes i would like to try PBRP, thanks.
EdsterX71 said:
boot.img for 10.0.04.02
And yes i would like to try PBRP, thanks.
Click to expand...
Click to collapse
EdsterX71 said:
I also have the Blu G90 Pro and trying to get root , could you please give me detailed instructions on using magisk or how to flash with trwp, i have flashed trwp through fastboot but cant decrypt data and when you restart device it reverts back to stock recovery.
also cant find stock firmware for this version BLU_G0370WW_V10.0.04.03_GENERIC to use magisk to patch boot.imgView attachment 5337319
Click to expand...
Click to collapse
ANy error with 10.0.04.02?
As your message and picture had BLU_G0370WW_V10.0.04.03_GENERIC
Update: Yes the kernel was changed with more informations and need new Custom recovery with that to work with new stock ROM.
EdsterX71 said:
boot.img for 10.0.04.02
And yes i would like to try PBRP, thanks.
Click to expand...
Click to collapse
Sent in PM to you.
I decided to write the commands for those who have TWRP or stock recovery. Both will work as it has the fastbootD option.
First, select the GSI for your architecture. On BLU G90 Pro, it is arm64 ab. Usually we must unzip to have the img file.
Copy the GSI.img file and the modified vbmeta.img file in the ADB folder - tools platform with which you unlocked the bootloader. Remember the need for the most current version of ADB!
platform-tools#downloads
For some users it is necessary to write warnings:
Stop now if you do not know what you are doing or have no experience in reviving your device!!!
You must have backup of your NVDATA, NVRAM, NVCFG, PERSIST, files made from your device.
The device must have the bootloader unlocked!
You need know the difference about fastboot and FASTBOOTD in your device!!
Your device has bootloader mode: recovery - fastboot - reboot (system)
Stock recovery has very options:
reboot system - reboot to bootloader - wipe - Enter fastboot - ...
reboot to bootloader => normal fastboot
Enter fastboot => FASTBOOTD
FASTBOOTD => some options
TWRP:
Reboot - Reboot bootloader => normal fastboot
Reboot - Reboot fastboot => fastbootD
Spoiler: Install GSI - BLU G90 Pro - G0370WW
Device in fastboot => You see the Serial number by your device
Code:
fastboot devices
The file vbmeta can use stock vbmeta; BUT you should flash vbmeta mod [vbmetaAndroidSC_mod.zip] for have TWRP and GSI.
Code:
fastboot --disable-verification flash vbmeta vbmeta_mod.img
Wipe userdata
Code:
fastboot -w
Your device MUST be at the fastbootD menu now. If not, you will not be able to flash the GSI successfully. Again, you can using TWRP or stock recovery.
fastboot normal to fastbootD
Code:
fastboot reboot fastboot
Erase a flash partition
Code:
fastboot erase system
or
Code:
fastboot delete-logical-partition system
deletes the product partition, allowing a larger system partition
Code:
fastboot delete-logical-partition product
I not need resize-logical-partition product. But if you want:
You will need a larger system partition to flash a GSI. There are 2 ways to achieve this
A. fastboot resize-logical-partition product 509344768
B. fastboot resize-logical-partition system 3089272064 or 3889272064
resizes product and system partitions. This gives you about 3GB of system partitions. You can adjust or arrive at your own numbers if you want different sizes.
Flashing GSI files: Sets disable-verity when flashing & Sets disable-verification when flashing the file img in the system partition.
Code:
fastboot --disable-verity --disable-verification flash system GSI.img
GSI.img is the file of any zip file that have any name by developers/Custom ROM.
For confirm great & fast start GSI
Code:
fastboot -w
For confirm and boot clean go to normal fastboot
Code:
fastboot reboot bootloader
Code:
fastboot erase userdata
Reboot to system
Code:
fastboot reboot
Wait the time 5~15 minutes to start.
Enjoy
Note: Since the Team Win code maintainers; still haven't found a way for TWRP to modify (write/copy/delete) any file in the logical partitions (System - Vendor - Product - odm) as Super partition; TWRP cannot install the img file on the system partition.
If you want to make changes you can try this: [SCRIPT][Android 10+] Universal Mount System read write R/W
In the GSI files you can modify files in the Super partition.
About adb-fastboot: Android Debug Bridge (ADB) Commands Manual
Any other questions or more help for BLU users: BLU Development Team
lopestom said:
I decided to write the commands for those who have TWRP or stock recovery. Both will work as it has the fastbootD option.
First, select the GSI for your architecture. On BLU G90 Pro, it is arm64 ab. Usually we must unzip to have the img file.
Copy the GSI.img file and the modified vbmeta.img file in the ADB folder - tools platform with which you unlocked the bootloader. Remember the need for the most current version of ADB!
platform-tools#downloads
For some users it is necessary to write warnings:
Stop now if you do not know what you are doing or have no experience in reviving your device!!!
You must have backup of your NVDATA, NVRAM, NVCFG, PERSIST, files made from your device.
The device must have the bootloader unlocked!
You need know the difference about fastboot and FASTBOOTD in your device!!
Your device has bootloader mode: recovery - fastboot - reboot (system)
Stock recovery has very options:
reboot system - reboot to bootloader - wipe - Enter fastboot - ...
reboot to bootloader => normal fastboot
Enter fastboot => FASTBOOTD
FASTBOOTD => some options
TWRP:
Reboot - Reboot bootloader => normal fastboot
Reboot - Reboot fastboot => fastbootD
Spoiler: Install GSI - BLU G90 Pro - G0370WW
Device in fastboot => You see the Serial number by your device
Code:
fastboot devices
The file vbmeta can use stock vbmeta; BUT you should flash vbmeta mod [vbmetaAndroidSC_mod.zip] for have TWRP and GSI.
Code:
fastboot --disable-verification flash vbmeta vbmeta_mod.img
Wipe userdata
Code:
fastboot -w
Your device MUST be at the fastbootD menu now. If not, you will not be able to flash the GSI successfully. Again, you can using TWRP or stock recovery.
fastboot normal to fastbootD
Code:
fastboot reboot fastboot
Erase a flash partition
Code:
fastboot erase system
or
Code:
fastboot delete-logical-partition system
deletes the product partition, allowing a larger system partition
Code:
fastboot delete-logical-partition product
I not need resize-logical-partition product. But if you want:
You will need a larger system partition to flash a GSI. There are 2 ways to achieve this
A. fastboot resize-logical-partition product 509344768
B. fastboot resize-logical-partition system 3089272064 or 3889272064
resizes product and system partitions. This gives you about 3GB of system partitions. You can adjust or arrive at your own numbers if you want different sizes.
Flashing GSI files: Sets disable-verity when flashing & Sets disable-verification when flashing the file img in the system partition.
Code:
fastboot --disable-verity --disable-verification flash system GSI.img
GSI.img is the file of any zip file that have any name by developers/Custom ROM.
For confirm great & fast start GSI
Code:
fastboot -w
For confirm and boot clean go to normal fastboot
Code:
fastboot reboot bootloader
Code:
fastboot erase userdata
Reboot to system
Code:
fastboot reboot
Wait the time 5~15 minutes to start.
Enjoy
Note: Since the Team Win code maintainers; still haven't found a way for TWRP to modify (write/copy/delete) any file in the logical partitions (System - Vendor - Product - odm) as Super partition; TWRP cannot install the img file on the system partition.
If you want to make changes you can try this: [SCRIPT][Android 10+] Universal Mount System read write R/W
In the GSI files you can modify files in the Super partition.
About adb-fastboot: Android Debug Bridge (ADB) Commands Manual
Any other questions or more help for BLU users: BLU Development Team
Need gsi link
Click to expand...
Click to collapse
Lopestom im having lags, overheat issues and system slow downs , why??
with or without gsi
my guess is hardware issue (emmc chip)
DarkeEmpire said:
I want a gsi link
Click to expand...
Click to collapse
Any GSI-Treble A10 arm64 ab - https://forum.xda-developers.com/f/treble-enabled-device-development-a-ab-roms.7260/
Can I use pixel experience
lopestom said:
I decided to write the commands for those who have TWRP or stock recovery. Both will work as it has the fastbootD option.
First, select the GSI for your architecture. On BLU G90 Pro, it is arm64 ab. Usually we must unzip to have the img file.
Copy the GSI.img file and the modified vbmeta.img file in the ADB folder - tools platform with which you unlocked the bootloader. Remember the need for the most current version of ADB!
platform-tools#downloads
For some users it is necessary to write warnings:
Stop now if you do not know what you are doing or have no experience in reviving your device!!!
You must have backup of your NVDATA, NVRAM, NVCFG, PERSIST, files made from your device.
The device must have the bootloader unlocked!
You need know the difference about fastboot and FASTBOOTD in your device!!
Your device has bootloader mode: recovery - fastboot - reboot (system)
Stock recovery has very options:
reboot system - reboot to bootloader - wipe - Enter fastboot - ...
reboot to bootloader => normal fastboot
Enter fastboot => FASTBOOTD
FASTBOOTD => some options
TWRP:
Reboot - Reboot bootloader => normal fastboot
Reboot - Reboot fastboot => fastbootD
Spoiler: Install GSI - BLU G90 Pro - G0370WW
Device in fastboot => You see the Serial number by your device
Code:
fastboot devices
The file vbmeta can use stock vbmeta; BUT you should flash vbmeta mod [vbmetaAndroidSC_mod.zip] for have TWRP and GSI.
Code:
fastboot --disable-verification flash vbmeta vbmeta_mod.img
Wipe userdata
Code:
fastboot -w
Your device MUST be at the fastbootD menu now. If not, you will not be able to flash the GSI successfully. Again, you can using TWRP or stock recovery.
fastboot normal to fastbootD
Code:
fastboot reboot fastboot
Erase a flash partition
Code:
fastboot erase system
or
Code:
fastboot delete-logical-partition system
deletes the product partition, allowing a larger system partition
Code:
fastboot delete-logical-partition product
I not need resize-logical-partition product. But if you want:
You will need a larger system partition to flash a GSI. There are 2 ways to achieve this
A. fastboot resize-logical-partition product 509344768
B. fastboot resize-logical-partition system 3089272064 or 3889272064
resizes product and system partitions. This gives you about 3GB of system partitions. You can adjust or arrive at your own numbers if you want different sizes.
Flashing GSI files: Sets disable-verity when flashing & Sets disable-verification when flashing the file img in the system partition.
Code:
fastboot --disable-verity --disable-verification flash system GSI.img
GSI.img is the file of any zip file that have any name by developers/Custom ROM.
For confirm great & fast start GSI
Code:
fastboot -w
For confirm and boot clean go to normal fastboot
Code:
fastboot reboot bootloader
Code:
fastboot erase userdata
Reboot to system
Code:
fastboot reboot
Wait the time 5~15 minutes to start.
Enjoy
Note: Since the Team Win code maintainers; still haven't found a way for TWRP to modify (write/copy/delete) any file in the logical partitions (System - Vendor - Product - odm) as Super partition; TWRP cannot install the img file on the system partition.
If you want to make changes you can try this: [SCRIPT][Android 10+] Universal Mount System read write R/W
In the GSI files you can modify files in the Super partition.
About adb-fastboot: Android Debug Bridge (ADB) Commands Manual
Any other questions or more help for BLU users: BLU Development Team
Click to expand...
Click to collapse
Shorten Code for blu g90 pro GSI NOOBS edit
fastboot devices
fastboot --disable-verification flash vbmeta vbmeta_mod.img
fastboot -w
fastboot reboot fastboot
fastboot erase system
fastboot --disable-verity --disable-verification flash system GSI.img
fastboot reboot
GSI supports
Havocs, Corvus and others but not pixel experience image is too large with gapps
sometimes when transferring file from pc to the device it fails over 1mb files like what????
lopestom said:
Spoiler: Unlock & Install Custom recovery - BLU G90 Pro
- OEM Unlock - select
- USB Debugging - select
cmd command:
Code:
adb devices
Code:
adb reboot bootloader
(or use the menu option).
The screen should show "FASTBOOT mode" at the bottom of the screen in small font.
cmd command:
Code:
fastboot flashing unlock
or
Code:
fastboot flashing unlock_critical
Read phone screen for instructions.
You will have to press volume up key to continue to unlock.
- Reboot phone. Setting again without data info. Power off.
Power & VOL+ to show FASTBOOT mode - recovery
Go to stock recovery and make WIPE data/factory reset & WIPE cache partitions.
Spoiler: Install Custom recovery
stock recovery - bootloader => fastboot (not fastbootd)
cmd command:
Code:
fastboot --disable-verity --disable-verification flash vbmeta vbmetaAndroidSC_mod.img
cmd command:
Code:
fastboot flash recovery recoveryTWRP350_G0370WW.img
cmd command:
Code:
fastboot reboot-recovery
File download from my github: TWRP3.5.0_10 BLU G90 PRO
About updated ROM version: You can remove/copy all partitions from last version any time. So boot.img or recovery.img can have with SPFT Read Back process with scatter file from v10.0.03.03 stock ROM.
Stock ROM G90 Pro BLU_G0370WW_V10.0.03.03
ROOT: Simple. Use custom recovery and flashing magisk-zip
or if you have boot.img stock so use magisk manager to have boot_patched.img and flash via fastboot.
Click to expand...
Click to collapse
Whenever I go into fastboot mode (with the text on the bottom left) no fastboot commands will work on my G90 Pro. Therefore I can't follow the rest of the instructions. Any possible solutions? Thanks.

Guide to Install GApps and Magisk on Custom ROMs for Nokia 7.2

While I was trying to install GApps for Lineage OS 18.1 on my Nokia 7.2, I always lost my wi-fi. This is apparently due to flashing TWRP as boot image, which replaces the stock boot messing with wi-fi as the boot image has thee kernel.
Although, I did figure it out, it took me three days to get a proper solution from multiple sources. Here, I will explain how to install Lineage OS 18.1 on Nokia 7.2 with Gapps and Magisk. This can be applied to other ROMs as well. I am assuming you are on stock firmware.
Requirements:
Any custom ROM without GApps
vbmeta file
vendor image
Gapps zip file of your choice
platform-tools
twrp image
magisk file
payload dumper tool
Preperation:
The wifi stops working because we change the boot image. To prevent this, we must flash the boot image of the rom after we are done with our work with TWRP
For this, we ,ust get the boot image for the ROM. As this is not available readily, we must extract it from the ROM zip
Install latest python on your pc
Get the payload dumper tool from the link given below. Extract the contents into the root directory of python. It should be in C:\Users\USER-NAME\AppData\Local\Programs\Python\Python <version number>
Extract the ROM zip into any folder. Copy the payload.bin file and paste it in the folder where you put the payload dumper tool
Open a command prompt in the python root folder and type
Code:
python -m pip install -r requirements.txt
Then type
Code:
python payload_dumper.py payload.bin
After it finishes, go to the folder named Output inside the python folder. Here there will be a file named boot.bin. Rename this as lineage_boot.bin and paste it into the platform tools folder
Installation:
Download the twrp image, rename it to twrp.img and place it in the platform-tools folder. Connect your phone to the computer, switch on usb debugging on your phone.
Open command shell in the platform-tools folder and type
Code:
adb reboot bootloader
. In the bootloader, type
Code:
fastboot flash boot_b twrp.img
.
Next, type
Code:
fastboot --set-active=b
and then reboot to recovery using volume buttons and selecting using power button
In TWRP swipe to allow modifications. Copy your ROM and vendor image files to your SD Card. Now, click wipe, format data and type yes. Go back to home screen and the press install. Select your ROM file and install it. Sometimes it is required to flash vendor image. In that case flash that too. This step is required for Lineage OS 18.1
Now on the twrp home screen, tap on reboot. At the bottom, the current slot should be B. Tap slot A. THis changes the active slot to A. Now go back and tap on bootloader, this should boot you to the bootloader.
Take your vbmeta.img file and place it in the platform tools folder. Now, while in the bootloader mode, type,
Code:
fastboot flash vbmeta_a --disable-verity --disable-verification vbmeta.img
Next type
Code:
fastboot flash boot_a twrp.img
and boot to recovery using volume buttons
Now, press install in TWRP and select install and install the GApps file and reboot to bootloader
Next, in the bootloader type
Code:
fastboot flash boot_a lineage_boot.img
. Now start your phone. You should have lineage os with GApps
Installing Magisk:
Copy the lineage_boot.img into your phone. Download magisk.apk file from the link given below
Install the magisk app and open it. If it asks for additional setup select no. Beside the magisk option select install. Under options, if Recovery Mode is selected, deselect it and click next.
Now click on Select and patch a file under method. Select the lineage_boot.img
The patched image will be saved in downloads folder. Rename this file to lineage_magisk.img and copy it to the platform tools folder on your computer. Reboot your phone to bootloader mode
On your computer in the command window opened in the platform tools folder, type,
Code:
fastboot flash boot lineage_magisk.img
Reboot and you will have a rooted lineage os with GApps
Files:
Lineage OS 18.1 and vbmeta.img
TWRP
vendor
NikGApps
Payload Dumper tool
platform tools
Magisk
Guides that I Followed:
Extracting boot.img from ROM zip
Installing magisk using patched boot image
Credits:
Raghu varma for Lineage OS 18.1 port and twrp
Providers of the guides mentioned above
Hi @Ujwal2000 thanks for the guide.
I am using the stock android 10 rom and magisk patch method.
This also leads to non working wifi and magisk does not recognize that its installed.
Which steps of your guide apply to the stock rom?
i do not need gapps nor twrp I guess I only wanted to root the stock rom with magisk.
For stock, use this guide. They maintain a repository if patched boot images
Guide - How to root the Nokia 7.2 and Nokia 6.2 using Magisk
Nokia 7.2 and Nokia 6.2 come with an unlockable bootloader. The thing that compliments unlocked bootloader best is root access. So, this guide will help you in rooting the Nokia 7.2 or Nokia 6.2. You have a choice between Magisk patched boot images and TWRP recovery. I’d recommend going the...
www.techmesto.com
@Ujwal2000 , can you please look at my posting here? Thank you.
after fallowing the steps(except installing lineageOS with twrp flash everything was encrypted even tough i have the bootloader unlocked, managed to install it via adb sideload) the wifi doesnt work at all. When i try to turn it on is switches off on its own. Do anyone know a fix?
i had problem with latest version of python (3.10), version 3.7 was working for me

[Guide][Installation][Fix]Switching from stock ROM to custom ROMs + Installing stock ROM after a brick or other Failures ( Mi A2 Lite - Daisy)

This guide is general guide for the installation of custom ROMs. I will also include guide to install stock ROM on devices which have been bricked or for solving various problem which you may encounter in custom ROMs. There are other guides for the same purpose but most of them are outdated and many of you seem to ignore old guide despite the fact that those guides can be helpful.
This is guide is only relevant for installation of custom ROMs which were released up to the date of posting this guide or up to android version 11. Recovering a bricked device can be done in the same way as to this one but installation instruction for devices with android version greater than 11 may differ.
DISCLAMER
Code:
I am NOT responsible for bricked devices,
thermonuclear war or for you getting fired because your alarm app failed.
Make sure the bootloader is unlocked and never lock the bootloader
How to unlock bootloader ?
>See in this thread.
Hard Brick, Soft brick, Problems in custom rom due to bad base, installation of base for switching to custom roms: windows linux
Installation of stock ROM through fastboot : The reply below
Migration from stock base to custom ROM : CLEAN FLASH
Migration between different version of same custom ROM : DIRTY FLASH
FOR SPECIFIC THREADS
Oragne Fox For Daisy
TWRP For Daisy
Magisk
CREDITS:
LInkBoi for his previous guide and TWRP
DarthJabba9 for Orange Fox Recovery
Every pros in daisy telegram groups.
EDL FLASHING (For windows only)​
EDL flashing can be helpful when flashing every partition of device is needed either for clean stock base or after brick or after some failure.
EDL flashing can be the final resort when everything else fails.
PREREQUISITES
1) A good USB cable, your phone
2) A PC with either windows or linux
3) Fastboot drivers from google and edl drivers from qualcomm
4) Platform tools from google
5)Fastboot rom. This should be full rom in .tgz format.
6)Xiaomi flash tool (LATEST VERSION AVAILABLE)
Install the adb and fastboot drivers from google. If you are on windows 10 or greater then you can also use "windows update > optional updates" to update adb and fastboot drivers + edl drivers. For the installation of drivers always use trusted sources and don't turn of driver signature enforcement if you can.
Extract the platform tools in a convenient folder, we will be doing our operations from this folder for fastboot and adb opeartions. Extract the fastboot ROM and place that in convenient folder as well. And for xiaomi flash tool extract the zip and launch XiaoMiFlash.exe .
If you can access fastboot in you phone then the phone can be booted into edl mode through fastboot else you have to take out back cover and short the testpoint pins to make the device boot into edl mode (see the attached image ).
If you can access fastboot. Boot into fastboot and type the following command in terminal.
To check if device is connected properly and drivers are properly installed
If no devices is shown then connect device properly with good usb cable and check the drivers.
Code:
fastboot devices
To boot phone into edl mode. This is only possible if the bootloader is unlocked else testpoint-edl is the only option
Code:
fastboot oem edl
The device should be shown as COM device in device manager ( Windows ). If not then either drivers aren't installed properly or your phone isn't in edl mode.
Now click on refresh button in xiaomi flash tool. Your device should be recognized as com device. Set the path to the images folder ( extracted fastboot rom ). Select CLEAN ALL option . If everything is good then click
on FLASH. The flashing process should start now. After the process completes keep pressing power button to boot device into the currently installed ROM.
Just install the rom and setup once even if you're going to flash custom rom next. This reduces various problems which may come in custom ROMs.
If any error occurs then try the following:
Make sure you are using latest flash tool.
Good fastboot rom (shouldn't be corrupted )
Good USB cable and try different ports of the PC.
The flashing should be done immediately after booting to edl. If not then take out battery and reconnect it if you have back cover open(In case of hard brick). Or keep pressing power button and volume down to boot into fastboot and boot to edl mode again from the above instructions(If fastboot is accessible)
For booting to edl using testpoint:
> Take out backcover
> Disconnect battery
> Short the pins
> Flash
> Connect battery after flashing is complete
> Keep pressing power button to boot into system.
qdl flashing ( linux only )​
For very detailed guide github -> bkerler edl
Thanks to DEFXZ and LinkBoi for suggesting this alternative.
Make sure you have platform tools, fastboot rom and other prerequisites to detect device properly.
clone the repository in convenient place
Code:
git clone https://git.linaro.org/landing-teams/working/qualcomm/qdl.git --depth=1
change to qdl directory
Code:
cd qdl
Build qdl tool
Code:
make
Finally flash the rom
Code:
./qdl --storage emmc --include /path/to/stock/images /path/to/stock/images/prog_emmc_firehose_8953_ddr.mbn /path/to/stock/images/rawprogram0.xml /path/to/stock/images/patch0.xml
The paths are the paths to various files inside the images folder which will be obtained after fastboot rom is extracted.
For further informations:
Original github link
qdl discussion in XDA
FASTBOOT FLASHING​
PREREQUISITES
FASTBOOT DRIVERS
PLATFORM TOOLS
FASTBOOT ROM
GOOD USB CABLE
PC WITH WORKING USB PORT
See this for meeting prerequisites.
Install fastboot drivers, connect device to PC via USB.
Extract platform tools into a convenient folder.
Extract fastboot ROM into a convenient folder.
Go to platform tools folder ( this will contain files and executable like fastboot.exe) and open powershell or any terminal window there
[ shift + right click and select open (powershell) window here ]
Type this command to see everything worked correctly.
Code:
fastboot devices
If not then check every step properly.
Now execute the script to flash the ROM.
Execute flash_all.bat script for windows PC.
Execute flash_all.sh script for linux PC.
If platform tools cannot be accessed system wide then.
Code:
./fastboot devices
will provide fastboot devices information.
For flashing drag and drop flash_all.bat or flash_all.sh file into the terminal.
Code:
'/media/user001/user/daisy/stock_roms/daisy_global_images_V10.0.18.0.PDLMIXM_9.0/flash_all.sh'
It will look something like this in linux and similar in windows.
If any error occurs the search for particular error. Most of the times the error is due to corrupted fastboot ROM or bad connection between phone and PC.
FINALLY! FLASHING CUSTOM ROM​
STEP 0
Flash(if not flashed already) the stock base recommended by particular ROM, if the ROM doesn't recommend a specific stock base flash 10.0.18.0 from the above instructions.
PREREQUISITES
TWRP or ORANGE FOX RECOVERY
Fastboot drivers and platform tools (details above )
The ROM which you want to flash, choose from here
GAPPS package if rom is vanilla and you want to install it.
Magisk if you want to root.
As you may have known by experience, our device doesn't have recovery partition so, flashing recovery through fastboot isn't possible. For flashing recovery first we need to boot recovery image and then only we can flash it.
If you want to use twrp:
Download both twrp*.zip and twrp*.img and place it in a convenient place.
If you want to use orange fox recovery:
Download orangeFox*.zip and extract it.
Keep both the .zip and .img file in convenient place.
If you have sdcard then copy ROM file, gapps, magisk, twrp or orange fox files into sdcard.
If not then there will be further instructions.
Now, connect the phone to the PC via USB and enable usb debugging. And open terminal in the platform tools folder as in above instructions.
Check device connectivity:
Code:
adb devices
Reboot into fastboot:
Code:
adb reboot bootloader
Check device connectivity:
Code:
fastboot devices
Lets check if the bootloader is unlocked:
Code:
fastboot oem device-info
If bootloader isn't unlocked you won't be able to flash custom recovery into the device. So, first unlock the bootloader. This should be allowed in the developers option of your phone first. This will factory reset the device.
Code:
fastboot oem unlock
Now if everything is good then it's time to boot into custom recovery:
Code:
fastboot boot recovery.img
recover.img is name of image of whichever custom recovery you want to use.
Code:
fastboot boot '/media/user001/storage (1)/daisy/twrp/twrp-3.5.2_9-2-daisy-unofficial.img'
It's like this in my case. You can drag and drop after typing fastboot boot
The phone should now boot into custom recovery. If it ask for decryption then your lockscreen password should work there.
if you want to flash recovery only then find the recovery.zip you want and flash it.
The steps further is also valid for moving between different custom roms. The term used for such process is CLEAN FLASH.
For Flashing custom ROMS :
SOMETIMES FLASHING INSTRUCTIONS MAY DIFFER SO, BE SURE TO CROSS CHECK FOR INSTRUCTION IN ROM SPECIFIC XDA THREAD OR TELEGRAM GROUP
The following action will wipe userdata if not wiped already. Be sure to backup data before these steps. Also if you encounter any future problems full backup from custom recovery may be able to solve most of the problems. So, be sure to keep full backup(including every partition) of your device.
Go to main menu > wipe > select all except internal storage and microSD.
Swipe right to perform wipe.
Install custom recovery by flashing recovery.zip
(This is done in case adb push doesn't work below and sdcard isn't available for flashing)
Again go to main menu > wipe > format data
Type yes and press enter.
If you don't have files in your sdcard then:
push rom file + gapps + other files into your device through adb push.
The command will be something like this:
Code:
adb push '/media/user001/storage (1)/daisy/posp/potato_daisy-11-20210919-dumaloo.v4.2.3+20.Community.zip' /sdcard
If adb push fails to work then you can reboot recovery and simply copy the files through file explorer.
Reboot to recovery only if you had installed recovery after wiping system else the device will soft brick
Now flash the rom.zip by selecting the file and swiping right.
Flash custom recovery if the ROM doesn't contain recovery
We have to change current slot even if we don't want to flash anymore things.
Latest recoveries changes slot automatically So, go to main menu > reboot > recovery
Now flash files which you want to flash i.e. gapps and magisk.
Again, Don't flash gapps if the ROM is of Gapps variant
Most of the roms now have implemented FBE (File Based Encryption ). So, you need to format data before rebooting to system. Again, check for specific ROM installation instruction if that is required or not. If you keep data from previous ROM that won't be considered a clean flash so, for proper clean flash format data before rebooting to system.
reboot system
MOVING BETWEEN DIFFERENT VERSION OF SAME CUSTOM ROM
Dirty flash or OTA ​
Most of the newer ROMs have seamless update ( even the unofficial ones ). The OTA update is simple. Just go to updater ( in settings > system or native app, depends upon the rom). If your ROM is of vanilla version then make sure gapps and/or magisk which you have installed, your ROM and custom recovery all support addon.d survival script. If they don't then you may have to flash everything again after update process is complete.
If custom recovery itself doesn't support update then you may need to choose different recovery or dirty flash ROM from the recovery. Don't worry most of the roms and both the recoveries for daisy support OTA and addon.d survival.
DIRTY FLASH​The process of flashing a ROM on top of existing one keeping the /data partition intact is known as dirty flashing. Such flashing must be done only on different builds of same ROM and it isn't recommended to flash build of lower version on top of higher version.
The steps for dirty flashing:
Download the update package.
Reboot to recovery
Enter password for decryption if encrypted.
Flash the update.zip package.
Reboot recovery, if recovery/rom doesn't support survival of recovery then flash recovery before rebooting to recovery.
If gapps and/or magisk survival isn't supported then flash gapps and magisk, make sure gapps is of the same type which was flashed before.
reboot system
Hi @user-001 thanks for this.
I'm on a stock A2 lite thats never had anything done to it , am i right in thinking i follow the clean flash section ?
You mention in there
We have to change current slot even if we don't want to flash anymore things.
Click to expand...
Click to collapse
I'm not fully sure what that involves could you break it down the steps a little for me.
I've downloaded all the files and am set up but i'm unsure on the Flashing fastbbot section where you say to use these files..
Execute flash_all.bat script for windows PC.
Click to expand...
Click to collapse
Is this a section i can bypass ? if not where can i get them from ?
Cheers
steve.loveday said:
Hi @user-001 thanks for this.
I'm on a stock A2 lite thats never had anything done to it , am i right in thinking i follow the clean flash section ?
You mention in there
I'm not fully sure what that involves could you break it down the steps a little for me.
I've downloaded all the files and am set up but i'm unsure on the Flashing fastbbot section where you say to use these files..
Is this a section i can bypass ? if not where can i get them from ?
Cheers
Click to expand...
Click to collapse
1) Yes you should follow clean flash instructions.
2)Changing of slot is done in custom recovery. Precisely in the reboot menu. But newer recoveries automatically switch the slot after flashing the rom , just be sure to reboot to recovery after flashing the recovery zip file.
3) the flash_all.bat script will be inside the extracted rom(fastboot rom) folder. You can use xiaomiflash too for flashing through fastboot.
user-001 said:
1) Yes you should follow clean flash instructions.
2)Changing of slot is done in custom recovery. Precisely in the reboot menu. But newer recoveries automatically switch the slot after flashing the rom , just be sure to reboot to recovery after flashing the recovery zip file.
3) the flash_all.bat script will be inside the extracted rom(fastboot rom) folder. You can use xiaomiflash too for flashing through fastboot.
Click to expand...
Click to collapse
Hi thanks for the reply,
I'm getting confused with all the various guides all seem to want you to do it a different way.
As i'm wanting Lineage thier instructions are...
Installation:
Download the latest build from here
Download LinkBoi00's version of TWRP here
Reboot to bootloader (adb reboot bootloader)
Fastboot into TWRP recovery (fastboot boot twrp*.img)
Do a factory reset in TWRP
Flash the latest build of Lineage OS
Boot into your new phone
Click to expand...
Click to collapse
Theres no mention of the edl or fastboot flashing and also the fastbot rom i downloaded doesnt have the flash_all.bat script in the zip file.
So do i follow thier instructions or these ones ?
Cheers
steve.loveday said:
Theres no mention of the edl or fastboot flashing and also the fastbot rom i downloaded doesnt have the flash_all.bat script in the zip file.
So do i follow thier instructions or these ones ?
Cheers
Click to expand...
Click to collapse
This guide deals with how to do something rather than what to do, meaning you should always do what particular rom suggests but the way to do this is mentioned here.
edl or fastboot flashing comes under clean flashing with new base, most of the time you aren't required to do this.
The script should be clean_all.bat or something similar just don't execute script with lock in the name(it will lock the bootloader)
And if you're already on the recommended base you don't have to flash the fastboot rom.
First of all, thank you very much for the detailed guide. What you have done here took a lot of work to do but it will help a lot of people (including me) to understand, albeit rudimentarily, the structures and functions of the devices etc.
For all that, thanks again.
When I start using the guide, I will update this post with any questions, such as :
fastboot boot '/media/user001/storage (1)/daisy/twrp/twrp-3.5.2_9-2-daisy-unofficial.img'
why not doing below? (For those who, like me, are not very familiar with linux.)
1. > adb push <twrp.img> /sdcard or same adb push "C:\platform-tools\twrp-3.5.2_9-2-daisy-unofficial.img" /sdcard
( which means push <file> from "adb|platform-tools\ folder" (eg. C:\platform-tools\)
into the root of <internal storage> | /storage/emulated/0 )
2. Reboot from adb to fastboot:
> adb reboot bootloader
3. Boot the image from <internal storage>:
> fastboot boot /sdcard/twrp-3.5.2_9-2-daisy-unofficial.img
What is the "Red" pointed and "Yellow" addresses"?
fastboot boot '/media/user001/storage (1)/daisy/twrp/twrp-3.5.2_9-2-daisy-unofficial.img'
I followed your "EDL FLASHING" post (#2) and it worked exactly as you mention!
In short, I was comming from unsuccessful flashing... but this is out of topic.
For me, did not worked the first time (after restarts) but the other day worked perfect.
The point is, most of times, it's becase windowz drivers.
We have to point that windowz needs their time to take the drivers in place. So, be patient and leave windowz to (not forced) restart(s).
AntonyMan said:
What is the "Red" pointed and "Yellow" addresses"?
fastboot boot '/media/user001/storage (1)/daisy/twrp/twrp-3.5.2_9-2-daisy-unofficial.img'
Click to expand...
Click to collapse
That must be your terminal representing different type of character in different colors.
Or, Are you talking about something else ?
steve.loveday said:
Theres no mention of the edl or fastboot flashing and also the fastbot rom i downloaded doesnt have the flash_all.bat script in the zip file.
So do i follow thier instructions or these ones ?
Cheers
Click to expand...
Click to collapse
For future references, the extracted fastboot ROM should be like this and you need to execute flash_all.bat or flash_all.sh script depending upon your OS or terminal.
user-001 said:
That must be your terminal representing different type of character in different colors.
Or, Are you talking about something else ?
Click to expand...
Click to collapse
Of course I'm talking about something else. lol
I was talking about that 'strange' address. fastboot boot '/media/user001/storage (1)/daisy/twrp/twrp-3.5.2_9-2-daisy-unofficial.img' (explained in post #11)
There is not such a directories in my miA2Lite phone. Obviously, it's because you are on Linux or Mac (UNIX). On Windowz 'command prompt' syntax it's slightly different.
Thus, I typed fastboot boot "/sdcard/twrp-3.5.2_9-2-daisy-unofficial.img"
* /sdcard is the root of <internal storage> directory.
** On Windows, double quote the address, if it's include spaces.
AntonyMan said:
Of course I'm talking about something else. lol
I was talking about that 'strange' address. There is not such a directories in my miA2Lite phone.
Thus, I typed fastboot boot "/sdcard/twrp-3.5.2_9-2-daisy-unofficial.img"
* /sdcard is the root of <internal storage> directory.
** On Windows, double quote the address, if it's include spaces.
Click to expand...
Click to collapse
The twrp image was on my pc(linux) i was booting directly from pc's terminal. And if you use only adb(or fastboot) then the paths are pc's absolute paths.

Categories

Resources