[DEV] Flashing and Rooting Phone, Development project - Xiaomi Redmi S2 Guides, News, & Discussion

All the thanks goes to @Peak.Krittin [Dev].
MIUI Forum link to this thread :-
http://en.miui.com/thread-3584490-1-1.html
Greeting , MIUIers
This thread is divided into 2 part
- Flashing TWRP & ROOT (& INSTALL XIAOMI.EU)
- My active development project for Redmi S2/Y2 (YSL)
Today , I will be showing you how to flash TWRP and root the Xiaomi Redmi S2/Y2 (YSL)
I took time to make this and sure that it is noob friendly.
You can not blame anyone if you bricked your phone, It's all your own fault. Please done it with caution.
People who do not know what they are doing right now please leave this thread alone.
!!! Unlocking & Rooting phone will lost your warranty !!!
(Re-locking & flashing full rom by fastboot should give your warranty back)
Requirements :
- Unlocked Bootloader
- Workable Brain
- Common Sense
- TWRP
https://drive.google.com/file/d/1kW_j-iQDDPHnt8cWkcogtKR7iM--8Yhh/view
- Magisk
https://github.com/topjohnwu/Magisk/releases/download/v16.4/Magisk-v16.4.zip
- ADB & FASTBOOT
- ADB & FASTBOOT DRIVER
- Xiaomi.eu Rom (Optional)
https://xiaomi.eu/community/forums/miui-rom-releases.103/
Note:- You can flash it on any miui rom.It is safe to flash.
and for boot into recovery wiping of data not needed.
but if you flash ( I said flashing) on xiaomi.eu MIUI roms then to decrypt internel data you have to click on wipe data and then it will ask you something you have to simply write "yes" and then your internel data will be decrypted and you can see all the files of internel data in twrp.( Decryption of internel storage is only supported by xiaomi.eu roms )
But if you flash it on any other MIUI rom then it will not decrypt your internel storage (So no need to wipe data). To flash any .zip or .img file you have to put that file in your sdcard so that you will flash it through twrp.
And note that if you only boot into twrp then you dont have to wipe data but you have to put your flashable files in the sdcard.TWRP will not be there once you reboot.It only will be seen when you again boot into twrp through cmd.and you will get ota update as well if you only boot into twrp because when once you reboot your phone you will get your stock recovery not twrp.
I am again saying booting and flashing are two different things.
!!! UNLOCKED BOOTLOADER REQUIRED !!!
Let get start,
Copy the twrp file into your ADB&Fastboot folder.
First of all , Prepare your phone in fastboot by
- Power + Volume Down
- adb reboot fastboot
Then type "fastboot devices"
It should return something.. (Your phone)
If it didn't ( Please go read #1 Solution in the end of the thread
After that, type
"fastboot boot twrp-3.2.1-0-ysl.img"
If you want to temporarily boot twrp
or type
"fastboot flash recovery twrp-3.2.1-0-ysl.img"
If you want to flash recovery.
Then, You should see your phone entering TWRP
You will be prompted
"Please enter password to decrypt your phone"
(Please read solution #2 at the end of the thread to permanently disable encryption)
Don't enter password....
Click cancel then go to wipe
Then "Slide to wipe" ( If there are errors please go read #3 Solution in the end of the thread )
Then advanced wipe and wipe Internal Storage
After that, click "Install" then click "select storage"
and select External Storage / SD Card and click
"Magisk.zip" and "Install This ZIP" wait until the installation finish then click "Reboot Device"
Congratulations, You have rooted your phone
Solution Part :
#1 : My device is not founded in fastboot...
Answer : Did you even unlock your bootloader...
#2 : Permanently disable encryption
Answer : Please make sure that you done rooting your phone then flash xiaomi.eu rom before flash please wipe all of your partition except EXTERNAL STORAGE (SD CARD) then flash Magisk.zip again
What is xiaomi.eu rom?
It is a modded miui rom based on CHINA and have OTA update supported... Also, It disable encryption
#3 : Can't format
Answer : Please reboot your phone into fastboot and start the process again...
--------++++++ Development Part ++++++--------Redmi S2/Y2
WhatsApp Group : https://goo.gl/9g8S9Y
ARM64 Kernel
- Kernel build completed
Collecting VENDORS FILE to make the kernel work...
Custom ROM
- Let talk about it later ( I'm secretly doing it)
--------------------------------------------------------------
And... Thank you for deleting my old thread with the Irrelevant reason
and for information about Development of redmi S2/Y2 join our whatsapp group.
Link is mention above .
and if you like this then please like this thread.
THANK YOU

Zaid Sheikh said:
"fastboot flash twrp-3.2.1-0-ysl.img"
If you want to flash recovery.
Click to expand...
Click to collapse
this one is right command
"fastboot flash recovery twrp-3.2.1-0-ysl.img"

Shiroyasha21 said:
nice guide
I just unlocked bootloader and try to instal twrp and i found something wrong
this one is right
"fastboot flash recovery twrp-3.2.1-0-ysl.img"
is wiping internal storage needed? for what?
also whatsapp group link is broken
Click to expand...
Click to collapse
brother first of all sorry for broken whatsapp group link
now coming to your issue
brother if you only want to reboot into twrp recovery then use this command :-
fastboot boot twrpname.img
and if you want to flash it :-
fastboot flash recovery twrpname.img
if you have xiaomi.eu MIUI rom then it is needed to wipe internel data or you can simply click on wipe data na then type yes .It will decrypt your internel storage only works in xiaomi.eu rom
and if you wipe data on other roms like golbal beta or stable then it will not decrypt your internel data .

Zaid Sheikh said:
if you have xiaomi.eu ...
Click to expand...
Click to collapse
ok I'm understand

Shiroyasha21 said:
ok finally I'm understand
at first booting to twrp it take time, ask password and log show "unable to decrypt blabla...." it was beacuse I'm on global right? and I can only flash .zip only from sdcard
so now I'm on eu rom then format data, and no more "unable to decrypt blabla...." is that mean I can flash .zip from Internal storage?
Click to expand...
Click to collapse
yes u r right but you have to wipe data first

As the proper owner of this guide, He just copied without PM or permission
Edit : He gave proper credits now.

Zaid shaikh all links are revoked plz contact me= 8847291484 i want to root my phone urgent please

batthsahej said:
Zaid shaikh all links are revoked plz contact me= 8847291484 i want to root my phone urgent please
Click to expand...
Click to collapse
There is another thread. Find it.

After unlocked bootloader and enter following command
PS C:\Users\amiku\Desktop> fastboot boot ysltwrp.img
downloading 'boot.img'...
OKAY [ 0.738s]
booting...
and it stays like that forever

milan1984 said:
After unlocked bootloader and enter following command
PS C:\Users\amiku\Desktop> fastboot boot ysltwrp.img
downloading 'boot.img'...
OKAY [ 0.738s]
booting...
and it stays like that forever
Click to expand...
Click to collapse
vol up + power button will boot to recovery

Yeah, I know that, i fixed it with flashing twrp, just wanted to try without flashing custom recovery only booting for couple of times.

Yeah command "fastboot flash recovery ysltwrp.img"
fastboot reboot
power+vol+

Related

[RECOVERY][Huawei P7][Unofficial TWRP Recovery 3.0.3-0]

Hi everyone.
Here's my build of TWRP 3.0.3-0 for Huawei P7.
Features:
Supports USB OTG, so you can use USB flash drive as external storage for backups, zip installations.
Added feature to make backup/restore of internal storage.
Added feature to make backup/restore of oeminfo partition. This partition contains info about vendor and current installed version. So in case if you want to rollback to 4.4.2, for example, or revert back your previous vendor version, you can just restore oeminfo from backup with 4.4.2 version or other vendor and flash appropriate firmware without flashing transition package, vendor and without getting "cust fail" error.
Combined with stock EMUI 3.1 recovery. In case of power-on by holding power + vol+ or rebooting into recovery by command or any 3rd party application: will boot in TWRP. In case of local update, OTA-update, factory reset from menu or "force update" (3buttons method): will boot into EMUI recovery. Thus you don't have to flash stock recovery before OTA-update, flashing official firmware or doing factory rest.
Off-mode charger updated from EMUI 3.1 (for 4.4.2)
custom.bin and cust symlinks are saved/restored (if they were exist) in case of Wipe/Format Data. So there is not gonna be "cust" issues after factory reset in TWRP.
Excluded SuperSU from build.
Enabled encrypted data support.
Screen lock by power button replaced with screen off.
Requirements:
Unlocked bootloader
Android 4.4.2 - 5.1.1
Installation:
Reboot in fastboot mode
Flash image via fastboot
Code:
fastboot flash recovery TWRP_P7-3.0.3-0.img
fastboot reboot
From TWRP: Press "Install" and select zip-archive
Notes:
Because internal storage is not a separate block device and just a subfolder of "userdata" partition, before you can make backup/restore of internal storage, first you should do Mount -> Data.
Download: TWRP_P7-3.0.3-0.img
For TWRP: TWRP_P7-3.0.3-0.zip
Previous:
Download: TWRP_P7-3.0.2-0.img
For TWRP: TWRP_P7-3.0.2-0.zip
Download: TWRP_P7-3.0.0-0.img
For TWRP: TWRP_P7-3.0.0-0.zip
Thanks for supportion the P7 devices, greate job
Is it possible, to restore 2.8.7.0-backups?
pokko said:
Is it possible, to restore 2.8.7.0-backups?
Click to expand...
Click to collapse
I can't tell you for sure about backups made by araca's 2.8.7.0 - I don't know his partition layouts and backup naming method, but if you were using my build of 2.8.7.0, then yes, you can.
Anyway, it's better to make a new backup, for any case...
Thanks . works great on my p7 especially the factory reset with cust .
can you explain how i can build similar twrp for the mate S . your help will be much appreciated
Hi !
Whenever I use 3buttons method my phone goes to EMUI recovery ,
Whenever I use 3rd party application my phone goes to TWRP recovery !
There is no update file on my storage so in both cases my phone should go to TWRP recovery ! What is the problem ? Please solve this !
andromodgod said:
can you explain how i can build similar twrp for the mate S . your help will be much appreciated
Click to expand...
Click to collapse
What do you mean by similar?
You'll have to make device tree to build TWRP. Mate S is much different from P7, so I think I couldn't help you with it.
mohammadsaa said:
Hi !
Whenever I use 3buttons method my phone goes to EMUI recovery ,
Whenever I use 3rd party application my phone goes to TWRP recovery !
There is no update file on my storage so in both cases my phone should go to TWRP recovery ! What is the problem ? Please solve this !
Click to expand...
Click to collapse
There is not any problem. 3 buttons method is used for "force update". If you want to boot into TWRP, use "power" + "vol+" instead of 3 buttons. Read the first post attentively!
@Kostyan_nsk_one question, why if internal storage is a subfolder of user data in recovery the size of internal storage partition is bigger of data partition?
complicazio said:
@Kostyan_nsk_one question, why if internal storage is a subfolder of user data in recovery the size of internal storage partition is bigger of data partition?
Click to expand...
Click to collapse
TWRP excludes /data/share folder from backup of /data folder. Thus, if you have a lot of photos, music, etc in your internal storage, its backup size will be greater than size of /data backup.
Kostyan_nsk said:
TWRP excludes /data/share folder from backup of /data folder. Thus, if you have a lot of photos, music, etc in your internal storage, its backup size will be greater than size of /data backup.
Click to expand...
Click to collapse
Well, thus if I want to do a nandroid backup I have to check data and internal storage, not only data partition because of default it's not selected internal memory
complicazio said:
Well, thus if I want to do a nandroid backup I have to check data and internal storage, not only data partition because of default it's not selected internal memory
Click to expand...
Click to collapse
It's not mandatoryly for nandroid backup. Depends on what kind of data you want to save. /data contains user applications and system settings; /data/share (i.e. internal storage) contains your personal data (screenshots, photos, music, videos, etc) if you didn't moved them to sd-card. It's up to you, what to backup and what not.
@Kostyan_nsk I appreciate your work. I have already built TWRP for my Huawei device but I am struggling to fix custom.bin and /data/cust symlink being destroyed after factory reset. I have placed the necessary code in partitions.cpp under Wipe partition block. Can you tell me which method you used to fix this?
@Kostyan_nsk When I do a backup in the internal memory then via es file Explorer goes into TWRP folder in sdcard0 (internal memory) it is empty, and if I go into the folder media / share / 0 / TWRP I find the backup. They are not the same thing? While if I do backup in the external sdcard its all ok.
Sent from my Paris using XDA-Developers mobile app
Hi,, I am new here ... i think this very nice .. do you tell me how is instal for my phone p7?
albelushi7 said:
Hi,, I am new here ... i think this very nice .. do you tell me how is instal for my phone p7?
Click to expand...
Click to collapse
Read first post
RangerP7 said:
Read first post
Click to expand...
Click to collapse
What is the first post?
I mean instal twrp!!
How?
If you mean Buckup I do this ?!!
I'm new don't forget this hhh
Think you
albelushi7 said:
What is the first post?
I mean instal twrp!!
How?
If you mean Buckup I do this ?!!
I'm new don't forget this hhh
Think you
Click to expand...
Click to collapse
First post on first page
Kostyan_nsk said:
Hi everyone.
Here's my build of TWRP 3.0.0-0 for Huawei P7.
Features:
Supports USB OTG, so you can use USB flash drive as external storage for backups, zip installations.
Added feature to make backup/restore of internal storage.
Added feature to make backup/restore of oeminfo partition. This partition contains info about vendor and current installed version. So in case if you want to rollback to 4.4.2, for example, or revert back your previous vendor version, you can just restore oeminfo from backup with 4.4.2 version or other vendor and flash appropriate firmware without flashing transition package, vendor and without getting "cust fail" error.
Combined with stock EMUI 3.1 recovery. In case of power-on by holding power + vol+ or rebooting into recovery by command or any 3rd party application: will boot in TWRP. In case of local update, OTA-update, factory reset from menu or "force update" (3buttons method): will boot into EMUI recovery. Thus you don't have to flash stock recovery before OTA-update, flashing official firmware or doing factory rest.
Off-mode charger updated from EMUI 3.1 (for 4.4.2)
custom.bin and cust symlinks are saved/restored (if they were exist) in case of Wipe/Format Data. So there is not gonna be "cust" issues after factory reset in TWRP.
Excluded SuperSU from build.
Enabled encrypted data support.
Screen lock by power button replaced with screen off.
Requirements:
Unlocked bootloader
Android 4.4.2 - 5.1.1
Installation:
Reboot in fastboot mode
Flash image via fastboot
Code:
fastboot flash recovery TWRP_P7-3.0.0-0.img
fastboot reboot
From TWRP: Press "Install" and select zip-archive
Known issues:
Because internal storage is not a separate block device and just a subfolder of "userdata" partition, before you can make backup/restore of internal storage, first you should do Mount -> Data. Otherwise you will get error, saying that TWRP can't mount "storage". So don't bother if you'll see this error.
Download: TWRP_P7-3.0.0-0.img
For TWRP: TWRP_P7-3.0.0-0.zip
Click to expand...
Click to collapse
Download ADB/FASTBOOT
Download TWRP_P7-3.0.0-0.img
And put it into the ADB / FASTBOOT folder
Install drivers of your phone
Connect your phone to your computer
Enable USB debugging on your phone
Open ADB and type:
"adb devices" (you should see now your device)
"adb reboot bootloader"
Now you should see at the bottom unlocked or locked. That means if your bootloader is unlocked. You need to unlock your bootloader to install a custom recovery.
If you see unlocked...
"fastboot flash recovery TWRP_P7-3.0.0-0.img"
That's it
Reboot your phone.
RangerP7 said:
First post on first page
Download ADB/FASTBOOT
Download TWRP_P7-3.0.0-0.img
And put it into the ADB / FASTBOOT folder
Install drivers of your phone
Connect your phone to your computer
Enable USB debugging on your phone
Open ADB and type:
"adb devices" (you should see now your device)
"adb reboot bootloader"
Now you should see at the bottom unlocked or locked. That means if your bootloader is unlocked. You need to unlock your bootloader to install a custom recovery.
If you see unlocked...
"fastboot flash recovery TWRP_P7-3.0.0-0.img"
That's it
Reboot your phone.
Click to expand...
Click to collapse
There are some nots ==
Where is ADB or link ADB/Fastboot
Where is folder Fastboot
albelushi7 said:
There are some nots ==
Where is ADB or link ADB/Fastboot
Where is folder Fastboot
Click to expand...
Click to collapse
Use the power of Google, maybe the force will be with you and you will find it
And please! inform you about flashing things on your phone. First learn how it work (your phone, bootloader, recovery, system, adb/fastboot) and after that start work...
If you are just flashing random **** on your phone without knowing what your are doing I will promise you, in less then one week you will ask for help because your phone won't start anymore...
RangerP7 said:
Use the power of Google, maybe the force will be with you and you will find it
And please! inform you about flashing things on your phone. First learn how it work (your phone, bootloader, recovery, system, adb/fastboot) and after that start work...
If you are just flashing random **** on your phone without knowing what your are doing I will promise you, in less then one week you will ask for help because your phone won't start anymore...
Click to expand...
Click to collapse
I know that
But This new for me ?
I want install this twerb ,because I think phone be better..
Just Try ?
Think you ?

Can't get out of Fastboot.

"Cyanogendmod.Org / Install CM for z3c / Unlock Your Xperia Z3 Compact" <--- That's the URL somehow.
Followed this instruction. Got myself the 12.1 .zip and .img.
I get error installaing the .zip and the .img isn't even an option:
The old rom is infinitly loading in that blue/purple wave line.
I then turn the phone off by holding down the power button until the phone restarts.
My history:
>Pressing up and down on the button rockers.
>Cyanogen Recovery starts.
>I choose "Wipe data/factory reset".
>I choose "Apply update".
(Apply from ADB doesn't work as it seems as ADB has no access for USB debugging. That's why install it from an external SD)
>Install "cm-12.1-20160918-NIGHTLY-z3c.zip" or its copy that I named "update.zip".
Error message:
[CAN'T POST PICTURE BECAUSE XDA HAS VERY FUNNY MEME RULES XDDD]
Private message maybe...? Can I send you guys URL pics via PM?
How can I get out of this loop?
If you want to go back to stock, use flashtool and flash whatever version you want (FTF method), I had an issue with flashing CM too, it said this is for aries but this device is z3c etc. Is this your problem?
marshalpear said:
If you want to go back to stock, use flashtool and flash whatever version you want (FTF method), I had an issue with flashing CM too, it said this is for aries but this device is z3c etc. Is this your problem?
Click to expand...
Click to collapse
I definitly want CyanogenMod 12.1 on my Z3C. Is it still possible?
I hope you can decypher the URL h t t p : / / t i n y u r l . c o m / j 6 4 u 8 u a
Few things you can do:
1- Download the ROM again, might be corrupted download.
2- Flash Lollipop FTF(not necessary), Flash TWRP recovery, boot into recovery, (If it asks, swipe to allow modifications to system), wipe everything (system,cache,dalvik,data), flash the ROM through TWRP recovery.
3- If it gives the error that I talked about in my first message, let me know.
marshalpear said:
Few things you can do:
1- Download the ROM again, might be corrupted download.
2- Flash Lollipop FTF(not necessary), Flash TWRP recovery, boot into recovery, (If it asks, swipe to allow modifications to system), wipe everything (system,cache,dalvik,data), flash the ROM through TWRP recovery.
3- If it gives the error that I talked about in my first message, let me know.
Click to expand...
Click to collapse
I tried #1 but I'm already stuck with the "SONY XPERIA" blackscreen at the very beginning when booting the smartphone. I suppose it's because of the failed installation and the not choosing of "Wipe clean/factory reset".
I hope that still doesn't count as bricking. I let the accumulator run dry and reload the battery and try to get into the Cyanogenmod Recovery again. Right now nothing is possible. =/
I hope that doesn't count as bricking. If so: These special OTG USB thingies fix a lot I heard, should I get myself one?
SYLVER SECOND said:
I tried #1 but I'm already stuck with the "SONY XPERIA" blackscreen at the very beginning when booting the smartphone. I suppose it's because of the failed installation and the not choosing of "Wipe clean/factory reset".
I hope that still doesn't count as bricking. I let the accumulator run dry and reload the battery and try to get into the Cyanogenmod Recovery again. Right now nothing is possible. =/
I hope that doesn't count as bricking. If so: These special OTG USB thingies fix a lot I heard, should I get myself one?
Click to expand...
Click to collapse
If you are on CM recovery, then there is the problem. AFAIK you can't flash anything through that, so you have to push TWRP on your device using fastboot and then flash AOSP/CM rom you want.
SYLVER SECOND said:
I tried #1 but I'm already stuck with the "SONY XPERIA" blackscreen at the very beginning when booting the smartphone. I suppose it's because of the failed installation and the not choosing of "Wipe clean/factory reset".
I hope that still doesn't count as bricking. I let the accumulator run dry and reload the battery and try to get into the Cyanogenmod Recovery again. Right now nothing is possible. =/
I hope that doesn't count as bricking. If so: These special OTG USB thingies fix a lot I heard, should I get myself one?
Click to expand...
Click to collapse
That's called a soft-brick. You should install the ADB drivers for your phone on your PC and then download TWRP for your phone (.img file) and rename the TWRP you downloaded to recovery.img .
You should put the recovery.img into the folder where your ADB drivers are installed, then Shift + RClick on that folder then select Open Command Window Here. Connect your phone in fastboot mode to your PC (Keep Vol. Up button then plug in your device). Type the following commands:
fastboot flash boot recovery.img
fastboot reboot
If you've done it all correctly, your phone should boot into TWRP recovery. From there you should go to wipe-advanced wipe and wipe your Cache,Dalvik Cache, System, Boot. DO NOT REBOOT NOW. You should go back to main menu and choose install, then choose the ROM you want to install. It should flash it if you don't have a corrupted file. After flashing, you can safely reboot your phone, don't forget to flash GApps if you want Google features on your Cyanogen, hope I helped!
More info about my error:
h t t p : / / t i n y u r l . c o m / z b e v y u 2
Each version of step #3 doesn't work. Still trying to figure out how to get TWRP...
marshalpear said:
That's called a soft-brick. You should install the ADB drivers for your phone on your PC and then download TWRP for your phone (.img file) and rename the TWRP you downloaded to recovery.img .
You should put the recovery.img into the folder where your ADB drivers are installed, then Shift + RClick on that folder then select Open Command Window Here. Connect your phone in fastboot mode to your PC (Keep Vol. Up button then plug in your device). Type the following commands:
fastboot flash boot recovery.img
fastboot reboot
If you've done it all correctly, your phone should boot into TWRP recovery. From there you should go to wipe-advanced wipe and wipe your Cache,Dalvik Cache, System, Boot. DO NOT REBOOT NOW. You should go back to main menu and choose install, then choose the ROM you want to install. It should flash it if you don't have a corrupted file. After flashing, you can safely reboot your phone, don't forget to flash GApps if you want Google features on your Cyanogen, hope I helped!
Click to expand...
Click to collapse
K, 90% of this works. I got the TWRP "app" and I cleaned the cache and all that, but I had to reboot. You see:
To transfer new media I need to remove my external SD from the z3c to my old LG. The LG is connected with my PC and is therefore a kind of card-reader. I tried 2 different nightly thingies.
I still get extraction errors, see:
h t t p : / / t i n y u r l . c o m / h j j d 4 o b
I downloaded 2 different nightlies 6 times already. I dunno. Somethings off here.
Also: For what is the recovery.img? Should I install it afterwards?
I have to restart the phone in order to replug the SD card and get recognigzed by the TWRP.
I did everything from this:
http://forum.xda-developers.com/showthread.php?t=2522762
Because of Error 7.
Now I get Error 6.....
SYLVER SECOND said:
K, 90% of this works. I got the TWRP "app" and I cleaned the cache and all that, but I had to reboot. You see:
To transfer new media I need to remove my external SD from the z3c to my old LG. The LG is connected with my PC and is therefore a kind of card-reader. I tried 2 different nightly thingies.
I still get extraction errors, see:
h t t p : / / t i n y u r l . c o m / h j j d 4 o b
I downloaded 2 different nightlies 6 times already. I dunno. Somethings off here.
Also: For what is the recovery.img? Should I install it afterwards?
I have to restart the phone in order to replug the SD card and get recognigzed by the TWRP.
I did everything from this:
http://forum.xda-developers.com/showthread.php?t=2522762
Because of Error 7.
Now I get Error 6.....
Click to expand...
Click to collapse
OK, your problem is that you messed up your system, so wiping it is not gonna solve this issue. You need to download a stock firmware file (an FTF file) and flash it through Flashtool, because your device name seems to be "." which is why you were getting "error 7". As for the recovery.img, you will use it to flash TWRP recovery on your phone. TWRP app doesn't work correctly if you don't flash it to your recovery partition so do as follows:
1- Download Flashtool, install the drivers of your device for Flashtool (you can search it on xda forums), download an FTF file, any of them should do, but as you will install CM 12.1, I recommend a Lollipop FTF.
2- Flash the firmware through Flashtool. This will turn your phone into a stock one. Unlock your bootloader if you haven't already, which I believe you have.
3- Flash the TWRP recovery through fastboot (follow my earlier instructions)
4- After you open TWRP recovery do the wipes, note that you can still connect your phone to your computer for file transfers in TWRP Recovery.
5- Install the CM zip file through recovery
IF YOU GET ERROR 7 SAYING :this package is for device: D5803, D5833, z3c; this device is aries.
7- Open the CM 12.1 zip file on your computer and proceed to META-INF/com/google/android directory.
8- In that folder you should see "updater-script", extract it to somewhere and open it with Notepad.
9- Once you open it press Ctrl + H to change some of the lines.
10- Write "D5833" without the quotation marks in the first space and write "aries" without the quotation marks into the second space and click replace all.
(This will change all "D5833" to "aries" in the file therefore making it usable for your device) Save the file and put it into the directory of where you found it, replace it with the original.
11- Now put the edited .zip file into your phone storage, and flash it through recovery. It should work. :good:
marshalpear said:
3- Flash the TWRP recovery through fastboot (follow my earlier instructions)
Click to expand...
Click to collapse
I think he shouldn't flash TWRP on boot partition, as you wrote. That might cause further issues. I am flashing my recovery through fastboot without problems using next command:
fastboot flash recovery recovery.img
Cirra92 said:
I think he shouldn't flash TWRP on boot partition, as you wrote. That might cause further issues. I am flashing my recovery through fastboot without problems using next command:
fastboot flash recovery recovery.img
Click to expand...
Click to collapse
It won't matter. Because when he flashes the CM, it'll flash the CM Recovery along with it.
marshalpear said:
It won't matter. Because when he flashes the CM, it'll flash the CM Recovery along with it.
Click to expand...
Click to collapse
Yea I know, but before that, he needs to have a working TWRP on right partition to be able to even flash any rom.
Cirra92 said:
Yea I know, but before that, he needs to have a working TWRP on right partition to be able to even flash any rom.
Click to expand...
Click to collapse
That's why I wrote those steps for him/her to follow. If you flash TWRP to boot partition, when you boot the phone, it will go straight into TWRP. If you flash it to recovery partition, you'll have to boot it manually.
marshalpear said:
That's why I wrote those steps for him/her to follow. If you flash TWRP to boot partition, when you boot the phone, it will go straight into TWRP. If you flash it to recovery partition, you'll have to boot it manually.
Click to expand...
Click to collapse
Logical step, didn't think about it that way, I assumed OP knew how to enter recovery
"1- Download Flashtool, install the drivers of your device for Flashtool (you can search it on xda forums), download an FTF file, any of them should do, but as you will install CM 12.1, I recommend a Lollipop FTF.
2- Flash the firmware through Flashtool. This will turn your phone into a stock one. Unlock your bootloader if you haven't already, which I believe you have.
3- Flash the TWRP recovery through fastboot (follow my earlier instructions)
4- After you open TWRP recovery do the wipes, note that you can still connect your phone to your computer for file transfers in TWRP Recovery.
5- Install the CM zip file through recovery
IF YOU GET ERROR 7 SAYING :this package is for device: D5803, D5833, z3c; this device is aries.
7- Open the CM 12.1 zip file on your computer and proceed to META-INF/com/google/android directory.
8- In that folder you should see "updater-script", extract it to somewhere and open it with Notepad.
9- Once you open it press Ctrl + H to change some of the lines.
10- Write "D5833" without the quotation marks in the first space and write "aries" without the quotation marks into the second space and click replace all.
(This will change all "D5833" to "aries" in the file therefore making it usable for your device) Save the file and put it into the directory of where you found it, replace it with the original.
11- Now put the edited .zip file into your phone storage, and flash it through recovery. It should work."
K, so I guess I'm finished with #1 and #2. Sorry, had a ****-ton of chores to do. Before I progress, I wanted to send you guys
this pic:
https://img3.picload.org/image/rdricord/unbenannt.png
Is the root access necessary, or can I progress?
That's the sites I've used, if anybody wonders why something is the way it is right now:
http://forum.xda-developers.com/z3-compact/general/list-stock-firmwares-d5803-d5833-t2906706
http://forum.xda-developers.com/showpost.php?p=66275965&postcount=2029
http://forum.xda-developers.com/showpost.php?p=60001557&postcount=829
Von "Sony Mobile Flasher by Androxyde":
"23/023/2016 22:23:52 - INFO - Root access denied
23/024/2016 22:24:07 - ERROR - Illegal key size or default parameters
23/024/2016 22:24:12 - ERROR - Illegal key size or default parameters
23/024/2016 22:24:13 - WARN - Please check your Phone and 'ALLOW' Superuseraccess!
23/024/2016 22:24:14 - INFO - Root access denied"
FlashTool says the firmware has been flashed so I don't understand what are you trying to do after that? After flashing the FTF file you should flash TWRP through "FASTBOOT". Then follow the instructions.
K, did everything you said. Read everything five-times. Replaced "D5833" to "aries" and all that stuff. Still getting ERROR 7.
The phone is still in TWRP Recovery from FASTBOOT / BOOTLOAD because I "constantly" charge it to stay in recovery. If I had found this Mount option earlier... kinda feel stupid for that. So I still get ERROR 7. I copied the modified .zip to internal storage and SD card to see if I get the same error twice. And yeah.
Exact error message in red letters:
"Updater process ended with ERROR: 7
Error installing zip file ' /external-sd/cm-12.1-20160918-NIGHTLY-z3c.zip'
Updating partition details...
... done"
So I forethought and cleaned the cache and need somewhat new instructions.
Also:
I suppose with "Advanced Wipe" and your instructions you meant this points, right?:
http://tinyurl.com/jc5rv3a
SYLVER SECOND said:
K, did everything you said. Read everything five-times. Replaced "D5833" to "aries" and all that stuff. Still getting ERROR 7.
The phone is still in TWRP Recovery from FASTBOOT / BOOTLOAD because I "constantly" charge it to stay in recovery. If I had found this Mount option earlier... kinda feel stupid for that. So I still get ERROR 7. I copied the modified .zip to internal storage and SD card to see if I get the same error twice. And yeah.
Exact error message in red letters:
"Updater process ended with ERROR: 7
Error installing zip file ' /external-sd/cm-12.1-20160918-NIGHTLY-z3c.zip'
Updating partition details...
... done"
So I forethought and cleaned the cache and need somewhat new instructions.
Also:
I suppose with "Advanced Wipe" and your instructions you meant this points, right?:
http://tinyurl.com/jc5rv3a
Click to expand...
Click to collapse
OK, so try flashing TWRP to recovery partition to get you out of TWRP after you boot by writing these commands in the ADB:,
fastboot flash recovery recovery.img
fastboot reboot recovery
This will flash the TWRP to recovery partition and will boot you into TWRP. As you do this you won't have a go at the recovery again but for this time. You can reach the TWRP by pressing the Vol. Down button when the phone vibrates at the boot. Also if you want to force shutdown your phone you can use Vol. Up + Power Button combination for a few secs.
marshalpear said:
OK, so try flashing TWRP to recovery partition to get you out of TWRP after you boot by writing these commands in the ADB:,
fastboot flash recovery recovery.img
fastboot reboot recovery
This will flash the TWRP to recovery partition and will boot you into TWRP. As you do this you won't have a go at the recovery again but for this time. You can reach the TWRP by pressing the Vol. Down button when the phone vibrates at the boot. Also if you want to force shutdown your phone you can use Vol. Up + Power Button combination for a few secs.
Click to expand...
Click to collapse
K, cool feature. Got it all set up now, but back to the main subject:
Is it even possible to install CyanogenMod 12.1 on Sony Z3C?

[MOD] Disable Forced Encryption/Data Decrypted

Disable forced encryption of data partition. Get little better performance and internal sd + data mounting in TWRP​
Things needed:
Unlocked Max pro with TWRP flashed
Instructions:
1. Download the decrypt.zip and move/copy to sdcard/otg drive
2. Flash in recovery
3. Format /data
4. Reboot
If it fails to boot (bootloop?) flash latest magisk and reboot.
res
First,
We get better performance after flashing this ?
Is this affect to the battery ? Drains or something ?
Greetings
gusbalaa said:
First,
We get better performance after flashing this ?
Is this affect to the battery ? Drains or something ?
Greetings
Click to expand...
Click to collapse
Differences should be minor as max pro has good cpu, but I can't test as i don't have it.
ahhhhhhhhhhhhhhhhhhhhhhh THANKS SIR
i so damn happy !! thanks fix all twrp + root and happy
Hey.....Am still getting bootloop......plz help.
Akky_karan said:
Hey.....Am still getting bootloop......plz help.
Click to expand...
Click to collapse
SD 636 already has hardware acceleration for encryption and decryption so no major effecrts.
Flash decrypt from twrp?
Can i flash decrypt from twrp? Because i already installed twrp on my device.
Sorry for my bad English
unlock.bat file not working
i understand the whole process i click on the unlock.bat file cmd appers and dissapears and nothing happens phone doesnt reboot after some time i reboot my phone manually still no changes in my phone starts normally. am i missing something. do i have to enable usb debugging mode or what?
plz hel
hi
so if i want to leave data partition encrypted, will twrp not be able to mount it?
what about rwrp?
can i just not enter a password when getting into recovery to let recovery read it
if i dont flash this zip, just flash twrp boot into it cancle the password prompt and swipe to modify system and dont change anything in options or flash magisk and reboot into stock does the twrp get replased by stock recovery cause it hapend to me and i am totally confeused on what to do next
it says
E: could not extract 'META-INF/com/google/android/update-binary'
Error installing zip file './external_sd/decrypt.zip'
Hi!!
Can you please also make a force encrypt, in case we want to revert back to encryption?
Thanks.
cant download th decrypt file
cant download th decrypt file
How to unlock unofficially in Ubuntu?
Sudeep Duhoon said:
Disable forced encryption of data partition. Get little better performance and internal sd + data mounting in TWRP
Things needed:
Unlocked Max pro with TWRP flashed
Instructions:
1. Download the decrypt.zip and move/copy to sdcard/otg drive
2. Flash in recovery
3. Format /data
4. Reboot
If it fails to boot (bootloop?) flash latest magisk and reboot.
Click to expand...
Click to collapse
Will this zip wipe everything?
"To start android enter password" (or so, my device not english)
What is the password?
tagilbo said:
"To start android enter password" (or so, my device not english)
What is the password?
Click to expand...
Click to collapse
Your lockscreen code
Prakashgolwalkar said:
i understand the whole process i click on the unlock.bat file cmd appers and dissapears and nothing happens phone doesnt reboot after some time i reboot my phone manually still no changes in my phone starts normally. am i missing something. do i have to enable usb debugging mode or what?
plz hel
Click to expand...
Click to collapse
open cmd and cd to the path containing unlockXXX files and just type unlock .
Hey,
in magisk is "preserve force encryption" shoud be clicked?
Thanks

Install Emui 8 Android 8.0 B533/B530/B528/B520/B511/B510 on Honor Note 8

Hi,
i thought I would make a new tread for that,because some have problems with it and it is clearer.
You need:
Firmware B533/B530/B528/B520/B511 or B510
HuRUpdater 0.3 for Edison AL10
IMG Files
Twrp for Oreo
This Twrp works only with Oreo and not with Nougat!
http://pro-teammt.ru/firmware-database/?firmware_model=edi&firmware_page=0
HuRUpdater 0.3 only for Edison AL10 Link here Thanks goes to zxzo0o for this Tool
Img Files Recovery,Kernel,Ramdisk https://www.androidfilehost.com/?fid=674106145207497141
Download all Files:Three Firmware Files,Img Files.zip and HuRUpdater0.3
Extract the IMG Files with Winzip,Rar...
Copy the three Firmware files,HuRUpdater0.3 and the Stockrecovery in a Folder on MicroSD on your Honor Note 8.Rename the RECOVERY_RAMDIS.img to recovery.img before copy in this Folder!
Copy KERNEL.img,RAMDISK.img and RECOVERY_RAMDIS.img in your ADB Folder for later.
Requirements:
You have to be on B359 Unlocked Bootloader and have Twrp installed!(Use Twrp for Nougat)
Instructions:
Boot into Twrp and wipe all:Format Data with "Yes"(Do you have a mistake while booting into the Erecovery and Format Data,you have the Option Format Data Partition,if an error occurs in Twrp)
Boot in Twrp and Format Data with "Yes" again.
Reboot after Format Data in Twrp again.
Format in advanced Wipe:System,Data,Cache,Dalvik Cache and Cache and reboot into Twrp.
Install the HuRUpdater0.3 in Trwp and follow the instructions.
After installing reboot into Bootloader,the Bootloader is locked.
Unlock the Bootloader with your Unlockcode.
In my case:My Phone boot not into System and it will display an error white background picture with red text and Notyfication Led flashes red.If not and your Phone boot into System skip this step.
Reboot into Bootloader and flash KERNEL.img,RAMDISK.img and RECOVERY_RAMDIS.img via ADB.
fastboot flash ramdisk RAMDISK.img
fastboot flash kernel KERNEL.img
fastboot flash recovery_ramdisk RECOVERY_RAMDIS.img
fastboot reboot
The Phone boot not into System,make a Factory Reset with Volume up and Power Button.(shows Chinese Recovery)
After Reset Boot,if your sim card does not work make a Factory Reset(Low Level Reset)Into Settings Factory Reset with Internal Memory.
The Phone Boot and all works,i test it with B510,B511 and B520
I am on B533 with Security Patch August 2018
If you will go back to Android 7 B359,boot into Erecovery and restore via wifi to B359.
I hope you understand my Bad English!
I think there will be Twrp soon, for the Mate 8 with Emui 8 there is already one on the Chinese Page.
https://cn.club.vmall.com/thread-16048510-1-2.html
That should work on the HN8.
The Twrp HN8 for Android 7 is also from the Mate 8
Unfortunately, I can not log in.
Maybe someone has a Vmall account and can download it?
Then you can try it if it works
TWRP
letschky said:
I think there will be Twrp soon, for the Mate 8 with Emui 8 there is already one on the Chinese Page.
https://cn.club.vmall.com/thread-16048510-1-2.html
That should work on the HN8.
The Twrp HN8 for Android 7 is also from the Mate 8
Unfortunately, I can not log in.
Maybe someone has a Vmall account and can download it?
Then you can try it if it works
Click to expand...
Click to collapse
Here is the File that you requested from the link. I have not tested it myself. Good luck with your testing!
Download huawei-nxt-al10-em8_0-twrp3.2.1-8.5.21.img
letschky said:
Hi,
i thought I would make a new tread for that,because some have problems with it and it is clearer.
You need:
Firmware B520/B511 or B510
HuRUpdater 0.3
IMG Files
Downloads:
http://pro-teammt.ru/firmware-database/?firmware_model=edi&firmware_page=0
HuRUpdater 0.3 Link here Thanks goes to zxzo0o for this Tool
Img Files Recovery,Kernel,Ramdisk https://www.androidfilehost.com/?fid=674106145207497141
Download all Files:Three Firmware Files,Img Files.zip and HuRUpdater0.3
Extract the IMG Files with Winzip,Rar...
Copy the three Firmware files,HuRUpdater0.3 and the Stockrecovery in a Folder on MicroSD on your Honor Note 8.Rename the RECOVERY_RAMDIS.img to recovery.img before copy in this Folder!
Copy KERNEL.img,RAMDISK.img and RECOVERY_RAMDIS.img in your ADB Folder for later.
Requirements:
You have to be on B359 Unlocked Bootloader and have Twrp installed!(For Android 8 There is no Twrp available yet)
Instructions:
Boot into Twrp and wipe all:Format Data with "Yes"(Do you have a mistake while booting into the Erecovery and Format Data,you have the Option Format Data Partition,if an error occurs in Twrp)
Boot in Twrp and Format Data with "Yes" again.
Reboot after Format Data in Twrp again.
Format in advanced Wipe:System,Data,Cache,Dalvik Cache and Cache and reboot into Twrp.
Install the HuRUpdater0.3 in Trwp and follow the instructions.
After installing reboot into Bootloader,the Bootloader is locked.
Unlock the Bootloader with your Unlockcode.
In my case:My Phone boot not into System and it will display an error white background picture with red text and Notyfication Led flashes red.If not and your Phone boot into System skip this step.
Reboot into Bootloader and flash KERNEL.img,RAMDISK.img and RECOVERY_RAMDIS.img via ADB.
fastboot flash ramdisk RAMDISK.img
fastboot flash kernel KERNEL.img
fastboot flash recovery_ramdisk RECOVERY_RAMDIS.img
fastboot reboot
The Phone boot not into System,make a Factory Reset with Volume up and Power Button.(shows Chinese Recovery)
After Reset Boot,if your sim card does not work make a Factory Reset(Low Level Reset)Into Settings Factory Reset with Internal Memory.
The Phone Boot and all works,i test it with B510,B511 and B520
I am on B520 with Security Patch June 2018
If you will go back to Android 7 B359,boot into Erecovery and restore via wifi to B359.
I hope you understand my Bad English!
Click to expand...
Click to collapse
Please wen will OTA release. Thanks
Sent from my EDI-AL10 using Tapatalk
TITAN-23 said:
Here is the File that you requested from the link. I have not tested it myself. Good luck with your testing!
Download huawei-nxt-al10-em8_0-twrp3.2.1-8.5.21.img
Click to expand...
Click to collapse
Uuhh,thanks Man!!!
ok,i install Twrp first failed.(remote: Command not allowed)The Problem isif the phonefinder is activated via the Huaweikonto you can not flash twrp.
I make a Factory Reset in Settings with Internal Memory and flash Twrp again and works,i can boot into Twrp.
Problem Data Partition not mounted.
Ok,i format Data with "yes" reboot again into Twrp and Data is mounted.
I flash 2 Files from the 3 Firmwarefiles in Twrp.update_data_full_public.zip and update_full_EDI-AL10_all_cn.zip and the Phone boot into System.
Short set up and boot again in Twrp and Data Partition is mounted.
Now all I have to do is try to root,i hope it works.
Twrp is only Chinese and English Language!
First i make a Backup,you can backup all Partitions,System,Data,Boot,Cust,Vendor,Version,Product,cool.
Next i test root if the Backup Finish
letschky said:
ok,i install Twrp first failed.(remote: Command not allowed)The Problem isif the phonefinder is activated via the Huaweikonto you can not flash twrp.
I make a Factory Reset in Settings with Internal Memory and flash Twrp again and works,i can boot into Twrp.
Problem Data Partition not mounted.
Ok,i format Data with "yes" reboot again into Twrp and Data is mounted.
I flash 2 Files from the 3 Firmwarefiles in Twrp.update_data_full_public.zip and update_full_EDI-AL10_all_cn.zip and the Phone boot into System.
Short set up and boot again in Twrp and Data Partition is mounted.
Now all I have to do is try to root,i hope it works.
Twrp is only Chinese and English Language!
Click to expand...
Click to collapse
this is what i get:
target reported max download size of 471859200 bytes
sending 'recovery' (12460 KB)...
OKAY [ 0.275s]
writing 'recovery'...
FAILED (remote: partition length get error)
finished. total time: 0.298s
Voyebanm said:
this is what i get:
target reported max download size of 471859200 bytes
sending 'recovery' (12460 KB)...
OKAY [ 0.275s]
writing 'recovery'...
FAILED (remote: partition length get error)
finished. total time: 0.298s
Click to expand...
Click to collapse
https://forum.xda-developers.com/showpost.php?p=76861896&postcount=6
I successfully rooted it with Magisk,i delete unessersay Apps,smaler icon Mod works,disable online China services in Music and Viedeoplayer,yeah
We wait your full manual! As always!
2 pages long
letschky said:
https://forum.xda-developers.com/showpost.php?p=76861896&postcount=6
Click to expand...
Click to collapse
I did follow that.
phonefinder is not activated .
I tried again , still the same error
Voyebanm said:
I did follow that.
phonefinder is not activated .
I tried again , still the same error
Click to expand...
Click to collapse
I had the same issue,i go into Settings and make Factory Reset with internal Memory.(Low Level Reset)
After reboot short setup and boot into Bootloader.The Twrp img is in the ADB Folder?Remame the Twrp to a shorter Name (TWRP_HN8.img)and flash it.
fastboot flash recovery_ramdisk TWRP_HN8.img
ivanox1972 said:
We wait your full manual! As always!
2 pages long
Click to expand...
Click to collapse
I will update later Today
I have one issue,setting does not work,i think i delete wrong file,aahh
@letschky
Now, I am on B511.
How to update from B511 to B520? please advise.
Thank you
letschky said:
ok,i install Twrp first failed.(remote: Command not allowed)The Problem isif the phonefinder is activated via the Huaweikonto you can not flash twrp.
I make a Factory Reset in Settings with Internal Memory and flash Twrp again and works,i can boot into Twrp.
Problem Data Partition not mounted.
Ok,i format Data with "yes" reboot again into Twrp and Data is mounted.
I flash 2 Files from the 3 Firmwarefiles in Twrp.update_data_full_public.zip and update_full_EDI-AL10_all_cn.zip and the Phone boot into System.
Short set up and boot again in Twrp and Data Partition is mounted.
Now all I have to do is try to root,i hope it works.
Twrp is only Chinese and English Language!
Click to expand...
Click to collapse
Hi,
Now I am able to install TWRP and boot in it and mount data no problem
after I rep-flashed the 2 files, Just a boot loop now.
I can now re-install B520 and boot no problem with Network working right away, but I lose TWRP after the installation and restarted the process with the same problem.
Now, I am on B511, I try to flash new twrp (huawei-nxt-al10-em8_0-twrp3.2.1-8.5.21.img)
But I still found error "remote: partition length get error".
dekwat said:
Now, I am on B511, I try to flash new twrp (huawei-nxt-al10-em8_0-twrp3.2.1-8.5.21.img)
But I still found error "remote: partition length get error".
Click to expand...
Click to collapse
this the new command:
fastboot flash recovery_ramdisk huawei-nxt-al10-em8_0-twrp3.2.1-8.5.21.img
Voyebanm said:
this the new command:
fastboot flash recovery_ramdisk huawei-nxt-al10-em8_0-twrp3.2.1-8.5.21.img
Click to expand...
Click to collapse
Yes, I try this command but I still found same error.
P.S. I'm not sure, this twrp can use for B511 or not.

[GUIDE] Redmi 6 Pro Root Guide

Disclaimer
Code:
#include <std/disclaimer.h> /* * Your warranty is now void. * * I am not responsible for bricked devices, dead SD cards, * thermonuclear war, or you getting fired because the alarm app failed. Please * do some research if you have any concerns about rooting your device * before doing it! YOU are choosing to make these modifications, and if * you point the finger at me for messing up your device, I will laugh at you. */
Downloads
Instructions
Unlock your bootloader if you haven't already. Detailed steps can be found here.
Download the ADB and fastboot tools, TWRP Recovery IMG file and Magisk zip from the link above.
Extract the ADB zip into a folder and copy the recovery file into the same folder as well.
Copy the Magisk zip file into your phone's internal storage.
Rename the recovery file to recovery.
In the ADB folder and click on the MFA32 to open a command prompt window.
Connect your phone to your PC and go to the Developer Options previously enabled. Find the USB Debugging option and enable it.
Now hold the Volume + Power Down buttons that will allow the phone to boot into Fastboot mode.
In the fastboot mode, type: fastboot devices.
If your device is detected, great. If not, check your connections, USB Debugging or see if proper device drivers are installed or not.
Next, type: fastboot flash recovery recovery.img. This will flash the recovery in a few seconds.
Next, type: fastboot reboot recovery. As a result, you are welcomed by the recovery screen.
Here, click on Install. Find the previously downloaded Magisk zip and select it to flash. This will flash the required binaries.
Reboot.
Open Play Store and install the Magisk Manager. This will allow you to take proper advantage of your root by using multiple modules with many features.
Enjoy!
Full Guide can be found here - http://xboard.in/redmi-6-pro-recovery-root/.
twrp recovery not reading internal storage.
Hi,
I have a Redmi 6 Pro Indian version with unlocked Boot-loader, MIUI Global 10.2 stable. Flashed twrp recovery (Sakura) successfully but booting into the recovery mode I find it cann't read internal memory (showing 0 MB) and I can't flash necessary files through it for rooting my device.
On rooting into twrp recovery mode, first asks for password for un-encription and when I provide device unlock password, after sometime, it shows password failed.
On tapping 'cancel' option, goes to home of twrp with no option to flash from internal storage since it is 0MB.
Fastboot getvar anti command shows nothing [ anti: (blank)]. Fastboot getvar all shows Rollback ver 2.
Please help.
@Aloke17 Your data are encrypted. You have to do format data. Notice that your internal memory will be erased. Make a backup before.
mar.ur said:
@Aloke17 Your data are encrypted. You have to do format data. Notice that your internal memory will be erased. Make a backup before.
Click to expand...
Click to collapse
It did not work. Have already done that with same result. Can you tell me if I can flash from external storage like otg pendrive etc.?
Aloke17 said:
It did not work. Have already done that with same result. Can you tell me if I can flash from external storage like otg pendrive etc.?
Click to expand...
Click to collapse
I think you did a wipe data, not format. Look at the picture below
mar.ur said:
I think you did a wipe data, not format. Look at the picture below
Click to expand...
Click to collapse
I know difference. Formatted data, not wiped. got same result.
Aloke17 said:
I know difference. Formatted data, not wiped. got same result.
Click to expand...
Click to collapse
Restart again to twrp after format
This is what I did (make sure the TWRP.img and lazy flasher zip (attached) are in the same directory as the adb folder):
1. Put phone to fastboot mode.
2. Run ADB command fastboot boot twrp.img (the twrp image downloaded). Phone will reboot into TWRP. It will ask for password to decrypt, just hit back and ignore it for now.
3. Go to Wipe, Format Data. Swipe to Factory Reset. Advanced Wipe: Dalvik/ ART Cache, Cache, System, Internal Storage.
4. Go to Mount and mount System.
5. Run ADB command adb push twrp.img /sdcard
6. Go to Install, Install Image, select the TWRP.img file that you just pushed and flash it as recovery but don't reboot yet.
7. Run ADB command adb push lazyflasher-no-verity-opt-encrypt.zip /sdcard
8. Go to Install, Install Zip, select the zip file that you just pushed.
9. Go to Reboot. Power Off.
10. Boot the Device into TWRP Recovery (press volume up + power button).
Hope this helps a noob like me who wasn't able to flash TWRP due to strange errors.
PS: Bootloader was unlocked and device was running MIUI 10.2.2 Stable (Chinese ROM). I switched to Revenge OS (from XDA) based on Android Pie after this.
Can anyone please tell me how to get rid of SAKURA anti rollback. I'm currently on miui rom global beta 9.6.27..????
I waana flash xiaomi.eu rom on my phone.
I bricked my phone while flashing EU rom direct through twrp.
I followed this guide and it worked. The good thing about this guide is you can mess up and then get the mobile back to working state. I copied from a blog but can not post the link as i have fewer than 10 posts.
The contents of the blog in case if its deleted
1. unlock bootloader.
1.1 To unlock bootloader linking your mobile number to the device is mandatory to unlock bootloader. Read my rant[1] at the end of this post during the flashing as it takes some time. For now move to step 2 after unlocking the bootloader
2. check if the bootloader is unlocked by running the command "fastboot oem device-info"
3. flash the system image.
3.1 Download the image from the mi.com site sakura_india_global_images_V10.3.2.0.PDMMIXM_20190527.0000.00_9.0_global_0aaaa35167.tgz # md5sum 0aaaa35167e8edd299f0dd9418f04c62
3.2 untar
3.3 cd sakura_india_global_images_V10.3.2.0.PDMMIXM_20190527.0000.00_9.0_global/
# poweroff mobile, press volume down + poweron to go to fastboot mode
3.4 ./flash_all.sh
4 twrp flashing using boot and not flash because flashing to recovery parition is successfull but the recovery boot does not launch twrp so use the temporary method(flashboot boot)
4.1 fastboot boot twrp-3.2.3-0-sakura.img # md5sum 16759dcc425042d6a63b635f777a7690
4.2 twrp -> advanced settings ->sideload -> check both the cache to wipe -> swipe
4.3 adb sideload Magisk-v19.4.zip # md5sum 2a1def27607601ecaa780ee4b15210c2
4.4 flashing lazyflasher went in to loading forever, so skip that. it works without lazy flashing
5. reboot will boot to system and then download the MagiskManager apk from its website
5.1 enable the developer options for adb to transfer the MagiskManager apk to mobile
5.2 adb push MagiskManager-v7.3.4.apk /sdcard # md5sum 16e9ad8767665234dea7896a4137288e
5.3 on the mobile install the apk
6. to test it
6.1 adb shell
6.2 su
6.3 the above command should pop up requesting for permissions for root.
[1] Rant on Xiaomi's lies on embracing developer culture
TLDR: Xiaomi don't lie about embracing the hacker ethic. Accept you are evil with some lame excuse that is much more respectable.
It is very evil of Xiaomi to make the user provide their mobile number(thats right, you must provide your **working** sim card number) to unlock the bootloader. They will not unlock if your sim is not active, you must enable internet on your sim, link the sim number to mi account and only then they will unlock the bootloader. If you just use wifi it is not supported and yet they lie on their faq that the need sim for data usage.
Here is the faq they do not say about the sim card requirement . I have archived it in case after reading this Xiaomi might change this faq
The Following is the Q&A of faq
> Isn't locking bootloader against Mi's 'geek' spirit?
> Locking bootloader is aimed to provide a better user experience, which we've been trying to do the whole time. In the meantime, we've provided an unlocking tool for senior users who know their ways around flashing and tweaking their devices.
> The unlocking procedure will need Internet access to get the unlocking password. Also, the Mi Account logged in on the Mi phone and the unlocking tool needs to be the same. Otherwise, the unlocking request will be denied. This will ensure that ill-intentioned people will not get access to your personal data.
Atleast the moto company wanted just the device id to unlock bootloader.
I was rooting for Xiaomi a long back when i saw their faq where the question was "Can i root my mi mobile " and the answer was something along the lines of "Of coures you can, what do you think of us . we embrace hacker ethic. Now i can not find a link to this faq. Is someone find this please comment the link, i will add here.
Hope this guide helps some one.
grv29a said:
Can anyone please tell me how to get rid of SAKURA anti rollback. I'm currently on miui rom global beta 9.6.27..????
I waana flash xiaomi.eu rom on my phone.
I bricked my phone while flashing EU rom direct through twrp.
Click to expand...
Click to collapse
Just try to unlock bootloader as i did.
After flashing, is there any 'unlock' under Mi Logo? If no, need to unlock again.

Categories

Resources