Enjoy Music Your Way with Flare

There are various things that people look for in a music player. Most of them are spread out across various … more

Back Up Your Telephony Data

XDA Recognized Developerbartitopresents thenewTelephony Data Backup app, to make manual or automated backups of … more

Change CyanogenMod 12 Lock Screen Wallpaper

By default, Android uses the same wallpaper for home screen and lock screen. With this guide by … more

Amazon Echo vs Google Now – Digital Assistant Showdown!

Two weeks ago, we talked about the must have item from Amazon, the Echo. In the … more

Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[Recovery] P6S - Create or modify Recovery

OP abequer

3rd June 2014, 08:13 PM   |  #1  
abequer's Avatar
OP Member
Flag Mexico City
Thanks Meter: 6
 
48 posts
Join Date:Joined: Dec 2013
Donate to Me
More
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.
3rd June 2014, 09:25 PM   |  #2  
surdu_petru's Avatar
Recognized Contributor
Flag Paris
Thanks Meter: 8,692
 
3,611 posts
Join Date:Joined: Feb 2010
Donate to Me
Quote:
Originally Posted by abequer

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 !
4th June 2014, 10:55 PM   |  #3  
abequer's Avatar
OP Member
Flag Mexico City
Thanks Meter: 6
 
48 posts
Join Date:Joined: Dec 2013
Donate to Me
More
Quote:
Originally Posted by surdu_petru

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?
5th June 2014, 12:03 AM   |  #4  
surdu_petru's Avatar
Recognized Contributor
Flag Paris
Thanks Meter: 8,692
 
3,611 posts
Join Date:Joined: Feb 2010
Donate to Me
Quote:
Originally Posted by abequer

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 !
7th June 2014, 03:21 AM   |  #5  
abequer's Avatar
OP Member
Flag Mexico City
Thanks Meter: 6
 
48 posts
Join Date:Joined: Dec 2013
Donate to Me
More
Quote:
Originally Posted by surdu_petru

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.
Last edited by abequer; 7th June 2014 at 03:32 AM.
18th June 2014, 11:16 PM   |  #6  
abequer's Avatar
OP Member
Flag Mexico City
Thanks Meter: 6
 
48 posts
Join Date:Joined: Dec 2013
Donate to Me
More
Quote:
Originally Posted by abequer

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.
4th January 2015, 01:39 AM   |  #7  
Junior Member
Thanks Meter: 0
 
3 posts
Join Date:Joined: Jan 2015
hi
Quote:
Originally Posted by abequer

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.

hi abequer, can you tell me how you able to modify th stock recovery.
did your adb detect the devices?


because my p6s stuck in orange text logo when loading,
i can only go to adb & fast boot, but adb didnt detect the device

i think i need, boot.img &recovery.img for p6s.
btw, is there any thread taht discuss huaweis ascend P6s?

can you guys help me?

thanks before
4th January 2015, 05:40 PM   |  #8  
Member
Flag Ulan-Ude
Thanks Meter: 15
 
44 posts
Join Date:Joined: Nov 2014
Quote:
Originally Posted by vallreborn

hi abequer, can you tell me how you able to modify th stock recovery.
did your adb detect the devices?


because my p6s stuck in orange text logo when loading,
i can only go to adb & fast boot, but adb didnt detect the device

i think i need, boot.img &recovery.img for p6s.
btw, is there any thread taht discuss huaweis ascend P6s?

can you guys help me?

thanks before

What did you do before you stucked on logo?

By the way, I didn't notice any problems with USB OTG update. And there should not be, because recovevy.fstab contains:
"/dev/block/sda1 /usb vfat defaults defaults" that means that usb flash mounts to /usb
and
"/dev/block/mmcblk1p1 /sdcard vfat defaults defaults" that is about mounting external SD to /sdcard
So they don't interfere with each other, and there's no any bug that abequer was talking about.

Did you try to turn on device by pressing vol+ and power buttons simultaneously? Or by three buttons method? Did you get into recovery?
5th January 2015, 10:00 AM   |  #9  
Junior Member
Thanks Meter: 0
 
3 posts
Join Date:Joined: Jan 2015
Quote:
Originally Posted by Kostyan_nsk

What did you do before you stucked on logo?

By the way, I didn't notice any problems with USB OTG update. And there should not be, because recovevy.fstab contains:
"/dev/block/sda1 /usb vfat defaults defaults" that means that usb flash mounts to /usb
and
"/dev/block/mmcblk1p1 /sdcard vfat defaults defaults" that is about mounting external SD to /sdcard
So they don't interfere with each other, and there's no any bug that abequer was talking about.

Did you try to turn on device by pressing vol+ and power buttons simultaneously? Or by three buttons method? Did you get into recovery?

hi guys, thx for replying, i really do appreciate it.

i was trying to root the phone, but somehow it stuck in logo.

but i manage to go to fastboot menu, and flash the recovery, and boot img, but nothing change, its still stuck

p6s-uo6

p6s-uo6

what should i do?

---------- Post added at 09:00 AM ---------- Previous post was at 08:09 AM ----------

found a tutorial Way to recovery from the "brick with orange logo"

chezasite.com/forum/threads/huawei-ascend-p6s-proshivka-202-fastboot-dlja-vosstanovlenija-kirpicha-instrukcija.40807



and its fixed, than you guys for everything. i really do

i cant seem to post links here, but thankyou and him, the russian guys.

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes