yashsingh1/xdaforums huggingface dataset:
[Huawei Ascend P6, Mate] letes_AZ:
Hi guys, i'm new at the forum and i hope you can help me out...

I have an Huawei Y625 and it's half-bricked, it stucks on boot logo and i can only acess stock recovery and the only only way to be recognized by the computer it's via adb sideload (from stock recovery).

My big problem is i cannot flash any of the update.app's that i've tried because i get this error: "can't install this package over newer build update.app..." I'm trying with this tool extracting it to get acess to build.prop so i can change some dates, but unfortunately when i try to load my update.app's the tool tells me "invalid file", can anyone give me a light so i can solve this? :confused: :(
[Huawei Ascend P6, Mate] worstenbrood:
Make sure that your up^date.app isnt a zip file (huawei does this sometimes). Try renaming to .zip and see if you can unpack it
[Huawei Ascend P6, Mate] letes_AZ:
Thanks worstenbrood, that helped a lot, but now that i've edited the build.prop i'm getting signature failures, already tried to sign with signapk but still getting those "signature verification failed", ps: with your tool i can't repack the files .:(
[Huawei Ascend P6, Mate] ji5ji:
Hello.

It is possible to repack TWRP recovery.img to UPDATE.app to be able to flash across STOCK recovery?

How is it possible to sign a file UPDATE.APP?

Thanks.
[Huawei Ascend P6, Mate] faramarzq:
hi can app to reback rom and flash it .my phone break and only way i have it is make a update.app
[Huawei Ascend P6, Mate] bersem:
cannot extract update.app for Y625-U21 Huawei, it says: invalid file ? why and what can i do to fix that ?

thanks in advance !

regards !
[Huawei Ascend P6, Mate] ji5ji:
Hi. Thanks.

Where did you find this file? Could you tell me the path and file name? I would like to find for my H60-L04.
[Huawei Ascend P6, Mate] beast.in.black:
Hi ji5ji,

Unfortunately it is not as simple as just extracting one single file inside the device which has this information - Huawei does not like to make things easy for us!

You need to be rooted for this to work.

If you know what you are doing, just run this command inside a root shell on your device (can use a terminal emulator app or "adb shell") to get the partition info for your device:

ls -l /dev/block/platform/hi_mci.0/by-name | tr -s ' ' | cut -d' ' -f6-8 > /storage/sdcard0/mypartitions.txt

In the above shell command, just make sure that your SD card is actually present at /storage/sdcard0. If you want to put the output file on your ExtSD, that is usually at /storage/sdcard1 (but please make sure to check!) :)

If you need more detailed instructions, you will find them in my post here. Again, please note that you do need to be rooted for this to work - otherwise you cannot get the list of partitions.
[Huawei Ascend P6, Mate] ralfbergs:
I would like to understand what the benefit of having this profile is? How did it look inside the update extractor? Was it unable to distinguish and label the individual images contained within the UPDATE.APP?
[Huawei Ascend P6, Mate] OnimushaPooh:
Hi , Can anyone add Huawei P9 Profile?

Thank you.
[Huawei Ascend P6, Mate] inertiax3:
Dear dev et al.,

