Upgrade to 5.1.1. Confirmation - Nexus 9 Q&A, Help & Troubleshooting

Hello
I am on asop 5.1.1 with twrp and rooted. My bootloader is unlocked before.
Now I want to install stock 5.1.1, root it and install twrp. Also I want to start clean and restore my backup from titanium. Are these steps correct :
- fastboot flash bootloader bootloader-flounder-3.43.0.0114.img
- fastboot reboot-bootloader
(wait for device to reboot)
- fastboot flash recovery recovery.img
- fastboot flash boot boot.img
- fastboot flash system system.img
- fastboot flash vendor vendor.img
- fastboot flash cache cache.img
- fastboot reboot-bootloader
(wait for device to reboot)
- fastboot flash recovery twrp. img
Reboot in twrp.
Install root from twrp
- fastboot reboot
- install root from play store and restore backup from titanium.
Thanks in advance

this is correct. you don't actually need to flash stock recovery though, it'll be fine if you just flash twrp during that step instead.

I installed fire ice kernel to avoid encryption and did erase (not internal data) from twrp. So far so good. Is there the latest stock kernel with no force encryption available somewhere?

albsat said:
I installed fire ice kernel to avoid encryption and did erase (not internal data) from twrp. So far so good. Is there the latest stock kernel with no force encryption available somewhere?
Click to expand...
Click to collapse
Android Development section. Link here > http://forum.xda-developers.com/nex...able-forced-encryption-nexus-9-t2947719/page7
Post #64

Related

My Device Always rebooting to recovery...

