Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,769,680 Members 45,874 Now Online
XDA Developers Android and Mobile Development Forum

[Recovery] P6S - Create or modify Recovery

Tip us?
 
abequer
Old
#1  
abequer's Avatar
Member - OP
Thanks Meter 6
Posts: 43
Join Date: Dec 2013
Location: Mexico City

 
DONATE TO ME
Default [Recovery] P6S - Create or modify Recovery

Hello,

I'm triying to create a new recover or modify the stock recovery for a P6S (yes, the "S" version) but I run into a problem. Whenever I unpack and repack the stock recovery It won't boot even if I don't modify anything. żIs there any locking mechanism in Huawei devices that will prevent modified recovery images from booting?

The first thing I'm trying to do is solve a BUG in the STOCK recovery. The bug is that the external storage is configured to /sdcard on /dev/block/mmcblk1p1 but the phone has dual SIM slot without any external SD card. It came with a micro-USB to female USB in which you can connect an external USB stick, therefore the external storage should be /usb on /dev/sda1. The problem with this BUG is that you cannot apply the stock recovery procedure placing the dload/UPDATE.APP in an external memory.

I have extracted the RECOVERY.img from the original UPDATE.APP, the image is correct because I can flash it with fastboot without any problem.

I have also been able to comiple CWM for the device without errors but the image just won't boot.
 
surdu_petru
Old
#2  
surdu_petru's Avatar
Recognized Contributor
Thanks Meter 7613
Posts: 3,384
Join Date: Feb 2010
Location: Paris

 
DONATE TO ME
Quote:
Originally Posted by abequer View Post
Hello,

I'm triying to create a new recover or modify the stock recovery for a P6S (yes, the "S" version) but I run into a problem. Whenever I unpack and repack the stock recovery It won't boot even if I don't modify anything. żIs there any locking mechanism in Huawei devices that will prevent modified recovery images from booting?

The first thing I'm trying to do is solve a BUG in the STOCK recovery. The bug is that the external storage is configured to /sdcard on /dev/block/mmcblk1p1 but the phone has dual SIM slot without any external SD card. It came with a micro-USB to female USB in which you can connect an external USB stick, therefore the external storage should be /usb on /dev/sda1. The problem with this BUG is that you cannot apply the stock recovery procedure placing the dload/UPDATE.APP in an external memory.

I have extracted the RECOVERY.img from the original UPDATE.APP, the image is correct because I can flash it with fastboot without any problem.

I have also been able to comiple CWM for the device without errors but the image just won't boot.

Hi !

Please un-pack and repack stock recovery.img with this tools by @dsixda !

This tools has ability to add also ramdisk offset .

Good luck !
*****
Huawei Ascend P6 | Quad Core 1.5GHz | 8GB | 2GB RAM ( Omni ROM 4.4.4 ! )
*****
HTC One M8 | Qualcomm MSM8974AB Snapdragon 801 2.3GHz | 16GB | 2GB RAM ( Stock 4.4.2 )

If you find my work useful, feel free to hit the THANKS button below !
 
abequer
Old
#3  
abequer's Avatar
Member - OP
Thanks Meter 6
Posts: 43
Join Date: Dec 2013
Location: Mexico City

 
DONATE TO ME
Quote:
Originally Posted by surdu_petru View Post
Hi !

Please un-pack and repack stock recovery.img with this tools by @dsixda !

This tools has ability to add also ramdisk offset .

Good luck !
Thanky you Surdu

I have been able to make some progrss on this. I have successfully compiled a TWRP image that actually boots the kernel but nothing is displayed on scree. I know it boots because I can mount exteral USB disks (the led turns on) and I see the device with "adb devices" as offline.

I'm modifying the init.rc file to have it running. Is this the way of going forward?
 
surdu_petru
Old
#4  
surdu_petru's Avatar
Recognized Contributor
Thanks Meter 7613
Posts: 3,384
Join Date: Feb 2010
Location: Paris

 
DONATE TO ME
Quote:
Originally Posted by abequer View Post
Thanky you Surdu

I have been able to make some progrss on this. I have successfully compiled a TWRP image that actually boots the kernel but nothing is displayed on scree. I know it boots because I can mount exteral USB disks (the led turns on) and I see the device with "adb devices" as offline.

I'm modifying the init.rc file to have it running. Is this the way of going forward?
I already pushed "twrp source" for P6 on my github ! You can take a look and compare with yours . If the screen is off, you should also check this flag : "TARGET_RECOVERY_PIXEL_FORMAT" - as different from a device to another.

Anyway good luck !
*****
Huawei Ascend P6 | Quad Core 1.5GHz | 8GB | 2GB RAM ( Omni ROM 4.4.4 ! )
*****
HTC One M8 | Qualcomm MSM8974AB Snapdragon 801 2.3GHz | 16GB | 2GB RAM ( Stock 4.4.2 )

If you find my work useful, feel free to hit the THANKS button below !
 
abequer
Old
(Last edited by abequer; 7th June 2014 at 02:32 AM.)
#5  
abequer's Avatar
Member - OP
Thanks Meter 6
Posts: 43
Join Date: Dec 2013
Location: Mexico City

 
DONATE TO ME
Quote:
Originally Posted by surdu_petru View Post
I already pushed "twrp source" for P6 on my github ! You can take a look and compare with yours . If the screen is off, you should also check this flag : "TARGET_RECOVERY_PIXEL_FORMAT" - as different from a device to another.

Anyway good luck !
Thankyou Surdu

I've been able to compile TWRP using your P6 source. It boots and stays on if I disable the healthd service. If I leave healthd service on it will boot-loop the device.

I can get adbd running but I can't get the "TWRP courtain" to be shown. I know adb is running because on the computer #adb devices show me "0123456789ABCDEF offline" (i don't know why it is always shown as offline instead of recovery)

I'll continue searching onece I have a little more spare time. Thank you for any advice you can give me.
 
abequer
Old
#6  
abequer's Avatar
Member - OP
Thanks Meter 6
Posts: 43
Join Date: Dec 2013
Location: Mexico City

 
DONATE TO ME
Quote:
Originally Posted by abequer View Post
Thankyou Surdu

I've been able to compile TWRP using your P6 source. It boots and stays on if I disable the healthd service. If I leave healthd service on it will boot-loop the device.

I can get adbd running but I can't get the "TWRP courtain" to be shown. I know adb is running because on the computer #adb devices show me "0123456789ABCDEF offline" (i don't know why it is always shown as offline instead of recovery)

I'll continue searching onece I have a little more spare time. Thank you for any advice you can give me.
As of now, I was able to modify and successfully use a stock RECOVERY including a compiled version of ADB (using OMNI source) that will enable root access via adb. I still haven't found what is wrong with the recovery binary for TWRP.
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes