Rooted MHA-L29C567B183 Flashable - Huawei Mate 9 Questions & Answers

Is there anyway to flash a full ROM already rooted older version for this model?
This would remove the step to return to factory initial condition to take the upgrade? (I know the device is young, but some established phones this is the way to do it if bootloader and modem is up to date) so the first question is possible to create such a ROM and post?

You could use https://forum.xda-developers.com/android/help/extract-dat-marshmallow-lollipop-easily-t3334117
extract system.img from update.app, unpack system.img using Imgextractor.exe.
Unpack boot.img from update.app.
Extract boot.img using Android Image Kitchen.
Preroot ramdisk.
Make a flashable zip from extracted system.img and boot.img. Set up permissions, copy files..., etc in updater-script. Make the script flash boot.img.
Done. (In theory, I've not built a rom for any Huawei device yet.)
But to answer your question: Yes.
Just look at the KangVIP roms over in Development. You could just build a stock rom with root.
Edit: Imgextractor actually saves permissions to a file.
Edit 2: You could just flash the newer boot.img in TWRP and root it there, then extract boot image using dd and include that in your rom.
OR use su in /system/bin/
Edit 3: Any rom makers here? Would VENDOR and PRODUCT need to be extracted and flashed as well? (Assuming you're on a pre B183 C567 stock rom)
Nevermind, system.img is unextractable :/
Or the tool I use is not compatible with android N.

That would be awesome I'm stuck on c636 and have no way of going to c567 without paying.

Your headed in a direction, lots of us owners have been waiting for...
Sent from my MHA-L29 using Tapatalk

Benefits of 567 over 636?

Related

[Q] Create Flashable zip from Stock ASUS .zip ?

Can anyone link me to a guide or explain here how to convert an ASUS Stock .zip ROM to a Flashable zip that can be flashed in recovery ?
I managed to get my hands on the final Stock Honeycomb 8.6.5.21 ROM ASUS released before moving over to ICS and want to create a flashable .zip so I can flash it in recovery like any other custom ROM
Thanks
*Detection* said:
Can anyone link me to a guide or explain here how to convert an ASUS Stock .zip ROM to a Flashable zip that can be flashed in recovery ?
I managed to get my hands on the final Stock Honeycomb 8.6.5.21 ROM ASUS released before moving over to ICS and want to create a flashable .zip so I can flash it in recovery like any other custom ROM
Thanks
Click to expand...
Click to collapse
No, you cant. But you can take your /system (ROM) files and compress it as .tar file from the Terminal Emulator. You need know how to make an updater-script to make the zip file flashable from custom recovery. Try to use the Android Kitchen
TheMrcool212 said:
No, you cant. But you can take your /system (ROM) files and compress it as .tar file from the Terminal Emulator. You need know how to make an updater-script to make the zip file flashable from custom recovery. Try to use the Android Kitchen
Click to expand...
Click to collapse
It's packed as a blob so not as easy as extracting it I suppose, I've read a little about extracting blob files but never tried it
Thanks for the info, I`ll leave the link to it here if anyone fancies giving it a shot
http://www.portableandroid.co.uk/androidDL/WW_epad-user-8.6.5.21.zip
One way is to extract the blob from the zip ( which is actually a zip within a zip ) and write it to disk from a terminal I'm assuming you are rooted as you mention having CWM . The command off the top of my head is: dd if=/pathtoyourblobfile of=/dev/block/mmcblk0p4. It will take a few minutes to complete, bear in mind you will be back to stock, I.e. no CWM and you will lose root. HTH.
pkfox said:
One way is to extract the blob from the zip ( which is actually a zip within a zip ) and write it to disk from a terminal I'm assuming you are rooted as you mention having CWM . The command off the top of my head is: dd if=/pathtoyourblobfile of=/dev/block/mmcblk0p4. It will take a few minutes to complete, bear in mind you will be back to stock, I.e. no CWM and you will lose root. HTH.
Click to expand...
Click to collapse
That's why I wanted a flashble zip, so I don't return to stock and can easily flash back to 4.2.2 when I'm done playing
Cheers though
What I did was backup 4.2.2, then flash stock (recovery and ROM).
Then I rooted and installed TWRP using Wolf's method 3.
Made a stock backup in TWRP.
Then I can restore to stock, and when I'm done I can restore back to 4.2.2
You can take your ROM files by doing these commands in the Terminal Emulator.
Code:
su
tar -c system/* >> sdcard/system.tar
And wait for few minutes and a file named system.tar will appear in /sdcard. You can take the file from your computer and use the android kitchen to make the /system file flashable in custom recovery. You can find the tutorial (Here)
frederuco said:
What I did was backup 4.2.2, then flash stock (recovery and ROM).
Then I rooted and installed TWRP using Wolf's method 3.
Made a stock backup in TWRP.
Then I can restore to stock, and when I'm done I can restore back to 4.2.2
Click to expand...
Click to collapse
Good idea, so does the TF see the HC update zip and just allow you to flash as if it was an OTA, even from JB or did you need to flash it a different way ?
TheMrcool212 said:
You can take your ROM files by doing these commands in the Terminal Emulator.
Code:
su
tar -c system/* >> sdcard/system.tar
And wait for few minutes and a file named system.tar will appear in /sdcard. You can take the file from your computer and use the android kitchen to make the /system file flashable in custom recovery. You can find the tutorial (Here)
Click to expand...
Click to collapse
Great thanks, I`ll take a look at that method too cheers
*Detection* said:
Good idea, so does the TF see the HC update zip and just allow you to flash as if it was an OTA, even from JB or did you need to flash it a different way ?
Click to expand...
Click to collapse
I flashed the last ICS firmware (unzip once) from TWRP. Should work the same from HC.
Then install TWRP using ADB or APX. Root if you want (flash SuperUser.zip) and make a nandroid.
frederuco said:
I flashed the last ICS firmware (unzip once) from TWRP. Should work the same from HC.
Then install TWRP using ADB or APX. Root if you want (flash SuperUser.zip) and make a nandroid.
Click to expand...
Click to collapse
Ah so the stock zips are already flashable from TWRP, shame theres not a simple way to add TWRP to the stock zip

need some root files

hi @ante0
after a week of using oreo,i've downgraded to C185B187.
oreo has some issues like draining battery,weird "undetected root" error after installing busybox in /system/xbin (u have to make a new folder in system first,then install busybox) and over heating even when the phone is in charge and fully charged already...
now i need those root files that u gave me before for b182 !:laugh:
Need a boot image (and can u explain what this image does? )
(also how to make one )
and SuperSU-v2.82-SR5
SuperSU 2.82 SR5 if you decrypt: https://download.chainfire.eu/1220/SuperSU/SR5-SuperSU-v2.82-SR5-20171001224502.zip
SuperSU 2.82 SR5 if you stay encrypted: https://mega.nz/#!ZTBQXZra!JHUocH9oMEApULxfLYm9VO5UPhjHNMGLymkXDY_ihhI
Boot MHA-L29C185B187: https://mega.nz/#!IL4gxCaL!_O0B1rm-eys5Ta8CnD5BfXsyLTGM3RXdtZ09v7kWUk4
Or you could just make a backup of your current boot image using TWRP.
If you want to do it yourself in the future:
Download your current firmware from http://pro-teammt.ru/firmware-database/
Extract update.app from downloaded update.zip, download Huawei Update Extractor (https://forum.xda-developers.com/showthread.php?t=2433454)
Open update.app in Huawei Update Extractor, rightclick on what you want to extract and select "Extract Selected".
This image can only be flashed using fastboot (at least when I extract it). You can unpack and repack using Android Image Kitchen to make a TWRP flashable image.
What boot is... It's the ramdisk and kernel.
Read more here: https://www.linux.com/learn/kernel-newbie-corner-initrd-and-initramfs-whats
Basically it tells your phone how to boot xD
ante0 said:
SuperSU 2.82 SR5 if you decrypt: https://download.chainfire.eu/1220/SuperSU/SR5-SuperSU-v2.82-SR5-20171001224502.zip
SuperSU 2.82 SR5 if you stay encrypted: https://mega.nz/#!ZTBQXZra!JHUocH9oMEApULxfLYm9VO5UPhjHNMGLymkXDY_ihhI
Boot MHA-L29C185B187: https://mega.nz/#!IL4gxCaL!_O0B1rm-eys5Ta8CnD5BfXsyLTGM3RXdtZ09v7kWUk4
Or you could just make a backup of your current boot image using TWRP.
If you want to do it yourself in the future:
Download your current firmware from http://pro-teammt.ru/firmware-database/
Extract update.app from downloaded update.zip, download Huawei Update Extractor (https://forum.xda-developers.com/showthread.php?t=2433454)
Open update.app in Huawei Update Extractor, rightclick on what you want to extract and select "Extract Selected".
This image can only be flashed using fastboot (at least when I extract it). You can unpack and repack using Android Image Kitchen to make a TWRP flashable image.
What boot is... It's the ramdisk and kernel.
Read more here: https://www.linux.com/learn/kernel-newbie-corner-initrd-and-initramfs-whats
Basically it tells your phone how to boot xD
Click to expand...
Click to collapse
so u did not modify this boot image,am i right ?
i thought u modify this boot images to make the SuperSu works -.-
and did u modify SuperSu package ?
ezraiil1 said:
so u did not modify this boot image,am i right ?
i thought u modify this boot images to make the SuperSu works -.-
and did u modify SuperSu package ?
Click to expand...
Click to collapse
It's just stock boot. SuperSU works fine with it when you're on B182+.
It's only useful if you want to flash back stock boot, to maybe switch to Magisk or if SuperSU doesn't want to update.
I did modify the SuperSU "for_encrypted", I just changed "KEEPENCRYPTED=false" to "true". It just tells the installer to not remove the encryption tag so it stays encrypted.
Edit: one reason to modify boot is to "pre-root", but it's not needed for Mate 9. Another is to remove encryption or verity manually.

How to create a pre-rooted stock rom?

Hello,
I have a phone that I would like to root, unfortunately the bootloader is locked. There are some pre-rooted stock roms around that you could flash using fastboot without unlocking the bootloader. Unfortunately the latest version of the firmware is not available in pre-rooted form.
I downloaded the lastest official firmware (an update.zip package) from the website of the manufacturer and installed it on my phone using the stock recovery. Now the only thing that I need to do is modify the system image and flash it back in the phone.
I converted the system.new.dat file that was included inside the zip package into a raw image that I can easily mount and modify from my computer (I use Debian Jessie). How could I modify the system image to include the su binary and a Superuser up (SuperSu, or equivalent) and convert it into a format that I can flash using fastboot?
I'm running Android 6.0.1 with SELinux set to enforce. The device is an Asus Zenfone 2 Laser ZE550KL. I've posted here because the process of modding a stock rom should be almost doable regardless of the phone manufacturer

Need boot.img FRD-L09 B404

Hello everyone.
I unlocked a bootloader in my freshly bought Honor 8 last week and I the first thing I did was to flash a root package (obviously). I'm used to SuperSU, so tha's what I flashed. Then I found out about Magisk. I want to try it, but I need to flash stock boot.img in order to install it. My build number is FRD-L09C432B404 (EMUI 5.0, Android 7.0). Could anyone upload corresponding boot img? I'd be thankful.
Do it yourself! ^^
Wagierek said:
Hello everyone.
I unlocked a bootloader in my freshly bought Honor 8 last week and I the first thing I did was to flash a root package (obviously). I'm used to SuperSU, so tha's what I flashed. Then I found out about Magisk. I want to try it, but I need to flash stock boot.img in order to install it. My build number is FRD-L09C432B404 (EMUI 5.0, Android 7.0). Could anyone upload corresponding boot img? I'd be thankful.
Click to expand...
Click to collapse
Hello!
You can do it yourself, just follow these steps:
1) Download your firmware (update.zip) from hicloud url: update.zip
2) Extract zip
3) Download "Huawei Update Extractor 0.9.9.5" (zip file): HuaweiUpdateExtractor_0.9.9.5.zip
4) Extract zip
5) Open "HuaweiUpdateExtractor.exe" extracted from previous step
6) Click on the 2 dots button and navigate to the file to add the "UPDATE.APP" file ( extracted from step 2) ), it will show you all the files like boot.img , recovery.img , recovery2.img , system.img , etc.
7) Select "BOOT.img" and right-click > "Extract Selected". Choose this destination folder: Where fastboot/adb are installed.
8) Use fastboot command to flash "BOOT.img":
Code:
fastboot flash boot BOOT.img
Hope it helps you!
I'd rather not download 1.3GB of firmware for the sake of one small boot.img which can't be bigger than 50MBs, not to mention additional software I'll use probably never again, so I'd be thankful if someone sent already extracted boot
Wagierek said:
I'd rather not download 1.3GB of firmware for the sake of one small boot.img which can't be bigger than 50MBs, not to mention additional software I'll use probably never again, so I'd be thankful if someone sent already extracted boot
Click to expand...
Click to collapse
BOOT.img file from FRD-L09C432B404 firmware: Google Drive or MEGA
( Because I have nothing more important to do tonight lol )
Thanks for your support. I had to extract it anyways for stock recovery, so here it is in case someone needed it.
https://drive.google.com/file/d/1ILYXoUvKMSsb8uLmSY2pIMvFWeBJ--9X/view?usp=sharing