I am trying to directly clone the extracted IMG files (phone model Huawei Honor 6 PLUS, PE-UL00, link to UPDATE.APP - http://update.hicloud.com:8180/TDS/data/files/p3/s15/G1146/g104/v65870/f3/full/update.zip) to the appropriate partitions (using the dd command). However, the extracted IMG files seems to contain additional data in the header. For ex. the sensorhub partition - several bytes needed to be truncated in the beginning of the file for dd'ing it directly - thanks to a fellow member who dd'ed his mmcblk0p17 partition - otherwise I wouldn't be able to figure where to truncate the image. (I will post images from hex editor later)

Does anyone know what the additional data are and where the real partition image begins for boot.img, system.img, recovery.img? How to identify their proper beginnings? I suppose that flashing boot.img, system.img and recovery.img via FASTBOOT FLASH should write the correct data but I will have to verify this - and the phone still does not boot (neither recovery, not ROM - either boots forever or not at all) when I do it the FASTBOOT way.

Any help is highly appreciated!
[Huawei Ascend P6, Mate] ji5ji:
What preceded this situation? You are trying to downgrade this way? For example: You not can flashing partitions from EMUI 3.1 on EMUI 4.0. In this case, the SYSTEM does not start (Boot, system, recovery, and other partitions are not compatible).
[Huawei Ascend P6, Mate] inertiax3:
Yes, exactly - I want to downgrade from Marshmallow (MM) to Lollipop (LL) - but there is no transition package for the Honor 6 Plus (PE-UL00). Thus I want to manually dd all partitions from EMUI 3.1 - but need the correctly truncated IMG files from UPDATE.APP. The reason I am trying to downgrade is because the camera focus nor any of the sensors (accelerometer, light, proximity.. ) are working in MM - I suppose Huawei might have not released MM for my PE-UL00 because there might be another hardware revision of PE-UL00 in which they changed the sensor hub? Who knows..

Either that or I need to find someone with PE-UL00 who is willing to "dd if of" all the 40 partitions :)
[Huawei Ascend P6, Mate] tomaki:
thank you
[Huawei Ascend P6, Mate] worstenbrood:
Maybe, one day, when i actually own an huawei phone, i can do some research :)
[Huawei Ascend P6, Mate] Caelestiel:
can I use UPDATE.APP to make a stock rom for that device? I accidentally deleted system partition and I can't find any rom for Mediapad M2 801L. Only firmwares with UPDATE.APP
[Huawei Ascend P6, Mate] ralfbergs:
Extract system.img from update.app and flash with fastboot.
[Huawei Ascend P6, Mate] Caelestiel:
I was able to extract system.img and copy it to my system folder, it still doesn't work.

Btw just copying it is useless?

UPDATE: Im trying to flash it but it says "FAILED (remote: Command not allowed)"

I've tried boot,system,recover same error.

this is the exact command I used "fastboot flash system system.img" (w/o quote)

in the bootloader:

PHONE UNLOCKED

FRP UNLOCK
[Huawei Ascend P6, Mate] ralfbergs:
Sorry, I don't know why this fails, I've done it a couple of times, it always worked for me...
[Huawei Ascend P6, Mate] ji5ji:
You've deleted the whole partition in the file manager in TWRP? Installs STOCK recovery and install the full ROM using 3. key.

