Encryption Unseccesful, Bootloop to TWRP - Xiaomi Redmi Note 3 Questions & Answers

Hi,
I accidently flash CM14.1 (dirty flash from CM13), after flash finished a notification appear said "Encryption Unsuccessful" and there is only one option "Reset Phone".
After that my Kenzo bootloop to TWRP.
I have tried :
- wipe/factory reset
- clean flash CM13 offcial
- restore backup from CM13
But my Kenzo keep bootloop to TWRP.
Please help,
Thanks in advance.

You must use fastboot command fastboot format userdata

Oscilator said:
You must use fastboot command fastboot format userdata
Click to expand...
Click to collapse
fastboot command fastboot format userdata, it's give me an error, internal memory not mounted, it said 0MB. I think TWRP has corrupted.
So, I flashed new TWRP
- fastboot flash recovery new-twrp.img
- fastboot format userdata
- fastboot boot new-twrp.img
Now I'm able to restore twrp backup.

Related

Upgrade to 5.1.1. Confirmation

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

TWRP - enter your password ___SOLVED

OK
i tried to put the 2.6 TWRP on i think it was for the incorrect bootloader (10.6.1.8) so its asking for a password and can't mount anything. bootloader freezes whenever i do anything through fastboot .Adb can see the device in twrp .
PLS help !!!
Any one ...any help
What i did to fix this :
use windows 7 not 8.1 install drivers
I used "Minimal ADB and Fastboot" --- google it
and using part of http://forum.xda-developers.com/showpost.php?p=44244313&postcount=12
fastboot erase system
fastboot erase recovery
fastboot erase userdata
fastboot erase boot
fastboot erase misc
fastboot erase cache
fastboot -i 0x0B05 flash system c:\adb\blob --------- gives me an error uploading the blob !!!!!
fastboot -i 0x0B05 reboot ----did not respond --- have to use hardware buttons
When i restart i didn't have recovery at this point just boot in to fastboot menu (i thought i killed my asus totally ))
what i did after :
I FLASH BOOTLOADER ON THE LINK
https://www.androidfilehost.com/?fid=23060877490002899 (unzipp it and there is blob<--- i copy it in the abd/fastboot folder)
fastboot flash boot blob
reboot and go in to recovery to confirm that is Hairybean TWRP 2.5 (no enter your password any more ihaaa)
i download twrp_tf201t_kang_2.8.5.1_signed.zip (unzipp it and there is boot.blob<--- i copy it in the abd/fastboot folder) from ... https://www.androidfilehost.com/?fid=95916177934539154
and
fastboot erase recovery
fastboot flash recovery boot.blob
( I found that.... fastboot flash recovery xxxxxxxx ........... works ONLY if you do ..... fastboot erase recovery ......... first !!!!! i tryed flashing even my original twrp 2.4.4 and its asked me for the password again ..i try so many recovery version.....JB or ICS ...TWRP and CWM you name it ..just this and Hairybean TWRP 2.5 didn't asked for a password )
After ... fastboot flash recovery boot.blob ..... fastboot reboot .....worked ---- restart in to recovery ---- and i did not have that annoying "enter your password" msg any more !!!
than using part from :http://forum.xda-developers.com/transformer-prime/development/rom-katkiss-5-1-tf201-22-t3080892
Go to twrp/wipe/format data then type yes
It takes about 70 minutes to format
Make sure that your battery is full
Do Not interrupt format(if you do, it will brick)
After it's done go to Wipe//Advanced Wipe//Select Data
Tap “Repair or Change File System”//”Change File System//F2FS
Swipe to Change
Wipe dalvik cache, system, cache, data, internal storage
reboot in to twrp
At that point MY pc can see my tf201 internal storage in TWRP no problem so i just copy zips in there ....... didn't use sd card
Flash KatKiss-5.1.1_TF201_030.zip
Flash Supersu.zipin
Flash Gapps.zip
Reboot
Rom http://forum.xda-developers.com/devd...9236#downloads
SuperSu v2.46 http://download.chainfire.eu/supersu
Minimal Gapps https://www.androidfilehost.com/?fid=95916177934550851

Recovery deleting

Good morning everybody.
I need some help with my kiw-l21. I've got installed CM13 with stock recovery. I have tried to install TWRP recovery but with no success and I want it to be installed on the device but I can't achieve it. I'm doing: adb reboot bootloader --> fastboot flash recovery twrp.img --> fastboot boot twrp.img and in TWRP, reboot -> recovery but I always get the emui stock recovery. In a friend honor 5x new, I did the same steps and twrp is now installed. Why I can't install TWRP in my device?
Thanks you for all!
Is your bootloader unlocked? Looks like eRecovery is flashing back stock one. And how did you manage to install CM with stock recovery, on B350 it has just "Reboot, Wipe data, Wipe cache" options?
ShadySquirrel said:
Is your bootloader unlocked? Looks like eRecovery is flashing back stock one. And how did you manage to install CM with stock recovery, on B350 it has just "Reboot, Wipe data, Wipe cache" options?
Click to expand...
Click to collapse
Yes, I have bootloader unlocked. To install CM I did fastboot boot twrp.img. The recovery have: "Reboot system now", "Wipe data/factory reset" and "Wipe cache partition"
OK, try this order and give me feedback:
- adb reboot bootloader
- fastboot flash recovery twrp.img
- fastboot reboot
- adb reboot recovery
Mine worked that way with 0 issues.
ShadySquirrel said:
OK, try this order and give me feedback:
- adb reboot bootloader
- fastboot flash recovery twrp.img
- fastboot reboot
- adb reboot recovery
Mine worked that way with 0 issues.
Click to expand...
Click to collapse
Try but emui recovery appear after adb reboot recovery.
BTW I have upgrade CM13 to LOS14.1 and now wifi doesn't work and MAC address is like xx:00:00.... all zeros.
Flash twrp directly by using
fastboot flash recovery recovery.img

[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 !

Facing System Partition not found when flash OOS rom or GSI rom via fastboot

Hi, I'm trying to flash OOS rom on my phone, Curtana. But I got an error when flash it.
The Terminal facing System: (REMOTE: Partition not found).
And I'm stuck at fastboot, can't not boot system or to recovery.
Thanks for your help.
nhokloz105 said:
Hi, I'm trying to flash OOS rom on my phone, Curtana. But I got an error when flash it.
The Terminal facing System: (REMOTE: Partition not found).
And I'm stuck at fastboot, can't not boot system or to recovery.
Thanks for your help.
Click to expand...
Click to collapse
OOS ?!?!? is there OxygenOS for curtana?
where did you get it?
can i have a link or adress please...
javidman said:
OOS ?!?!? is there OxygenOS for curtana?
where did you get it?
can i have a link or adress please...
Click to expand...
Click to collapse
You can get here https://t.me/curtanacloud/472
I have found a solution. I flashed stock rom via MiFlash to have fastbootd (not fastboot). Then reboot to Bootloader and type 'fastboot reboot fastboot' to boot to fastbootd. Then I can flash any system.img I want.
Another method, but I've try yet.
1. Unlock bootloader
2. Flash LOS recovery
3. Boot bootloader
In CMD
4. Enter: 'fastboot reboot fastboot'
5. Then you will see 'fastbootd', enter 'fastboot flash system system.img' (system.img = gsi img)
6. enter 'fastboot reboot recovery'
In recovery
7. go to factory reset
8. select format data/factory reset then format data
9. then select reboot system

Categories

Resources