[ Full ROM backup Software through Recovery] - Onetouch Idol 3 Android Development

[ Shell full ROM backup Software through Recovery]​
Hi!
I create a software to do a full ROM backup!
This will do a full ROM backup from all images in to a flash zip!
Just need to boot in TWRP ( i test it in TWRP 3.0.2-r5 and it will work to on TWRP 3.1.0-0). It take some time to finish the process but it works 100%...
If you execute the software and is to fast ( fails ) just reboot in TWRP and execut it again ( it happen to me 1 time, i don´t know why?!?! )
Doens´t show nothing in twrp phone screen, just in PC, is a different process through shell...
The backup is based in the same images from OTA update.zip, and ROM zip is automatic, don´t need any reset before, it does all by him selfe.
Download and extract the folder, boot in twrp, plug the usb then execute the exe file from folder and wait...! You will get the ROM in desktop!
IMAGE_BACKUP.zip
https://mega.nz/#!RloDSB5J
Key: !vW6qvpfdMHNgNxT3brwcMZx7Q0p7hZn24LdE0--sDIE
​
Try it then tell me if you like it!
.

Is updated!

Related

ROOT + CWM + ROM (cleaned stock ~ custom) for HCL Me Connect 2.0 Tab V2

ROOT + CWM + ROM (cleaned stock ~ custom) for HCL Me Connect 2.0 Tab V2
WARNING , THESE PROCEDURES WILL MAKE YOUR DEVICE OUT OF WARRANTY AND MAY BRICK YOUR DEVICE. PROCEED AT YOUR OWN RISK.
Make sure USB Drivers are installed on your PC.
------------------------------------------------------------
X. Rooting Steps:
1. Turn on USB Debugging on Tab
2. Download Vroot on your PC ( Google it or www.mgyun.com/en/getvroot )
3. Run Vroot & Connect your Tab to PC. Vroot will auto detect the device and root it..
------------------------------------------------------------------
XX. Installing CWM
1. Download and install two apps like File Manager with root access and SManager ( Script Manager) for console.
2. Grant root access to both apps.
3. Download recovery and flash from link:
http://www.mediafire.com/download/vf5xy1hb7kb12ha/HCL_Tab_CWM.rar
4. Extact the file (flash_image and recovery.img) on your internal sd card and after extarction, copy both files to root folder named "/dev" using File Explorer(with root access).
5.Enter root shell by running SManager Console.
6. Type the following commands:
Command 1:
chmod 755 /dev/flash_image
Command 2:
/dev/flash_image recovery /dev/recovery.img
( type the command exactly, care for no uppercases, better copy and paste)
6. After entering the command, u will get " recovery successfully updated"
7. Now u have recovery installed, u may boot into recovery by shutting down ur tab and pressing power and volume dowm button together for around 7 secs until logo shows up.
Congrats now u have rooted tab and a custom recovery CWM.
--------------------------------------------------------------------
XXX. ROM ( will update later)
I have not prepared custom rom but instead i have cleaned rom of my tab with all bloatwares and nice UI and launcher ( Screenshot attached) .
You may download the file ( ~ 220 MB ) and restore with CWM recovry by following below steps:
DOWNLOAD LINKS (FILE UPLOADED IN PARTS, DOWNLOAD ALL 3 PARTS BEFORE UNZIPPING):
http://www.mediafire.com/download/8prnbeuybkptnca/clockworkmod.zip
http://www.mediafire.com/download/cq9t74v0pdk4l4k/clockworkmod.z01
http://www.mediafire.com/download/7ukn7psr2byb2cw/clockworkmod.z02
1. First make backup of current rom through CWM.
2. Backup rom on ur pc by switching on the device.
3. Extract the contents of downloaded files into internal sd.
4. Goto CWM Recovery, then format system, format data, format cache and wipe format dalvik cache.
5. Now choose restore option to restore the downloaded clean rom..
WARNING , THESE PROCEDURES WILL MAKE YOUR DEVICE OUT OF WARRANTY AND MAY BRICK YOUR DEVICE. DO IT AT YOUR OWN RISK.
Thanks man i 've successfully installed clock work mod recovery 6.I am waiting for the ROM
Sent from my Connect-2G-2.0 using xda app-developers app
BackupTA
You forgot to mention BackupTA application before doing all of this..
It helps u revert ur phone to the original stock state as if there was never any tweaking..
Great way for not making the warranty void..
Cheers..
---------- Post added at 01:57 AM ---------- Previous post was at 01:52 AM ----------
Oh!!
Here's the link..
http://forum.xda-developers.com/xpe.../tutorial-backup-ta-partition-to-drm-t2234627
rom
waiting for the rom man
connect 2g 2.0
Thank You So much for this wonderful tutorial ,Now i've got CWM working on my HCL me connect 2g 2.0,All the other tutorials on other sites were not working
good work bro but waiting for the rom
Bro i have rooted and installed CWM Recovery by using your tutorial but Unfortunately i have deleted my rom and i have downloaded the stouk rom from the hcl (official website) but it is also in .img , so i can't even flash it throw the CWM Recovery, and if i switch on my tablet, it stuck on boot logo,
So, please bro made the custom rom fast as possible :crying:
and bro good luck for your future
Thanks
rom link added
rom link added, you may recover your device...
gautam908 said:
Bro i have rooted and installed CWM Recovery by using your tutorial but Unfortunately i have deleted my rom and i have downloaded the stouk rom from the hcl (official website) but it is also in .img , so i can't even flash it throw the CWM Recovery, and if i switch on my tablet, it stuck on boot logo,
So, please bro made the custom rom fast as possible :crying:
and bro good luck for your future
Thanks
Click to expand...
Click to collapse
I need help while extracting the file :/
The one file is in .zip and another two files is in .z01 and .z02 file and cannot be extract, Bro help me please
If you can give the screen shot please it would help me a lot
Thanks
MD5 mismatch
Bro I have extracted the backup file of the ROM and while restoring it I was getting an error of MD5 mismatch???? Any solution???
Waiting for rom
I hav install cwm recovery.can you post the link of cyanogen mod custom rom
hello everyone, please help me to port cm 12 for my tablet: HCL me connect 2.0. above stock rom files are missing.. techincal speciation are: 1 GHz cortex A9 CPU , 1GB DDR3 RAM currently running on android 4.1 jelly bean os.
please guide and help me to update my tablet andriod version..

[DIY ROM] B5x Based Rom Add what you want

