[c190x] [CWM Advanced Edition] PhilZ Touch - Sony Xperia M

Main thread + features + install instructions + dev support
http://forum.xda-developers.com/showthread.php?t=2201860
PhilZ Touch is a CWM Advanced Edition that adds all the features you could ever miss in CWM
It is a well proven recovery for many phones
It also adds a full touch interface a completely configurable GUI
Please give your feedback, what works, and any bug you could encounter
Read the features, and check if you are missing something
Also, do not forget to read about the powerful aroma file manager integration and double tap shortcut
Download
Warning! PhilZ recovery is currently in ALPHA stage for Xperia M. Some features may be broken!
Known bugs:
- Half-broken touch (you can use touch, however not select anything) - use hardware keys like in non-touch CWM recovery
- Broken navigation bar
- You tell me
XDA:DevDB Information
[c190x] [CWM Advanced Edition] PhilZ Touch, Tool/Utility for the Sony Xperia M
Contributors
JustArchi
Version Information
Status: Alpha
Created 2014-07-05
Last Updated 2014-07-05

[size=+1]Flashing and updating instructions[/size]
If you have pure untouched stock
Before you begin: Make sure that you have the ROM you want in .zip format and this recovery in .zip format on your external sd card. If you don't have one, on your internal.
1. Install Towelroot APK.
2. Launch it, click on magic button, bah, you're now rooted.
3. Make a backup of your TA partition using i.e. Backup TA. DON'T SKIP THIS STEP, or you will lose your warranty forever. You need root for this step, so don't try it without 1 and 2.
4. Get familiar with fastboot.
5. Turn off your device.
6. Hold Vol-up button, don't release it.
7. Plug your phone to your PC, while you're holding Vol-up.
8. It won't boot (black screen) but LED should indicate that device is turned on.
9. Execute fastboot -i 0x0fce getvar version. Use fastboot.exe instead of fastboot if you're on windows, do the same for all fastboot commands, you should already know it.
10. If you got return value, such as "0.5", you did everything correctly, congratulations! If you did not get return value, don't go further until you get it, because your fastboot connection doesn't work.
11. Get bootloader unlock code from Sony here. You can view your IMEI with *#06# code if you need it.
12. Unlock bootloader with fastboot -i 0x0fce oem unlock 0xCODE where CODE is the code from Sony. I.e. if you got "ABCD0011" code on your e-mail, execute fastboot -i 0x0fce oem unlock 0xABCD0011
13. You should get response like "Okay".
14. Extract boot.img file from the zip you downloaded from this thread. Put in the same directory as fastboot.
15. Flash boot.img with fastboot flash boot boot.img.
16. Execute fastboot reboot to reboot.
17. Wait for your device to turn on, then immediately after you see that your led changed color to pink, start clicking Vol-Up button repeatedly. Stop when you see that your led changed it's color to blue.
18. If you did everything correctly, you should have booted custom recovery right now.
19. Enter "mounts & storage", and format: /system /cache /data. If you don't have anything important on your internal sd card, I strongly suggest to format /data and /data/media as well.
20. Flash any ROM you want
21. Remember that your ROM will overwrite your recovery (kernel), so if you want to preserve recovery, flash this zip right after every ROM flash.
22. Finally, reboot, be patient, you shouldn't get any bootloop.
If you already have CWM, TWRP or any custom recovery installed
1. Simply flash this recovery with install zip option.

I'm using CM11 (Free Xperia) with CWM Recovery , is it possible to install this recovery on the current? would it be possible to make any kernel related issues? (phone not booting up and else).

bugggmenot said:
I'm using CM11 (Free Xperia) with CWM Recovery , is it possible to install this recovery on the current? would it be possible to make any kernel related issues? (phone not booting up and else).
Click to expand...
Click to collapse
This kernel has been only tested on my private ArchiDroid 2.X build (not public yet), but it's based on FreeXperia sources so it should be compatible with all CM11 ROMs that don't need any kernel-ramdisk-based changes, including your CM11.
In case of issues you can always reflash, as this recovery boots and works properly, apart from some functions we're currently fixing with Phil.

JustArchi said:
This kernel has been only tested on my private ArchiDroid 2.X build (not public yet), but it's based on FreeXperia sources so it should be compatible with all CM11 ROMs that don't need any kernel-ramdisk-based changes, including your CM11.
In case of issues you can always reflash, as this recovery boots and works properly, apart from some functions we're currently fixing with Phil.
Click to expand...
Click to collapse
I also tried to build Philz and was succeeded, but it has same issue. I contacted Philz he told to me to enable Axis parameter in BoardConfig.mk but still the same. What you think, why this issue is caused? Due to faulty Touch screen events?

icoolguy1995 said:
I also tried to build Philz and was succeeded, but it has same issue. I contacted Philz he told to me to enable Axis parameter in BoardConfig.mk but still the same. What you think, why this issue is caused? Due to faulty Touch screen events?
Click to expand...
Click to collapse
http://forum.xda-developers.com/showpost.php?p=53933204&postcount=4745

Failed to download ..
Can u give me mirror link like dev-host, mediafire, etc?
Edit: ok now fix
Edit again: i get bootloop, after flashing your phill touch -_-

itsnie said:
Failed to download ..
Can u give me mirror link like dev-host, mediafire, etc?
Edit: ok now fix
Edit again: i get bootloop, after flashing your phill touch -_-
Click to expand...
Click to collapse
Why you shouldn't get bootloop? It's only for CM11.

16. Execute fastboot reboot to reboot.
17. Wait for your device to turn on, then immediately after you see that your led changed color to pink, start clicking Vol-Up button repeatedly. Stop when you see that your led changed it's color to blue.
Click to expand...
Click to collapse
Upto step 16 was okay. 17th step won't work. Device is not getting into recovery mode when volume key is pressed.

