[RECOVERY][RC] TWRP for the Huawei P9 (with decryption support) - Huawei P9 ROMs, Kernels, Recoveries, & Other Devel

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Hi all!
I am looking at getting official TWRP support for the P9 (aka 'Eva') (as I have for the other Huawei / Honor devices.
After creating a basic build tree, I have been spending countless hours reversing the decryption routines from the stock recovery and the good news is - I have a RC build online ready to try, complete with /data decryption!
I will be submitting the files for official TWRP support shortly, but in the mean time you can check out the build below. Flash using 'fastboot flash recovery' and, of course, use at your own risk.
Enjoy!
DOWNLOAD - twrp-3.0.2-0-eva-modaco-rc3.img- MD5: f59edab048ca30feff78c67fad52c52e
P

Yeah. Thanks
Skickat från min EVA-L09 via Tapatalk

Could you guide how to build twrp for mate8?
Sent from my NEXT using Tapatalk

i tried flashing the recovery but even after success the phone doesn't boot to twrp but to the huawei erecovery. any suggestions? my phone's model is EVA-L19
Finally tried the recovery posted here and it worked. http://forum.xda-developers.com/p9/how-to/guide-root-huawei-p9-t3367800

I know that TWRP can't read /data, but can it wipe it? My phone no longer boots (more gory details at http://forum.xda-developers.com/p9/how-to/how-to-reset-phone-installing-twrp-t3378347) and I am wondering about the best way to do a factory reset.

You should be able to format I imagine.
P
Sent from my HUAWEI NXT-L29 using Tapatalk

paulobrien said:
You should be able to format I imagine.
Click to expand...
Click to collapse
Didn't work I think it's because it can't mount /data to format it. Now when I boot I get a message saying that encryption was not successful and it asks me to do a factory reset, but I don't know how to do that!

I would suggest flashing stock recovery, or doing a format on userdata I guess.
P

paulobrien said:
I would suggest flashing stock recovery, or doing a format on userdata I guess.
P
Click to expand...
Click to collapse
Problem solved! Just in case anyone else ends up making the same silly mistakes as me...
Formatting userdata doesn't seem to work; this seems to be a common problem on Huawei devices.
Code:
> fastboot format userdata
FAILED (remote: Command not allowed)
But flashing the stock recovery (I used the recovery found in the SRK tool from http://forum.xda-developers.com/p9/development/tool-srk-tool-huawei-bootloader-root-t3374068) did work.
Thanks for all your help!

@paulobrien any news for data decryption?

And you try to format data ? Not factory reset ? Format . it must work . it works for any other phones with Android 6 . but then you will need to flash custom ROM .
Отправлено с моего HTC One_M8 через Tapatalk

umair9001 said:
i tried flashing the recovery but even after success the phone doesn't boot to twrp but to the huawei erecovery. any suggestions? my phone's model is EVA-L19
Finally tried the recovery posted here and it worked. http://forum.xda-developers.com/p9/how-to/guide-root-huawei-p9-t3367800
Click to expand...
Click to collapse
@paulobrien after upgrading to L19C185B138, this recovery is working. It is now asking for password, which i believe is to decrypt the data partition.

Decryption reverse engineered, coming soon!
P
Sent from my HUAWEI NXT-L29 using Tapatalk

@paulobrien you are our huawei p9 hero! without your work the device would only be half as good as it is now! :good:

First post updated with RC1 build. WITH DECRYPTION SUPPORT!
​​​​​​​P

paulobrien said:
First post updated with RC1 build. WITH DECRYPTION SUPPORT!
​​​​​​​P
Click to expand...
Click to collapse
It works! Thanks.

paulobrien said:
First post updated with RC1 build. WITH DECRYPTION SUPPORT!
​​​​​​​P
Click to expand...
Click to collapse
Tested and working..although backup seems to failed..it says system backup failed error 255

Fails on data partition backup to external sd card (internal memory backup fine)
Same 255 error as above

Maybe because of size ? More then 4 gigs ?
Отправлено с моего SM-G930F через Tapatalk

Odd, i'll check it out.
P
Sent from my EVA-L09 using Tapatalk

Related

[TOOL][WIN] Ultimate Firmware Flasher One-S Edition |-22Nov-| V4.1.0

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
After my tool for One X, here is the One-S Edition!! :victory:
I hope you enjoy my tool!
Any Feedback is much appreciated!
if you have suggestions for improve the tool, please tell me!
Features:
Fastboot: Flash options (recovery, boot.img, firmware)
Fastboot Erase options ( cache, data, system, boot)
Fastboot: Getvar options ( the list is too long, check the screenshot!)
ADB: Pull
ADB: Push
ADB : Sideload
ADB: backup ( data, system, sdcard, restore backup)
ADB: Advanced Options:
- reboot
- reboot bootloader
- reboot recovery
- install apk
- get cpu frequencies
- get cpu Governors
- logcat
- dumpsys
- dumpstate
- dsmeg
- start adb server
- kill adb server
- start adb shell
More to come...
Click to expand...
Click to collapse
Screenshot:
This is an Overview! these are child windows of the main window!
Download:
Ultimate_Firmware_Flasher_One-S_WIN_V4.1.0
Click to expand...
Click to collapse
Have fun!
Looks promising. Thanks.
Sent from my HTC One S using xda premium
S3 works ?
Nexus 7 & Tapatalk 2
linar10 said:
S3 works ?
Nexus 7 & Tapatalk 2
Click to expand...
Click to collapse
hopefully it should work for all, beacuse it use only "shared commands" ( with shared i mean commands like "fastboot flash" and "adb pull/push")
If there are not working commands, please post here, so i can fix it!
Thanks for the share.
Will give this a shot
Sent from my HTC One S using xda premium
Nice!
Sent from my Nexus 7 using Tapatalk 2
Quick question i flashed the image using your tool and it keeps sending me to my custom recovery screen anyway to fix this and thanks.
gokou46 said:
Quick question i flashed the image using your tool and it keeps sending me to my custom recovery screen anyway to fix this and thanks.
Click to expand...
Click to collapse
do you mean that when you try to flash the boot.img the tool try to flash the recovery.img?? or, when you try to flash the boot.img, device reboots in recovery??
xcesco89 said:
do you mean that when you try to flash the boot.img the tool try to flash the recovery.img?? or, when you try to flash the boot.img, device reboots in recovery??
Click to expand...
Click to collapse
Hay rto i figured it out. Thanks for your help.
First of all, Congratulations and thanks for this tool.
In the part of flash, he says that flash firmware...boot.img and recovery too, of course..
Is it true? Is it a possible flash a Rom from this tool?? or...isn´t the same??
When I touch the option he says, that it is possible that it has to return to flash, if it is a Firmware.zip.
Big Thx.
Wel1973 said:
First of all, Congratulations and thanks for this tool.
In the part of flash, he says that flash firmware...boot.img and recovery too, of course..
Is it true? Is it a possible flash a Rom from this tool?? or...isn´t the same??
When I touch the option he says, that it is possible that it has to return to flash, if it is a Firmware.zip.
Big Thx.
Click to expand...
Click to collapse
Flash firmware will be used only when you want to flash the hBoot update! nothing related to roms
when you flash the firmware you upgrade the bootloader and this can't be undone. when you will receive the OTA update for JB, probably htc will upgrade automatically your firmware, but, if you are using a custom rom, you ned to do this manually. For now i've not included this procedure for the One s ( i have a One X and the commands are not the same due to different SoC). When the update will be available for you i'll update my tool with the automated procedure
I know, anybody is talking about flash roms. Was only a question...excuse me, please.
Great!
All is clear for my now..
Thanks, a lot, again.
Enviado desde mi Aitana XXX v1.4 usando Tapatalk 2.

Swich ROM

Hi,
I have Cromi 5.3 and I wanted to switch to cm 10.2, but I can't flash the ROM. My bootloader version is 10.6.1.27.5 and I have TWRP 2.5.0.0, but I have that strange splitted windows issue so I used fastboot instead. First, I did those commands :
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
then I did this :
,
but that didn't work. I can flash a recovery, but not a ROM
I dont know what to do to install without bricking my tablet.
Thanks
roud9 said:
Hi,
I have Cromi 5.3 and I wanted to switch to cm 10.2, but I can't flash the ROM. My bootloader version is 10.6.1.27.5 and I have TWRP 2.5.0.0, but I have that strange splitted windows issue so I used fastboot instead. First, I did those commands :
, then I did this :
, but that didn't work. I can flash a recovery, but not a ROM
I dont know what to do to install without bricking my tablet.
Thanks
Click to expand...
Click to collapse
Does the recovery work when you flash a recent 2.6.3.0 -42 TWRP?
Hi,
I just flashed it and I have the same problem
Sent from my Nexus 4 using XDA Premium 4 mobile app
roud9 said:
Hi,
I just flashed it and I have the same problem
Sent from my Nexus 4 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
On the split screen, can you confirm that 2.6.3.0 is actually on the device, or if it failed despite what fastboot said.
cmendonc2 said:
On the split screen, can you confirm that 2.6.3.0 is actually on the device, or if it failed despite what fastboot said.
Click to expand...
Click to collapse
On the picture, I have the 2.6.3.2 version, but I also tried 2.6.3.0 with the same result :
Look up Buster's recovery script in the general section and try using that. It should reset the device completely.
cmendonc2 said:
Look up Buster's recovery script in the general section and try using that. It should reset the device completely.
Click to expand...
Click to collapse
Hi,
Thanks, I solved the problem by installing the stock rom and put back twrp 2.6.3.0 but I still can't install cm 10.2, it says '' Unable to find partition size for '/recovery' " and '' Unable to find partition size for '/boot'
roud9 said:
Hi,
Thanks, I solved the problem by installing the stock rom and put back twrp 2.6.3.0 but I still can't install cm 10.2, it says '' Unable to find partition size for '/recovery' " and '' Unable to find partition size for '/boot'
Click to expand...
Click to collapse
My personal advice would be to flash 2.6.3.1 TWRP and then install a KitKat ROM, or CM11 in your case. It is much faster anyways.
I chose omnirom instead thanks for your help
Sent from my Nexus 4 using XDA Premium 4 mobile app

twrp - can't install this package on top of incompatible data

i have followed all the steps using NRT to unlock boot-loader and root the phone.
Installed TWRT manager and flashed the recovery.
Now i am trying to flash CM12 for the first time and stuck with error message "can't install this package on top of incompatible data" during flashing .
downloaded the following flash zip from CM website: cm-12.1-20150901-SNAPSHOT-YOG4PAO237-hammerhead.zip (281.77 MB)
Can any one help me what needs to be done to proceed further.
i didnt wipe the data before. Now its working and closing the thread
I wiped everything on my phone via TWRP. Still getting this error!
This topic is old but in case someone else gets here I got a solution - Change /data partition filesystem to ext4 or other supported by ROM
mesaj said:
This topic is old but in case someone else gets here I got a solution - Change /data partition filesystem to ext4 or other supported by ROM
Click to expand...
Click to collapse
How did you do that?
dsarcinelli said:
How did you do that?
Click to expand...
Click to collapse
http://forum.xda-developers.com/nexus-4/help/guide-detailed-f2fs-manual-format-guide-t3264185
This guide might help, you do it in TWRP by going to Format > Advanced > select partition > Change filesystem > Ext4
Wiping data worked for me
2sumanth said:
i didnt wipe the data before. Now its working and closing the thread
Click to expand...
Click to collapse
In twrp, I had to fumble around to find advance wipe to clear data but worked like charm after that.
Thank you!
xiaomi note 4g dior
Let me tell my story,
My friend gave me an old xiaomi note 4g which was stuck at the MI icon on boot,
Luckily the phone did not lock boot-loader
So I use xiaomi flash rom to flash global room , it worked after i tried sometimes.
Then I booted to the phone, and other problem came, the phone was linked with an Mi Account , and my friend forgot everything about it
not email, no phone number
I did a search and they said the only way to bypass the MiAccount is using a Resurrection ROM or balallala
so I ended up with using
1. fastboot to install twrp
2. open twrp --> open adb sideload mode.
3. Open window command line and install Resurrection ROM though adb sideload
While installing rom though adb slideload , i got the same issue with topic
SO i cleared data and tried again,
IT WORKED , NO MORE ****ING MiAccount
THANK a lot
:fingers-crossed::fingers-crossed::fingers-crossed::fingers-crossed:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Hi
Playing with my wife's Nexus 5, bootloader unlocked, rooted, and latest TWRP installed but when trying to flash from android 6.0.1 to Lineage, I'm getting an error 7 image shown I hope.....
Is this just because I haven't wiped the data first ? (I'm fairly sure but...)
I dont dare try 'cause if it's not that she'll kill me, so would like to be sure before I wipe all her data..
Thanks
Update, it was that I just wiped all except the SD and flashed, all is just great

[Stock Recovery] TWRP to Stock Recovery [3s/Prime]

How to revert back to Stock Recovery From TWRP/CWM recovery without Flashing Full ROM?
Note: Don't TRY this if you are using any custom ROM otherwise your phone will stuck in bootloop.
This is the simplest way to move to stock recovery from any custom recovery. Follow the instructions.
Instructions:
Step 1: Download this file [ https://drive.google.com/uc?id=0B95YT61gv-brUkFBNXpfeTI5NWc&export=download ]
Step 2: After downloading, place this file into internal memory.
Step 3: Now Open TWRP recovery.
Step 4: Clear Dalvik & Cache.
Step 5: Flash the Downloaded file.
Step 6: Done. Reboot your phone.
Enjoy Stock recovery.
If you like it then don't forget to hit "THANKS" button
For More updates related to Rooting, Flashing, Unlocking, Bootloop and other such stuff.
JOIN our facebook group
https://www.facebook.com/groups/redmi3s
Why do we need to move from twrp to stock recovery? Is there any benefit?
P€πtex4869 said:
Why do we need to move from twrp to stock recovery? Is there any benefit?
Click to expand...
Click to collapse
This may help if:
>> User want to unroot their phone and want to uninstall twrp without flashing full ROM
>> User want to install OTA updates not full ROM and many other such situations, it depend on users to users.
Thank for sharing, can I downloaded the file, extracted it and flashed this recovery.img by twrp?
Sent from my Redmi Note 3 using Tapatalk
timberwolf60 said:
Thank for sharing, can I downloaded the file, extracted it and flashed this recovery.img by twrp?
Sent from my Redmi Note 3 using Tapatalk
Click to expand...
Click to collapse
you can only flash zip files through twrp. Just download the file and flash it via TWRP or via any other custom recovery.
m4mohit said:
you can only flash zip files through twrp. Just download the file and flash it via TWRP or via any other custom recovery.
Click to expand...
Click to collapse
In fact after incremental ota update and my redmi 3S prime already go back to stock recovery. Thank for your quick answer.
Sent from my Redmi 3S using Tapatalk
timberwolf60 said:
In fact after incremental ota update and my redmi 3S prime already go back to stock recovery. Thank for your quick answer.
Sent from my Redmi 3S using Tapatalk
Click to expand...
Click to collapse
I tried it on 6.12.22 global dev rom, failed.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Sent from my Redmi 3S using Tapatalk
This one totally not working, I attracted the stock recovery.img from 7.1.5 global dev flashboot rom, and flashed by twrp(flash IMG) without any problems.
Sent from my Redmi 3S using Tapatalk
Is there any other face these problem while flashing..
Should i flash these
i want ro ask something..... is im able to install OTA updates while using this recovery ??? or not

[ROM] [lithium][8.0.0] [V8.4.19] Global MIUI9 OREO for Mi MIX

Download: miui_MIMIXGlobal_8.4.19_8.0.zip
Important: TWRP, touch does not yet work, I have taken a mouse
Instructions, my method:
flash twrp twrp-3.2.1-raupe-blunden-15.1-vendor-fstab
format data using twrp
wipe data cache and dalvik
copy the 8.4.19 rom to pc in adb folder
flash the OREO rom with adb sideload
flash Force_Encryption_Disabler_For_OOS_Oreo.zip v2.zip with adb sideload
flash Magisk-v16.4-180429.zip with adb sideload
delete in twrp, because stock recovery is installed over and over again
- system/bin/install-recovery.sh
- system/recovery-from-boot.p
- system/etc/recovery-resource.dat
reboot
SELinux mode - Permissive
Hint:
fstab.qcom f2fs & ext4
available:
/dev/block/bootdevice/by-name/userdata /data ext4 nosuid,nodev,noatime,barrier=1,noauto_da_alloc wait,encryptable=footer,check
is missing:
/dev/block/bootdevice/by-name/userdata /data f2fs nosuid,nodev,noatime,inline_xattr wait,encryptable=footer,check
that's why it's been encrypted over and over again
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
- was only possible with magisk from 29.04.2018
View attachment 4488929
Theme: Jadiul Wae & Grey Eminence, not integrated!
I'm testing the Blur Mod...
View attachment 4488985
No Touch? Really? In flashed system? Wtf...
Versions get worse every release...
I'm back from 8.4.12 to 8.4.4... Because phone stopped responding after some time. Won't turn on and something used 100% CPU the whole time...
Even considering going back to last android 7 Rom...
Gesendet von meinem MIX mit Tapatalk
futureshock said:
No Touch? Really? In flashed system? Wtf...
Versions get worse every release...
I'm back from 8.4.12 to 8.4.4... Because phone stopped responding after some time. Won't turn on and something used 100% CPU the whole time...
Even considering going back to last android 7 Rom...
Gesendet von meinem MIX mit Tapatalk
Click to expand...
Click to collapse
could be system_server
you can be displayed with a task manager(3c)
MIX mit TA
By the way, all works fine after fastboot installation through miflash.
No freezes, no lags, no notification crackling sound etc.
Hen Ry said:
could be system_server
you can be displayed with a task manager(3c)
MIX mit TA
Click to expand...
Click to collapse
i flashed oreio miui a few days back the 8.4.19 and flashed the no verity but it still encrypted...works fine no call no touch no internet mms sms issues all working
yes the sound quality seems better
if im on mi recovery, how can i go back to twrp recovery?ive flash thru fastboot but upon reboot it returns to mi recovery again. How to do this if im not on twrp?
delete in twrp, because stock recovery is installed over and over again
- system/bin/install-recovery.sh
- system/recovery-from-boot.p
- system/etc/recovery-resource.dat
Thanks Henry
nevermind I got it now.problem solved... thanks
Who can customize the "twrp_3.2.1-0_lithium_treble.img" that works touch with the Global?
with EX Kernel Manager, Kernel Adiutor (ROOT) does not work exactly
Restart after 3 minutes :good:
Hen Ry said:
Who can customize the "twrp_3.2.1-0_lithium_treble.img" that works touch with the Global?
Click to expand...
Click to collapse
not that am of help here but just saying as I have used the 15.1 raupe-blunden without issues on china rom, global rom (both latest) and this oreo rom.
mac231us said:
not that am of help here but just saying as I have used the 15.1 raupe-blunden without issues on china rom, global rom (both latest) and this oreo rom.
Click to expand...
Click to collapse
Yeah, well tell me about it. :good:
mac231us said:
not that am of help here but just saying as I have used the 15.1 raupe-blunden without issues on china rom, global rom (both latest) and this oreo rom.
Click to expand...
Click to collapse
Yeah, well. Even I would like to know how you overcame the encryption stuff. I could flash but got ecrypted in the process and TWRP could not read partitions.
twrp-3.2.1-raupe-blunden-15.1-vendor-fstab works
Hen Ry said:
twrp-3.2.1-raupe-blunden-15.2-vendor-fstab works
Click to expand...
Click to collapse
Please provide the link for the above recovery. All I can find is the 15.1 version.
shantanil said:
Please provide the link for the above recovery. All I can find is the 15.1 version.
Click to expand...
Click to collapse
Sorry, was a spelling mistake.
I am back with a backup to Oreo xiaomi.eu 8.4.12.
And I installed simply the Global Oreo over it.
The TWRP Touch works, I noticed later.
Gesendet von meinem MIX mit Tapatalk
Hen Ry said:
twrp-3.2.1-raupe-blunden-15.1-vendor-fstab works
Click to expand...
Click to collapse
Hen Ry said:
Sorry, was a spelling mistake.
I am back with a backup to Oreo xiaomi.eu 8.4.12.
And I installed simply the Global Oreo over it.
The TWRP Touch works, I noticed later.
Gesendet von meinem MIX mit Tapatalk
Click to expand...
Click to collapse
And does TWRP gets encrypted after this?
shantanil said:
And does TWRP gets encrypted after this?
Click to expand...
Click to collapse
* flash after Global Force_Encryption_Disabler_For_OOS_Oreo.zip v2.zip
shantanil said:
And does TWRP gets encrypted after this?
Click to expand...
Click to collapse
had china global through fastboot flashtool
then followed OP instructions with the 15.1 twrp
(did the data format "yes" in twrp before adb sideload of the zip rom then the encrypt disabler) so nothing different essentially from OP,,did not do the steps for ensuring recovery not overwritten...still have the twrp

Categories

Resources