Hi there,
I'm trying to install TWRP onto my Xiaomi mi6 in order to keep backups and flash custom ROMs.
Last night I tried to install TWRP via ADB. I flashed the .img file, and was careful to hold down the 'volume up' button as I hit the command 'fastboot reboot' to ensure I didn't boot into stock recovery.
This brought me into the TWRP recovery. I selected READ-WRITE option (as opposed to read only) and tried rebooting to system. After this I tried rebooting into recovery to access TWRP once again, but was brought back to the stock recovery. TWRP couldn't be accessed.
I tried to reflash TWRP and to follow the suggestion posted here: https://forum.xda-developers.com/mi-6/development/recovery-twrp-xiaomi-mi-6-t3619822
The file: /system/bin/install-recovery.sh present in stock system is responsible for that.
You can simply stop this from happening by deleting it or renaming it to install-recovery.sh.bak using any root explorer or via TWRP (Advanced -> File Manager).
Click to expand...
Click to collapse
However, I could not find the file /system/bin/install-recovery.sh using the TWRP file explorer.
Any suggestions you could offer would be much appreciated.
My current miui version is: global 8.2.2.0 (NCAMIEC) and the phone has not been rooted (bootloader is unlocked).
spraggzilla said:
Hi there,
I'm trying to install TWRP onto my Xiaomi mi6 in order to keep backups and flash custom ROMs.
Last night I tried to install TWRP via ADB. I flashed the .img file, and was careful to hold down the 'volume up' button as I hit the command 'fastboot reboot' to ensure I didn't boot into stock recovery.
This brought me into the TWRP recovery. I selected READ-WRITE option (as opposed to read only) and tried rebooting to system. After this I tried rebooting into recovery to access TWRP once again, but was brought back to the stock recovery. TWRP couldn't be accessed.
I tried to reflash TWRP and to follow the suggestion posted here: https://forum.xda-developers.com/mi-6/development/recovery-twrp-xiaomi-mi-6-t3619822
However, I could not find the file /system/bin/install-recovery.sh using the TWRP file explorer.
Any suggestions you could offer would be much appreciated.
My current miui version is: global 8.2.2.0 (NCAMIEC).
Click to expand...
Click to collapse
After the twrp recovery installation is installed in the twrp recovery you install the " no-verity-opt-encrypt-5.1.zip" .
This will keep the twrp recovery,after restarting the system.
trifos said:
After the twrp recovery installation is installed in the twrp recovery you install the " no-verity-opt-encrypt-5.1.zip" .
This will keep the twrp recovery,after restarting the system.
Click to expand...
Click to collapse
Thanks for the response. May I ask, where I find this zip?
spraggzilla said:
Thanks for the response. May I ask, where I find this zip?
Click to expand...
Click to collapse
https://build.nethunter.com/android-tools/no-verity-opt-encrypt/no-verity-opt-encrypt-5.1.zip
Similarly when I install tarp in my Redmi 5 it gets install but shows 0mb internal storage and after that if I press reboot to recovery or reboot to system then twrp get deleted and mi stock recovery replace it .
Pls any body help me to install it
Related
Even simpler root than Invisiblek's method for the older versions: If you have already tried that method and now have broken wireless, see Post #2.
Note: A more detailed and user-friendly version of these instructions can be found at: http://www.oppoforums.com/threads/n5206-international-root-instructions.24159
Download http://lum.uk/n3/files/recmodn3.img and http://lum.uk/n3/files/Root_ColorOS_by_tantrums_v2.zip
Copy the rooter onto your SD card.
Boot into fastboot by holding volume up while powering on the phone.
fastboot oem unlock
fastboot flash recovery recmodn3.img
fastboot boot recmodn3.img
Flash the root coloros zip file, reboot and you're rooted.
Note: This is a modified stock recovery that can flash OTAs as well as zips not signed by Oppo. If you prefer TWRP then that is available here: https://dl.twrp.me/n3/. Note that at the time of writing TWRP is unable to flash OTAs.
Thanks to [email protected] for the original root method, Arvin A. [email protected] for the fixing SuperSU to work on ColorOS, and [email protected] for providing the modified N3 recovery.
Restoring stock firmware
Download your chosen firmware and recovery from this thread
Copy the firmware to the root of the internal storage
Take a nandroid backup using TWRP
Reboot to bootloader from within TWRP
Code:
fastboot flash recovery recovery_N3.img
fastboot reboot
adb reboot recovery
Use the stock recovery to flash your chosen firmware
If you are downgrading then wipe data and cache (you did remember to take a nandroid, right?)
Reboot
You are now on stock fimware. Follow the rooting instructions in post #1, and if you wiped you may optionally restore only the data partition from your nandroid backup.
Will memory be erased?
Hi,
So i'm looking forward to root my beautiful Oppo N3.
On my last Phones memory (data and so on) was erased alongside with unlocking the phone.
Will it be the same on this phone so that I have to backup all my data?
Your data will not be erased when rooting or unlocking. Also your warranty will not be invalidated like it is with other manufacturers.
It is, however, always wise to take a backup before anything like this, just in case something does go wrong.
Hi,
I tried rooting my N3 now but i made a mistake by not executing the commands after falshing SuperSU.
That's why my phone is always booting into TWRP. There i tried executing your commands, but apparently the shell refuses to su by throwing exception: "command not found"
Going on with mount-command, it is also giving back an error: "can't find /system in /proc/mounts"
Hope sb could help me now...
EDIT: Solved by installing stock recovery, booting system, and the reflash twrp.
Lum_UK said:
Even simpler root than Invisiblek's method for the older versions: If you have already tried that method and now have broken wireless, see Post #2
Download http://teamw.in/project/twrp2/282 and http://download.chainfire.eu/supersu
adb reboot bootloader
fastboot oem unlock
fastboot flash recovery openrecovery-twrp-2.8.4.0-n3.img
fastboot reboot
adb reboot recovery
Flash Super SU from within TWRP. Then boot the OS
adb shell
su
mount -o remount,rw /system
echo "/system/xbin/su --daemon &" >> /system/etc/init.qcom.post_boot.sh
Reboot and you're rooted.
By default ColorOS doesn't let apps auto-start themselves, so go into security centre and allow SuperSU to auto-start, otherwise you won't get prompts for root when other apps need it.
Thanks to invisiblek for the original root method and babelmonk for the fix. I have shamelessly copied these and adapted them for the new firmware.
Click to expand...
Click to collapse
Quoted from your post in oppo forum
Wait for the phone to boot:
adb reboot recovery
It should boot into TWRP recovery flash the SuperSU zip you downloaded but do not reboot as we need to fix a small bug in SuperSU due to Oppo not using the expected startup scripts.
adb shell
su
mount -o remount,rw /system
echo "/system/xbin/su --daemon &" >> /system/etc/init.qcom.post_boot.sh
Reboot and congratulations. You are now rooted.
Sorry , quite new in fastboot command so i apologize if I misunderstood you but I'm running on N5206_EX_23_150208 , which should i follow ? to boot up after flashing SuperSU or not to boot up ?
It doesn't matter which way around you do it, just that root won't work outside of ADB until it's done.
I assume that XDA folk are more familiar with ADB etc. than on the Oppo forums so the instructions skip over more detail here.
Updated the method to use fastboot boot instead of fastboot flash.
This should work around the issue with phones that can't flash twrp, and also leave the stock recovery in place which is more useful to have until we get some custom roms.
Lum_UK said:
Updated the method to use fastboot boot instead of fastboot flash.
This should work around the issue with phones that can't flash twrp, and also leave the stock recovery in place which is more useful to have until we get some custom roms.
Click to expand...
Click to collapse
I was using modified boot.img to get root and then edit init.qcom.post_boot.sh. Now my wi-fi is broken. Can I fix it without wiping? Maybe flash some other boot img?
Anilexis said:
I was using modified boot.img to get root and then edit init.qcom.post_boot.sh. Now my wi-fi is broken. Can I fix it without wiping? Maybe flash some other boot img?
Click to expand...
Click to collapse
Fixed it by flashing boot.img from 150208, root still there due to script edit.
Updated the OP to use the modified stock recovery (Wmjan's recovery for the N5207) as this will be friendlier to noobs and also make it easier to install OTAs.
Anyone know where to get the root coloros file? Link doesn't seem to work for me...
http://www.oppoforums.com/attachment..._v2-zip.31142/
cowabunga said:
Anyone know where to get the root coloros file? Link doesn't seem to work for me...
http://www.oppoforums.com/attachment..._v2-zip.31142/
Click to expand...
Click to collapse
Sorry for the delay in replying. I've re-hosted the file for you.
http://lum.uk/n3/files/Root_ColorOS_by_tantrums_v2.zip
You could also try this. It worked on my girlfriend's R5 running a similar version of ColorOS. Didn't need modified recovery or anything, install it, run, click the root button, and it'll reboot to recovery and root for you.
http://lum.uk/n3/files/ForceRoot.apk
can this root work with Chines n5207
Hello,
I'm from Malaysia,
I got problem with my N3 / N5206 after update the newest version of software...now it cannot detect any line signal and open a wifi...what the problem,can u help me...
I can't make the WiFi to work again. Installed all versions of firmware and no luck....
Update: I was using the wrong tool to flash the firmware.
Don't update the phone with Msm8974DownloadTool !!!!
You have to download and install QPST_2.7.460 and place the phone in download mode by pressing volume + and power button and then in QPST load the firmware N5206EX_11_A.11_150528_SVN6225 or Oppo_N3_N5206_EX_11_A.13_151230 or N5206EX_11_A.10_150519_SVN6196
After flashing the wifi is working but you gonna loose the NV ram backup for the IMEI numbers..
Then you have to open dealpad with *#801# and anable Full-port ON
In QFIL(QPST) click on Tools then click QCN Backup Restore
Choose the qcn file and press restore.
Everything will work again after reboot the phone...
Latest TWRP recovery and root for Lenovo a7000 marshmallow firmware.
Download and unzip TWRP and SP Flash tool on PC.
Copy the SuperSU.-v71zip in your phone which you will find in the TWRP .zip file.
Run SP flash tool and In the menu Option tab, go to Download, and put a tick in the DA DL All with Checksum".
choose scatter in the TWRP folder and then select "Download only" and click download.
Now power off the phone and connect the USB cable.
The process will start and after completion, a box will appear with done written on it.
Then Boot into recovery (Power + half a second the two volume buttons).
Now you are on TWRP RECOVERY.
For Rooting: Now select install zip and then navigate to SuperSU-v2.71.zip
reboot.
Download TWRP Recovery 3.0.2-1:click here
Download Latest SP Flash Tool: click here
NOTE: IF YOU ARE USING THIS FOR CUSTOM ROM THEN UNTICK THE BOOT.img IN SPFLASH TOOL WHILE FLASHING THE TWRP OTHERWISE YOUR DEVICE COULD BE IN BOOT LOOP STATE. (FLASH STOCK ROM TO FIX)
FOR STOCK ROM NO NEED TO UNCHECK
Yeah! ☺ Will be trying it later. Thanks for the link.
What about 'CWM Recovery' ?
If one succeeds with this TWRP and rooting, then I think one can change TWRP to CWM using flashify or Rashr, provided he/she should confirm that the 'CWM Recovery' will work on Lenovo A 7000 a with android 6.0 OS. But I do not know if the 'CWM' recovery thatwas used earlier when we were on android 5.0, will still work with android 6.0 or not. Can anybody confirm?
this is working men thanks:angel:
Like a charm
Sent from my Lenovo A7000-a using XDA-Developers mobile app
Lenovo A7000 Marshmallow STOCK FIRMWARE
Flash via spflash tool
http://forum.xda-developers.com/android/development/lenovo-a7000-as223160405-row-andoid-6-0-t3360467/post66404777#post66404777
Does backup and restore works on this twrp?
milankumarn said:
Does backup and restore works on this twrp?
Click to expand...
Click to collapse
Yes it support backup and restore.
Worked for me. Thanks a lot!
I have a big problem ...
Few days ago My phone give me option to update to android 6.0 .(Lenovo a7000)
Downloading update package and press update.
When i press update ,phone is immediatly reboot to twrp and thats it .... That all
Nothing happening... rebooting phone and then get message ,update failing and update package automaticaly erased from phone.
Is anything i doing wrong ?
Thanks ,
Regards from Slovenia
Flashed the recovery as instructed, but when I boot into recovery and select Install, Supersu. Zip does not show up even though it is on the phone.
Please help
chabot said:
I have a big problem ...
Few days ago My phone give me option to update to android 6.0 .(Lenovo a7000)
Downloading update package and press update.
When i press update ,phone is immediatly reboot to twrp and thats it .... That all
Nothing happening... rebooting phone and then get message ,update failing and update package automaticaly erased from phone.
Is anything i doing wrong ?
Thanks ,
Regards from Slovenia
Click to expand...
Click to collapse
Use the stock rom found here to go back to factory settings using the stock marshmallow rom. Make sure that you flash using SP Flash Tool as instructed in the link. This will replace TWRP with stock recovery.
Afterwards, you can reinstall TWRP and root,etc.
Sent from my Lenovo K50-t5 using XDA-Developers mobile app
after flashing and rooting i format my sdcard as internal and i notice that no zip/img file appear on twrp. has anyone encounter the same problem?
Unable to Root!
Flashed the recovery as instructed, but when I boot into recovery and select Install, Supersu. Zip does not show up even though it is on the phone. It shows the folder but not as a Zip file.
Please help
dan_daniel04 said:
Flashed the recovery as instructed, but when I boot into recovery and select Install, Supersu. Zip does not show up even though it is on the phone. It shows the folder but not as a Zip file.
Please help
Click to expand...
Click to collapse
I think you have place the supersu zip in external and locating in internal.
I have tested the recovery and it's working fine
Thanks :good::good::good::good:
Hello any way to root without flashing twrp?
PB1974 said:
Flashed the recovery as instructed, but when I boot into recovery and select Install, Supersu. Zip does not show up even though it is on the phone.
Please help
Click to expand...
Click to collapse
I think you have copied the SuperSU-v71.zip in external storage and in TWRP you are searching in internal storage.If it is so the paste it in internal or change storage selection at the time of installing zip.
And paste the zip in root of the storage not in any folder.
As i can see this is your 1st post.
I think this will help you.
Mounting issue with TWRP
After switching sdcard as internal storage. The file manager only shows the ext. Sdcard so from where we can access the internal Sdcard to put that Supersu.zip.And the TWRP only mount only internal Sdcard. Not able to mount ext. Sdcard plz. Help!
Hey can i flash this supersu.zip via twrp 3.02-1?
Couple hours ago i flashed supersu.zip from lenovo a7000 indonesia group, and all i got was bootloop. Is it possible that with this supersu i could get another bootloop? Thanks
Tried updating to Beta 10 from Beta 9 and that was a royal screw up. Now can't get myself out of TWRP recovery mode. If I try to restore to my only Nandroid Backup it freezes at 100% and if I restart the phone it becomes stuck on the android/OP logo.
Can someone please walk me through how to revert back to any version of the OS? I downloaded both SuperSU 2.79 and I have the patched TWRP version for Beta 9.
Thanks!!!
SoCalUnique said:
Tried updating to Beta 10 from Beta 9 and that was a royal screw up. Now can't get myself out of TWRP recovery mode. If I try to restore to my only Nandroid Backup it freezes at 100% and if I restart the phone it becomes stuck on the android/OP logo.
Can someone please walk me through how to revert back to any version of the OS? I downloaded both SuperSU 2.79 and I have the patched TWRP version for Beta 9.
Thanks!!!
Click to expand...
Click to collapse
option 1
in twrp wipe everything (system cache/Delvim and system), then flash beta 10 again followed by superSU and TWRP again, then reboot to system...
option 2
if that doesn't work, you'll have to do 1 of 2 things, either convert the data partition back to EXT4 and then wipe everything and flash an MM rom, or flash the new oneplus stock recovery v2 and sideload beta 10, this must work.
if it boots twice after you try the 1st option it's normal supersu causes the double boot
theduke7 said:
option 1
in twrp wipe everything (system cache/Delvim and system), then flash beta 10 again followed by superSU and TWRP again, then reboot to system...
option 2
if that doesn't work, you'll have to do 1 of 2 things, either convert the data partition back to EXT4 and then wipe everything and flash an MM rom, or flash the new oneplus stock recovery v2 and sideload beta 10, this must work.
if it boots twice after you try the 1st option it's normal supersu causes the double boot
Click to expand...
Click to collapse
Option 1 didnt work, with option 2, I tried a tutorial where mounting was necessary, but I wasn't able to mount my system, what can I do?
SoCalUnique said:
Tried updating to Beta 10 from Beta 9 and that was a royal screw up. Now can't get myself out of TWRP recovery mode. If I try to restore to my only Nandroid Backup it freezes at 100% and if I restart the phone it becomes stuck on the android/OP logo.
Can someone please walk me through how to revert back to any version of the OS? I downloaded both SuperSU 2.79 and I have the patched TWRP version for Beta 9.
Thanks!!!
Click to expand...
Click to collapse
just flash stock recovery and sideload ob9 full zip and boot to system
then again boot to stock recovery and sideload OB10 full zip or (flash ota file from internal memory ) then boot to system after full setup
boot to bootloader and flash twrp28 using adb fastboot flash and boot to twrp recovery and flash SU2.79 and boot to system.
SoCalUnique said:
Option 1 didnt work, with option 2, I tried a tutorial where mounting was necessary, but I wasn't able to mount my system, what can I do?
Click to expand...
Click to collapse
go to one plus site
download 1- the recovery
2 download full 3.2.8 rom
now on twrp convert data to ext4 (make sure it's converted
flash stock recovery from TWERP or fastboot it...
reboot to stock recovery
press english > press install via adb >congirm it>
you'll be represented by a screen tilling you it's waiting for the adb sideload
make sure you have the correct drivers on PC
on the same folder you have the 3.2.8 rom open command prompt and enter
Code:
adb sideload <Rom Name>.zip
it will take sometime to sideload, after it's finished your device should be working fine
if you still want beta, instead on 3.2.8 sideload the beta you want.
Tried to flash flash ob 10, but twrp said the zip was corrupted. I could not boot into the system anymore.
The problem is the system partition is ok ( verified from twrp file manager), but every time I choose reboot system, it will go back to twrp. I tried to re-flash ob 9, but twrp again reported another error. Log is attached. How should I solve the problem?
By the way, I wipe all data, including storage in twrp by mistake. Is there any way to recover the data? I am traveling now, just got several hundred pictures.:crying::crying: It seems to be impossible to do it on a computer in MTP mode, but I could not boot into the system neither.
Download the modded twrp from here and install it. Use it to flash community builds and all other roms from now on.
About the file recovering part, I wouldn't know.
You need to flash stock recovery, ADB sideload the official Open Beta, and boot into ROM.
By any chance, did you trigger an OTA update with TWRP installed?
zTweaked said:
Download the modded twrp from here and install it. Use it to flash community builds and all other roms from now on.
About the file recovering part, I wouldn't know.
Click to expand...
Click to collapse
I am always using the modified one. I am encountering a weird error.
The message is like
'E: unknown command [log]
........
script succeeded: result was [1.000000]'.
Update: flashing stock recovery seems to be effective ( of course, twrp does not exist anymore ).
SoybeanYoung said:
I am always using the modified one. I am encountering a weird error.
The message is like
'E: unknown command [log]
........
script succeeded: result was [1.000000]'.
Click to expand...
Click to collapse
Unknown command is a known and harmless issue on all 7.x.x roms. Just ignore it and go ahead.
And I think I saw 3.0.2-1 twrp version in your log.
---------- Post added at 09:20 AM ---------- Previous post was at 09:18 AM ----------
pmbabu said:
You need to flash stock recovery, ADB sideload the official Open Beta, and boot into ROM.
By any chance, did you trigger an OTA update with TWRP installed?
Click to expand...
Click to collapse
Open Beta builds can be flashed via modded twrp, no need to use stock recovery and adb sideloading. Plus even if he installed an OTA update, it won't get installed on twrp ~ and no harm will be done.
After you flash any rom, reflash recovery. Reboot to RECOVERY & then to system.
The red message it's on almoust every Nugat rom. And it's about some log .
zTweaked said:
Open Beta builds can be flashed via modded twrp, no need to use stock recovery and adb sideloading. Plus even if he installed an OTA update, it won't get installed on twrp ~ and no harm will be done.
Click to expand...
Click to collapse
He said he could only boot into twrp. That occurs (reboot to system will take it back to twrp over and over) only if someone tried an OTA update with twrp.
I don't think this is the case for you, but if you tried the other suggestions don't work try the below. I had a similar issue and found that my recovery partition was corrupted. However, an additional symptom I had was that my TWRP would hang completely when selecting reboot after any successful flash. I think modded TWRP does not like internal storage wipe from within TWRP (rather than through fastboot format userdata).
Boot to fastboot
Fastboot erase recovery
Fastboot flash recovery filename.img
Boot to recovery and flash your desired ROM+supersu which you can sideload via MTP (drag and drop from Windows) or adb push C:\SourceLocation\filename.zip /sdcard
I recommend ADB push over MTP.
Had the exact same problem as op, after some issues i was forced to use the unbrick method to get phone back as it wasn't even booting. Now im using beta 10 perfectly.
Did you manage to fix it? I have the same probem.
I do not have this device however I made these files for PETTYL users..
if you download it and it works, please hit the give THANKS button!
http://remainsilent.net/pettyl-twrp.img ------- fastboot flash recovery pettyl-twrp.img
http://remainsilent.net/pettyl-decrypt.zip TWRP ->> install ZIP ->> pettyl-decrypt.zip
I've instlled this "TWRP 3.2.1-moto-e5++-0" on Moto E5 XT-1920-16 (PETTYL) and works! Then successfully flashed Magisk 18.1 and now I have a root.
Thank you!
But now I have a problem. My phone tried to install OTA update and boot into Recovery to complete instalation. But because it's a TWRP the update can't be installed.
Now the phone only boot into TWRP. Can't start the system. Even on TWRP menu -> Reboot -> System then the phone boot again into TWRP. How to fix it?
Aalesund said:
I've instlled this "TWRP 3.2.1-moto-e5++-0" on Moto E5 XT-1920-16 (PETTYL) and works! Then successfully flashed Magisk 18.1 and now I have a root.
Thank you!
But now I have a problem. My phone tried to install OTA update and boot into Recovery to complete instalation. But because it's a TWRP the update can't be installed.
Now the phone only boot into TWRP. Can't start the system. Even on TWRP menu -> Reboot -> System then the phone boot again into TWRP. How to fix it?
Click to expand...
Click to collapse
You need kill the repeating OTA install sequence or, like you reporting, every time you boot into system, OTA installation get triggered and you get caught in the cycle. In TWRP menu, Mount System, go back main menu find your TWRP File Manager. Select System folder, Priv-App, find your OTA app (may be name 3C_OTA or something similar). Go ahead delete it if you don't plan on installing OTA on your device. You can also delete the OTA update zip package to stop your OS from continual trying to install it. In TWRP you need mount Cache, use TWRP File Manager again to open Cache directory, search for the OTA zip package and delete it.
whodat711 said:
I do not have this device however I made these files for PETTYL users..
if you download it and it works, please hit the give THANKS button!
http://remainsilent.net/pettyl-twrp.img ------- fastboot flash recovery pettyl-twrp.img
http://remainsilent.net/pettyl-decrypt.zip TWRP ->> install ZIP ->> pettyl-decrypt.zip
Click to expand...
Click to collapse
the links are dead i beg these files get re-uploaded please!!!!
TheLastAlphaUK said:
the links are dead i beg these files get re-uploaded please!!!!
Click to expand...
Click to collapse
You can get firmware for the xt1920 series PettyL from here https://mirrors.lolinet.com/firmware/moto/pettyl/official/
You can get custom recovery I built @ https://orangefox.tech
it should be all you need
TheLastAlphaUK said:
the links are dead i beg these files get re-uploaded please!!!!
Click to expand...
Click to collapse
Peetyl-[twrp+/decrypt zip
Can u reupload decrypt.zip?
Working recovery R9.0-3 on xt1920-16
i got this error C:\Users\GPS\Downloads\OrangeFox-R9.0-3-pettyl.zip: Unexpected end of archive. Using 7zip i extracted recovery.img and copied to external sd card and also to platform-tools folder. In fastboot i used "fastboot boot recovery.img" command , my phone booted to Orange recovery and there i used "Install Image" to flash recovery. If i try to flash downloaded zip file gives me an error Now i have working recovery and root (magisk 18.1) on E5 Play :victory:!
anyone still have pettyl-decrypt.zip? if so can you please upload it somewhere
Do someone have the pettyl-decrypt.zip?