no thing changed
JustArchi said:
[size=+1]Flashing and updating instructions[/size]
If you have pure untouched stock
Before you begin: Make sure that you have the ROM you want in .zip format and this recovery in .zip format on your external sd card. If you don't have one, on your internal.
1. Install Towelroot APK.
2. Launch it, click on magic button, bah, you're now rooted.
3. Make a backup of your TA partition using i.e. Backup TA. DON'T SKIP THIS STEP, or you will lose your warranty forever. You need root for this step, so don't try it without 1 and 2.
4. Get familiar with fastboot.
5. Turn off your device.
6. Hold Vol-up button, don't release it.
7. Plug your phone to your PC, while you're holding Vol-up.
8. It won't boot (black screen) but LED should indicate that device is turned on.
9. Execute fastboot -i 0x0fce getvar version. Use fastboot.exe instead of fastboot if you're on windows, do the same for all fastboot commands, you should already know it.
10. If you got return value, such as "0.5", you did everything correctly, congratulations! If you did not get return value, don't go further until you get it, because your fastboot connection doesn't work.
11. Get bootloader unlock code from Sony here. You can view your IMEI with *#06# code if you need it.
12. Unlock bootloader with fastboot -i 0x0fce oem unlock 0xCODE where CODE is the code from Sony. I.e. if you got "ABCD0011" code on your e-mail, execute fastboot -i 0x0fce oem unlock 0xABCD0011
13. You should get response like "Okay".
14. Extract boot.img file from the zip you downloaded from this thread. Put in the same directory as fastboot.
15. Flash boot.img with fastboot flash boot boot.img.
16. Execute fastboot reboot to reboot.
17. Wait for your device to turn on, then immediately after you see that your led changed color to pink, start clicking Vol-Up button repeatedly. Stop when you see that your led changed it's color to blue.
18. If you did everything correctly, you should have booted custom recovery right now.
19. Enter "mounts & storage", and format: /system /cache /data. If you don't have anything important on your internal sd card, I strongly suggest to format /data and /data/media as well.
20. Flash any ROM you want
21. Remember that your ROM will overwrite your recovery (kernel), so if you want to preserve recovery, flash this zip right after every ROM flash.
22. Finally, reboot, be patient, you shouldn't get any bootloop.
If you already have CWM, TWRP or any custom recovery installed
1. Simply flash this recovery with install zip option.
Click to expand...
Click to collapse
i installed it by cwm and by fastboot and cwm still exist

Related

[Q] help flashing MIUI, my first rom flash