When I switch on my device. I always boot to recovery. If I select reboot it also reboot to recovery.if I goto twrp and choose reboot to system it also reboot to recovery again if I need to boot to system I have to boot into bootloader and choose normal power up... What to doo
The problem comes after I flashed twrp via fast boot on StockRom
Also in cm11 plz help
I'm currently on Cm11 stable build
XT1022
Adarsh1998 said:
When I switch on my device. I always boot to recovery. If I select reboot it also reboot to recovery.if I goto twrp and choose reboot to system it also reboot to recovery again if I need to boot to system I have to boot into bootloader and choose normal power up... What to doo
The problem comes after I flashed twrp via fast boot on StockRom
Also in cm11 plz help
I'm currently on Cm11 stable build
XT1022
Click to expand...
Click to collapse
You unlock your bootloader?
if no, apply the steps in http://forum.xda-developers.com/showthread.php?t=2753110
If not work, go back to stock 4.4.4, not 4.4.2 and repeat the process to unlock bootloader and flash twrp and cm11 again.
noRetail said:
You unlock your bootloader?
if no, apply the steps in http://forum.xda-developers.com/showthread.php?t=2753110
If not work, go back to stock 4.4.4, not 4.4.2 and repeat the process to unlock bootloader and flash twrp and cm11 again.
Click to expand...
Click to collapse
I unlocked bootloader
Without unlocking bootloader there is no way to root without root there is nonway to flash cm11... LoL
Adarsh1998 said:
I unlocked bootloader
Without unlocking bootloader there is no way to root without root there is nonway to flash cm11... LoL
Click to expand...
Click to collapse
OK, with bootloder unlock try restore stock recovery in http://forum.xda-developers.com/moto-e/general/stock-recovery-recovery-img-t3031437
If not work try restore entirely rom stock 4.4.4 (I prefer this action)
After this apply the twrp and cm11, or, if you like lollipop?
Steps followed by me to get lillipop working 100% in xt1021 brazillian retail.
Get the zip file in https://mega.co.nz/#!wVsQmajI!tmEkvt...jtAS2GwF5fncws (Get stock 4.4.4 for your country)
Extract the files
In Fastboot mode apply the commands bellow in root user (I use Linux Mint 64)
commands :
fastboot flash partition gpt.bin
fastboot flash motoboot motoboot.img
fastboot flash logo logo.bin
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash system system.img_sparsechunk.0
fastboot flash system system.img_sparsechunk.1
fastboot flash system system.img_sparsechunk.2
fastboot flash modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn
fastboot erase cache
fastboot erase userdata
fastboot reboot
Apply your Google Account
Get the zip file in https://mega.co.nz/#!IJ9SVCaT!watj3-...GnKkg8od_kthLw (Get SOAK OTA for your country)
Put this zip file in root internal memory
In Fone go to Settings, About Phone, System Updates
After detect and apply update your Moto E have Lollipop 5.0.2
if you have a bootloader unlocked warning in boot phone after update to lillipop
Get the zip file in https://mega.co.nz/#!MFVkCQ7J!W7SmL3...rWDXoHW5hz6l44
unzip the file
In Fastboot mode apply the commands bellow in root user (I use Linux Mint 64)
commands :
fastboot flash logo logo.bin
fastboot reboot
noRetail said:
OK, with bootloder unlock try restore stock recovery in http://forum.xda-developers.com/moto-e/general/stock-recovery-recovery-img-t3031437
If not work try restore entirely rom stock 4.4.4 (I prefer this action)
After this apply the twrp and cm11, or, if you like lollipop?
Steps followed by me to get lillipop working 100% in xt1021 brazillian retail.
Get the zip file in https://mega.co.nz/#!wVsQmajI!tmEkvt...jtAS2GwF5fncws (Get stock 4.4.4 for your country)
Extract the files
In Fastboot mode apply the commands bellow in root user (I use Linux Mint 64)
commands :
fastboot flash partition gpt.bin
fastboot flash motoboot motoboot.img
fastboot flash logo logo.bin
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash system system.img_sparsechunk.0
fastboot flash system system.img_sparsechunk.1
fastboot flash system system.img_sparsechunk.2
fastboot flash modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn
fastboot erase cache
fastboot erase userdata
fastboot reboot
Apply your Google Account
Get the zip file in https://mega.co.nz/#!IJ9SVCaT!watj3-...GnKkg8od_kthLw (Get SOAK OTA for your country)
Put this zip file in root internal memory
In Fone go to Settings, About Phone, System Updates
After detect and apply update your Moto E have Lollipop 5.0.2
if you have a bootloader unlocked warning in boot phone after update to lillipop
Get the zip file in https://mega.co.nz/#!MFVkCQ7J!W7SmL3...rWDXoHW5hz6l44
unzip the file
In Fastboot mode apply the commands bellow in root user (I use Linux Mint 64)
commands :
fastboot flash logo logo.bin
fastboot reboot
Click to expand...
Click to collapse
I think u miss understood my question.
Im able to boot into all rom. Cm11, stock. 4.4.2, stock 4.4.4. Stock 5.0.1 but the problem is that when i press reboot the phone goes to the recovery. in recovery i hv to goto reboot bootloader option in bootloader i hv to choose normal powerup option
Adarsh1998 said:
I think u miss understood my question.
Im able to boot into all rom. Cm11, stock. 4.4.2, stock 4.4.4. Stock 5.0.1 but the problem is that when i press reboot the phone goes to the recovery. in recovery i hv to goto reboot bootloader option in bootloader i hv to choose normal powerup option
Click to expand...
Click to collapse
Yes, i don't have unserstand, sorry my mistake, you try factory reset?
noRetail said:
Yes, i don't have unserstand, sorry my mistake, you try factory reset?
Click to expand...
Click to collapse
All i tried no use
Adarsh1998 said:
All i tried no use
Click to expand...
Click to collapse
this is bad, I try to go back to stock 4.4.4 to clean the phone and if everything is ok would install the cm11 again, I see no other solution, sorry not help much.
Adarsh1998 said:
When I switch on my device. I always boot to recovery. If I select reboot it also reboot to recovery.if I goto twrp and choose reboot to system it also reboot to recovery again if I need to boot to system I have to boot into bootloader and choose normal power up... What to doo
The problem comes after I flashed twrp via fast boot on StockRom
Also in cm11 plz help
I'm currently on Cm11 stable build
XT1022
Click to expand...
Click to collapse
Try wipe partition system, this may work
GabrielRW said:
Try wipe partition system, this may work
Click to expand...
Click to collapse
How in twrp?
flash kernel again
Adarsh1998 said:
When I switch on my device. I always boot to recovery. If I select reboot it also reboot to recovery.if I goto twrp and choose reboot to system it also reboot to recovery again if I need to boot to system I have to boot into bootloader and choose normal power up... What to doo
The problem comes after I flashed twrp via fast boot on StockRom
Also in cm11 plz help
I'm currently on Cm11 stable build
XT1022
Click to expand...
Click to collapse
i did the same thing before.
flash kernel with proper command
you have flashed recovery with kernel command maybe
Adarsh1998 said:
How in twrp?
Click to expand...
Click to collapse
Yes, go to advanced wipe, make a full wipe except sdcard and flash again the ROM. Sorry for my bad english
kushal.purkar said:
i did the same thing before.
flash kernel with proper command
you have flashed recovery with kernel command maybe
Click to expand...
Click to collapse
How to pl, help
Where is link?
this may help
Adarsh1998 said:
How to pl, help
Where is link?
Click to expand...
Click to collapse
http://forum.xda-developers.com/moto-e/development/downgrade-5-0-x-to-4-4-4-stock-firmware-t3031073

[Guide] How to root Moto G4 with Magisk on stock Nougat

*Download all necessary files*
Magisk v15.0 or newest available
Download ElementalX kernel @ elementalx.org
Download latest Magisk Manager from official xda thread
Download TWRP for Moto G4 (Athene)
from twrp.me
Unlock bootloader (Go to Motorola's official site)
Check Unknown Sources in Android settings under security tab.
Download and install ADB & Fastboot on your PC
Boot into fastboot by holding down vol down and power.
Once you see Android robot with text at the bottom, on your computer in cmd type "fastboot boot TWRP image path" ex: fastboot boot D:/TWRPimages/twrp.athene.img
Once phone boots to TWRP, TWRP will ask to make modifications to system. Keep read only. (Note: if is asks to install, always say no.) Next go to backup, and make backup. (Just backup what is selected by default: system, data, and most importantly, boot.img) Note: make sure to tell it to backup to SD, and make sure the SD card is formatted as portable, not adoptable. Note: you might need mount the card under Mount tab first before being able to select it.
Next, go to mount, and uncheck "keep system read only", and swipe to allow modifications. Go to install, and flash ElementalX, and set it up in the following screen. As we already have the turbopower charger, you don't need to enable USB fast charging.
Wipe dalvik cache, and flash Magisk. Then, wipe dalvik again, and power off.
Boot into Android to make sure everything works. Install Magisk app if it didn't appear in your apps drawer from the .apk you downloaded earlier.
Hope this helps! Good luck!
Note: If you would like to flash TWRP instead, use "fastboot flash recovery TWRP.img" instead of fastboot boot.
Thank you for this tutorial! Is it required to install the ElementalX kernel?
Romano2K said:
Thank you for this tutorial! Is it required to install the ElementalX kernel?
Click to expand...
Click to collapse
It appears to be. I tried it without ElementalX first and got to the point of installing Magisk then rebooting before my G4 went to brick with the flashing light. Same behavior occurred when installed SuperSU. After installing ElementalX everything worked fine.
To supplement this guide, here are a few more links and notes of what I did.
Links
The December 2017 Nougat ROM from here
G4 compatible Shreps TWRP from here
Current Magisk here
ElementalX for G4 is here
If needed, install Platform Tools and Android File Transfer
Steps
Install the ROM using these commands (on Mac):
./fastboot flash partition gpt.bin
./fastboot flash bootloader bootloader.img
./fastboot flash logo logo.bin
./fastboot flash boot boot.img
./fastboot flash recovery ./twrp-3.1.1-athene_shreps.img
./fastboot flash dsp adspso.bin
./fastboot flash oem oem.img
./fastboot flash system system.img_sparsechunk.0
./fastboot flash system system.img_sparsechunk.1
./fastboot flash system system.img_sparsechunk.2
./fastboot flash system system.img_sparsechunk.3
./fastboot flash system system.img_sparsechunk.4
./fastboot flash system system.img_sparsechunk.5
./fastboot flash system system.img_sparsechunk.6
./fastboot flash system system.img_sparsechunk.7
./fastboot flash modem NON-HLOS.bin
./fastboot erase modemst1
./fastboot erase modemst2
./fastboot flash fsg fsg.mbn
./fastboot erase cache
./fastboot erase userdata
./fastboot erase customize
./fastboot erase clogo
Click to expand...
Click to collapse
After running commands, restart bootloader w/o rebooting
Go into recovery w/o rebooting
Reboot
After booting into the OS, turn on Developer Mode (tap About / Build Number 8 times)
Go to Developer Options and turn on OEM unlocking and USB debugging
Copy Magisk and ElementX kernel to / using Android File Transfer (if AFT doesn't connect select USB config, change to charging then back to MTP to enable file transfer)
Reboot into Recovery, then Install Magisk and ElementX from TWRP
Performed on an G4 XT-1625, resulted was a rooted Nougat.
@Sanras, I followed your instructions and they went great on a republic wireless xt1625, thank you! But your post just says to boot into twrp, which means if I ever want to use twrp I have to connect my computer. Is there a special way to flash twrp instead of just booting to it? Because I tried flashing twrp but the phone wouldn't boot afterward. So I had to flash the stock rom and redo everything. Let me know and thanks!
supermaxkato said:
@Sanras, I followed your instructions and they went great on a republic wireless xt1625, thank you! But your post just says to boot into twrp, which means if I ever want to use twrp I have to connect my computer. Is there a special way to flash twrp instead of just booting to it? Because I tried flashing twrp but the phone wouldn't boot afterward. So I had to flash the stock rom and redo everything. Let me know and thanks!
Click to expand...
Click to collapse
You should be able to flash TWRP. That's actually the most used method. I simply recommended booting and not flashing because it is easier to revert to stock for an update. However, you should be able to flash TWRP if you want with "fastboot flash recovery D:/TWRPimages/twrp.athene.img"
(Replace last part with image path on your computer)
Thanks Sanras,
Great guide, worked for me with no problems.
Anyone know how to approach security updates after rooting via this method?
Currently on Dec17 looking to update to Apr18 security patch just don't want to brick device.
Thanks in advance. :good:
Thanks. Sanras.
I got my phone bricked after restore my stock rom and try to install magisk to it. This solved my case also.
I just have to pay attention that just installing the kernel after try the magisk is not enough. Like you said:
* Install ElementalX kernel; wipe caches
* then install Magisk (again), and wipe caches again
Is this safe for Qualcomm variants like the Boost Mobile version?
chuman72486 said:
Is this safe for Qualcomm variants like the Boost Mobile version?
Click to expand...
Click to collapse
Yes, my own G4 is a Snapdragon 617 (unlocked US Variant) XT-1625
SD Card Configured Adoptable
Sanras said:
*Download all necessary files*
Magisk v15.0 or newest available
Download ElementalX kernel @ elementalx.org
Download latest Magisk Manager from official xda thread
Download TWRP for Moto G4 (Athene)
from twrp.me
Unlock bootloader (Go to Motorola's official site)
Check Unknown Sources in Android settings under security tab.
Download and install ADB & Fastboot on your PC
Boot into fastboot by holding down vol down and power.
Once you see Android robot with text at the bottom, on your computer in cmd type "fastboot boot TWRP image path" ex: fastboot boot D:/TWRPimages/twrp.athene.img
Once phone boots to TWRP, TWRP will ask to make modifications to system. Keep read only. (Note: if is asks to install, always say no.) Next go to backup, and make backup. (Just backup what is selected by default: system, data, and most importantly, boot.img) Note: make sure to tell it to backup to SD, and make sure the SD card is formatted as portable, not adoptable. Note: you might need mount the card under Mount tab first before being able to select it.
Next, go to mount, and uncheck "keep system read only", and swipe to allow modifications. Go to install, and flash ElementalX, and set it up in the following screen. As we already have the turbopower charger, you don't need to enable USB fast charging.
Wipe dalvik cache, and flash Magisk. Then, wipe dalvik again, and power off.
Boot into Android to make sure everything works. Install Magisk app if it didn't appear in your apps drawer from the .apk you downloaded earlier.
Hope this helps! Good luck!
Note: If you would like to flash TWRP instead, use "fastboot flash recovery TWRP.img" instead of fastboot boot.
Click to expand...
Click to collapse
My Moto G4 has an SD card formatted adoptable. Is there a work around in step 6 to accommodate an adoptable SD card?
Thanks
rwruck said:
My Moto G4 has an SD card formatted adoptable. Is there a work around in step 6 to accommodate an adoptable SD card?
Thanks
Click to expand...
Click to collapse
Sure. Instead of making a backup to the card, backup to internal storage. Then, before doing anything else, on your pc copy the files from the newly created TWRP folder on your internal storage. These are your backups. You can then proceed with the rest of the steps. Honestly, the backup isn't even necessary, it's just good to have in case something goes wrong.
Hi
I know it's a bit old now, but I'm unable to root my Nougat XT1641
I already have the whole stuff :
- BL unlocked ;
- TWRP installed ;
- all backups done.
But everytime I try to flash ElementalX/Magisk, it fails and ends in a bootloop.
Can someone have an advice to help me ?
Well, I used this : https://topjohnwu.github.io/Magisk/install.html#patching-images
Patching my boot.img did the trick !

How can I lock the phone back after unlocking bootloader, rooting, installing Xposed?

How can I lock the phone back after unlocking bootloader, rooting, installing Xposed?
Wipe installed custom ROM (System+data+cache+dalvik).
**Internal storage optional (You may have to flash TWRP again though).
Install MIUI recovery ROM pack through TWRP. Run MIUI initial setup. Reboot to fastboot and flash stock recovery, you can find stock recovery in MIUI forums. After that check for successful flash and successful system boot. Only then run the fastboot command to lock the bootloader :
fastboot oem lock
**Do not lock with TWRP. You'll hard brick your phone
***After flashing MIUI in TWRP flash lazyflasher or your device will be stuck
If you don't understand the complications in this method please ignore it, am sure there are some easier ways using MiFlash. Check MIUI forum for relocking and recovering to MIUI. If you wanna come back to the world of custom ROMs and Mods XDA is the place.
ArK96 said:
Wipe installed custom ROM (System+data+cache+dalvik).
**Internal storage optional (You may have to flash TWRP again though).
Install MIUI recovery ROM pack through TWRP. Run MIUI initial setup. Reboot to fastboot and flash stock recovery, you can find stock recovery in MIUI forums. After that check for successful flash and successful system boot. Only then run the fastboot command to lock the bootloader :
fastboot oem lock
**Do not lock with TWRP. You'll hard brick your phone.
Click to expand...
Click to collapse
Thank You
BTW If you have the time could you write this more in steps like for a noob. If not it still kicks a$$ and thanks for reply
First you need to get rid of your current ROM and it's data. For that boot into TWRP and select wipe, in the list of partitions displayed select :
•System
•Data
•Cache
•Dalvik​and confirm wipe. This step removes the ROM and data associated with it. Now the only thing you can access is TWRP and fastboot.
Also during wipe you can also select to wipe Internal Storage partition but after you do this you may lose TWRP also at the next boot. Now your phone can only boot into fastboot mode. So if you did wipe your internal storage also flash TWRP again from fastboot. If you ask how..:
•Download TWRP recovery from here
•Copy the downloaded file to any folder on your PC.
•Install ADB and fastboot drivers on your PC if you haven't.
•Reboot phone into fastboot mode(Power + Volume down) and connect to PC.
•Go to folder where your placed the TWRP image file.
•Open command prompt in that folder (Shift+right click mouse, open command window here)
•Type the following commands without the quotes :
" fastboot flash recovery twrp-3.2.1-0-mido.IMG "​
•Now try rebooting into TWRP (Power + Volume Up). If you followed the steps right you should be able to.​Remember this step is only if you decide to wipe internal storage also else it is completely not necessary.
OK now that you are left with a phone that only has TWRP we need a ROM to boot into, in your case you want a MIUI ROM. Download latest stable MIUI recovery ROM pack from MIUI website or just google if your having trouble finding it. For MIUI ROMs to successfully boot on a custom recovery you need to flash an additional zip called lazyflasher else your phone will be stuck at the MI logo. I'll attach the zip below. Okay so now since you have the required files copy them to your phone's internal storage.
Boot into TWRP and install the MIUI ROM zip first and the Lazyflasher zip after that. Reboot into system and phone should enter MIUI initial setup in some minutes(be patient MIUI initial boot can be long). Finish the setup.
Now you need to flash the latest stock recovery of your phone. I don't have it with me now so a simple google search will do the work. The procedure for flashing the recovery is the same as flashing TWRP which I have mentioned above. The only change you have do in the fastboot command line is the file name of your stock recovery.
After flashing check for successful boot, only then proceed with the relocking procedure as follows:
•Boot phone into fastboot mode
•Connect to PC
•Open Command prompt
•Type this fastboot command without the quotes :
" fastboot oem lock"​•Once done reboot your phone.​
Now you must have a relocked phone.
**Never relock your phone with any custom mods like custom recovery, custom ROM or even a MIUI which is rooted. Also be on 100% stock configuration before relocking device. Failing to do so will result in a hard brick.
***ATTACHED FILES ARE NOT MY WORK. CREDITS GO TO THEIR RESPECTIVE CREATORS.

[GUIDE][GRUS]How to flash TWRP and GSI ROMs on MI 9 SE

# I assume you are confident with ADB and Fastboot commands and you know what you are doing. #
# If you don't, search on Google before messing with your device. #
# I am not responsible for...you know what I mean. On the other hand, please feel free to point out any error in this guide. #
# Lots of useful information can be found on Telegram Group for Mi 9 SE #
# If you already unlocked your bootloader and flashed TWRP, go directly to part 2 of this guide #
PART 1 - UNLOCK DEVICE AND FLASH TWRP
# Before starting, be sure that you can unlock your bootloader and you have these files: #​
- Mi Unlock tool (http://en.miui.com/unlock/)
- Minimal ADB & Fastboot 1.4.3 (https://forum.xda-developers.com/showthread.php?t=2317790)
- TWRP recovery for your device (please check the development section).
Install ADB and Fastboot drivers on your PC, if you don't have them already.
- enable developer options on device, allow OEM unlock and ADB debug.
- install Minimal ADB & Fastboot tool and run a command window. PLEASE DON'T USE WINDOWS 10 POWER SHELL. Double click on "cmdhere.dll" in root folder instead.
- move twrp image in the same folder where Minimal ADB & Fastboot is installed.
- for your convenience, rename twrp file as "twrp" only.
- connect your device to your PC USB port, pair it with PC then reboot it to bootloader (power + volume down combo).
Unlock bootloader using Mi Unlock tool (full unlocking guide at https://c.mi.com/thread-1635834-1-1.html)
Unlocking bootloader will erase all of your data, including storage.
Once you unlocked:
- reboot and setup device
- enable developer options again
- double check bootloader status and allow ADB debug
- connect to USB port and pair device with PC for ADB debug bridge then type in command window:
Code:
adb devices
Code:
adb reboot bootloader
once in bootloader screen code:
Code:
fastboot devices
Code:
fastboot flash recovery twrp.img
- don't give fastboot command "fastboot boot recovery twrp" or "fastboot reboot recovery twrp". Just press and hold power+volume up for about 10 seconds to reboot to recovery.
- swipe to allow twrp modifications.
- I would suggest to NOT format data to get rid of encryption unless you actually need it. Encryption does not slow down your device or harm your battery life.
- I would also suggest to NOT wipe system and reboot to recovery because it could lead to a fastboot bootloop.
PART 2 - HOW TO FLASH A GSI ROM​
# IMPORTANT #​
When flashing a GSI ROM, it is recommended to use a Stable firmware as base.
If device is running different builds, flash latest Global or China Stable before starting using MiFlash tool.
Beware that device could have the anti-rollback enabled, so be careful when flashing another firmware.
Mi 9 SE is a system-as-root device, so you must flash A/B type GSI ROMs. ​
You will need these files:
- GSI A/B ROM (FlokoROM at https://treble.andro.plus/ or choose one at https://forum.xda-developers.com/project-treble/trebleenabled-device-development)
- vbmeta.img (https://androidfilehost.com/?fid=818070582850505317)
- gapps for Google services (https://opengapps.org/) - select ARM64 - 9.0 - I would suggest nano or pico package.
- magisk for root and modules (https://forum.xda-developers.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445)
- MiFlash flashable STABLE stock firmware (http://en.miui.com/download or https://mirom.ezbox.idv.tw/en/phone/grus/)
- MiFlash tool (https://www.xiaomiflash.com/)
If you are already running a Stable firmware start from here, if you don't, flash a Stable firmware.
- move GSI and vbmeta images in the same folder where Minimal ADB & Fastboot is installed.
- for your convenience, rename GSI file as "system" only.
- reboot device to bootloader, ensure you are connected with your PC properly
- to double check it, run a command window and type:
Code:
fastboot devices
once you get the device recognized type:
Code:
fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
this command will disable dm-verity and AVB on device. PLEASE DON'T USE WINDOWS 10 POWER SHELL to disable vbmeta or you will get an error feedback. Double click on "cmdhere.dll" in root folder instead.
then:
Code:
fastboot flash system system.img
this command will flash system.img
Code:
fastboot -w
this command will wipe data on device
Reboot your device in recovery using button combo and resize system partition to install Gapps.
From TWRP Wipe menu > advanced wipe > system > repair or change file system > resize system > swipe to resize
- move magisk and gapps from PC to device
- go to mount menu and tick mount system
- go back to install menu and flash gapps
- once you flashed gapps unmount system
- go to install and flash magisk
- go to wipe menu and swipe for factory reset
- reboot
once rebooted, complete the device setup.
be aware that some GSI could bootloop or not boot at all even if you followed the guide properly.
in case rely on GSI devs for assistance or fixes.
Of course you can flash a GSI ROM using TWRP.
The only fastboot command you need to perform is to disable dm-verity and AVB.
If you already disabled it while flashing TWRP for the first time, you can follow these steps to flash a GSI using TWRP:
- Tap on advanced Wipe menu and wipe cache, dalvik, data and system
- Tap on Install > Install Image > select image and flash it to system
- Install Gapps with the same process shown above.
- Swipe for factory reset and reboot.
-----------------------------------------------------------------------------------------------------------------------------------------------
If updating GSIs builds from the same branch (e.g. Floko 060219 to Floko 060919) you are not required to wipe data. You can update flashing system.img on TWRP and Gapps time by time.
If you are moving from unofficial builds to official, or if you are moving between branches (e.g. Floko to Havoc), you need to wipe data as well.
@pengus77 provided for a very useful Magisk Module that will fix adaptive brightness, battery stats and in-call BT. You will find it here: https://forum.xda-developers.com/showpost.php?p=79762257&postcount=242
If you flashed a GSI ROM, you are basically using a system.img flashed on top of your stock firmware so, unless you performed modifications to vendor or boot partition, you can revert to stock using fastboot or TWRP.
You need to extract system.img (and boot and vendor, if needed) from the stock firmware.
You will need the vbmeta file as well to re-enable AVB and dm-verity otherwise the device will reboot in fastboot mode only.
Beware: you must flash EXACTLY the same system.img of the firmware you were running before flashing a GSI
Once you have both files, you can follow these steps to go back to stock using fastboot:
- place the files on Minimal ADB & Fastboot root folder
- reboot bootloader
- start a command window from Minimal ADB and type: fastboot devices
once your device has been recognized type the following commands:
- fastboot -w
- fastboot flash system system.img
- (optional) fastboot flash vendor vendor.img
- (optional) fastboot flash boot boot.img
- fastboot flash vbmeta vbmeta.img
- fastboot reboot
You can also revert to stock using TWRP, by the way you will still need fastboot to flash vbmeta partition.
These are the steps to follow if you are using TWRP:
- place system.img on your device and vbmeta.img in Minimal ADB & Fastboot root folder.
- reboot to twrp and wipe dalvik, cache and data
- flash system.img to system partition
- (optional) flash vendor.img to vendor partition
- (optional) flash boot.img to boot partition
- reboot to bootloader
Start a command window in Minimal ADB & Fastboot, then type:
- fastboot devices
- fastboot flash vbmeta vbmeta.img
- fastboot reboot
Thansk for your work.
Does TWRP backup work?For getting back to stock?
Moh3n.B said:
Thansk for your work.
Does TWRP backup work?For getting back to stock?
Click to expand...
Click to collapse
I hope it is helpful
Backup worked for me on the TWRP I mentioned above.
If you want revert to stock you can flash again stock firmware using MiTool (fastboot ROM) or twrp (Recovery ROM).
Good thread! Might be confusing if there's no guide to install TWRP and GSI ?
Great guide. It will help a lot of people to flash and test roms. And us by extension to find the best rom for our device !
Today I had some time and I tried to install the latest Havoc Gsi, unfortunately the result was negative, I ran the guide both from xda and from here, my basic rom was 10.2.3.0, arrived at the command fastboot -w performs the various wipes, but then it does not allow me to go into recovery, it always and only goes in fastboot, and the only way to make the smartphone work is to use miflash and put the official version back.
scorpionredblack said:
Today I had some time and I tried to install the latest Havoc Gsi, unfortunately the result was negative, I ran the guide both from xda and from here, my basic rom was 10.2.3.0, arrived at the command fastboot -w performs the various wipes, but then it does not allow me to go into recovery, it always and only goes in fastboot, and the only way to make the smartphone work is to use miflash and put the official version back.
Click to expand...
Click to collapse
Try to flash vbmeta.
For me is not necesary.
Try like this from twrp:
- Wipe cache, dalvik cache, system, data
- Flash latest weekly eu firmware as base xiaomi.eu_multi_MI9SE_9.6.5_v10-9.zip
- Than flash havoc as system
Optional: flash magisk and custom kernel
Just stuck on bootloader unlocking.
Got this error "current account is not bound to this device"
I added device from mi unlock status too.
Moh3n.B said:
Just stuck on bootloader unlocking.
Click to expand...
Click to collapse
Search on Google. It looks like to be a common issue. If needed, follow the unlocking guide I linked on OP.
successfully flash Foloko ROM to Mi9 se, run very well!
just a small queastion, is DT2W is not working in all GSI rom?
Anyone try it yet?
Is there way to enable DC dimming (anti-pwm)?
I am using Havoc OS and my eyes are hurting..
sky104hk said:
successfully flash Foloko ROM to Mi9 se, run very well!
just a small queastion, is DT2W is not working in all GSI rom?
Anyone try it yet?
Click to expand...
Click to collapse
For now all gsi have same problem.
how to flash gapps ... i got error 70
raber111 said:
how to flash gapps ... i got error 70
Click to expand...
Click to collapse
Read carefully post n.2
Before I flash this, I world like to know from those already using this rom: How is the camera quality and finger print unlock response /speed?
I'm pissed at the frequent snow down of the miui system because I run vpn all day on my phone.
Sent from my Mi 9 SE using Tapatalk
krispuniq said:
Before I flash this...
Click to expand...
Click to collapse
Generally speaking, all the GSIs ROMs are based on Phhusson AOSP GSI ROM, so they have more or less the same performance and bugs.
At he moment FOD is not working well. You cannot unblock the device while on screen off or while on AOD.
For camera, you can install BSG Google Camera mod, that is working quite good.

UMIDIGI DEVICES - Flashing A Rom / GSI

I'll add some links to other threads that helped make this but I've found the root/custom rom process is the same for all
You don't need TWRP and if you're able to install it you won't get far as the system partition is hidden
try to make sure it comes with gapps preinstalled as you won't be able to install it after
*lineage will work but doesn't come with gapps preinstalled for example
Pre requisite: flash the latest rom using spflash tool
Steps:
1. Pick a rom here https://forum.xda-developers.com/project-treble
From the two devices I've had it looks like it must be an AB rom
I went with this as it is pre rooted
2. Back up your data & Unlock bootloader
fastboot flashing unlock
(unnecessary if already unlocked)
fastboot flashing unlock_critical
3. Enter fastboot either with adb or power on while holding volume up
4. Fastboot reboot to enter fastbootd
5. fastboot erase system
6. Your system partition is likely too small so delete it
fastboot delete-logical-partition product - deletes the product partition, allowing a larger system partition
7. fastboot flash system (gsi file here)
And you're good to go
As of right now you can install the magisk app but it won't do much. Tried using the app last night as it got root from the other app but the patched boot image caused a bootloop and I had to reflash stock boot.
It looks like this is a thing with this brand and magisk at the moment not sure why
sources
https://forum.xda-developers.com/android/help/umidigi-power-3-android-10-t4044531
https://forum.xda-developers.com/android/development/twrp-twrp-3-4-0-0-umidigi-t4169405
orions_Cat said:
I'll add some links to other threads that helped make this but I've found the root/custom rom process is the same for all
You don't need TWRP and if you're able to install it you won't get far as the system partition is hidden
try to make sure it comes with gapps preinstalled as you won't be able to install it after
*lineage will work but doesn't come with gapps preinstalled for example
Pre requisite: flash the latest rom using spflash tool
Steps:
1. Pick a rom here https://forum.xda-developers.com/project-treble
From the two devices I've had it looks like it must be an AB rom
I went with this as it is pre rooted
2. Back up your data & Unlock bootloader
fastboot flashing unlock
(unnecessary if already unlocked)
fastboot flashing unlock_critical
3. Enter fastboot either with adb or power on while holding volume up
4. Fastboot reboot to enter fastbootd
5. fastboot erase system
6. Your system partition is likely too small so delete it
fastboot delete-logical-partition product - deletes the product partition, allowing a larger system partition
7. fastboot flash system (gsi file here)
And you're good to go
As of right now you can install the magisk app but it won't do much. Tried using the app last night as it got root from the other app but the patched boot image caused a bootloop and I had to reflash stock boot.
It looks like this is a thing with this brand and magisk at the moment not sure why
sources
https://forum.xda-developers.com/android/help/umidigi-power-3-android-10-t4044531
https://forum.xda-developers.com/android/development/twrp-twrp-3-4-0-0-umidigi-t4169405
Click to expand...
Click to collapse
Hi, when I try to erase the system with fastboot it fails and says that the partition table doesn't exist. How can I solve that? thanks

Categories

Resources