I take no responsibility for any damge caused.
You will make customize this rom yourself by following these isntructions:
Step 1
Firstly Download the necessary files:
B132*= http://dl-uk.huaweinews.com/index.php?dir=Roms/Ascend-P6/
B510*= https://drive.google.com/?usp=chrome_app#folders/0ByjEFdm-4A3EQlZuejlla2xaUTQ
Stock Recovery*= http://www.androidfilehost.com/?fid=23252070760973625
TWRP Recovery^= http://www.androidfilehost.com/?fid=23329332407572611
Adb Drivers*= http://adbdriver.com/upload/AdbDriverInstaller.exe
Pure Graphic HD Mod^= http://www.mediafire.com/download/zi7q6fk7cm9lclq/Pure_Graphic_HD_(Rendering+Version).zip
Pure Performances Stock^= http://www.mediafire.com/download/q0a4crr8aq4gm24/PurePerformances™X_Stock.1.4.zip
Pure Audio^= http://d-h.st/32h
Bravia Engine^= http://www.dropbox.com/s/l1m3q18g64yb0av/Sonyengines4.0+.zip
Minimal ADB and Fastboot ^= https://docs.google.com/file/d/0B1S0LCuXCnnmSWh6NGJmSE1BUWc/edit
^ is optional and * is a must
Step 2 Method A
Now the steps will be different depending on what rom you currently have installed if you have a custom or beta firmware/rom installed and twrp you will need to:
Firstly Flash Your Recovery to Stock = http://forum.xda-developers.com/showthread.php?t=2636231
Flash B132= Extract the B132 file and copy it's dload folder onto your internal memory>then reboot your phone into recovery by>holding pwr+vol up+ vol down continuously untill it starts recovery>after it finishes setup your phone then follow the next step
Flash B510 =(do not flash with recovery) do so by taking the zip file as is(do not extract) and copying it onto your P6's internal memory under the dload folder(if it's not there create it) then on your P6's goto settings>about phone>system update>local>update then let it update.When it's done you have successfully installed Kitkat, if you want go on to (optional further steps)
Flash TWRP = http://forum.xda-developers.com/showthread.php?t=2636231 then
Install the mods =Reboot to Recovery>hold pwr+vol up+ vol down continuously untill it starts> Start with Pure graphics>Pure Performance>Pure audio>Bravia>then clear cache> Reboot > And You are done you have a optimized B510 rom
Or if you are already on a stock rom like B111 or so then you can just:
skip the 1 instruction on the list and just do the rest.
[Note]
You can replace B510 with B512,B513 if you wanted to.
B512 = http://dl-uk.huaweinews.com/index.php?dir=Roms/Ascend-P6/&file=B512.zip
B513 = http://dl-uk.huaweinews.com/index.php?dir=Roms/Ascend-P6/&file=B513.zip
Method B
1. Start with Paranoid Android, OMNI or any other AOSP-based ROM.
2. Back up all data with Titanium backup and copy everything you need from your internal storage. ATTENTION: The internal storage will be wiped while flashing, so the backup MUST be on your SD-Card.
3. Copy dload folder to SD-Card or internal storage. (there should be no difference)
4. Boot to TWRP and make a backup in-case something goes wrong.
5. In TWRP wipe everything except internal and external storage.
6. In TWRP choose reboot to bootloader. Confirm that no OS is installed and don't install SuperSU.
7. Plug your phone in your PC and open a CMD.
8. Download B510 recovery.img and boot.img from this thread http://forum.xda-developers.com/show...php?p=51718316.
9. Follow the instructions by @surdu_petru(method1)
(or use this(method 2)choose install recovery image first, then the boot image
or use Method 3>
copy both the recovery and boot img files to your adb folder then>
run these commands:
adb reboot bootloader
fastboot flash recovery recovery.img
fastboot flash boot boot.img
fastboot reboot recovery
. IMPORTANT: When the flashing is finished and the phone reboots unplug the USB cable then wait for recovery to open and let it install.
10. You are finished!! The first boot takes some time no need to panic.
Additional:
Reinstall TWRP and flash SuperSU for Root. Than you can restore your backup you made in the second step.
[credit for discovering it's possible to install B510 directly from Aosp based roms goes to @taaeem= original post]
Rooting:
Try these:
XDA Root List = http://forum.xda-developers.com/showthread.php?t=2390491
Motochopper = http://www.hexamob.com/downloads/motochopper.zip
Doomlord's Exploit = http://forum.xda-developers.com/showthread.php?t=1321582
Bin4ry Method= http://www.schwantz-i.org/universal/Root_with_Restore_by_Bin4ry_v18.rar
SuperSu Flashing method = http://download.chainfire.eu/452/SuperSU/UPDATE-SuperSU-v2.02.zip?retrieve_file=1
Essential Apps
Titanium Backup
Wifi Analyzer
Chrome
Gmail
BBM
Whatsapp
Facebook
Messenger
Calculator++
Cpu-Z
AnTuTu Benchmark
Speedtest
Lucky Patcher
ES File Explorer
AndroZip
Root Browser
Adobe Reader
Vlc
Battery Doctor
Clean Master
Unit Converter
Software Data Cable
My Phone Explorer
Fing
Ad Away
For users struggling with bootloader and recovery issues try using this to switch to stock recovery http://www.androidfilehost.com/?fid=23501681358539086
Also for help with common problems goto http://forum.xda-developers.com/ascend-p6/help/p6-u06-common-issues-fixes-t2843810
credits for creating the mods,twrp,apps,root methods goto their respective developers.
Maybe i got you wrong, but is it possible that i share the ROM with others? Or do you mean that the DIY ROM is only for ourself?
PS: The link for Pure Graphic HD Mod does not work, theres is a typo. The right URL is
"http://www.mediafire.com/download/zi7q6fk7cm9lclq/Pure_Graphic_HD_%28Rendering+Version%29.zip"
Tried the pure audio and the pure performance mods... Audio is better...but performance not so good! Anyway...good job!! ?
Can I flash that superuser 2.02 because mine when I click its unfortunately stop im on b513 repack by surdu
Sent from my HUAWEI P6-U06 using xda premium
You can give it a try.

HTC 526G+ Taiwan Stock Rom

Hey Guys,
After following all the steps properly with caution i was able to make the stock rom in a CWM recoverable file
I AM NOT RESPONSIBLE FOR ANY DAMAGES MADE TO YOUR DEVICE IF YOU MAKE A MISTAKE IN BETWEEN
BUT I WILL ASSURE YOU THAT I WILL TRY MY BEST TO HELP YOU
This are the files that were backed up , just check to be sure you have all files in the folder / zip
~ System . ext4 . tar
~ Recovery . img
~ uboot . img
~ Boot . img
~ nandroid.md5
TUTORIAL
Step 1 : Unlock Bootloader to flash CWM / TWRP recovery
GUIDE : UNLOCK BOOTLOADER
RECOVERY : DOWNLOAD
I DID NOT MAKE THE FILES TO UNLOCK BOOTLOADER : EVERYTHING WAS DONE BY :
SALMAN986 AND PRIYANSH21
I recommend using cwm
STEP 2 : Extract the stock rom to CLOKWORKMOD/PHILZ/TWRP in sdcard/sdcard1
IF YOU CANT FIND THIS FOLDER > YOU CAN BACKUP YOUR ROM AND CANCEL IN BETWEEN SO THE FOLDER IS CREATED AUTOMATICALLY
STEP 3 : select restore or advance restore
VOILA - The stock rom will be restored
WITH ROOT (KINGROOT) AND BUSYBOX
IF YOUR DATA IS NOT INTACT / PHONE DOESNT REBOOT , CLEAR DATA & CACHE FROM RECOVERY
BE SURE TO LIKE MY WORK , AND HIT THE THANKS BUTTON
MAIN CONTRIBUTORS:
SALMAN986
PRIYANSH21
PLEASE LIKE THEIR WORK TOOO , WITHOUT THEM WE COULD NOT HAVE THE TAIWAN STOCK ROM FOR OUR DEVICE
DOWNLOAD STOCK ROM HERE:
MEGA
Hey, you can do as follows:
~~~~~~~~~~~~~~~~~~~~~~~
Requirements:
* PC
* CWM/TWRP Backup
* CWM/TWRP Installed
* Winrar/7Zip
* Brain
Now the real-deal..
1. Copy the backup from Phone to PC
2. Extract system.ext4.tar file with winrar/7zip, you
will get the system folder
3. Collect the boot.img from the backup
4. Now collect a META-INF folder from any custom
rom/small update zip which is made for HTC Desire 526G+
5. Now select META-INF,system & boot.img, click
right button of your mouse and select 'Add to archive'
now select archive format 'ZIP' and press ok
6. Your flasable zip rom is ready. Just copy it
to your sd card and flash with CWM or TWRP
7. Done!! This will flash the stock Taiwan System to your device.
Make sure to hit the thanks button!!
P.S. Can you give the link for Indian Stock ROM.
Thanks.. i followed the procedure suggested by you. Really it is working. Is there any possibility to edit the source code and (As per my customization) compile, generating the images and flashing back. If yes which cross compile tool is required and how to get source code.
Philz touch recovery download for STEP 1 , Instead of using CWM / TWRP
Mega

Idol tools Suite for 4.7 [6039] version 21-11-2016

Hi!
I update the Idol suite for 4.7 6039 phone version, it is a Windows tools ( sorry).
Log:
It use ADB tools
Can unlock bootloader
Flash TWRP 3.0.0-0 for Idol 4.7
Backup yur phone ROM (need root)
Can boot in bootloader mode
Can reboot from bootloader mode
Can boot in to recovery
Can simply reboot the phone
Can extract the files from a ext4 image, like system.img
Can flash a single image
Can pull to edite the build.prop file and create a flash zip for it
Can boot in to twrp 3.0.0-0 with out flashing ( useful to recover the phone)
Can pull the apks from system and create a flash zip ( If you want to change something in apps or change a pp for another than you want to flash it again )
Can edite the apk files and create a flash zip
Can create a new Splash image and a zip to flash it
It have idol drivers for windows
NOTE:
Some tools are not mine, I simply put everything together in one place!​
I am not responsible for any damage they may cause to your device.
Use it at your responsability​
Extract the folder from zip in to descktop and execute the Idol_Suite_V3.exe file.
​
New_Idol_4.7_Suite.zip
Any issue please tell me!
Enjoy it!
The tool is update:
Now you can modify boot and recovery to.
thank you dude.
You can upload the file again
Thanks!!!
Hi Persona78, first can i say what a fantastic job you have done, most of my research on the idol 3 4.7 points back to you, hats off sir!
I'm still having a problem and i'm really at a loss here after about a week of no returns.
adb refuses to recognise my 6039y when in bootloader so i cannot flash recovery, or ROM, or any command. I have all drivers installed correctly, vendor id of 0x1bbb is set in a.ini file in adb_usb.ini, i keep search for different approaches but turning up nothing!
Are there anything to suggest? I would be most appreciative!
Thanks, Marlin

How To Guide ROOTING + CUSTOM ROM, YOUR BRAND NEW REDMI NOTE 9 T FOR THE NOOB

## first version , errors may still occur
Hi everybody, as a noob in the rooting world , here is my small contribution. A step by step how-to , to completely root + installing a custom.
DO NOT HESITATE TO COMMENT SO I CAN IMPROVE THE DOC:
=======================================================================
Read the complete procedure carefully before start: Beware you will loose all data you may have on the phone .and you will loose warranty .
## REQUIREMENTS :​a brand new redmi note 9T (direct from the store, no modifications), a pc with windows , the usb cable to link the pc to the phone.
A sdcard where you can store the rom and some zip to put in your phone
Make sure the pc is up ot date with latest android usb driver and adb available :
usb drivers here : https://developer.android.com/studio/run/win-usb
adb software : https://www.xda-developers.com/install-adb-windows-macos-linux/
we also need 7zip https://www.7-zip.org/
Also try to update your phone with the latest MIUI version you can get (at the the time I'm writing this it should be MIUI 12.5, based on android 11).
To upgrade go to system/about phone/ tap on the MIUI logo/ check for update .
If your phone is still stuck to a lower version, you may trick it by changing the region (I choose hong kong) in system/additional settings/region
then try to check for MIUI update again.
## FIRST STEP : unlock the booloader .​for this you need a xiaomi account (if you created one with your phone , use it)
You also need to enable developper mode in your phone , so you can access usb debuging . (see the video tutorial)
a video tutoriel here :
you will probably have to wait 168 hours before you can unlock the phone (Yes you're not alone to think it's annoying, do not hesitate to complain to xiaomi business department)
there is also this version of the unlocker (to bypass the wait time), but I have not tested it
Moreover the bypass works for devices not yet linked to mi account
Download MiUnlock_bypass_OTP.zip - Generic
Download file MiUnlock_bypass_OTP.zip - Generic - in MiFirm ✅ - Xiaomi MIUI Firmware - ROM - TWRP download free and max speed - The biggest Xiaomi Mi download
mifirm.net
Once your bootloader unlock you phone will be reseted and when you restart it you will be asked for the xiaomi account password again (and you need a network connection).
After completing the setup again, don't forget to reactivate usb debuging option .
### SECOND STEP download and save files​
In case your want to rollback, and also if your want to install magisk in some custom rom , you need to download the original MIUI rom here :
Xiaomi Firmware Updater
The ultimate script that provides firmware packages for Xiaomi devices.
xiaomifirmwareupdater.com
from the zip file , you need to extract the boot.img file and transfer the file on your phone
then the install on your phone the magisk apk file : https://magiskapp.com/#magisk-app-apk
run the magisk app , choose install magisk , select patch a file and choose the boot.img file then press the let's go button
Magisk will generate a patched_image_file in your download folder .
copy the patched image file to your sdcard.
on your phone you can install this : https://play.google.com/store/apps/details?id=tk.hack5.treblecheck
It will help you select the type of rom you need to download
Plug your phone to the computer , open a command shell in your adb fastboot directory and type :
adb devices
you should see something like :
List of devices attached
sceqxxxxxxxxxxk device
(if not check your phone screen ,if there is some grant access dialog)
download orangefox from here https://github.com/gsuzeda/twrp_cannon/releases/
put the vbmeta.zip and OrangeFox-R11.0-Unofficial-cannong.zip on the sdcard
put the recovery.img in the same directory than your adb fastboot program
download the latest magisk files release from here :
first the zip : https://magiskapp.com/zip/#download-now
and the apk file : https://magiskapp.com/#magisk-app-apk
and put them on the sdcard
download the latest of the custom rom you want to install. Based on this link (thank you @gsuzeda) https://docs.google.com/spreadsheets/d/1Nm1RAQ_kiSoSBgtzux8uKklLF9TF6-1QvIVCPzW3OCs/edit#gid=0
, I will try AOSP rom here : https://github.com/phhusson/treble_experimentations/releases/latest
but you can also try lineageOS here : https://sourceforge.net/projects/andyyan-gsi/files/
(if you choose AOSP , you can not install magisk , at least for now)
NOTE: If your choose another custom rom , remember you may also need to install google apps as a separate package .
Example for lineageOS , you can download the gapps (MindtheGapps for arm64 )here https://androidfilehost.com/?fid=2188818919693781601
and copy the file to your sdcard
The redmi note 9T code name is CANNONG . It uses ARM64 A/B IMAGES and we want vndklite (read/write on system)
This is important whatever the custom rom you choose to download and install
Now we prepare the image files from the custom ROM so we can choose between two install methods
METHOD ONE is flashing the system.img from the computer with the phone in fastboot mode plugged to the pc.
METHOD TWO is flashing a zip file with the phone in recovery mode (using the orangefox program or twrp)
I choose his method , because you can do all the operation from orangefox recovery
for method two we will use https://forum.xda-developers.com/attachments/gsi_flasher_sdcard-zip.5183639/
(thank you @gsuzeda for the complete method here https://forum.xda-developers.com/t/...ung-galaxy-a51-super-partition-image.4216083/ )
unzip the gsi flasher somewhere on your PC (for me Mydocument\gsiflasher)
exemple usage with AOSP rom:
uncompress the system-roar-arm64-ab-vndklite-gapps.img.xz
copy the img file in the gsi directory of the gsi flasher and rename it system.img (so for me cp system-roar-arm64-ab-vndklite-gapps.img to Mydocument\gsiflasher\gsi\system.img).
then create a zip file with the 3 directories (gsi, META-INF, scripts) in Mydocument\gsiflasher using 7 zip , for example system-roar-arm64-ab-vndklite-gapps.zip.
And finally copy this zip to the root of your sdcard .
## THIRD STEP : install orangefox​orangefox is a recovery program like twrp but with more option.
Check if you booloader is unlock in your phone by going to system\additonal settings\developper option\mi unlock status
If the booloader is unlock then you can install recovery orangefox .
Make sure than usb debugging and install via usb is checked in the developper option of your phone
power off your phone and restart your phone in fastboot mode (volume down + power )
plug it to your pc .
open a command shell in the directory were fastboot is installed
write the command :
fastboot devices
it should give you a list with your device
then write the command
fastboot flash recovery recovery.img
once the install complete reboot your phone in recovery mode with the command :
fastboot reboot recovery
once boot in recovery mode you should see the orangefox menu.
{
"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"
}
Use the "Files" at the bottom at the screen explore to go to the sdcard and tap on the orangefox zip files .
then swipe to install
Once the file installed , the phone should reboot in recovery.
Then use the file explorer to find the vbmeta.zip
ttap the file and swipe to install
after the install the phone should reboot.
a simple check step to see if everything went right
## FOURTH STEP , test and install custom OS​There is two method to install , via recovery or via fastboot
I choose to use orangefox recovery
via recovery
reboot in recovery mode (volume up +power)
Once booted in orangefox recovery
first format the DATA (using the wipe menu,and you need to type yes to confirm )
Then reboot to recovery (from the orangefox menu choose reboot then recovery)
once rebooted in recovery
wipe data cache and dalvik
then with the file menu of orangefox navigate to the root of your sdcard where you stored the system zip we created for example system-roar-arm64-ab-vndklite-gapps.zip.
tap the zip and swipe to install
(if your choose another rom , do the same thing to also intall the gapps zip file)
once the install complete
wipe data cache and dalvik
reboot the phone .
## FIFTH STEP check install​your phone should now start with AOSP version of android and start the setup program.
If you get a message like your device is not play protect certified :
connect your phone to your computer, in a command shell type :
adb root
adb shell
sqlite3 /data/data/com.google.android.gsf/databases/gservices.db
select * from main where name = "android_id";
then copy the id number printed and go there :
Sign in - Google Accounts
and enter the id in the text box and press register
wait 15 minutes and reboot your phone and finish the setup process and connect to google store with your gmail account
If your installation complain about the sd card, choose format as external. (you may have to transfer the files of step one in the card again)
## SIXTH STEP : install magisk​(DOES NOT WORK WITH AOSP ROM)
reboot in recovery.
in the orangefox file menu :
search your magisk.zip file on the sdcard , tap and swipe to install.
Then choose the patched_boot_img file and choose /boot to install
Then choose the vbmeta.zip and install
wipe cache and reboot
All you want to know about magisk is here : https://magiskapp.com/
### LAST STEP , secure back​now disable usb debugging
unchecked the option : install app from unknow sources
### ROLLBACK​In case you want to rollback to MIUI rom
go there : https://www.getdroidtips.com/guide-flash-miui-rom-xiaomi-devices/
and follow the chapter : the How to Flash Xiaomi Firmware via TWRP Recovery
## TO DO
improve the magisk part :
adding a list of apps for securing the phone
## TO DO: EXTRA STEP :
how to move back from custom to stock rom
Looks good.
The default PHH GSI Custom Rom has inbuilt root rather than Magisk, which is a bit annoying as you can't get SafetyNet working, so can't use Google Pay (and other apps that require SafetyNet).
You can uninstall the inbuilt root and replace it with Magisk, but it's a bit fiddly (like most things on this phone!), as the Magisk app has an issue finding the Magisk su binary.
You need to be using the vndklite build so you can get write access to the system partition. From a root shell (which will be using the inbuilt root to start with). You need to run this:
Code:
mount -o remount,rw /
echo 'export PATH /sbin:/product/bin:/apex/com.android.runtime/bin:/apex/com.android.art/bin:/system_ext/bin:/system/bin:/system/xbin:/odm/bin:/vendor/bin:/vendor/xbin' >> init.environ.rc
mount -o remount,ro /
Reboot to OrangeFox, and in terminal run this (to remove the inbuilt su):
Code:
mount /system_root
mount -o remount,rw /system_root
touch /system_root/system/phh/secure
umount -l /system_root/system/xbin/su
rm /system_root/system/xbin/su
rm /system_root/system/bin/phh-su
rm /system_root/system/etc/init/su.rc
rm /system_root/system/bin/phh-securize.sh
rm -Rf /system_root/system/{app,priv-app}/me.phh.superuser/
rm -Rf /system_root/data/su
umount /system_root
Download the latest Magisk apk (v23 at time of writing) from https://github.com/topjohnwu/Magisk/releases/download/v23.0/Magisk-v23.0.apk and rename it to Magisk-v23.0.zip. Copy it over to your phone, and install it using OrangeFox (topjohnwu has stated in future Magisk versions the renaming to zip will stop working, but it's good for now).
From memory I think you now need to wipe the data partition again, but it's worth a try without, and see if you bootloop?
Once you're back into the regular system you'll need to install the Magisk app (if you haven't done so already), and then activate MagiskHide, and install the MagiskHide Props Config module. You can then use Google Pay again!
very good, Congratulations!
I added a link in my table that redirects to your post
dsclee1 said:
Looks good.
The default PHH GSI Custom Rom has inbuilt root rather than Magisk, which is a bit annoying as you can't get SafetyNet working, so can't use Google Pay (and other apps that require SafetyNet).
You can uninstall the inbuilt root and replace it with Magisk, but it's a bit fiddly (like most things on this phone!), as the Magisk app has an issue finding the Magisk su binary.
You need to be using the vndklite build so you can get write access to the system partition. From a root shell (which will be using the inbuilt root to start with). You need to run this:
Code:
mount -o remount,rw /
echo 'export PATH /sbin:/product/bin:/apex/com.android.runtime/bin:/apex/com.android.art/bin:/system_ext/bin:/system/bin:/system/xbin:/odm/bin:/vendor/bin:/vendor/xbin' >> init.environ.rc
mount -o remount,ro /
Reboot to OrangeFox, and in terminal run this (to remove the inbuilt su):
Code:
mount /system_root
mount -o remount,rw /system_root
touch /system_root/system/phh/secure
umount -l /system_root/system/xbin/su
rm /system_root/system/xbin/su
rm /system_root/system/bin/phh-su
rm /system_root/system/etc/init/su.rc
rm /system_root/system/bin/phh-securize.sh
rm -Rf /system_root/system/{app,priv-app}/me.phh.superuser/
rm -Rf /system_root/data/su
umount /system_root
Download the latest Magisk apk (v23 at time of writing) from https://github.com/topjohnwu/Magisk/releases/download/v23.0/Magisk-v23.0.apk and rename it to Magisk-v23.0.zip. Copy it over to your phone, and install it using OrangeFox (topjohnwu has stated in future Magisk versions the renaming to zip will stop working, but it's good for now).
From memory I think you now need to wipe the data partition again, but it's worth a try without, and see if you bootloop?
Once you're back into the regular system you'll need to install the Magisk app (if you haven't done so already), and then activate MagiskHide, and install the MagiskHide Props Config module. You can then use Google Pay again!
Click to expand...
Click to collapse
oupps . Finally things did not as planned . After the running the commands , I was stuck in a loop , always going back to recovery (even if after wipe data). Finally I decided to reflash completely, but this time with lineage OS .
This time I did :
boot to recovery
format data
install lineageOS zip
I tried to install the gapps but the install crash (out of ressources)
so i reboot in system
then reboot back in recovery
flash the gapps file
flash the magisk.zip (the apk previously renammed ) and got an error.
reboot back to system , took the opportunity to declare the phone so google app store works.
then resynchronize with my google account.
once the update and sync completed boot to recovey
flash the magisk zip (the real one from here https://magiskapp.com/zip/#download-now
flash the vbmeta
then reboot to system
It boots fine But I have no root acces . Below are a few screenshot from magisk :
@gsuzeda , @dsclee1
trying to redo the al process all other again. Things are getting worse.
This time, I can flash the lineage rom but when I try to flash the gapps , I got a not enough space .
whatever I do , i got the error, I tried try wipe format everything :
Here is quick step
boot in recovery
format data,
wipe cache , dalvik, internal storage, data.
flashing lineage OS
flashing the gapps (there i get a not enough space)
What did I missed ??
Meanwhile I'l go back to AOSP without magisk
I also updated the doc . Can you check especially the flash ROM part and the magisk part ?
Thanks
chmick said:
@gsuzeda , @dsclee1
trying to redo the al process all other again. Things are getting worse.
This time, I can flash the lineage rom but when I try to flash the gapps , I got a not enough space .
whatever I do , i got the error, I tried try wipe format everything :
Here is quick step
boot in recovery
format data,
wipe cache , dalvik, internal storage, data.
flashing lineage OS
flashing the gapps (there i get a not enough space)
What did I missed ??
Meanwhile I'l go back to AOSP without magisk
I also updated the doc . Can you check especially the flash ROM part and the magisk part ?
Thanks
Click to expand...
Click to collapse
I think you can only install gapps if they are systemless like litegapps
chmick said:
## first version , errors may still occur
Hi everybody, as a noob in the rooting world , here is my small contribution. A step by step how-to , to completely root + installing a custom.
DO NOT HESITATE TO COMMENT SO I CAN IMPROVE THE DOC:
=======================================================================
Read the complete procedure carefully before start: Beware you will loose all data you may have on the phone .and you will loose warranty .
## REQUIREMENTS :​a brand new redmi note 9T (direct from the store, no modifications), a pc with windows , the usb cable to link the pc to the phone.
A sdcard where you can store the rom and some zip to put in your phone
Make sure the pc is up ot date with latest android usb driver and adb available :
usb drivers here : https://developer.android.com/studio/run/win-usb
adb software : https://www.xda-developers.com/install-adb-windows-macos-linux/
we also need 7zip https://www.7-zip.org/
Also try to update your phone with the latest MIUI version you can get (at the the time I'm writing this it should be MIUI 12.5, based on android 11).
To upgrade go to system/about phone/ tap on the MIUI logo/ check for update .
If your phone is still stuck to a lower version, you may trick it by changing the region (I choose hong kong) in system/additional settings/region
then try to check for MIUI update again.
## FIRST STEP : unlock the booloader .​for this you need a xiaomi account (if you created one with your phone , use it)
You also need to enable developper mode in your phone , so you can access usb debuging . (see the video tutorial)
a video tutoriel here :
you will probably have to wait 168 hours before you can unlock the phone (Yes you're not alone to think it's annoying, do not hesitate to complain to xiaomi business department)
there is also this version of the unlocker (to bypass the wait time), but I have not tested it
Moreover the bypass works for devices not yet linked to mi account
Download MiUnlock_bypass_OTP.zip - Generic
Download file MiUnlock_bypass_OTP.zip - Generic - in MiFirm ✅ - Xiaomi MIUI Firmware - ROM - TWRP download free and max speed - The biggest Xiaomi Mi download
mifirm.net
Once your bootloader unlock you phone will be reseted and when you restart it you will be asked for the xiaomi account password again (and you need a network connection).
After completing the setup again, don't forget to reactivate usb debuging option .
### SECOND STEP download and save files​
In case your want to rollback, and also if your want to install magisk in some custom rom , you need to download the original MIUI rom here :
Xiaomi Firmware Updater
The ultimate script that provides firmware packages for Xiaomi devices.
xiaomifirmwareupdater.com
from the zip file , you need to extract the boot.img file and transfer the file on your phone
then the install on your phone the magisk apk file : https://magiskapp.com/#magisk-app-apk
run the magisk app , choose install magisk , select patch a file and choose the boot.img file then press the let's go button
Magisk will generate a patched_image_file in your download folder .
copy the patched image file to your sdcard.
on your phone you can install this : https://play.google.com/store/apps/details?id=tk.hack5.treblecheck
It will help you select the type of rom you need to download
Plug your phone to the computer , open a command shell in your adb fastboot directory and type :
adb devices
you should see something like :
List of devices attached
sceqxxxxxxxxxxk device
(if not check your phone screen ,if there is some grant access dialog)
download orangefox from here https://github.com/gsuzeda/twrp_cannon/releases/
put the vbmeta.zip and OrangeFox-R11.0-Unofficial-cannong.zip on the sdcard
put the recovery.img in the same directory than your adb fastboot program
download the latest magisk files release from here :
first the zip : https://magiskapp.com/zip/#download-now
and the apk file : https://magiskapp.com/#magisk-app-apk
and put them on the sdcard
download the latest of the custom rom you want to install. Based on this link (thank you @gsuzeda) https://docs.google.com/spreadsheets/d/1Nm1RAQ_kiSoSBgtzux8uKklLF9TF6-1QvIVCPzW3OCs/edit#gid=0
, I will try AOSP rom here : https://github.com/phhusson/treble_experimentations/releases/latest
but you can also try lineageOS here : https://sourceforge.net/projects/andyyan-gsi/files/
(if you choose AOSP , you can not install magisk , at least for now)
NOTE: If your choose another custom rom , remember you may also need to install google apps as a separate package .
Example for lineageOS , you can download the gapps (MindtheGapps for arm64 )here https://androidfilehost.com/?fid=2188818919693781601
and copy the file to your sdcard
The redmi note 9T code name is CANNONG . It uses ARM64 A/B IMAGES and we want vndklite (read/write on system)
This is important whatever the custom rom you choose to download and install
Now we prepare the image files from the custom ROM so we can choose between two install methods
METHOD ONE is flashing the system.img from the computer with the phone in fastboot mode plugged to the pc.
METHOD TWO is flashing a zip file with the phone in recovery mode (using the orangefox program or twrp)
I choose his method , because you can do all the operation from orangefox recovery
for method two we will use https://forum.xda-developers.com/attachments/gsi_flasher_sdcard-zip.5183639/
(thank you @gsuzeda for the complete method here https://forum.xda-developers.com/t/...ung-galaxy-a51-super-partition-image.4216083/ )
unzip the gsi flasher somewhere on your PC (for me Mydocument\gsiflasher)
exemple usage with AOSP rom:
uncompress the system-roar-arm64-ab-vndklite-gapps.img.xz
copy the img file in the gsi directory of the gsi flasher and rename it system.img (so for me cp system-roar-arm64-ab-vndklite-gapps.img to Mydocument\gsiflasher\gsi\system.img).
then create a zip file with the 3 directories (gsi, META-INF, scripts) in Mydocument\gsiflasher using 7 zip , for example system-roar-arm64-ab-vndklite-gapps.zip.
And finally copy this zip to the root of your sdcard .
## THIRD STEP : install orangefox​orangefox is a recovery program like twrp but with more option.
Check if you booloader is unlock in your phone by going to system\additonal settings\developper option\mi unlock status
If the booloader is unlock then you can install recovery orangefox .
Make sure than usb debugging and install via usb is checked in the developper option of your phone
power off your phone and restart your phone in fastboot mode (volume down + power )
plug it to your pc .
open a command shell in the directory were fastboot is installed
write the command :
fastboot devices
it should give you a list with your device
then write the command
fastboot flash recovery recovery.img
once the install complete reboot your phone in recovery mode with the command :
fastboot reboot recovery
once boot in recovery mode you should see the orangefox menu.
View attachment 5349227
Use the "Files" at the bottom at the screen explore to go to the sdcard and tap on the orangefox zip files .
then swipe to install
Once the file installed , the phone should reboot in recovery.
Then use the file explorer to find the vbmeta.zip
ttap the file and swipe to install
after the install the phone should reboot.
a simple check step to see if everything went right
## FOURTH STEP , test and install custom OS​There is two method to install , via recovery or via fastboot
I choose to use orangefox recovery
via recovery
reboot in recovery mode (volume up +power)
Once booted in orangefox recovery
first format the DATA (using the wipe menu,and you need to type yes to confirm )
Then reboot to recovery (from the orangefox menu choose reboot then recovery)
once rebooted in recovery
wipe data cache and dalvik
then with the file menu of orangefox navigate to the root of your sdcard where you stored the system zip we created for example system-roar-arm64-ab-vndklite-gapps.zip.
tap the zip and swipe to install
(if your choose another rom , do the same thing to also intall the gapps zip file)
once the install complete
wipe data cache and dalvik
reboot the phone .
## FIFTH STEP check install​your phone should now start with AOSP version of android and start the setup program.
If you get a message like your device is not play protect certified :
connect your phone to your computer, in a command shell type :
adb root
adb shell
sqlite3 /data/data/com.google.android.gsf/databases/gservices.db
select * from main where name = "android_id";
then copy the id number printed and go there :
Sign in - Google Accounts
and enter the id in the text box and press register
wait 15 minutes and reboot your phone and finish the setup process and connect to google store with your gmail account
If your installation complain about the sd card, choose format as external. (you may have to transfer the files of step one in the card again)
## SIXTH STEP : install magisk​(DOES NOT WORK WITH AOSP ROM)
reboot in recovery.
in the orangefox file menu :
search your magisk.zip file on the sdcard , tap and swipe to install.
Then choose the patched_boot_img file and choose /boot to install
Then choose the vbmeta.zip and install
wipe cache and reboot
All you want to know about magisk is here : https://magiskapp.com/
### LAST STEP , secure back​now disable usb debugging
unchecked the option : install app from unknow sources
### ROLLBACK​In case you want to rollback to MIUI rom
go there : https://www.getdroidtips.com/guide-flash-miui-rom-xiaomi-devices/
and follow the chapter : the How to Flash Xiaomi Firmware via TWRP Recovery
Click to expand...
Click to collapse
I will try after thanks you and everybody who help to do this !
for those that may interest, I've not been able to make the fastboot cli tool work on windows in a virtualbox virtual machine (all my computers run on Debian), so unable to unlock from a VM (tried different versions of windows and Android fastboot USB drivers).
I had to find a windows machine for the unlock tool to work.
So don't waste your time fighting with VMs for this phone at least (it used to work just fine on my old redmi note 5 pro).
i can't flash system on my note 9t 5g
my flash system : octavi os
Hi, what is the difference between lineage-18.1-20210914-UNOFFICIAL-treble_arm64_bvS.img.xz and lineage-18.1-20210914-UNOFFICIAL-treble_arm64_bvS-vndklite.img.xz please ?
Please i follow steps but t's made a bootlop after flash rom (AOSP or lineage), only stock rom works...
chmick said:
## first version , errors may still occur
Hi everybody, as a noob in the rooting world , here is my small contribution. A step by step how-to , to completely root + installing a custom.
DO NOT HESITATE TO COMMENT SO I CAN IMPROVE THE DOC:
=======================================================================
Read the complete procedure carefully before start: Beware you will loose all data you may have on the phone .and you will loose warranty .
## REQUIREMENTS :​a brand new redmi note 9T (direct from the store, no modifications), a pc with windows , the usb cable to link the pc to the phone.
A sdcard where you can store the rom and some zip to put in your phone
Make sure the pc is up ot date with latest android usb driver and adb available :
usb drivers here : https://developer.android.com/studio/run/win-usb
adb software : https://www.xda-developers.com/install-adb-windows-macos-linux/
we also need 7zip https://www.7-zip.org/
Also try to update your phone with the latest MIUI version you can get (at the the time I'm writing this it should be MIUI 12.5, based on android 11).
To upgrade go to system/about phone/ tap on the MIUI logo/ check for update .
If your phone is still stuck to a lower version, you may trick it by changing the region (I choose hong kong) in system/additional settings/region
then try to check for MIUI update again.
## FIRST STEP : unlock the booloader .​for this you need a xiaomi account (if you created one with your phone , use it)
You also need to enable developper mode in your phone , so you can access usb debuging . (see the video tutorial)
a video tutoriel here :
you will probably have to wait 168 hours before you can unlock the phone (Yes you're not alone to think it's annoying, do not hesitate to complain to xiaomi business department)
there is also this version of the unlocker (to bypass the wait time), but I have not tested it
Moreover the bypass works for devices not yet linked to mi account
Download MiUnlock_bypass_OTP.zip - Generic
Download file MiUnlock_bypass_OTP.zip - Generic - in MiFirm ✅ - Xiaomi MIUI Firmware - ROM - TWRP download free and max speed - The biggest Xiaomi Mi download
mifirm.net
Once your bootloader unlock you phone will be reseted and when you restart it you will be asked for the xiaomi account password again (and you need a network connection).
After completing the setup again, don't forget to reactivate usb debuging option .
### SECOND STEP download and save files​
In case your want to rollback, and also if your want to install magisk in some custom rom , you need to download the original MIUI rom here :
Xiaomi Firmware Updater
The ultimate script that provides firmware packages for Xiaomi devices.
xiaomifirmwareupdater.com
from the zip file , you need to extract the boot.img file and transfer the file on your phone
then the install on your phone the magisk apk file : https://magiskapp.com/#magisk-app-apk
run the magisk app , choose install magisk , select patch a file and choose the boot.img file then press the let's go button
Magisk will generate a patched_image_file in your download folder .
copy the patched image file to your sdcard.
on your phone you can install this : https://play.google.com/store/apps/details?id=tk.hack5.treblecheck
It will help you select the type of rom you need to download
Plug your phone to the computer , open a command shell in your adb fastboot directory and type :
adb devices
you should see something like :
List of devices attached
sceqxxxxxxxxxxk device
(if not check your phone screen ,if there is some grant access dialog)
download orangefox from here https://github.com/gsuzeda/twrp_cannon/releases/
put the vbmeta.zip and OrangeFox-R11.0-Unofficial-cannong.zip on the sdcard
put the recovery.img in the same directory than your adb fastboot program
download the latest magisk files release from here :
first the zip : https://magiskapp.com/zip/#download-now
and the apk file : https://magiskapp.com/#magisk-app-apk
and put them on the sdcard
download the latest of the custom rom you want to install. Based on this link (thank you @gsuzeda) https://docs.google.com/spreadsheets/d/1Nm1RAQ_kiSoSBgtzux8uKklLF9TF6-1QvIVCPzW3OCs/edit#gid=0
, I will try AOSP rom here : https://github.com/phhusson/treble_experimentations/releases/latest
but you can also try lineageOS here : https://sourceforge.net/projects/andyyan-gsi/files/
(if you choose AOSP , you can not install magisk , at least for now)
NOTE: If your choose another custom rom , remember you may also need to install google apps as a separate package .
Example for lineageOS , you can download the gapps (MindtheGapps for arm64 )here https://androidfilehost.com/?fid=2188818919693781601
and copy the file to your sdcard
The redmi note 9T code name is CANNONG . It uses ARM64 A/B IMAGES and we want vndklite (read/write on system)
This is important whatever the custom rom you choose to download and install
Now we prepare the image files from the custom ROM so we can choose between two install methods
METHOD ONE is flashing the system.img from the computer with the phone in fastboot mode plugged to the pc.
METHOD TWO is flashing a zip file with the phone in recovery mode (using the orangefox program or twrp)
I choose his method , because you can do all the operation from orangefox recovery
for method two we will use https://forum.xda-developers.com/attachments/gsi_flasher_sdcard-zip.5183639/
(thank you @gsuzeda for the complete method here https://forum.xda-developers.com/t/...ung-galaxy-a51-super-partition-image.4216083/ )
unzip the gsi flasher somewhere on your PC (for me Mydocument\gsiflasher)
exemple usage with AOSP rom:
uncompress the system-roar-arm64-ab-vndklite-gapps.img.xz
copy the img file in the gsi directory of the gsi flasher and rename it system.img (so for me cp system-roar-arm64-ab-vndklite-gapps.img to Mydocument\gsiflasher\gsi\system.img).
then create a zip file with the 3 directories (gsi, META-INF, scripts) in Mydocument\gsiflasher using 7 zip , for example system-roar-arm64-ab-vndklite-gapps.zip.
And finally copy this zip to the root of your sdcard .
## THIRD STEP : install orangefox​orangefox is a recovery program like twrp but with more option.
Check if you booloader is unlock in your phone by going to system\additonal settings\developper option\mi unlock status
If the booloader is unlock then you can install recovery orangefox .
Make sure than usb debugging and install via usb is checked in the developper option of your phone
power off your phone and restart your phone in fastboot mode (volume down + power )
plug it to your pc .
open a command shell in the directory were fastboot is installed
write the command :
fastboot devices
it should give you a list with your device
then write the command
fastboot flash recovery recovery.img
once the install complete reboot your phone in recovery mode with the command :
fastboot reboot recovery
once boot in recovery mode you should see the orangefox menu.
View attachment 5349227
Use the "Files" at the bottom at the screen explore to go to the sdcard and tap on the orangefox zip files .
then swipe to install
Once the file installed , the phone should reboot in recovery.
Then use the file explorer to find the vbmeta.zip
ttap the file and swipe to install
after the install the phone should reboot.
a simple check step to see if everything went right
## FOURTH STEP , test and install custom OS​There is two method to install , via recovery or via fastboot
I choose to use orangefox recovery
via recovery
reboot in recovery mode (volume up +power)
Once booted in orangefox recovery
first format the DATA (using the wipe menu,and you need to type yes to confirm )
Then reboot to recovery (from the orangefox menu choose reboot then recovery)
once rebooted in recovery
wipe data cache and dalvik
then with the file menu of orangefox navigate to the root of your sdcard where you stored the system zip we created for example system-roar-arm64-ab-vndklite-gapps.zip.
tap the zip and swipe to install
(if your choose another rom , do the same thing to also intall the gapps zip file)
once the install complete
wipe data cache and dalvik
reboot the phone .
## FIFTH STEP check install​your phone should now start with AOSP version of android and start the setup program.
If you get a message like your device is not play protect certified :
connect your phone to your computer, in a command shell type :
adb root
adb shell
sqlite3 /data/data/com.google.android.gsf/databases/gservices.db
select * from main where name = "android_id";
then copy the id number printed and go there :
Sign in - Google Accounts
and enter the id in the text box and press register
wait 15 minutes and reboot your phone and finish the setup process and connect to google store with your gmail account
If your installation complain about the sd card, choose format as external. (you may have to transfer the files of step one in the card again)
## SIXTH STEP : install magisk​(DOES NOT WORK WITH AOSP ROM)
reboot in recovery.
in the orangefox file menu :
search your magisk.zip file on the sdcard , tap and swipe to install.
Then choose the patched_boot_img file and choose /boot to install
Then choose the vbmeta.zip and install
wipe cache and reboot
All you want to know about magisk is here : https://magiskapp.com/
### LAST STEP , secure back​now disable usb debugging
unchecked the option : install app from unknow sources
### ROLLBACK​In case you want to rollback to MIUI rom
go there : https://www.getdroidtips.com/guide-flash-miui-rom-xiaomi-devices/
and follow the chapter : the How to Flash Xiaomi Firmware via TWRP Recovery
Click to expand...
Click to collapse
please when I want install magisk i have a big issue:
E:unable to open block devices /dev/blocks/loop16: No such device or adress ! I have these lines a loop16 to loop62 !
Could you help to fix it please ?
My wife is angry that i stay too much times on this problem and me too !!! thanks you so much
dsclee1 said:
Looks good.
The default PHH GSI Custom Rom has inbuilt root rather than Magisk, which is a bit annoying as you can't get SafetyNet working, so can't use Google Pay (and other apps that require SafetyNet).
You can uninstall the inbuilt root and replace it with Magisk, but it's a bit fiddly (like most things on this phone!), as the Magisk app has an issue finding the Magisk su binary.
You need to be using the vndklite build so you can get write access to the system partition. From a root shell (which will be using the inbuilt root to start with). You need to run this:
Code:
mount -o remount,rw /
echo 'export PATH /sbin:/product/bin:/apex/com.android.runtime/bin:/apex/com.android.art/bin:/system_ext/bin:/system/bin:/system/xbin:/odm/bin:/vendor/bin:/vendor/xbin' >> init.environ.rc
mount -o remount,ro /
Reboot to OrangeFox, and in terminal run this (to remove the inbuilt su):
Code:
mount /system_root
mount -o remount,rw /system_root
touch /system_root/system/phh/secure
umount -l /system_root/system/xbin/su
rm /system_root/system/xbin/su
rm /system_root/system/bin/phh-su
rm /system_root/system/etc/init/su.rc
rm /system_root/system/bin/phh-securize.sh
rm -Rf /system_root/system/{app,priv-app}/me.phh.superuser/
rm -Rf /system_root/data/su
umount /system_root
Download the latest Magisk apk (v23 at time of writing) from https://github.com/topjohnwu/Magisk/releases/download/v23.0/Magisk-v23.0.apk and rename it to Magisk-v23.0.zip. Copy it over to your phone, and install it using OrangeFox (topjohnwu has stated in future Magisk versions the renaming to zip will stop working, but it's good for now).
From memory I think you now need to wipe the data partition again, but it's worth a try without, and see if you bootloop?
Once you're back into the regular system you'll need to install the Magisk app (if you haven't done so already), and then activate MagiskHide, and install the MagiskHide Props Config module. You can then use Google Pay again!
Click to expand...
Click to collapse
Is it possible to somehow pack all this into a Zip archive for convenience? So that you can simply install through the recovery.
I recommend this rom.
https://sourceforge.net/projects/gsi-projects/files/v415-Aug/crDroid-8.8/crDroid-8.8-arm64_bgN-vndklite-Unofficial.img.xz/download

Categories

Resources