hi
i already unlock the bootloader, install custom recovery TWRP, and done a backup
i also copy my backup to PC
now i'm confuse
- i need to root the phone or can i just flash the new room?
- if i need to root the phone i found an italian guide on 4.0 and attach file, can i use that? i have 4.1.1 on mine now
i'm not interested to have HTC stock with root but what i want is to install MIUI ROM
this is the only guide i found in english that explains how to install the rom
external link (i can't post it) miuiandroid.com/community/threads/installing-the-htc-one-x-required-s-on-steps.16592/
what i understand is:
- boot my device power + menu down, to see the FASTBOOT USB i have to select FASTBOOT
- flash the boot.img
- press the power button once (HBOOT i guess), click volume down, highlight recovery & press power
- Flash the downloaded ROM via recovery normally and it followup at this link
external link (i can't post it) miuiandroid.com/community/threads/how-to-update-upgrade-miui.15424/
i need to copy the img rom in SD ROOT before starting with all this process
- now i need to Wipe data/factory reset, Cache Wipe & Dalvik Cache Wipe in all tutorial i found this is done with clockworkmod
in TWRP under menu WIPE i guess are System, Cache, Dalvik buttons
after that i'm note sure if i need to flash italian language, if i don't need and i can just download it later i tihink is not a big deal
unless is all in chinese
is the metod correct?
do i have to copy ROM file in .zip format as i download?
here where i found ROM
from official site grey button miui.com/download-7.html
OR
from UK web site miuiandroid.com/community/threads/3-4-28.20232/
the boot.img is here
point 3 miuiandroid.com/community/threads/installing-the-htc-one-x-required-s-on-steps.16592/
i'm not sure if would be better to use clockworkmod, since most tutorials use that..
thanks
Doesn't matter which recovery you use. Yes just place the zip file on your sd card. Flash boot.img as you already said. Perform a full wipe and then flash the Rom zip. Reboot and its done.
The Roms are pre-rooted so you dont need to worry about that. Italian language should be included i guess.
Sent from my HTC One X using xda app-developers app
Heres what i do :
1) Put Rom.zip on SD card
2) Put boot.img in fastboot folder
3) fastboot erase cache
4) fastboot flash boot boot.img
5) fastboot erase cache
6) Reboot into recovery
7) Full wipe (except sd card)
8) Install rom
9) Enjoy new rom
Andy
i did my first mess but fortunally i could restore since i had copy the backup on my mac too
i don't know what went wrong but this is what happened:
- i did how was told before, but actually i download boot.img and rom from 2 different sites
- after reboot it didn't move from first screena waited for 15 minutes almost, so i did reboot in recovery tri to wipe but nothing happened
- so i decide to restore... but it did boot even if it was successful
- i thought that if i flashed the boot.img first time i may need to do it again, i found boot.emmc.win, rename it to boot.img, flash it and then i restored successfully
:victory:
now, to try a different rom i need to restore (maybe is safer)? can i copy the rom from recovery or fastboot?
what can it be wrong with my miui rom? could it be boot.img and rom file mismatch? can't find where to download both
al404 said:
i did my first mess but fortunally i could restore since i had copy the backup on my mac too
i don't know what went wrong but this is what happened:
- i did how was told before, but actually i download boot.img and rom from 2 different sites
- after reboot it didn't move from first screena waited for 15 minutes almost, so i did reboot in recovery tri to wipe but nothing happened
- so i decide to restore... but it did boot even if it was successful
- i thought that if i flashed the boot.img first time i may need to do it again, i found boot.emmc.win, rename it to boot.img, flash it and then i restored successfully
:victory:
now, to try a different rom i need to restore (maybe is safer)? can i copy the rom from recovery or fastboot?
what can it be wrong with my miui rom? could it be boot.img and rom file mismatch? can't find where to download both
Click to expand...
Click to collapse
extract the boot image from the rom you are going to use
ok, i tryed again but now it get stack on Mi black screen
i waited 8 minutes but nothing happens, i also tried to wipe cache and davik, nothing happens
at list i get to black Mi screen
do i need to delete the boot.img from ROM zip?
what could it be?
1st u didn't mention which phone u r using
2nd dn't get confuse while downloading rom n .img file
Type in google
(Ur phone model) android development xda
U'll find all the stuffs related to ur phone
So try this 1 n remember before updating or rooting or anythg related to ur which can mess ur phone or can brick ur phone
I suggest u read twice the thread n procedures n also check thrice the stuff which u gonna need to perform ur act.
Sent from my GT-N7100 using xda premium
al404 said:
ok, i tryed again but now it get stack on Mi black screen
i waited 8 minutes but nothing happens, i also tried to wipe cache and davik, nothing happens
at list i get to black Mi screen
do i need to delete the boot.img from ROM zip?
what could it be?
Click to expand...
Click to collapse
i would try a different rom for now, viperx perhaps. and the boot image is in the rom zip, extract the boot img from the rom and put it in your fastboot folder then copy the rom to your sdcard. once you have done that, fastboot erase cache, flash the boot image, fastboot erase cache again, then back into recovery, wipe cache and dalvik just to be sure then use recovery to flash the rom and hey presto. all of the above is assuming you have the one x international tegra 3
I have htc one x european terga 3, as far as I know mini is only for tegra 3
what you describe is exactly what I did:
- I leave the rom zip ad it is, I didn't remove boot.imf that I extract, correct?
- when I flash I hit hoot fastboot, connect USB and fastboot change in fastboot USB, to go back I select Hboot and and hit power, prom there recovery
- I did unlock bootloader but did not get rooted my phone, could it be that?
al404 said:
I have htc one x european terga 3, as far as I know mini is only for tegra 3
what you describe is exactly what I did:
- I leave the rom zip ad it is, I didn't remove boot.imf that I extract, correct?
- when I flash I hit hoot fastboot, connect USB and fastboot change in fastboot USB, to go back I select Hboot and and hit power, prom there recovery
- I did unlock bootloader but did not get rooted my phone, could it be that?
Click to expand...
Click to collapse
read this post. at least twice!! http://forum.xda-developers.com/showthread.php?t=2069904 do not do the "unlock bootloader" section as you already did that
@nogotaclue sorry i read so many, and some of them sayed that root was not necessary if you flash a new rom, other sayed it could still be necessary... now i rooted with the app and did a new backup that i'm coping on PC
reading further it says: to wipe, install rom, and flash boot.img after
"Now go back and press install. Go to the folder where the ROM you downloaded, is located in. Select the ROM and slide the screen to flash it. After it flashes, press the back button. Press Reboot and Reboot into bootloader. Open the ROM you downloaded from your computer. You should see boot.img. Extract it to your computer. Open my toolkit and press Flash a Kernel. Locate the boot.img and it will flash it."
al404 said:
@nogotaclue sorry i read so many, and some of them sayed that root was not necessary if you flash a new rom, other sayed it could still be necessary... now i rooted with the app and did a new backup that i'm coping on PC
reading further it says: to wipe, install rom, and flash boot.img after
"Now go back and press install. Go to the folder where the ROM you downloaded, is located in. Select the ROM and slide the screen to flash it. After it flashes, press the back button. Press Reboot and Reboot into bootloader. Open the ROM you downloaded from your computer. You should see boot.img. Extract it to your computer. Open my toolkit and press Flash a Kernel. Locate the boot.img and it will flash it."
Click to expand...
Click to collapse
yes you can do it that way, i usually flash first but sometimes it does not work, so just flash it last as it says in the tutorial
after root, with the same steps, the ROM starts... but
touch screen is not working :crying:
now i'm gonna look arond to see if i found some post about that
this (kernel patch) solved my last issue
http://miuiandroid.com/community/threads/hox-miui-v5-official-release.20215/page-2
al404 said:
this (kernel patch) solved my last issue
http://miuiandroid.com/community/threads/hox-miui-v5-official-release.20215/page-2
Click to expand...
Click to collapse
So everything working now ?
Sent from my underpants using Daz and Lenor summertime
YES :good: without that path touchscreen wasn't working :victory:
hope is not going to mess all up with first update

[Permanent TWRP recovery 2.7.0.1] for Mate

