How To Guide [TUTORIAL] ULTIMATE How to flash GSI Trebble AND ROM and root on Xiaomi device on Windows (files needed included) - Xiaomi Mi 11 Lite 5G

Hi, first of all, I'm not a dev or else just user who had difficulties to flash GSI on my phone... Was 7 years with a samsung galaxy Note 3, with twrp....So easy to flash....
with the help of @gr0ndpa, thanks to him.....
FLASH GSI​
Now I will explain how to flash easily with files attached
1/ first of all you need a phone and drivers installed, use xiaomi pc suite, unzip and install it
2/ you need to activate USB debug in dev options.
3/ dl adb folder unzip it and put in C
4/ run command and type
Code:
cd /adb
5/ then
Code:
adb devices
to check if phone recognised
6/
Code:
adb reboot bootloader
once in fast boot
7/
Code:
fastboot flash vbmeta vbmeta.img
wait finished type to enter in fastbootD
8/
Code:
fastboot reboot fastboot
9/
Code:
fastboot flash system
LiR 313.XXX.img
you will have a system error, but wait the flash begin in few seconds
at the end wait ok then
10/
Code:
fastboot reboot recovery
on stock recover
11/ wipe data and reboot with +/- and PWR
and you're done...
In case you want to flash custom kernel or patched boot image to root with magisk, you have to
12/
Code:
adb reboot bootloader
Copy kernel boot image to C drive and rename kernel boot image to boot.img.
13/
Code:
fastboot flash boot c:\boot.img
14/
Code:
fastboot reboot
In case you want to flash twrp put the file to adb folder and type in fastboot
15/
Code:
fastboot boot twrp.img
Downloads for : Xiaomi Mi 11 Lite 5G | AndroidFileHost.com | Download GApps, Roms, Kernels, Themes, Firmware and more. Free file hosting for all Android developers.
Download GApps, Roms, Kernels, Themes, Firmware, and more. Free file hosting for all Android developers.
androidfilehost.com
You can check what I ve done on tuto ss...
if you have some comments, don't hesitate...
I flashed LiR 18.1 rom and very happy with it.....
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++==================================================================================================================================================================================================================++
Flash ROM​
This now how to flash ROM on your device, it's convenient for all roms like LOS, corvus, awaken...
First you need all the proper drivers installed and unlocked bootloader, USB debugging all of that stuff.
Now open up a cmd/terminal , and put the files i sent and the ROM file in the folder from where you're opening the cmd/terminal and connect the phone (you may need to put ./ as an suffix for all the commands if you're on linux)
Type
Code:
adb reboot bootloader
Then type
Code:
fastboot devices
to see if everything is ok
Then type
Code:
fastboot flash boot_ab boot.img
(you can drag and drop the file instead of typing it)
After that's done type
Code:
fastboot flash vendor_boot_ab vendor_boot.img
(you can drag and drop this too if you want)
Code:
fastboot flash dtbo dtbo.img
(you can drag and drop this too if you want)
After that's done type
Code:
fastboot reboot recovery
This will boot you into a recovery and now you need to go to wipe and format data
After that go to apply update then adb sideload then
In the cmd type
Code:
adb sideload rom.zip
for example (you put the ROM zip here you can drag and drop it)
Wait for that to finish it will go to 47% and on the phone it will show step 1/2 then step 2/2
and when it's done it's gonna show an error
adb: failed to read command: No error
Then you can reboot to system

Hello thank your for the short HowTo. Unfortunately im stuck on invalid sparse error. Could you pls post a fix to solve this? Would appreciate your help.

hardshell said:
Hello thank your for the short HowTo. Unfortunately im stuck on invalid sparse error. Could you pls post a fix to solve this? Would appreciate your help.
Click to expand...
Click to collapse
You have to wait at least 30 sec after the error appear...
Are you sure you are on fastbootD???

tuto modified and completed to also root device with magisk and patch boot.img

when i restart into fastboot, it is frozen.

dy2592 said:
when i restart into fastboot, it is frozen.
Click to expand...
Click to collapse
normal, nothing happens on fastboot....when you flash, only thing is on your computer, not on screen..