Question I need to go back to stock kernel

Anyone have vendor_boot, dtbo and boot.img from 11.2.9.9 le25aa ?. Install a custom kernel and I need to go back to stock
Just use oxygen updtaer to download full zip and do a local install. Flash magisk to alternate partition and reboot.
gorilla p said:
Just use oxygen updtaer to download full zip and do a local install. Flash magisk to alternate partition and reboot.
Click to expand...
Click to collapse
Install the Arter kernel. And now I get an error when I want to update that way. So I need to go back to stock rom.
Do you know any way to do that?
Partigiano0105 said:
Install the Arter kernel. And now I get an error when I want to update that way. So I need to go back to stock rom.
Do you know any way to do that?
Click to expand...
Click to collapse
Shouldn't be flashing a kernel without proper backups first. You need stock untouched boot.img and vendor_boot
mattie_49 said:
Shouldn't be flashing a kernel without proper backups first. You need stock untouched boot.img and vendor_boot
Click to expand...
Click to collapse
how can I do that?
You can download the zip file containing th full update of your version in a thread here, them using the payload dumper tool you extract all img files inside
I don't know how to edit so more details about this process:
1. Go to sticked thread Repo of oos builds
2. Download the zip file of the firmware you are using
3. Download the payload dumper here: https://androidfilehost.com/?fid=818070582850510260
4. Once extracted extract the payload.bin from firmware zip into payload_input directory
5. Launch payload_dumper.exe
6. Process take few minutes depending on your computer, result img files are stored in payload_output directory
7. Have fun with your img file

Categories

Resources