I AM NOT RESPONSIBLE FOR ANY DAMAGE TO YOUR DEVICE. DO IT AT YOUR OWN RISK.EVERYTHING WRITTEN IN THIS DOCUMENT WAS TESTED ON MY PHONE.​
- Development finished.
After successfully unlocked the bootloader of my mate , started to compile TWRP for our device.Thanks to Teamwin for this great touch recovery.
This version is a permanent recovery , it replaces the stock recovery (3e) . You have to restore the stock recovery if you want to install update.app format stock rom .
You do not need root to install , but unlocked bootloader is a must. You can read how to unlock your Mate's bootloader here:Bootloader Unlock.
There is two way to install permanent TWRP.
1. From existing permanent twrp recovery , if you selected this method of unlocking the bootloader.
Download the zip file and copy it to the sdcard. Restart the phone in recovery mode. (power + volume up). TWRP comes up. Select install and choose the storage where you copied the zip file. Select the file and swipe to install.
TWRP 2.7.0.1 twrp flashable version
2. From bootloader mode using fastboot flash recovery twrp2_7_0_1.img command.
TWRP 2.7.0.1 fastboot flashable package
TWRP 2.7.0.1 fastboot flashable package mirror
It will not backup/restore the contents of internal sd . Formatting data will delete the contents of internal_sd. Wiping data will not delete the contents of internal_sd.
Changelog :
- 2.6.3.0
Initial release
- 2.6.3.2
Fixed adb connection now it runs fine and runs in root mode.
Fixed internal SD handling , now it is correctly /data/share not data/media .
Creating backup of Data does not back up internal sd , so you can backup userdata to internal sd for example.
Fixed wipe of Data . Now it does not removes the content of internal SD.
Backup possibility of internal sd is added.
Internal storage is renamed to Internal SD.
External storage is renamed to External (Micro) SD Card.
Reduced font size
- 2.6.3.3
Fixed recreation of /data/media when data is wiped.
- 2.7.0.0
Changed to Omnirom twrp repo.
Fixed charging in recovery, battery percentage is shown , turned off device chargeable. (Thanks to Surdu_Petru)
Fixed recreation of /data/media folder after format of data partition.
Revert Backup possibility of internal sd is added.
Revert Internal storage is renamed to Internal SD.
- 2.7.0.1
Fixed charging LED in recovery. (Thanks to Surdu_Petru)
Custom kernel :
I compiled a kernel for B221 rom .Nothing really serious , just some config changes and added sio , sioplus , zen I/O scheduler from surdu_petru's P6 kernel source.
Download the zip , copy it your sdcard and install it from Twrp recovery.
Download B221 custom kernel
This is a great achievement
Congratulations
This recovery could be compatible to test HAM 4.4 ROM?
I guess not?
Because it is a permanent twrp recovery , you can try any recovery flashable rom on your device. If it does not boot , the recovery still available.
The only problem can be if the installer zip contains in its updater-script an assert command to check the device type.
e.g.:
assert(getprop("ro.product.device") == "hwp6_u06" || getprop("ro.build.product") == "hwp6_u06");
simply remove that line from updater script.
You can ask the developer of the rom to put the following line to boardconfig.mk if it is compatible with both device (P6 , MT1)
TARGET_OTA_ASSERT_DEVICE := hwmt1-u06 hwp6-u06
TWRP updated , see first post.
joe.stone said:
TWRP updated , see first post.
Click to expand...
Click to collapse
how do you reboot into this recovery and how do you reboot into fastboot mode please urgent help needed
Kannibalism said:
how do you reboot into this recovery and how do you reboot into fastboot mode please urgent help needed
Click to expand...
Click to collapse
adb reboot recovery or power + volume up
adb reboot bootloader or power + volume down
joe.stone said:
adb reboot recovery or power + volume up
adb reboot bootloader or power + volume down
Click to expand...
Click to collapse
thank you sir you are a legend i had flashed this recovery with locked bootloader and trouble started i am now reverting back to stock to fix up the problem
Hello joe.stone
I already fixed battery charger on TWRP for P6 !
Maybe you have time to take a look into my github , to fix this issue for HAM !
Also we already passed to TWRP 2.7.0.0.
Good luck !
TWRP updated.
Hi @joe.stone
In the Advanced Wipe...
I can Format all?
'system'
'cahe'
'data'
'internal storage'
...and everything else.
Thanks.
Work but not smooth I think twrp 2.6.3 better
Could someone tell me why at my mate i must use VolUP + VolDown do get the Recovery Menu (TWRP) ?
Mine too
Sent from my Huawei Ascend Mate
farewell
New version uploaded. Fixed charge LED in recovery (Thanks to Surdu_Petru).
I have changed my Mate to a LG G-Flex , so I have finished development on Mate. All my sources will be left on github if anyone wants to develop.
Thank you guys all the support and I wish the best .
That's sad but it's comprehensible. Good luck and thanks for everything!!!!
Sent from my MT1-U06 using XDA Premium 4 mobile app
Help?
Anyway to get an Ascend Mate MT1-U06 Back to original Stock ROM? I bought 15 of them and only 1 is having issues right out of the box. This phone looks as though it has been flashed with something other than Huawei Original Firmware. When starting the phone, the Huawei logo comes up, but then after, opposed to going to a Huawei Splash screen with the jingle, it goes to the pulsing all lower case colored "android" splash/boot image. The wallpaper looks like something from a custom CM ROM, and none of the themes can change it. The app icons wont move either, if I try to move one I get "Unfortunately, Huawei home has stopped". We can not take screen shots as the phone will not allow it, I will have to take pics with another device.... I tried to flash Original Huawei 4.1.1 ROM as well as the official 4.2.2 ROM. I have Wiped the Phone with TWRP (System, Date, Cache, EVERYTHING), then flashed the stock recovery back and flashed Huawei Original firmware again (several Times), but whatever is on this phone hanging on like an old girlfriend. Any help?
@joe.stone, is your device configuration folder that you used to build TWRP posted on github by any chance? Would like to review it. I have made one up for the HAM2 and built TWRP for testing. Currently undergoing an issue with the bootloader though. Using fastboot or key combination won't access the recovery if it is custom, but with stock it works. I figure one of two things with this problem: either the bootloader does a security check on the recovery and aborts if it isn't stock or the build just simply doesn't boot. So, to ease things up a bit on narrowing down this problem I am hoping to take a look at your source if it's available.
Modding.MyMind said:
@joe.stone, is your device configuration folder that you used to build TWRP posted on github by any chance? Would like to review it. I have made one up for the HAM2 and built TWRP for testing. Currently undergoing an issue with the bootloader though. Using fastboot or key combination won't access the recovery if it is custom, but with stock it works. I figure one of two things with this problem: either the bootloader does a security check on the recovery and aborts if it isn't stock or the build just simply doesn't boot. So, to ease things up a bit on narrowing down this problem I am hoping to take a look at your source if it's available.
Click to expand...
Click to collapse
My modified twrp(needed because /data/share is the internal sd) and its config is included in my cm10.1 repo. (bootable/recovery) and my boardconfig contains the settings needed for twrp. About your issue :
You need to unlock your bootloader. The mate also has the security check enabled , but with unlocked bootloader it does nothing. You need to figure out how to open your bootloader.
joe.stone said:
My modified twrp(needed because /data/share is the internal sd) and its config is included in my cm10.1 repo. (bootable/recovery) and my boardconfig contains the settings needed for twrp. About your issue :
You need to unlock your bootloader. The mate also has the security check enabled , but with unlocked bootloader it does nothing. You need to figure out how to open your bootloader.
Click to expand...
Click to collapse
Thanks, and yea, the bootloader was recently able to be unlocked. So, I must say its safe to assume the TWRP build failed. I'm doing it blind since I don't own the device. However, one of the guys was kind enough to send me a used one so when I get it I will be able to resolve the problem rather quickly. Thanks.