Or try this: Formatted the system in TWRP recovery. Restore system and keep no tick this item in TWRP. (see screenshots...

Ps: If you deleted this way, the entire partition, it will not work.
[Huawei Ascend P6, Mate] Caelestiel:
-I deleted everything using Advance Wipe,

Dalvik Cache, System, Cache, Data, Internal Storage

-I tried to copy system.img content into system folder using TWRP but nothing happened.

Also, boot folder is empty. I'm thinking about extracting boot.img and copy its contents to boot folder. (will only just copying work?or I really need to flash them?)

-the green boxed you showed me is unchecked, nothing is checked in TWRP settings
[Huawei Ascend P6, Mate] ji5ji:
You can not copy SYSTEM.img into the system !! This is a different file format, and it is perhaps the reason why it does not flash system via fastboot. The first method (Huawei full ROM update 3. button) does not work?

Ps: Boot folder always appears as a blank!!!
[Huawei Ascend P6, Mate] Caelestiel:
I didnt copy system.img itself, I extracted it, and its contents is what I copied.

"(Huawei full ROM update 3. button) does not work?" sorry can't understand what you're saying about this.

I dont wanna use the stock recovery, i might make it worst.
[Huawei Ascend P6, Mate] ji5ji:
Step 1. Flash Huawei STOCK recovery.

Step 2. Copy the UPDATE.APP to

dload

the

directory Sdcard.

/storage/sdcard/dload/UPDATE.APP

Step 3. Make sure your handset is power off. Press the VOLUME UP and VOLUME

DOWN key, and then press the POWER key to power on the phone, and the keys

should be pressed more than 10 seconds, then enter the Software Upgrade Mode.
[Huawei Ascend P6, Mate] Caelestiel:
-Can I do this even if I'm rooted?

-I don't have a file for stock recovery.

-Does the button combination also work on tablet? I'm using Huawei Mediapad M2.

I just need the fastboot to work, it says "Failed command not allowed" even if my bootloader is unlocked.
[Huawei Ascend P6, Mate] ji5ji:
Yes must operate. Stock recovery extracted from the file UPDATE.APP and must be a full ROM (single file UPDATE.APP minimum of about 2.GB +).

It is also about whether your Fastboot commands entered from the right path etc.

Probably you are doing something wrong.
[Huawei Ascend P6, Mate] Caelestiel:
If I flash my stock recovery, can I still access TWRP? (is stock recovery = recovery.img)

My firmware is 2.53 GB, the system folder from system.img has 2.18 GB

target reported max download size of 471859200 bytes (which is 0.47 gigabytes and the system to be flashed is 2.5 gb) does it have anything to do with the failure?

Some commands are working just fine, like bootloader check "fastboot getvar.." (btw it still says unlocked) and reboot command.
[Huawei Ascend P6, Mate] tileeq:
Your situation demands that you return to stock firmware since you deleted the system w/o making a backup. And since twrp is uselles w/o backup thats the only way you can get it working again. So flash stock recovery image that you extracted and put the update.app file in a folder named dload on a sdcard put it in the tablet and boot to recovery using all three buttons when doing it.

Sent from my SM-G850F
[Huawei Ascend P6, Mate] E:V:A:
Thanks for good app, but...

You might want to consider updating this to use .Net 4.5 or above. Nobody want to install that previous dysfunctional and insecure 3.5 bloat anymore...

(I use a lot of weird old programs, but I haven't seen any request for 3.5 for a very long time.)

To see what you're currently running, open a CMD and use:

reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP"
reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\full" /v version
[Huawei Ascend P6, Mate] worstenbrood:
Updated op with zip version only for now. Issue was prolly due to wrong calling convention for invoking libmagic calls.
[Huawei Ascend P6, Mate] worstenbrood:
Try latest version, i suspect this was caused by the libmagic calling convention bug (on .net 3.5 this was fine, on later versions of .net it failed).
[Huawei Ascend P6, Mate] E:V:A:
[MENTION=981278]worstenbrood[/MENTION] What do you need to make your Extractor compatible with a Nova (CAN-L11)? Please have a look here. The latest (and only) full firmware update is posted here.
[Huawei Ascend P6, Mate] worstenbrood:
Actually nothing. You can extract the update.app just fine with the unkown profile. Creating a flashable zip (which became alot more difficult after android 4) needs a real profile, but i guess no one uses that option anymore and uses fastboot for the partition that work
[Huawei Ascend P6, Mate] Kfcbucket:
Support

Hello.Is there a way i can create a flashable file for Huawei P2 even if it is not in the profile ?, 'cause i try to create a zip but i always fail.
[Huawei Ascend P6, Mate] worstenbrood:
No you can't and you shouldn't !!!! You could brick your device....

The creat flashable zip option is a bit out of date since you cannot just flash the images one-on-one to the partitions anymore (some you still can, but system not). The tool still does where it was created for, extract the .app file.

Maybe, one day, when i actually own an huawei phone, i can look into the system flash thing
[Huawei Ascend P6, Mate] Schrotty35:
I have a P9 but the phone is not on the list. Which Phone can i select now?
[Huawei Ascend P6, Mate] worstenbrood:
Order doesn't matter at all, based on the partition table this looks good, the names in the update.app are mostly the same as the partition name.
[Huawei Ascend P6, Mate] xzanium:
Hello

I think to check the update package, the recovery system must decrypt the MD5RSA file. so it must exist a decryption key in recovery.img

I have unpacked recovery.img and I have found 2 files that can be the decrypting key.

can you check these files? (in attachments)

Sorry for bad english
[Huawei Ascend P6, Mate] worstenbrood:
MD5RSA must not be decrypted MD5RSA is the generated signature of the data. I dunno if you know how this works ? You sign the data with a PRIVATE key and you can verify the signature with the PUBLIC key. So the keys you "dumped" there are the public keys. Basically ... useless
[Huawei Ascend P6, Mate] ya lin aung:
Honer 3c Update
[Huawei Ascend P6, Mate] Sparko612:
this program has helped wonders for me and so happy that I can now flash all my partitions again thank you so much :D:D:D:D:D:D:D:D:D:D:D
[Huawei Ascend P6, Mate] alex-gibson:
HUAWEI G630 Profile

<Profile name="Huawei Ascend G630" author="Alex-Gibson">

<File type="md5rsa" filetype="signature">MD5RSA.img</File>

<File type="crc" filetype="checksum">CRC.img</File>

<File type="amss_ver">AMSS_VER.img</File>

<File type="amss_verlist">AMSS_VERLIST.img</File>

<File type="crc">CRC.img</File>

<File type="oemsbl_ver">OEMSBL_VER.img</File>

<File type="oemsbl_verlist">OEMSBL_VERLIST.img</File>

<File type="sbl1" partition="/dev/block/mmcblk0p1">SBL1.img</File>

<File type="sdi" partition="/dev/block/mmcblk0p2">SDI.img</File>

<File type="rpm" partition="/dev/block/mmcblk0p4">RPM.img</File>

<File type="tz" partition="/dev/block/mmcblk0p5">TZ.img</File>

<File type="aboot" partition="/dev/block/mmcblk0p6">ABOOT.img</File>

<File type="modemst1" partition="/dev/block/mmcblk0p9">MODEMST1.img</File>

<File type="modemst2" partition="/dev/block/mmcblk0p11">MODEMST2.img</File>

<File type="fsg" partition="/dev/block/mmcblk0p12">FSG.img</File>

<File type="modem" partition="/dev/block/mmcblk0p11">MODEM.img</File>

<File type="boot" partition="/dev/block/mmcblk0p18">BOOT.img</File>

<File type="recovery" partition="/dev/block/mmcblk0p19">RECOVERY.img</File>

<File type="cache" partition="/dev/block/mmcblk0p21">CACHE.img</File>

<File type="cust" partition="/dev/block/mmcblk0p20">CUST.img</File>

<File type="system" partition="/dev/block/mmcblk0p23">SYSTEM.img</File>

<File type="userdata" partition="/dev/block/mmcblk0p24">USERDATA.img</File>

</Profile>
[Huawei Ascend P6, Mate] worstenbrood:
[MENTION=4372730]E:V:A[/MENTION] [MENTION=6503193]alex-gibson[/MENTION] : Added both already for next release
[Huawei Ascend P6, Mate] worstenbrood:
I'll add in the next release thanks !

The tool is not on github, maybe one day. I wrote a separate library to work with update.app files which is on github.
[Huawei Ascend P6, Mate] Tkkg1994:
Okay got you. I just thought would be the best to opensource all instead of some parts of the project, but as said it's your tool. Just want to help out :)
[Huawei Ascend P6, Mate] circulus:
So, I am glad that someone noticed this.

Boot and recovery partitions (or images) starts with word ANDROID and exclamation mark at end, so hex sequence is:

0x41 0x4E 0x44 0x52 0x4F 0x49 0x44 0x21 => ANDROID!

but system, cust and data partitions maybe dumped as ext4 filesystems (sometimes, for old devices yaffs filesystems). Ext4 filesystems has magic number 0xEF53 at position 0x38 in superblock. Before superblock is 1024 padding bytes. Description of ext4 layout is here: https://ext4.wiki.kernel.org/index.php/Ext4_Disk_Layout
[Huawei Ascend P6, Mate] drr0ss:
Could you please add Huawei y625-U51

Thanks.

PS: I can add in Profiles.xml, but not know the parameters...
[Huawei Ascend P6, Mate] franzyroy:
Can it work for Huawei Mate 8? At minimum to extract files.

I tried, it worked. After, I didn't try to install it but the file that I wanted, it's extracted.
[Huawei Ascend P6, Mate] whelmar:
have a question about the file extraction...

When I extract the system.img file from the app file, I get two files. system.img and system.img.header. When I try to extract / view the files in the system.img file, I get invalid header, and I can't extract anything. I am using 7-zip. Am I using the wrong tool?
[Huawei Ascend P6, Mate] Sparko612:
Did you rename the system file into .zip ??
[Huawei Ascend P6, Mate] zappomax:
Hi.

Where I can find a Profiles.xml with Mate 8?
[Huawei Ascend P6, Mate] whelmar:
No, didn't rename files . The application stops responding trying to open the image. Happens with 7zip and with ext4 extractor...

Have tried multiple machines. No luck. Just trying to get the stock notification sounds for my son... He likes mine better than his phone's...
[Huawei Ascend P6, Mate] rizsoomro:
how to create scatter file from update.app

how to create scatter file from update.app i extract that file but i don't have preparefiles.exe where from i download or how to create that file plz any one help me
[Huawei Ascend P6, Mate] Hai_Duong:
Can someone make a update.zip for hauwei MHA-L00 with MHA-L29 Firmware? I just want to have German Langauge in the Apps.
[Huawei Ascend P6, Mate] sujinsmailbox:
Can i use this app for unpacking Asceng G7 L01 model

My phone is in bootloop now :(

I flashed a recovery (twrp) and i can boot into twrp recovery, if i press volume +,- and powerbutton.

I tried flashing using fastboot, but the cust.img fails

Only way that i hope now is to flash a firmware from TWRP. But TWRP fails to flash update.app file.

I dont know, if a can flash a zipped version of update.app from twrp

Also dont know, if this extractor tool supports unpacking 'Ascend G7 L01'

I also dont know, what firmware i can flash for my mobile. Currently i have (G760-L01_V100R001C00B257CUSTC185D001_Firmware_Nonspecific%28Middle East%29_Channel-Others_Andriod 4.4.4_EMUI 3.0_05012QQE.zip) I dont care if some functionality goes down all i need is a phone up and running even with some bugs.

Please someone help me
[Huawei Ascend P6, Mate] divineBliss:
Try flashing cust.img from adb terminal prompt while in TWRP using dd command where cust.img is located at top level of your microSD card for following:

dd if=/external_sd/cust.img of=/dev/block/bootdevice/by-name/cust
[Huawei Ascend P6, Mate] sujinsmailbox:
ADB terminal prompts are not working sadly . Only fastboot commands are working with my mobile. Currently i flashed the stock recovery and tried to flash with the update.app file and volume +,- and power button. but no luck :(.

I will try flashing twrp recovery again and give the command as as you stated and reply here with the results.
[Huawei Ascend P6, Mate] divineBliss:
You can run TWRP from fastboot:

"fastboot boot TWRP.img"

Where TWRP. img is in your same directory on PC that you are running fastboot from. Phone should reboot to TWRP itself.

Just an option so you don't have to flash it.

Once in TWRP, go to the Terminal option within TWRP and also try "adb devices" from your PC to try flashing cust.img.
[Huawei Ascend P6, Mate] sujinsmailbox:
I provided the command (dd if=/external_sd/cust.img of=/dev/block/bootdevice/by-name/cust) and it was success :)

After to that i flashed system.img using fastboot and rebooted the mobile.But still it stops in the huawei logo.

I extracted the upate.app file using update extractor (without a profile selected in the tool) and just flashed recovery,cust and system.

Is there anything else i need to try ?

Dont know how to proceed with :(
[Huawei Ascend P6, Mate] tileeq:
Try going to recovery from fastboot. If its succesfull you can try flashing stock rom.

Sent from my SM-G850F
[Huawei Ascend P6, Mate] sujinsmailbox:
Im able to connect via fastboot and "fastboot reboot-bootloader" command opens up a white screen as rescue mode.

The update.app file is not flashing with volume+,- and power button combo. The huawei extractor does not have a profile for Ascend G7 L01 so, unable to extract that as seperate image files.

The cyanogen mod frimwares are throwing errors when tried in TWRP
[Huawei Ascend P6, Mate] tileeq:
So the only solution i can think of is that you find a stock recovery image and flash it through fastboot. That may be the only way you can get back to working phone. Ask someone to make a backup of the stock recovery with rashr or flashify. Need root for that.

Sent from my SM-G850F
[Huawei Ascend P6, Mate] tkalfaoglu:
If you google for that renamer tool, you can find it; in the shape of a batch file, but it fails to work, with FINDSTR line too long errors.. :(
[Huawei Ascend P6, Mate] sujinsmailbox:
I got the stock rom from huawei website. For flashing it via fastboot, I'm unable to extract the image files using huawei extractor ( It does not have a profile for G7 L01).

It would be helpfull if someone could add Ascend G7 L01 profile in the huawei extractor.
[Huawei Ascend P6, Mate] tileeq:
Try the general profile (or whatever was the name), maybe it will extract it even without proper profile.

Sent from my SM-G850F
[Huawei Ascend P6, Mate] Sladenky:
I made a profile for Honor 5C (NEM-AL10).

<Profile name="Huawei Honor 5C (NEM-AL10)" author="Peter I.">
<File type="crc">CRC.img</File>
<File type="curver">CURVER.img</File>
<File type="EFI">EFI.img</File>
<File type="sha256rsa">SHA256RSA.img</File>
<File type="verlist">VERLIST.img</File>
<File type="XLOADER">XLOADER.IMG</File>
<File type="boot" partition="/dev/block/mmcblk0p28">BOOT.img</File>
<File type="cache" partition="/dev/block/mmcblk0p36">CACHE.img</File>
<File type="cust" partition="/dev/block/mmcblk0p41">CUST.img</File>
<File type="dts" partition="/dev/block/mmcblk0p30">DTS.img</File>
<File type="fastboot" partition="/dev/block/mmcblk0p5">FASTBOOT.img</File>
<File type="fw_hifi" partition="/dev/block/mmcblk0p27">FW_HIFI.img</File>
<File type="fw_lpm3" partition="/dev/block/mmcblk0p3">FW_LPM3.img</File>
<File type="modemnvm_update" partition="/dev/block/mmcblk0p21">MODEMNVM_UPDATE.img</File>
<File type="modem_fw" partition="/dev/block/mmcblk0p31">MODEM_FW.img</File>
<File type="recovery" partition="/dev/block/mmcblk0p29">RECOVERY.img</File>
<File type="recovery2" partition="/dev/block/mmcblk0p22">RECOVERY2.img</File>
<File type="sensorhub" partition="/dev/block/mmcblk0p26">SENSORHUB.img</File>
<File type="system" partition="/dev/block/mmcblk0p40">SYSTEM.img</File>
<File type="teeos" partition="/dev/block/mmcblk0p24">TEEOS.img</File>
<File type="trustfirmware" partition="/dev/block/mmcblk0p25">TRUSTFIRMWARE.img</File>
<File type="userdata" partition="/dev/block/mmcblk0p42">USERDATA.img</File>
</Profile>
[Huawei Ascend P6, Mate] sunstarmobiles:
huawei p8 lite ale-l21 rebooting problem

huawei p8 lite ale-l21

problem is continusly rebooting not detect fastboot & recovery boot also

how do i solve this problem now ?
[Huawei Ascend P6, Mate] ali2272:
extact

I can't find model of my mobile in profile!

what can I do for extract ? can I choose another model like G610-U20?

my mob is (G610-U20)
[Huawei Ascend P6, Mate] DarkestofHeart:
please help!

Hi

I own an honor 6 and last day i acscidently wiped system files in twrp recovery so tried to fix it by flashing the system image in fastboot mode but it didnt work and the error " cannot allocate system" showed up

so thn i tried to make a zip flashble file of the whole update.app extracted files but (Honestly dont know how i did this O_O) made a zip with honor 5c profile and suprisingly it DID update propperly but after i rebooted the device only the battery logo showed up and i couldnt enter recovery mode (after flashing the original recovery tho). nothing except fastboot. i cant erase or format since its not allowed. i think what has happened to the device is that it has stared to woork like an honor 5c so please, please guys if anyone can help me here will have my most thanks