cant seem to get this installed =(

rayman95 said:
8/
Code:
fastboot reboot fastboot
Click to expand...
Click to collapse
After I enter this, it just stays on waiting for any device.
Update: I was able to figure it out. My device had no drivers so I went search through updates on windows and installed a LeMobile Android driver os it shows up properly in device manager.

How does one install gapps?

dy2592 said:
After I enter this, it just stays on waiting for any device.
View attachment 5419437
Update: I was able to figure it out. My device had no drivers so I went search through updates on windows and installed a LeMobile Android driver os it shows up properly in device manager.
Click to expand...
Click to collapse
because you don't have xiaomi drivers installed...install xiaomi pc suite and you will have drivers installed...

duplicate

rayman95 said:
In step 14, I encountered the error "fastboot: error: ANDROID_PRODUCT_OUT not set" after executing the fastboot flash system command. what do I need to do?
Click to expand...
Click to collapse

Did you insert the img at the end?
Fastboot flash system LIRxxxxxxxxxxxx.img

you have to put your rom to adb folder and dont forget to add .img at the end

rayman95 said:
you have to put your rom to adb folder and dont forget to add .img at the end
Click to expand...
Click to collapse
1.img is your rom Is there anything else missing?

dy2592 said:
Did you insert the img at the end?
Fastboot flash system LIRxxxxxxxxxxxx.img
Click to expand...
Click to collapse
yaha your right thank you so much

rayman95 said:
you have to put your rom to adb folder and dont forget to add .img at the end
Click to expand...
Click to collapse
thank I solved my problem. Now I have another problem, how to install GAPPs

Patrick Star_ said:
thank I solved my problem. Now I have another problem, how to install GAPPs
Click to expand...
Click to collapse
run twrp, it's explain in 1st post or maybe try with magisk...I can install minimicroG nogoolag with it..

rayman95 said:
run twrp, it's explain in 1st post or maybe try with magisk...I can install minimicroG nogoolag with it..
Click to expand...
Click to collapse
I tried to use twrp to brush into GAPP, but the error is 70. How can I solve it? I don't know if there is a problem with my twrp. Can you send a tutorial on xiaomi11 Lite 5g installing twrp? Thank you very much

Patrick Star_ said:
I tried to use twrp to brush into GAPP, but the error is 70. How can I solve it? I don't know if there is a problem with my twrp. Can you send a tutorial on xiaomi11 Lite 5g installing twrp? Thank you very much
Click to expand...
Click to collapse
In case you want to flash twrp put the file to adb folder and type in fastboot
15/
Code:
fastboot boot twrp.img
And twrp link is in post 1..maybe you choose bad gapps variant

Related

Device not recognised in fastboot.

I was trying to install TWRP on my NX529J.
"Adb reboot bootloader command" is working but when i try to install TWRP with command "Fastboot flash recovery recovery.img", it dosent work.
It shows "waiting for devices"
Tried " fastboot devices" NO device there
I tried updating all drivers installed fastboot drivers and zte drivers but still no device found.
In developer settings OEM unlock, USB debugging is on.
and adb mode is also on with *#7678#.
Plz Help.
teji007 said:
I was trying to install TWRP on my NX529J.
"Adb reboot bootloader command" is working but when i try to install TWRP with command "Fastboot flash recovery recovery.img", it dosent work.
It shows "waiting for devices"
Tried " fastboot devices" NO device there
I tried updating all drivers installed fastboot drivers and zte drivers but still no device found.
In developer settings OEM unlock, USB debugging is on.
and adb mode is also on with *#7678#.
Plz Help.
Click to expand...
Click to collapse
sudo fastboot -i 0x19d2 boot recovery.img
sudo command not recognized in windows
anish.mvj said:
sudo fastboot -i 0x19d2 boot recovery.img
Click to expand...
Click to collapse
Sir.
i tried this command also but windows didnt recognized sudo command.
Plz any other way?
teji007 said:
Sir.
i tried this command also but windows didnt recognized sudo command.
Plz any other way?
Click to expand...
Click to collapse
That is ubuntu command.
For windows run CMD as administrator and then run
fastboot -i 0x19d2 boot recovery.img
Thanks and a little more help
anish.mvj said:
That is ubuntu command.
For windows run CMD as administrator and then run
fastboot -i 0x19d2 boot recovery.img
Click to expand...
Click to collapse
Thank you very much
Sir i upgraded my nx529j to 6.0.1, is there anyway to root it or downgrade to 5.1.1?
teji007 said:
Thank you very much
Sir i upgraded my nx529j to 6.0.1, is there anyway to root it or downgrade to 5.1.1?
Click to expand...
Click to collapse
Yes its possible.
Rooting is absolutely not required.
Follow the steps below
1. Download the latest 1.40 firmware from nubia india website support page. [Direct Link]
2. Then open the zip file and extract the recovery.img to local folder. Transfer the zip as it is to SD card
3. Goto fastboot/bootloader and run following
Code:
fastboot -i 0x19d2 flash recovery recovery.img
4. Then select reboot to recovery from bootloader menu.
5. Select wipe all application
6. Then install the downloaded zip [i hope you have already know how to do that]
It will automatically reboot.
That's it you are done downgrading
Failed
anish.mvj said:
Yes its possible.
Rooting is absolutely not required.
Follow the steps below
1. Download the latest 1.40 firmware from nubia india website support page. [Direct Link]
2. Then open the zip file and extract the recovery.img to local folder. Transfer the zip as it is to SD card
3. Goto fastboot/bootloader and run following
Code:
fastboot -i 0x19d2 flash recovery recovery.img
4. Then select reboot to recovery from bootloader menu.
5. Select wipe all application
6. Then install the downloaded zip [i hope you have already know how to do that]
It will automatically reboot.
That's it you are done downgrading
Click to expand...
Click to collapse
It says wiping failed(please wipe again or do it after reboot) everytime.
and nothing is working even app wipe or data wipe, only cache wiped works and choose from phone storage is also n ot working and sd card is also being not dtetected.
even in TWRP
anish.mvj said:
Yes its possible.
Rooting is absolutely not required.
Follow the steps below
1. Download the latest 1.40 firmware from nubia india website support page. [Direct Link]
2. Then open the zip file and extract the recovery.img to local folder. Transfer the zip as it is to SD card
3. Goto fastboot/bootloader and run following
Code:
fastboot -i 0x19d2 flash recovery recovery.img
4. Then select reboot to recovery from bootloader menu.
5. Select wipe all application
6. Then install the downloaded zip [i hope you have already know how to do that]
It will automatically reboot.
That's it you are done downgrading
Click to expand...
Click to collapse
I insatlled TWRP recovery, even in that wiping is not working. is there any way to install custom roms without rooting.
i actully installed official 6.0.1 update from their official nubia site and installed it.
teji007 said:
I insatlled TWRP recovery, even in that wiping is not working. is there any way to install custom roms without rooting.
i actully installed official 6.0.1 update from their official nubia site and installed it.
Click to expand...
Click to collapse
Dude please be clear what you want to do? Stock rom or custom?
Custom
anish.mvj said:
Dude please be clear what you want to do? Stock rom or custom?
Click to expand...
Click to collapse
.
Sir i want custom Rom. and sir now i am bricked
teji007 said:
.
Sir i want custom Rom. and sir now i am bricked
Click to expand...
Click to collapse
what do you mean by your are bricked?
If you want custom rom
Goto TWRP wipe everything
if above fails then try out following
Option 1:
Goto Bootloader mode and from that menu goto emergency recovery. Try wiping from there if successful, flash a stock rom [Kitkat] and boot to system. After first boot goto settings and reset factory settings. Then goto TWRP and wipe, it will wipe for sure. then you can install any custom rom
Option 2:
Download the oldest firmware from the nubia site [1.37] and flash recovery from there [extract the recovery from zip and flash it in bootloader]. Then use
Code:
fastboot -i 0x19d2 boot TWRP.img
to boot to twrp, don't flash it. Then goto advanced and select adb sideload. swipe to start sideload. after that open the zip you downloaded and got to
Code:
/META-INF/com/google/android/
and open updater-script with any of the text file. Delete the first line and save. update the zip.
open cmd from that folder where zip is located. then type
Code:
adb sideload NX529J_Z69_EN_NSXPK1JD00K137.zip
and press enter. let it complete and then reboot. it should boot to factory firmware. Follow the same procedure to factory reset from settings menu then flash TWRP and flash custom rom
Use the above steps. If all fails then revert back.
Thanks going to try
anish.mvj said:
what do you mean by your are bricked?
If you want custom rom
Goto TWRP wipe everything
if above fails then try out following
Option 1:
Goto Bootloader mode and from that menu goto emergency recovery. Try wiping from there if successful, flash a stock rom [Kitkat] and boot to system. After first boot goto settings and reset factory settings. Then goto TWRP and wipe, it will wipe for sure. then you can install any custom rom
Option 2:
Download the oldest firmware from the nubia site [1.37] and flash recovery from there [extract the recovery from zip and flash it in bootloader]. Then use
Code:
fastboot -i 0x19d2 boot TWRP.img
to boot to twrp, don't flash it. Then goto advanced and select adb sideload. swipe to start sideload. after that open the zip you downloaded and got to
Code:
/META-INF/com/google/android/
and open updater-script with any of the text file. Delete the first line and save. update the zip.
open cmd from that folder where zip is located. then type
Code:
adb sideload NX529J_Z69_EN_NSXPK1JD00K137.zip
and press enter. let it complete and then reboot. it should boot to factory firmware. Follow the same procedure to factory reset from settings menu then flash TWRP and flash custom rom
Use the above steps. If all fails then revert back.
Click to expand...
Click to collapse
Thank you very much sir.
Can i contact you by any other means? whatsapp or any other
teji007 said:
Thank you very much sir.
Can i contact you by any other means? whatsapp or any other
Click to expand...
Click to collapse
Check your private message
adb sideload not working
anish.mvj said:
what do you mean by your are bricked?
If you want custom rom
Goto TWRP wipe everything
if above fails then try out following
Option 1:
Goto Bootloader mode and from that menu goto emergency recovery. Try wiping from there if successful, flash a stock rom [Kitkat] and boot to system. After first boot goto settings and reset factory settings. Then goto TWRP and wipe, it will wipe for sure. then you can install any custom rom
Option 2:
Download the oldest firmware from the nubia site [1.37] and flash recovery from there [extract the recovery from zip and flash it in bootloader]. Then use
Code:
fastboot -i 0x19d2 boot TWRP.img
to boot to twrp, don't flash it. Then goto advanced and select adb sideload. swipe to start sideload. after that open the zip you downloaded and got to
Code:
/META-INF/com/google/android/
and open updater-script with any of the text file. Delete the first line and save. update the zip.
open cmd from that folder where zip is located. then type
Code:
adb sideload NX529J_Z69_EN_NSXPK1JD00K137.zip
and press enter. let it complete and then reboot. it should boot to factory firmware. Follow the same procedure to factory reset from settings menu then flash TWRP and flash custom rom
Use the above steps. If all fails then revert back.
Click to expand...
Click to collapse
Sir, its been 5 mins its "starting ADB sideload feature" but nothing
adb sideload failed
anish.mvj said:
Check your private message
Click to expand...
Click to collapse
Sir ,
ADB sideload failed
teji007 said:
Sir ,
ADB sideload failed
Click to expand...
Click to collapse
Hi how did your device visible in fastboot devices?
I installed adb drivers and all but my device is not listed in fastboot devices..
It is being listed in adb devices but not on fastboot devices. Can you help me with this?
---------- Post added at 08:51 PM ---------- Previous post was at 08:50 PM ----------
teji007 said:
I was trying to install TWRP on my NX529J.
"Adb reboot bootloader command" is working but when i try to install TWRP with command "Fastboot flash recovery recovery.img", it dosent work.
It shows "waiting for devices"
Tried " fastboot devices" NO device there
I tried updating all drivers installed fastboot drivers and zte drivers but still no device found.
In developer settings OEM unlock, USB debugging is on.
and adb mode is also on with *#7678#.
Plz Help.
Click to expand...
Click to collapse
Hi how did your device visible in fastboot devices?
I installed adb drivers and all but my device is not listed in fastboot devices..
It is being listed in adb devices but not on fastboot devices. Can you help me with this?

mi pad 3 no more recovery

hello
i tried to install twrp but the swipe didn't work
so i tried to install an older version
but now when i reboot twrp do not appear
and i have no more than 800mo memory available
i can't hard reset
what can i do ?
noogpout said:
hello
i tried to install twrp but the swipe didn't work
so i tried to install an older version
but now when i reboot twrp do not appear
and i have no more than 800mo memory available
i can't hard reset
what can i do ?
Click to expand...
Click to collapse
Flash recovery from CMD !
AbhaYsinGH007 said:
Flash recovery from CMD !
Click to expand...
Click to collapse
how can i flash recovery from cmd ?
where can i download the file ?
noogpout said:
how can i flash recovery from cmd ?
where can i download the file ?
Click to expand...
Click to collapse
Xiaomi.eu -> https://xiaomi.eu/community/threads/twrp-for-mi-pad-3.39743/
i follow the thread you mention
i can launch twrp but swipe do not work, i have now an otg cable but mouse is not recognized
so i don't know how to flash the rom
noogpout said:
i follow the thread you mention
i can launch twrp but swipe do not work, i have now an otg cable but mouse is not recognized
so i don't know how to flash the rom
Click to expand...
Click to collapse
That could be a bug !
noogpout said:
i follow the thread you mention
i can launch twrp but swipe do not work, i have now an otg cable but mouse is not recognized
so i don't know how to flash the rom
Click to expand...
Click to collapse
I find that hard to believe. Did you follow post #10? At your own risk, of course.
Guys, I did it!
I had no problems with the touchscreen, so there was nothing to solve for me. My Bootloader was also unlocked already.
Here is everything I did (be careful, this deletes all your data!):
Boot into fastboot (Volume down+ Power on, hold the Volume down-Key until fastboot loads)
Code:
fastboot -w
fastboot erase system
fastboot format system
fastboot flash recovery twrp.img
Boot into TWRP (Volume up + Power on, hold the Volume up-Key until TWRP boots)
WIPE -> Data -> Repair or Change File System -> Resize File System
Flash xiaomi.eu-zip normally (hopefully) enjoy!
Click to expand...
Click to collapse
Read the entire thread
yes i read the entire thread, i executed all the flashboot command but my rom was a global one not chinese, so the touch screen does not work in twrp.
Actually i downloaded a rom here : https://drive.google.com/uc?id=0B023gSzruW0aLV9ZRG1pdHpqd3c&export=download
then in fast boot mode i executed this command : ./flash_all.sh
but at the end i have this error : finished. total time: 10.194s
error: cannot load './images/cust.img'
i cannot boot to miui but now i have MI Recovery instead of TWRP
noogpout said:
yes i read the entire thread, i executed all the flashboot command but my rom was a global one not chinese, so the touch screen does not work in twrp.
Actually i downloaded a rom here : https://drive.google.com/uc?id=0B023gSzruW0aLV9ZRG1pdHpqd3c&export=download
then in fast boot mode i executed this command : ./flash_all.sh
but at the end i have this error : finished. total time: 10.194s
error: cannot load './images/cust.img'
i cannot boot to miui but now i have MI Recovery instead of TWRP
Click to expand...
Click to collapse
Why would you execute "./flash_all.sh". Did you try the methods mentioned on page 2 in the thread?
You need to know your commands.
Do you have ADB drivers installed?
Palm Trees said:
Why would you execute "./flash_all.sh". Did you try the methods mentioned on page 2 in the thread?
You need to know your commands.
Do you have ADB drivers installed?
Click to expand...
Click to collapse
yes i know the command : ./flash_all is a script in the archive : cappu_images_7.5.11_20170514.0000.00_7.0_global_xiaomi.eu.zip
i have already tested the commands in the page 2 :
fastboot -w
fastboot erase system
fastboot format system
fastboot flash recovery twrp.img
twrp is ok but i cannot swipe, because the touch screen is not enabled
so i cannot pass the step :
10. WIPE -> Data -> Repair or Change File System -> Resize File System
it's ok i commented the following lines in the script :
fastboot $* flash cust `dirname $0`/images/cust.img
if [ $? -ne 0 ] ; then echo "Flash cust error"; exit 1; fi
so the script can continue and after the boot is ok, MIUI start

[ROM][7.0] Maze Alpha V05_20170816 [STOCK]

Maze has finally published the Alpha Stock-Rom.
Download Link: https://goo.gl/9kCJiv :fingers-crossed:
The system.img file is incorrectly downloaded as a system 002.img file. It must be renamed. And then copy it to the folder "3. Maze_Alpha_V05_20170816 Official ROM".
Thanks!
Hope anyone can root this phone.
Hi!
I am in need of a new phone, and this one looks quite good at the price.. But what do you think can i expect from custom ROM scene here for it? I am a Xiaomi Fan, and my Mi4 was and is one of the best supported phones still. Do you think there will be a subforum for this device, custom ROMs (preferreable Lineage OS, or other close to AOSP ROMs? OFC nobody can know now, i understand, but what tells your experience of other new phones from new companys? It has created quite a buzz, so i think there will be a demand for sure..
Just am 2 afraid to get a phone without good custom ROM. Never had an Android in last 5 years with stock ROM. Total nightmare for me now to have to go back.
Root + TWRP 3.2.1
3 Methods to root MAZE Alpha
Note: Method II is the most universal and must works with almost any official ROM
I- Method 1 : flashing modified Magisk boot.img
1. make sure to have already installed the version 20170816
2. reboot the phone in fastboot mode (phone off -> Vol Up + Power or "adb reboot bootloader")
3. unlock the bootloader if not already done : fastboot flashing unlock (if not works, in android development setting set the unlock bootloader and then retry)
4. unzip and then flash the attached boot image : fastboot flash boot new-boot.img
5. reboot your phone: fastboot reboot
6. install the MagiskManager apk v14
7. Voila
I have used this Magisk guide to create it
I used old manual guide :
Code:
adb shell "rm -rf /data/local/tmp/*"
adb push META-INF/com/google/android/update-binary common magisk_inject boot.img /data/local/tmp
adb shell "cd /data/local/tmp/magisk_inject; mv ../common/* .; chmod 755 *; sh ../update-binary indep boot_patch.sh ../boot.img; mv ../bin/busybox busybox"
adb pull /data/local/tmp/magisk_inject/new-boot.img
adb shell "rm -rf /data/local/tmp/*"
II- Method 2 : using TWRP and Magisk.zip (External SDCARD or USB OTG cable needed)
1. reboot int bootloader mode : adb reboot bootloader
2. unzip and flash the the attached TWRP recovery : fastboot flash recovery recovery_maze_alpha_4G_twrp-321.img
3. In TWRP choose first "change language" then press the "cancel" button while asking you for decryption password for data
4. In your PC download the Magisk-v15.3.zip and put it in a USB key, or an SDCARD
5. Use an usb otg cable to connect the USB key to your phone running TWRP and install the Magisk-v14.zip from Usb-otg (or SDCARD)
6. bonus: do a complete backup of your phone : all partitions except cache and data to your Usb-otg (or SDCARD)
7. reboot and install the MagiskManager apk v14
III- Method 3 : using the phhusson modified boot image
1- flash the attached boot image, using fasboot (fastboot flash boot boot-super-bootimg-output-su-eng-r318.img) or SPFlashTools using the attached scatter, if you do not want to unlock your bootloader
2- reboot to Android then install from google play the phhsusson superuser
3- Voila
Important Notes:
1- In all case you can use SPFlashTools to flash boot image without unlocking bootloader.
2- windows SPFlashTools users : phone off, press VOL+ and connect it to your PC (running SPFlashTool and waiting for phone connetion)
3- linux SPFlashTools users : phone off and connected to PC , press VOL+ and POWER while your PC is running SPFlashTool (with sudo) and waiting for phone connetion.
Some useful tips
1- manual install of busybox :
a- root you phone with method II if not already done
b- stay in TWRP (or boot TWRP as in method II) then in advance->sideload slide the slider to confirm and after cancel that (we will not sideloading any thing, just to activate adb)
c- unzip and copy the attached busybox : adb push busybox /external_sd/
d- mount the system partition with the TWRP mount button
e- copy the busybox binary to /system/xbin : adb shell --> cp /external_sd/busybox /system/xbin/
f- make executable busybox and create links (the point at the end is a part of the command) : cd /system/xbin/; chmod 755 busybox; ./busybox --install -s .
g- umount the system partition in TWRP and reboot
2- manually install the OTA update.zip :
a- Google and download those 3 tools BlockImageUpdate, simg2img and img2simg.
b- In a terminal of your Linux PC do :
Code:
simg2img system.img system.raw.img # convert the sparse image to a normal raw (ext4) image
BlockImageUpdate system.raw.img system.transfer.list system.new.dat system.patch.dat # patch the newly created raw image
img2simg system.raw.img system.img # convert the patched raw image to a flashable sparse image
- system.img: you old system image (from 20170816 official rom)
- system.transfer.list, system.new.dat and system.patch.dat : inside the OTA update.zip
c- After that the original system.img will be patched and you will have an updated system.img.
d- Flash this patched system.img and also all .bin and .img files inside the update.zip (just replace old ones in the original 20170816 rom by those) and you will have the new official rom
3- Using supersu as root manager :
The last update at this time of supersu zip (2.82 SR5) works well, even it cannot update the su binary.
Credits to Magisk Devs, Phhusson and Jemmini
dreambo said:
Here how to root this phone.
1. make sure to have already installed the version 20170816
2. reboot the phone in fastboot mode (phone off -> Vol Up + Power or "adb reboot bootloader")
3. unlock the bootloader if not already done : fastboot flashing unlock (if not works, in android development setting set the unlock bootloader and then retry)
4. unzip and then flash the attached boot image : fastboot flash boot new-boot.img
5. reboot your phone: fastboot reboot
6. install the MagiskManager apk v13.6
7. Voila
I have used this Magisk guide to create it
Credits to Magisk Devs.
Click to expand...
Click to collapse
If I root my phone with this method, will I get further OTA Updates from Maze?
Following to see where this goes.
Cheers
CrashCrash123 said:
If I root my phone with this method, will I get further OTA Updates from Maze?
Click to expand...
Click to collapse
Yes.
You will only lost the root.
If the new update have the same kernel, the same methode with the same boot image can be used to root it again, othewise, we can follow the Magisk guide to create a new one.
I have tried this method. But it only works until the reboot. Then the root access is gone again.
SomeOneX said:
I have tried this method. But it only works until the reboot. Then the root access is gone again.
Click to expand...
Click to collapse
The root is permanent.
If you lost it, perhaps the first time we unlock the bootloader, the phone do a reset, and we lost the root (I suppose).
Just re-flash the new boot again, and it will be permanent : fastboot flash boot new-boot.img
Hi . I have locked the OEM lock but I can not install it through fastboot (remote: not allowed in lock state)
can we expect VOLTE on this device ?
and is there any chance of custom rom development for this device?
alfymon22 said:
can we expect VOLTE on this device ?
and is there any chance of custom rom development for this device?
Click to expand...
Click to collapse
It seems (take with a pinch of salt) that VoLTE is supported, but then most sites that announce that also make mistakes on other specs, so...)
As for custom ROMs, so far the square root of bugger all, but the consumer phones are just filtering in, so give it time.
dreambo said:
Here how to root this phone.
1. make sure to have already installed the version 20170816
2. reboot the phone in fastboot mode (phone off -> Vol Up + Power or "adb reboot bootloader")
3. unlock the bootloader if not already done : fastboot flashing unlock (if not works, in android development setting set the unlock bootloader and then retry)
4. unzip and then flash the attached boot image : fastboot flash boot new-boot.img
5. reboot your phone: fastboot reboot
6. install the MagiskManager apk v13.6
7. Voila
I have used this Magisk guide to create it
Credits to Magisk Devs.
Click to expand...
Click to collapse
it worked, but i have cts fail on safetynet check. how you fixed this?
PrimateaEu said:
it worked, but i have cts fail on safetynet check. how you fixed this?
Click to expand...
Click to collapse
install the universal safety net fix
Hey guys, does this root method wipe the data partition?
KilljoyTDA said:
Hey guys, does this root method wipe the data partition?
Click to expand...
Click to collapse
The flash of the boot image does not wipe the data, but unlocking the bootloader reset the phone and wipe the data.
If you phone is already unlocked, you will not loss the data, otherwise do a backup before.
Well, I don't remember unlocking it, unless Kingo's windows app does it without telling even when rooting fails, so I guess I'd better back up.
Thanks for the info
KilljoyTDA said:
Well, I don't remember unlocking it, unless Kingo's windows app does it without telling even when rooting fails, so I guess I'd better back up.
Thanks for the info
Click to expand...
Click to collapse
It is easy to know if your phone is locked or not : enter fastboot mode and then do : "fastboot getvar all".
Read the last lines of the output and you will know.
Thank you @dreambo for this method, but for me "fastboot flashing unlock" not work, "fastboot oem unlock" working for me, all ok
ps:excusez moi pour mon anglais
dreambo said:
It is easy to know if your phone is locked or not : enter fastboot mode and then do : "fastboot getvar all".
Read the last lines of the output and you will know.
Click to expand...
Click to collapse
Well I failed to back up for some reason anyways, so since I had almost nothing vital on the internal memory, I rooted (sucessfully) and now I'm reinstalling/reconfiguring my apps. Thanks anyways

Oneplus 3 stuck on bootloop after Magisk flash

Ok, I am new to this. My op3 was on oxygen os 5.0.8. I first unlocked my bootloader, then flashed twrp, and through twrp i have flashed Magisk 18.1. Then I cleared data, dalvik and cache and started a reboot. I am now in a bootloop, tried to uninstall Magisk through the uninstaller, but still i am in a bootloop. So please help me with the bootloop or guide me on how to get back to stock rom and recovery.
N1mbus17 said:
Ok, I am new to this. My op3 was on oxygen os 5.0.8.
Click to expand...
Click to collapse
Hello, have you tried flashing the stock boot image from fastboot?
I donno how to flash stock boot image with fastboot, can i flash that img with twrp?
N1mbus17 said:
I donno how to flash stock boot image with fastboot, can i flash that img with twrp?
Click to expand...
Click to collapse
What happens when you place your stock boot image somewhere you can access from TWRP and try?
If you want to try fastboot method:
Download the version of OxygenOS you’re currently on
Extract the contents of the ZIP file from Step 1
Copy/move the boot.img file to the same directory as your ADB/Fastboot tools
Launch a Command Prompt, Terminal or PowerShell in that directory
Boot the OnePlus 3 into Fastboot Mode
Connect the OnePlus 3 to the PC with a USB cable
Type the following into the Command Prompt, Terminal or PowerShell. . .
Code:
fastboot flash boot boot.img
. . .then press Enter on the keyboard
Wait for the boot IMG file to be sent and written
Then press the Power button on the OnePlus 3 to reboot back into Android
adapted from https://www.androidexplained.com/oneplus-5-stock-kernel/
united_we_stand said:
What happens when you place your stock boot image somewhere you can access from TWRP and try?
If you want to try fastboot method:
Download the version of OxygenOS you’re currently on
Extract the contents of the ZIP file from Step 1
Copy/move the boot.img file to the same directory as your ADB/Fastboot tools
Launch a Command Prompt, Terminal or PowerShell in that directory
Boot the OnePlus 3 into Fastboot Mode
Connect the OnePlus 3 to the PC with a USB cable
Type the following into the Command Prompt, Terminal or PowerShell. . .
Code:
fastboot flash boot boot.img
. . .then press Enter on the keyboard
Wait for the boot IMG file to be sent and written
Then press the Power button on the OnePlus 3 to reboot back into Android
adapted from Link
Click to expand...
Click to collapse
Ok I will try this method, but what will happen to twrp if I flash through fastboot, will it get removed and replaced by stock recovery?
N1mbus17 said:
Ok I will try this method, but what will happen to twrp if I flash through fastboot, will it get removed and replaced by stock recovery?
Click to expand...
Click to collapse
Hi! in the following command
Code:
fastboot flash boot boot.img
fastboot is the tool
flash is the operation
boot is the destination partition
and boot.img is the source
so to answer your question, TWRP should remain unaffected, as it should reside on your recovery partition
united_we_stand said:
Hi! in the following command
Code:
fastboot flash boot boot.img
fastboot is the tool
flash is the operation
boot is the destination partition
and boot.img is the source
so to answer your question, TWRP should remain unaffected, as it should reside on your recovery partition
Click to expand...
Click to collapse
Ok i did a wipe on cache, dalvik and system, flashed the official os zip file with TWRP and i am still stuck in a bootloop. I haven't tried your method yet where you flash the boot.img as it's just 15mb while the zip file is 1.5gb. What am i missing here? Is my TWRP recovery installing the os zip file correctly? I am stuck.
This is what i have done till now:
Unlocked my bootloader
Flashed official TWRP (twrp-3.2.3-1)
Then cleared data, cache, dalvik and flashed Magisk
Rebooted and got stuck in a bootloop
Used magisk uninstaller but didn't work
Downloaded official Oxygen OS 5.0.8 and then went to twrp, wiped dalvik, cache, data, system and then flashed the zip file.
Rebooted and still stuck in a bootloop
I am now scared that this phone won't startup. Please provide a solution.
Ok, i have followed the mega unbrick guide for oneplus 3 and it has finally come out of the bootloop, it's now updating to the latest oxygen os. Sadly i donno what went wrong the 1st time i tried to root with Magisk, maybe the oreo on the op3 doesn't support magisk. If it's possible can you guide me into rooting the phone with magisk, as most of the tutorials are old and for marshmallow rom and recovery. Thanks.

Question Is it already possible to root device?

I like to know if it's already possible to root device? I thought I could just patch boot image from a fastboot rom, but now I heard that boot.img is probably the recovery partition on A/B devices, while vendor_boot.img is probably the actual boot partition.
Is there a safe and working way to root yet?
Yes I have rooted my Mi 11 Lite 5G . I have also flashed EU rom via fastboot . The process is normal .. Download fast boot rom ..extract ..install latest Magisk application . Patch the boot.img in the images folder. Flash via fastboot ..
fastboot flash boot patchedboot.img
( name the patched file patchedboot.img)
Then you can also flash EU version rom with flash all bat in the fastbootrom.
Thanks for the info. If nothings changing my plans, I will flash tomorrow evening.
I'm my case I flash latest stable.
KevMetal said:
Yes I have rooted my Mi 11 Lite 5G . I have also flashed EU rom via fastboot . The process is normal .. Download fast boot rom ..extract ..install latest Magisk application . Patch the boot.img in the images folder. Flash via fastboot ..
fastboot flash boot patchedboot.img
( name the patched file patchedboot.img)
Then you can also flash EU version rom with flash all bat in the fastbootrom.
Click to expand...
Click to collapse
Hi
With that ROM do you have full screen gestures working with other launchers?
To install this ROM the bootloader needs to be unlocked?
Thanks
chlodvig said:
Hi
With that ROM do you have full screen gestures working with other launchers?
To install this ROM the bootloader needs to be unlocked?
Thanks
Click to expand...
Click to collapse
Yes you need to unlock for flashing but can relock when done if you are flashing official stuff without root .. I'm on latest BETA EU rom and I'm using lawnchair 2 in combo with fluid gestures application to get workaround to get full screen gestures working really well . I'm not aware of which other launchers supppet full screen gestures on miui on amdroid 11 ... Theoretically according to dev of fluid gestures it shouldn't be working ... Cos it's android 11 and MIUI blocks 3rd party gesture apps ..or Google does ..anyway it works with or without root but I have only used lawnchair 2.
Thanks @KevMetal
I was hoping that with that ROM I would be a able to use for example Nova Launcher with gestures.
But that seems to not be the case
Thanks
chlodvig said:
Thanks @KevMetal
I was hoping that with that ROM I would be a able to use for example Nova Launcher with gestures.
But that seems to not be the case
Thanks
Click to expand...
Click to collapse
I'm not saying no . I'm just saying the only workable situation I've found ... It's worth a try .. Install Nova and Fluid gestures.. If it fails try flashing EU rom using that ..failing again try the combo with Magisk .. Still failing replace Nova with Lawnchair...unless you specifically need Nova .. Or if simply don't want to unlock boot.. But is the first thing I do MIUI to get rid of all the bloat systemlessly with Magisk
I will try.
Thanks
Hi, I've seen somewhere, in root method to know before patching, to know if it's A/B partition or not...but how to know that???
thank's
I've been using a Note 3 for 8 years, so I discover the xiaomi universe and the locked bootloader and ....
rayman95 said:
Hi, I've seen somewhere, in root method to know before patching, to know if it's A/B partition or not...but how to know that???
thank's
I've been using a Note 3 for 8 years, so I discover the xiaomi universe and the locked bootloader and ....
Click to expand...
Click to collapse
No you don't need to know .. Just patch the boot image of the fastboot rom with magisk application on your phone. We don't have a twrp and you need to unlock your bootloader ALWAys on EVERY phone to root or use twrp .. Anyway unlock it ..it's no big deal ..then flash via fast boot
fastboot flash boot bootPatched.img
chlodvig said:
I will try.
Thanks
Click to expand...
Click to collapse
I am using nova launcher combined with fluid gestures. That's working pretty good. Unfortunately stock gestures do not work with third party launcher
putti71 said:
I am using nova launcher combined with fluid gestures. That's working pretty good. Unfortunately stock gestures do not work with third party launcher
Click to expand...
Click to collapse
Yes, I tried also and it works.
I just want to be sure before beginning the procedure...tommorow, it's 7 days wait for unlock the phone...
I use batch unlock tool and it wipe the phone
after complete setup again, I copy boot.img from fastboot on phone and flash it with last magisk and then I flash it in fastboot mode.
and I have to flash complete EU rom with flash all command??? but it will overwrite patched boot with stock one???
do I miss something or not??
thank's
rayman95 said:
I just want to be sure before beginning the procedure...tommorow, it's 7 days wait for unlock the phone...
I use batch unlock tool and it wipe the phone
after complete setup again, I copy boot.img from fastboot on phone and flash it with last magisk and then I flash it in fastboot mode.
and I have to flash complete EU rom with flash all command??? but it will overwrite patched boot with stock one???
do I miss something or not??
thank's
Click to expand...
Click to collapse
sorry my bad
1. request unlock (7 days)
2. use batch unlock tool to unluck ( will wipe device ) *use volume down & powet to enter fastboot
3. boot the device and enable dev settings by tapping on miui version 7 times
4. the unlock toggle will be on but you need to activate adb debug again
5. install adb/ fastboot on PC
6. connect phone via usb cable
7. open cmd window from inside adb folder
8. run following cmd
adb devices
( will ask on phone for authorization) GIVE it !
adb reboot bootloader
( will boot into fastboot )
fastboot devices
( will return a value)
9. extract MIUI EU fastboot rom
10. run flash_all_bat as admin
( WAIT EVEN IF IT SEEMS LONG)
11. when success boot phone and setup and repeat steps 3&4
12. install magisk app
13. copy boot.img from the MIUI EU fastboot ROM to phone
14. inside magisk select it and patch it
15. copy file to adb folder and give name "patchedboot.img"
16. now repeat steps 6&7&8
17. when in fastboot run cmd
fastboot flash boot patchedboot.img
18. reboot & enjoy
KevMetal said:
sorry my bad
1. request unlock (7 days)
2. use batch unlock tool to unluck ( will wipe device ) *use volume down & powet to enter fastboot
3. boot the device and enable dev settings by tapping on miui version 7 times
4. the unlock toggle will be on but you need to activate adb debug again
5. install adb/ fastboot on PC
6. connect phone via usb cable
7. open cmd window from inside adb folder
8. run following cmd
adb devices
( will ask on phone for authorization) GIVE it !
adb reboot bootloader
( will boot into fastboot )
fastboot devices
( will return a value)
9. extract MIUI EU fastboot rom
10. run flash_all_bat as admin
( WAIT EVEN IF IT SEEMS LONG)
11. when success boot phone and setup and repeat steps 3&4
12. install magisk app
13. copy boot.img from the MIUI EU fastboot ROM to phone
14. inside magisk select it and patch it
15. copy file to adb folder and give name "patchedboot.img"
16. now repeat steps 6&7&8
17. when in fastboot run cmd
fastboot flash boot patchedboot.img
18. reboot & enjoy
Click to expand...
Click to collapse
whao, this is a perfect tuto.....will do it tomorrow or friday.....merci beaucoup..
KevMetal said:
10. run flash_all_bat as admin
( WAIT EVEN IF IT SEEMS LONG)
Click to expand...
Click to collapse
unlock is ok, but is it normal that after flash all, nothing happens on phone and computer???
thanks
but do I have to use xiaomi flash tool??? because I tried on folder to execute flassall and nothing happens...so I dl flash tool
rayman95 said:
unlock is ok, but is it normal that after flash all, nothing happens on phone and computer???
thanks
Click to expand...
Click to collapse
Nothing no, but the process slow ..the fastboot command window must show commands running as it sends the .img files to phone ... What does it say in fastboot window ? Did you remember to use adb command to boot to fastboot ? Did you leave fastboot command window open..
If you send photos or more info about everything you did I can help more
KevMetal said:
Nothing no, but the process slow ..the fastboot command window must show commands running as it sends the .img files to phone ... What does it say in fastboot window ? Did you remember to use adb command to boot to fastboot ? Did you leave fastboot command window open..
If you send photos or more info about everything you did I can help more
Click to expand...
Click to collapse
I use adb tool to reboot on BL then I flash-all, windows ask confirmation to run on admin...a window open and close immediately..and nothing happens on the phone, it still fastboot....the adb window is still open and nothing on it...
but do I have to use xiaomi flash tool???
on flash tool, it's possible to select flash-all command..
rayman95 said:
I use adb tool to reboot on BL then I flash-all, windows ask confirmation to run on admin...a window open and close immediately..and nothing happens on the phone, it still fastboot....the adb window is still open and nothing on it...
but do I have to use xiaomi flash tool???
on flash tool, it's possible to select flash-all command..
Click to expand...
Click to collapse
No it uses fast boot .inside fastboot folder open command window and type
Fastboot devices
Tell me what happens.. Send photo
KevMetal said:
No it uses fast boot .inside fastboot folder open command window and type
Fastboot devices
Tell me what happens.. Send photo
Click to expand...
Click to collapse
device recognized and reboot with command but
fastboot devices
( will return a value)
no value in cmd window or in fastboot on phone

Categories

Resources