[Q] Sony Z1 Compact - CWM-based Recovery v6.0.5.1 - BLACK SCREEN

I really need help. I'm a noob at this. I was trying to install CyanogenMod on my Z1 compact. I was following this guide; "wiki.cyanogenmod.org/w/Install_CM_for_amami" It went well after some trying. Got all the way to step 9! When I pressed Reboot system now nothing happened. The Sony logo game for some seconds, then the screen went black. I know the phone is on 'cause I can see that it is light-black, if you know what i mean. I thaught maby it would take i while. But it stayed like this for 5 hours. Nothing happens.. When I turn it off and on again, I can press the voume rockers and it takes me to the CWM-based Recovery v 6.0.5.1 page where i can do some stuff, but I'm stuck here. Please help me! Dont know what to do. Is there a way to factory-reset the phone back to Anroid? Sorry for being so noob. Need a noob friendly guide on how to fix this
Use the guides and files from this forum instead. Did you flash the CM kernel in fastboot?
at least you can boot into cwm. did you place cyanogenmod zip on your sd card?
XperienceD said:
Use the guides and files from this forum instead. Did you flash the CM kernel in fastboot?
Click to expand...
Click to collapse
"Open a terminal on the PC and enter the following:
fastboot flash boot boot.img
fastboot reboot"
- again sorry, these last 14 hours is the only experience i have with rooting etc. flash means install right?
rzlatic said:
at least you can boot into cwm. did you place cyanogenmod zip on your sd card?
Click to expand...
Click to collapse
i used this "adb push cm.zip /sdcard/0/" - and I checked now. The files is there still yes. Btw, in panic I've "wipe data/facotry reset". Dont know if this matters
"fastboot flash boot boot.img" flashes only the cwm (and kernel). wipe data/factory reset is ok, no harm done (at least now, as you want clean partitions at this point anyway).
so if your zips are on the sdcard via step 8, boot into cwm, navigate to
- install zip (swipe down, swipe right to enter)
- choose zip from /sdcard
- 0/
now you end up on your sdcard. find your zip and run the install. if you copied gapps zip too, install that zip after flashing the rom, and that's it.
llgr said:
"Open a terminal on the PC and enter the following:
fastboot flash boot boot.img
fastboot reboot"
- again sorry, these last 14 hours is the only experience i have with rooting etc. flash means install right?
Click to expand...
Click to collapse
Yes install, I prefer to flash the kernel in fastboot then flash the zip.
rzlatic said:
"fastboot flash boot boot.img" flashes only the cwm (and kernel). wipe data/factory reset is ok, no harm done (at least now, as you want clean partitions at this point anyway).
so if your zips are on the sdcard via step 8, boot into cwm, navigate to
- install zip (swipe down, swipe right to enter)
- choose zip from /sdcard
- 0/
now you end up on your sdcard. find your zip and run the install. if you copied gapps zip too, install that zip after flashing the rom, and that's it.
Click to expand...
Click to collapse
Yes I've come this far. Now I have installed the file i had at the sdcard. "installation complete!" "Good Apps for Android 4.3.3" it says.
Now ive found the cm-11-20140922-NIGHTLY-amami.zip and installed it via sideload.
"opening adbd...
finding update package..
opening updage package.
installing update..."
Dont know how long this take, doesnt say its finished, but i can navigate through the menu at the top, does this means it finished? what to i do now to get i work? just "reboot system now"?
llgr said:
Dont know how long this take, doesnt say its finished, but i can navigate through the menu at the top, does this means it finished? what to i do now to get i work? just "reboot system now"?
Click to expand...
Click to collapse
yes. reboot. see what happens. you should boot into cm already.
you didn't need using so much adb, it's all doable via cwm (except initial flashing of boot.img which is cwm itself).
next time: just download the zip, reboot into recovery, flash the zips there and reboot. it's that simple you don't need to wipe anything between flashing nightlies, but you do between nightlies and M build - or if you migrate to some other aosp/aokp/kang rom. anyhow, have fun.
You want to instal cm right? But do you know that you need to unlocked your bootloader to install any other rom than stok right? So if tou want to have CM you must unlock your bootloader

[RECOVERY][Unofficial] TWRP 2.8.1.0 for Huawei Honor 3C 4G (H30-L02)

Hi folks,
today is a good day for all you guys who own a Huawei Honor 3C 4G (H30-L02). I was able to compile the source code of TWRP for our phone. So we finally have a working custom recovery. That means no more scratching one's head whether the next full update from Huawei is still rootable or not. You flash SuperSU via TWRP and that's it.
This new TWRP recovery was compiled against the build H30-L02V100R001CHNC17B130. I hope it also works with higher builds up to B138 (the latest).
But before you start to freak out, be sure to read the following:
Disclaimer
Flashing a custom recovery is considered HIGH RISK if you do not know what you are doing. You can easily brick your phone if you flash to the wrong partition, for example.
Furthermore, neither me nor XDA assume any responsibility or liability for failing flashes or bricked devices. If you decide to give this new recovery a shot, you are in charge and control of your phone. If it fails to start after that, tough luck. So think twice if you really want to try something that risky.
Installation
Your phone is connected to your PC with either Linux or Windows and all necessary drivers are installed and working correctly.
You need an unlocked bootloader. Please follow the procedure outlined HERE.
You also have to have root access. To become root you need an app called SuperSU, for instance. I used RootGenius which will also install SuperSU. Only for Windows!
Install apps "busybox" and a terminal emulator. Do not forget to open busybox and install in-app!
Android 4.2+ uses SELinux as base operating system, which means certains files (determined by the phone manufacturer) are secured against manipulation - even if you are root! You need to switch off this protection and remove the file "/system/set_immutable.list". See here how it is done:
Open your terminal emulator and type
Code:
su
mount -o rw,remount /system
chattr -R -i /system
Rename the file "/system/set_immutable.list" as you wish.
This step is necessary for TWRP to restore files on the system partition. If you fail to accomplish this step, you won't be able to restore a system image! TWRP will report an error and will leave your phone in a potentially non-bootable state!
Now you need to boot the bootloader of your phone. Connect your phone to your PC, open a shell or command line and type:
Code:
adb reboot bootloader
Then you flash the TWRP recovery:
Code:
fastboot flash recovery twrp_recovery_h30l02_with_kernel_CHNC17B130.img
You may need the "sudo" command on your Ubuntu Linux distribution prefixed to each adb or fastboot command.
Finally you need to boot to recovery.
IMPORTANT: Press Vol. up on your phone and don't let go until you see the screen with the boot logo! Failing to do this means your phone will start normal operation and not recovery! While pressing enter this:
Code:
fastboot reboot
If everything goes fine, you will see the TWRP curtain and after that the buttons of the TWRP gui.
Source Code
TeamWin Recovery sources on GitHub
TWRP Huawei 3C 4G sources on (later ... maybe on GitHub, I don't know yet.)
Back to Original Recovery
In case something goes wrong, be sure to have the original recovery at hand.
The original recovery is also necessary if you plan to flash regular full updates from Huawei.
Proceed analogously like what was written before.
Switch your phone off. Hold power button until it becomes quiet and dark.
Connect the USB cable to your phone, but don't plug it into your PC yet!!
Press Vol. down and don't let go until you see your phone's boot logo.
Now while pressing Vol. down connect the USB cable to your PC.
The fastboot screen should appear with the green Android.
Type
Code:
fastboot flash recovery orig_recovery_h30l02_CHNC17B130.img
This installs the old recovery. Finally, you will issue a "fastboot reboot" and operation is back to normal.
Credits
The developer of TWRP Dees_Troy.
The guy who ported TWRP to the Ascend P7 Surdu_Petru.
This thread for the Galaxy Tab S and the original thread started by Dees_Troy.
Miscellaneous
You have read thus far. That's good because that shows me you are eager to do what is necessary to follow through all of the steps. Please notice the following:
I did not test TWRP recovery for H30-L02 extensively! Backup and Restore should work, but I can't warrant for that!
This port of TWRP is a bit different from the normal TWRP. The latter has iconified buttons at the bottom of the screen. I removed these icons and switched their particular functions to the soft buttons of the phone. So when you touch the back button you will navigate a screen back. You touch the home button and you get to the home screen. You touch the button with the three lines and you will see a console window that is rendered as overlay. Touch the button again and it will disappear.
You might run into bugs. What does that mean? It may mean that you wreck the contents of one or more of your phone partitions which will result in a phone that does not boot any longer. You have been warned. So be sure you have a backup of all your valuable user data somewhere and a full original UPDATE.APP that's valid and applicable for your H30-L02.
Issues
none to report yet.
Downloads
The new TWRP recovery.
The old recovery by Huawei.
Happy backup-ing and restoring!
Please report back any errors in this thread. Thanks!
DFahren
If you found a bug or have problems, please add the "last_log" file to your report.
From the shell or command window you type
Code:
adb pull /cache/recovery/last_log
So I can better see what might have gone wrong.
For all those who updated to b151, they have to downgrade to b130 flashing vía fastboot an extracted rom from update.app, and after that root, and everything according to this post.
You can install custom ROM when you've TWRP installed

[GUIDE][TWRP] for TWRP and ROM installation

Thought I'd post my experiences in case it helps anyone else out. Following this procedure will completely wipe your phone. As usual, I take no responsibility for bricks, headaches, wasted hours at the keyboard, etc. Do your research first. Please feel free to post corrections, improvements, etc, I will edit and add them. This post assumes your bootloader is already unlocked. If you're not unlocked, make sure you read all the various articles and warnings about Xiaomi's downgrade/relock protection which can result in a brick if you flash an older build with a locked bootloader. Unlocked is the safest way to go.
I installed the Xiaomi.eu rom, but this should work for any other rom in a flashable zip, downloads for the rom, TWRP and Magisk can be found here.
Install ADB and the relevant drivers. If you're on Linux or MAC, the easiest way I know of to do this is to use Corbin's excellent tool by running a single curl command.
Download TWRP, the ROM and Magisk (optional) into the same desktop folder as your ADB installation.
Boot into Fastboot (Vol- and Power).
fastboot flash recovery twrp.img
-> Boot to TWRP by holding Vol+ and Power.
Once you've booted to TWRP, change the language to English by touching the third button down in the second column (right above the button in the lower right), then touch the globe icon at on the right in the blue bar, then select English and hit the button in the lower right corner.
From the Wipe menu in TWRP, press Format Data, this will remove encryption (and wipe your phone, obviously, including everything in storage, photos, documents, everything).
While there, swipe to do a Factory Reset (which will also wipe your phone).
-> At this point, I repeated the recovery reboot procedure to be sure that TWRP would still boot, Vol+ and Power, or reboot recovery from TWRP menu. Not sure this is strictly necessary.
(For some reason, I couldn't get MTP to work in TWRP, it wouldn't copy files from the desktop. If you can get MTP to work you can simply drag and drop the rom and Magisk, otherwise you can do what I did and use ADB instead.)
From the desktop, push the rom you want to use, and Magisk, to the phone, this syntax (Linux) assumes your rom is in the adb folder, otherwise you need to provide the path:
adb push xiaomi.eu_multi_MIMix3_V10.0.12.0.PEECNFH_v10-9.zip /sdcard/Download
adb push Magisk-v17.1.zip /sdcard/Download
From TWRP, install the rom followed by Magisk from /sdcard/Download on the phone.
Reboot System.
Drink beer, preferably something hoppy and top fermented.
Note for AMD Ryzen machines: There appears to be a USB2.0 bug associated with Ryzen CPUs which prevent the fastboot flash from working. If the flashing process starts then fails, try a different machine.
ROM File and TWRP not listed
invisiblewave said:
Thought I'd post my experiences in case it helps anyone else out. Following this procedure will completely wipe your phone. As usual, I take no responsibility for bricks, headaches, wasted hours at the keyboard, etc. Do your research first. Please feel free to post corrections, improvements, etc, I will edit and add them. This post assumes your bootloader is already unlocked. If you're not unlocked, make sure you read all the various articles and warnings about Xiaomi's downgrade/relock protection which can result in a brick if you flash an older build with a locked bootloader. Unlocked is the safest way to go.
I installed the Xiaomi.eu rom, but this should work for any other rom in a flashable zip, downloads for the rom, TWRP and Magisk can be found here.
Install ADB and the relevant drivers. If you're on Linux or MAC, the easiest way I know of to do this is to use Corbin's excellent tool by running a single curl command.
Download TWRP, the ROM and Magisk (optional) into the same desktop folder as your ADB installation.
Boot into Fastboot (Vol- and Power).
fastboot flash recovery twrp.img
fastboot boot twrp.img
-> At this point, my phone would reboot to MIUI recovery. To solve this, as soon as the screen goes black after the previous command, boot to TWRP by holding Vol+ and Power.
Once you've booted to TWRP, change the language to English by touching the third button down in the second column (right above the button in the lower right), then touch the globe icon at on the right in the blue bar, then select English and hit the button in the lower right corner.
From the Wipe menu in TWRP, press Format Data, this will remove encryption (and wipe your phone, obviously).
While there, swipe to do a Factory Reset (which will also wipe your phone).
-> At this point, I repeated the recovery reboot procedure to be sure that TWRP would still boot, Vol+ and Power, or reboot recovery from TWRP menu. Not sure this is strictly necessary.
(For some reason, I couldn't get MTP to work in TWRP, it wouldn't copy files from the desktop. If you can get MTP to work you can simply drag and drop the rom and Magisk, otherwise you can do what I did and use ADB instead.)
From the desktop, push the rom you want to use, and Magisk, to the phone, this syntax (Linux) assumes your rom is in the adb folder, otherwise you need to provide the path:
adb push miui_MIMIX3Global_V10.0.11.0.PEEMIFH_9761b07e78_9.0.zip /sdcard/Download
adb push Magisk-v17.1.zip /sdcard/Download
From TWRP, install the rom followed by Magisk from /sdcard/Download on the phone.
Reboot System.
Drink beer, preferably something hoppy and top fermented.
Click to expand...
Click to collapse
---
Hi, thanks for the guide, the ROM files and TWRP are not available on the link
fahdsuleman said:
---
Hi, thanks for the guide, the ROM files and TWRP are not available on the link
Click to expand...
Click to collapse
Yes they are, you need to look again
Mackay53 said:
Yes they are, you need to look again
Click to expand...
Click to collapse
Thanks, found them.
fahdsuleman said:
---
Hi, thanks for the guide, the ROM files and TWRP are not available on the link
Click to expand...
Click to collapse
They're right below the ROM table.
invisiblewave said:
Thought I'd post my experiences in case it helps anyone else out. Following this procedure will completely wipe your phone. As usual, I take no responsibility for bricks, headaches, wasted hours at the keyboard, etc. Do your research first. Please feel free to post corrections, improvements, etc, I will edit and add them. This post assumes your bootloader is already unlocked. If you're not unlocked, make sure you read all the various articles and warnings about Xiaomi's downgrade/relock protection which can result in a brick if you flash an older build with a locked bootloader. Unlocked is the safest way to go.
I installed the Xiaomi.eu rom, but this should work for any other rom in a flashable zip, downloads for the rom, TWRP and Magisk can be found here.
Install ADB and the relevant drivers. If you're on Linux or MAC, the easiest way I know of to do this is to use Corbin's excellent tool by running a single curl command.
Download TWRP, the ROM and Magisk (optional) into the same desktop folder as your ADB installation.
Boot into Fastboot (Vol- and Power).
fastboot flash recovery twrp.img
fastboot boot twrp.img
-> At this point, my phone would reboot to MIUI recovery. To solve this, as soon as the screen goes black after the previous command, boot to TWRP by holding Vol+ and Power.
Once you've booted to TWRP, change the language to English by touching the third button down in the second column (right above the button in the lower right), then touch the globe icon at on the right in the blue bar, then select English and hit the button in the lower right corner.
From the Wipe menu in TWRP, press Format Data, this will remove encryption (and wipe your phone, obviously).
While there, swipe to do a Factory Reset (which will also wipe your phone).
-> At this point, I repeated the recovery reboot procedure to be sure that TWRP would still boot, Vol+ and Power, or reboot recovery from TWRP menu. Not sure this is strictly necessary.
(For some reason, I couldn't get MTP to work in TWRP, it wouldn't copy files from the desktop. If you can get MTP to work you can simply drag and drop the rom and Magisk, otherwise you can do what I did and use ADB instead.)
From the desktop, push the rom you want to use, and Magisk, to the phone, this syntax (Linux) assumes your rom is in the adb folder, otherwise you need to provide the path:
adb push miui_MIMIX3Global_V10.0.11.0.PEEMIFH_9761b07e78_9.0.zip /sdcard/Download
adb push Magisk-v17.1.zip /sdcard/Download
From TWRP, install the rom followed by Magisk from /sdcard/Download on the phone.
Reboot System.
Drink beer, preferably something hoppy and top fermented.
Click to expand...
Click to collapse
I'm doing all the things that you've said but it still boots me to miui receovery, what should i do ?
Lumpka21 said:
I'm doing all the things that you've said but it still boots me to miui receovery, what should i do ?
Click to expand...
Click to collapse
Boot to TWRP using the buttons instead of the fastboot boot twrp.img command. I had the same problem. Also, make sure you're not installing the stock rom, that appears to also overwrite TWRP (that's what it looked like to me, I didn't bother to confirm for sure).
invisiblewave said:
Boot to TWRP using the buttons instead of the fastboot boot twrp.img command. I had the same problem. Also, make sure you're not installing the stock rom, that appears to also overwrite TWRP (that's what it looked like to me, I didn't bother to confirm for sure).
Click to expand...
Click to collapse
You can use stock ROM and twrp. Twrp is replaced if you boot the OS
Mackay53 said:
You can use stock ROM and twrp. Twrp is replaced if you boot the OS
Click to expand...
Click to collapse
Ok, so once you've flashed TWRP, there are two recoveries on the device and booting into the stock OS changes the bootloader to boot to the MIUI recovery?
Hello, i found this very useful. thank you
Hi, I followed your instructions and I flashed TWRP, but I just can't reach it. When I give the ADB command to boot I immediately try to start in TWRP recovery mode by pressing vol up+power, but at the beginning the phone doesn't do anything, then it boots to Android and I can only access MIUI recovery. Have you worked out another way or am I wrong in doing smth?
(Also pardon my ignorance, but I turned USB debugging on, am I right?)
Alexdruso said:
Hi, I followed your instructions and I flashed TWRP, but I just can't reach it. When I give the ADB command to boot I immediately try to start in TWRP recovery mode by pressing vol up+power, but at the beginning the phone doesn't do anything, then it boots to Android and I can only access MIUI recovery. Have you worked out another way or am I wrong in doing smth?
(Also pardon my ignorance, but I turned USB debugging on, am I right?)
Click to expand...
Click to collapse
You don't need ADB for flashing twrp so having usb debugging on is irrelevant.
Flash twrp In fastboot and once it's done and without giving any more commands just hold power and volume up. Eventually it will boot into twrp.
Did anyone wipe system before flashing the global zip over the Chinese rom? I didn't wipe data (which is not smart, I know this) and I have noticed some of the system apps have duplicates with different versions. I also have a few weird behaviors with Google Play store and some other items now. Debating installing TWRP, wiping both, and reflashing.
Nevermind, I can't do that. I don't have another activation for Google Play Music, and I can't set the device ID without root, and I can't root the global version so I can't wipe data. GG
PWn3R said:
Did anyone wipe system before flashing the global zip over the Chinese rom? I didn't wipe data (which is not smart, I know this) and I have noticed some of the system apps have duplicates with different versions. I also have a few weird behaviors with Google Play store and some other items now. Debating installing TWRP, wiping both, and reflashing.
Nevermind, I can't do that. I don't have another activation for Google Play Music, and I can't set the device ID without root, and I can't root the global version so I can't wipe data. GG
Click to expand...
Click to collapse
You never ever need to wipe the System so it won't be that, wipe would be recommended if you can do it
Which version of twrp should I use?
Herrick1209 said:
Which version of twrp should I use?
Click to expand...
Click to collapse
The only one there is for the MM3.
invisiblewave said:
The only one there is for the MM3.
Click to expand...
Click to collapse
I couldn't find it on the twrp website??
Herrick1209 said:
I couldn't find it on the twrp website??
Click to expand...
Click to collapse
You can't find one for the Mix 2s there either.
You can find one for the Mix1 there, but it is non- functional.
. . .
DYODD
Herrick1209 said:
I couldn't find it on the twrp website??
Click to expand...
Click to collapse
That's why I posted the link in the OP.
Thanks, does this apply to the Xiaomi MI Mix 3 Forbidden City Edition?

Categories

Resources