[Guide] Mate 9 Flash Nougat Update Package and Rebrand

Search This thread

Oriqinalturk

New member
Dec 16, 2017
1
0
Is it reliable for p10 plus?

Does this method re-brand the p10 plus phone? I want to make sure that there will not be bricks. If you are experienced, please come back.
 

012345678

Senior Member
May 25, 2017
145
77
Deep Inside Hell
Xiaomi Mi 11 Ultra
I'm not sure if HCU-Client works. Becouse it didn't seem to me professional. Firmware Finder Rewrite - installing from PC is better way. If you try to install firmware via android apk you probably won't be able to install.

---------- Post added at 08:46 AM ---------- Previous post was at 08:37 AM ----------

For me still there is no solution about downgrading Oreo Beta to Nougat M9 Pro. I am waiting for official relase of Oreo. I won't be able to use my phone until official relase. When it apperas probably there will be more tools and alternatives will exist. But for now there is no developer doing a downgrade package for M9 Pro.
I even searched Chinese webpages and downloaded their eRecovery Brush kits but none of them works. What a pity.

With HCU you can edit IMEI , edit all values for that phone. It will create new keys.
 
  • Like
Reactions: livevalue

livevalue

Senior Member
Steps:
  • Prepare and Notice
    A. Backup data, it might be restore factory default setting especially using downgrade ROM version.
    B. Unlock bootloader before apply manual update, the manual update package bypass auth through modified stock recovery.
    C. After update successfully, device might be locked again.
    D. Only tested China mate9 with MHA-AL00C00 and MHA-L29C636 ROM.
    E. The manual update script use TWRP (Thanks to @Tkkg1994, @OldDroid)

  • Download Update ZIP
    A. Get ROM update link through hwmt.ru. Click "filelist.xml".
    B. Observe "update.zip" size, choose more than 1GB file size FULL OTA from previous step. Example MHA-L29C636B158 filelist Link, all three update files and path are in the filelist.xml content.
    • update.zip: Change URL last "filelist.xml" to "update.zip" download file.
    • update_data_public.zip: Change URL last "filelist.xml" to "public/update_data_full_public.zip" download file, and rename it to "update_data_public.zip"
    • update_all_hw.zip: Change URL last "filelist.xml" to "hw/spcseas/update_full_hw_spcseas.zip" download file, and rename it to "update_all_hw.zip"
    C. Observe "update.zip" size, choose more than 1GB file size FULL OTA from previous step. Example MHA-AL00C00B167 filelist Link, , all three update files and path are in the filelist.xml content.
    • update.zip: Change URL last "filelist.xml" to "update.zip" download file.
    • update_data_public.zip: Change URL last "filelist.xml" to "public/update_data_full_public.zip" download file, and rename it to "update_data_public.zip"
    • update_all_hw.zip: Change URL last "filelist.xml" to "all/cn/update_full_all_cn.zip" download file, and rename it to "update_all_hw.zip"


@mankindtw How to install your oeminfo.bin files in another platform? Or can we use these oeminfo.bin files in TWRP?
I'm asking because the other files in oeminfo library discussion oeminfo files are not properly work. Firmware installation process always stops at %5. Pleasehelp and a little bit urgent.
 

ante0

Senior Member
Dec 28, 2009
3,214
1,581
Stockholm
@mankindtw How to install your oeminfo.bin files in another platform? Or can we use these oeminfo.bin files in TWRP?
I'm asking because the other files in oeminfo library discussion oeminfo files are not properly work. Firmware installation process always stops at %5. Pleasehelp and a little bit urgent.

Iirc OEMINFO does change between Nougat and oreo. So you'd have to get oeminfo for the model you want to rebrand to from someone with oreo

I'm guessing the link extensions changed because I'm trying to download the 3 files to rebrand to C636 but I'm only able to download the update.zip file. I keep getting error when trying to download the other 2 files. Can anybody help me and tell me how what I am actually supposed write instead of the filelist.xml file? TIA

I'm sure you have fixed it already, but go to this link
http://pro-teammt.ru/firmware-database/
and search for it instead. Click on filelist and you get a box with 3 links.

Or download through Firmware Finder directly on your phone.
 
Last edited:

repoman728

Senior Member
May 29, 2016
54
1
rhanks a lot for the guide , I have rebranded from c185 to c432 and rooted and everything looks normal
reg
 

PhillipDSX

Member
Jul 4, 2014
31
8
@mankindtw, I have backed up my OEMINFO with TWRP and it ended up as a file called "oeminfo.emmc.win". How can I turn it into a .BIN file, or can I just change the name and extension and that's it?

It would be great if anyone else can help me, as well.
 

osk4rin

Senior Member
Sep 7, 2015
652
120
San Diego
Samsung Galaxy S21 FE
Hello developer, everyone!
I have an issue trying to update package ,I got this error on the command :

Use Vol-Dn + USB Cable to boot into fastboot mode.
Press ENTER key to continue...


Replace recovery to TWRP, please wait...
target reported max download size of 471859200 bytes
sending 'recovery' (20702 KB)...
OKAY [ 0.460s]
writing 'recovery'...
FAILED (remote: Command not allowed)
finished. total time: 0.486s

what am I doing wrong?
 

McWraith

New member
Jan 8, 2018
4
0
Is there a way to adapt the HWOTA to EMUI 8?
I have a Huawei P10. It was running VTR-L09C02B159. I've rooted it and flashed with the Oreo B311 but I've done it incorrectly, and probably due to not rebranding it, ended up with Android 8.0.0.046(01BN), with some features not working.

I was wondering, can I rebrand to it B432 and potentially rollback for now?
I tried Firmware finder but the rollback firmwares aren't authorised for my device.
 
Jun 29, 2017
44
8
i did what u do (removed .zip) but still same problem
BTW now am on l29c636b158 and i downloaded b181
what should i do plz ?

Be careful, sometimes you may have file name ends with ".zip.zip", which means you have too many ".zip" in your file name. I carefully checked the three zip files, and I found one of them, when I renamed it, paste one more ".zip" in the file name, that caused the problem. After I corrected it everything went well. Good luck!
 
  • Like
Reactions: 3mmar3d

camp04

Member
Jan 9, 2018
16
2
ERROR: 9

Hi guys, I know its Mate 9 forum, but I really could use some help and maybe here are others too with some answers.

First a couple of info:
I have the P10 VTR-L09C432B179 and I would like to use the 2nd SIMcard slot so start to update it to L29C432B179.
First I was stucked with the script several times so decided to do this step:

STEP 3 (Optional Update Method 1)
If you have already unlocked your bootloader und installed TWRP, you can also use this method to install the new system update:

1. Make a complete backup of your current system via twrp and save the backup to sd or your pc.
2. Download one of the Huawei P10_HWOTA files from above, save it on your device and unzip it
3. Navigate to the update folder in the HWOTA-folder and copy the 3 files to your device (sdcard recommended)
4. Now Boot your device into TWRP
5. In TWRP flash "update.zip" and don´t reboot!!!
6. Flash "update_all_hw.zip" and don´t reboot!!!
7. Flash "update_data_public.zip"
6. Wait until all files are flashed
7. Done! Reboot TWRP

Sadly I am stucked here to at step 5. Till there I did everything as it says.
I have unlocked the bootloader, have TWRP installed and copied the complett HWOTA folder with the 3 zips (HWOTA/update/update.zip, update_all_hw.zip, update_data_public.zip).
Now when I try to flash update.zip or update_all_hw.zip in TWRP I receive and ERROR: 9 message.
If I flash the update_data_public.zip it seems to be good to me and TWRP says "Success".

from the logs:
"script aborted: update_huawei_pkg_from_ota_zip: update package from zip failed
check_write_data_to_partition,write data error
update_huawei_pkg_from_ota_zip: update package from zip failed
Func: hw_create_verify_and_update_thread, Line: 463, result = 9.
Func: main, Line: 439, result = 9, verify failed.
open nv file error
read nv VMODE failed, retNv = -1
set verift mode as logging failed.
E:unknown command [errno]
Updater process ended with ERROR: 9
I:Legacy property environment disabled.
I:Install took 0 second(s).
Error installing zip file '/external_sd/HWOTA/update/update.zip'
Updating partition details...
I:Data backup size is 888MB, free: 51959MB.
I:Can't probe device /dev/block/sda
I:Unable to mount '/usbotg'
I:Actual block device: '/dev/block/sda', current file system: 'auto'
...done"


Thank you in advance for any help.
More from logs here:
Updater process ended with ERROR: 9
I:Legacy property environment disabled.
I:Install took 23 second(s).
Error installing zip file '/external_sd/HWOTA/update/update_all_hw.zip'
Updating partition details...
I:Data backup size is 1918MB, free: 50925MB.
I:Can't probe device /dev/block/sda
I:Unable to mount '/usbotg'
I:Actual block device: '/dev/block/sda', current file system: 'auto'
...done
I:Set page: 'flash_done'
I:eek:peration_end - status=1
I:Set page: 'clear_vars'
I:Set page: 'install'
I:Set page: 'flash_confirm'
I:Set page: 'flash_zip'
I:eek:peration_start: 'Flashing'
E:[MTP] request read returned -1, errno: 5, exiting MtpServer::run loop
Installing zip file '/external_sd/HWOTA/update/update_data_public.zip'
Checking for MD5 file...
Skipping MD5 check: no MD5 file found
I:Update binary zip
I:Zip does not contain SELinux file_contexts file in its root.
I:Legacy property environment initialized.
[2018-01-10 10:48:00 130] failed to read /etc/recovery.fstab
[2018-01-10 10:48:00 131] unknown volume for path [/data]
mount data failed, error: No such file or directory.
/data/hota_pkg_stat is not exist.
This is the first or the last hota package, no need to unlink it in update-binary
there is no file cust.new.dat in package.
there is no file cust.patch.dat in package.
there is no file system.new.dat in package.
there is no file system.patch.dat in package.
there is no file product.new.dat in package.
there is no file product.patch.dat in package.
there is no file vendor.new.dat in package.
there is no file vendor.patch.dat in package.
there is no file:full_mainpkg.tag in package,it's diff mainpkgthere is no file UPDATE.APP in package.
ext4_percent = 0.000000.
there is no file cust.transfer.list in package.
there is no file system.transfer.list in package.
there is no file product.transfer.list in package.
there is no file vendor.transfer.list in package.
total_blks = 0.
[2018-01-10 10:48:00 131] unknown volume for path [/data]
mount data partition fail!
File META-INF/com/google/android/pre-script is not exist in package.
script = META-INF/com/google/android/verify-script, script_count = 1.
[2018-01-10 10:48:00 131] unknown volume for path [/data]
mountencrypt: failed to mount /data: Success
mountencrypt: failed to mount /data: Success
File META-INF/com/google/android/mid-script is not exist in package.
script succeeded: result was []script = META-INF/com/google/android/updater-script, script_count = 1.
Verifying current userdata...
Removing unneeded files...
Patching userdata files...
Removing empty directorys...
Unpacking data new files...
I:[MTP] MtpServer::run fd: 17
add link type file...
script succeeded: result was []File META-INF/com/google/android/post-script is not exist in package.
I:Updater process ended with RC=0
I:Legacy property environment disabled.
I:Install took 6 second(s).
Updating partition details...
I:Data backup size is 888MB, free: 51959MB.
I:Can't probe device /dev/block/sda
I:Unable to mount '/usbotg'
I:Actual block device: '/dev/block/sda', current file system: 'auto'
...done
I:Set page: 'flash_done'
I:eek:peration_end - status=0
E:[MTP] request read returned -1, errno: 5, exiting MtpServer::run loop
I:[MTP] MtpServer::run fd: 17
I:Set page: 'clear_vars'
I:Set page: 'install'
I:Set page: 'flash_confirm'
I:Set page: 'flash_zip'
I:eek:peration_start: 'Flashing'
Installing zip file '/external_sd/HWOTA/update/update.zip'
Checking for MD5 file...
Skipping MD5 check: no MD5 file found
I:Update binary zip
I:Zip does not contain SELinux file_contexts file in its root.
I:Legacy property environment initialized.
[2018-01-10 10:48:36 803] failed to read /etc/recovery.fstab
[2018-01-10 10:48:36 803] unknown volume for path [/data]
mount data failed, error: No such file or directory.
/data/hota_pkg_stat is not exist.
This is the first or the last hota package, no need to unlink it in update-binary
there is no file cust.new.dat in package.
there is no file cust.patch.dat in package.
there is no file system.new.dat in package.
there is no file system.patch.dat in package.
there is no file product.new.dat in package.
there is no file product.patch.dat in package.
there is no file vendor.new.dat in package.
there is no file vendor.patch.dat in package.
[2018-01-10 10:48:36 803] unknown volume for path [/data]
mount data partition fail!
File META-INF/com/google/android/pre-script is not exist in package.
script = META-INF/com/google/android/verify-script, script_count = 1.
set zip_file_size = 4294967295.
[2018-01-10 10:48:36 804] failed to read /etc/recovery.fstab
[2018-01-10 10:48:36 804] get_partition_info,line=1350: begin
[2018-01-10 10:48:36 804] get_lun_nums,line=445: ufs node name:/dev/block/sda
[2018-01-10 10:48:36 804] is_file_exist,line=1188: /dev/block/sda is exist
[2018-01-10 10:48:36 806] partition_verify_mbr_signature,line=397: MBR signature does not match.
[2018-01-10 10:48:36 806] mmc_boot_read_mbr,line=573: partition_verify_mbr_signature failure
[2018-01-10 10:48:36 806] get_lun_nums,line=445: ufs node name:/dev/block/sdb
[2018-01-10 10:48:36 806] is_file_exist,line=1188: /dev/block/sdb is exist
[2018-01-10 10:48:36 806] partition_verify_mbr_signature,line=397: MBR signature does not match.
[2018-01-10 10:48:36 806] mmc_boot_read_mbr,line=573: partition_verify_mbr_signature failure
[2018-01-10 10:48:36 806] get_lun_nums,line=445: ufs node name:/dev/block/sdc
[2018-01-10 10:48:36 806] is_file_exist,line=1188: /dev/block/sdc is exist
[2018-01-10 10:48:36 806] mmc_boot_read_mbr,line=590: (dtype == MBR_PROTECTED_TYPE),gpt_partition_exist
[2018-01-10 10:48:36 806] mmc_get_device_capacity,line=883: buff = 16384
, Length = 6
[2018-01-10 10:48:36 806] mmc_get_device_capacity,line=885: sector = 0x00004000
[2018-01-10 10:48:36 806] mmc_get_device_capacity,line=887: emmc_capacity = 0x800000
[2018-01-10 10:48:36 806] mmc_get_device_blocksize,line=270: ufs_node:/dev/block/sdc
[2018-01-10 10:48:36 806] mmc_get_device_capacity,line=883: buff = 16384
, Length = 6
[2018-01-10 10:48:36 806] mmc_get_device_capacity,line=885: sector = 0x00004000
[2018-01-10 10:48:36 806] mmc_get_device_capacity,line=887: emmc_capacity = 0x800000
[2018-01-10 10:48:36 807] get_lun_nums,line=445: ufs node name:/dev/block/sdd
[2018-01-10 10:48:36 807] is_file_exist,line=1188: /dev/block/sdd is exist
[2018-01-10 10:48:36 807] mmc_boot_read_mbr,line=590: (dtype == MBR_PROTECTED_TYPE),gpt_partition_exist
[2018-01-10 10:48:36 807] mmc_get_device_capacity,line=883: buff = 124928000
, Length = 10
[2018-01-10 10:48:36 807] mmc_get_device_capacity,line=885: sector = 0x07724000
[2018-01-10 10:48:36 807] mmc_get_device_capacity,line=887: emmc_capacity = 0xee4800000
[2018-01-10 10:48:36 807] mmc_get_device_blocksize,line=270: ufs_node:/dev/block/sdd
[2018-01-10 10:48:36 807] mmc_get_device_capacity,line=883: buff = 124928000
, Length = 10
[2018-01-10 10:48:36 807] mmc_get_device_capacity,line=885: sector = 0x07724000
[2018-01-10 10:48:36 807] mmc_get_device_capacity,line=887: emmc_capacity = 0xee4800000
[2018-01-10 10:48:36 807] parse_args,line=796: This phone is secureboot phone.
[2018-01-10 10:48:36 862] get_receiving_property_buf,line=218: oeminfo get OEMINFO_OEMSBL_VER_TYPE error
[2018-01-10 10:48:36 862] get_receiving_property_buf,line=225: oeminfo get OEMINFO_AMSS_VER_TYPE error
[2018-01-10 10:48:36 862] set_platform_type,line=262: curr_type:1
[2018-01-10 10:48:36 862] get_lun_nums,line=445: ufs node name:/dev/block/sde
[2018-01-10 10:48:36 862] is_file_exist,line=1193: /dev/block/sde not exist
[2018-01-10 10:48:36 862] ufs_ptable_init_to_ram,line=1684: init to ram OK
[2018-01-10 10:48:36 862] get_partition_info,line=1368: end
[2018-01-10 10:48:36 862] vrlinfo_init_to_ram,line=1191: Begin to initialize vrlinfo to ram
[2018-01-10 10:48:36 862] get_partition_vrlinfo_from_ram,line=1155: i=49, break
[2018-01-10 10:48:36 862] vrlinfo_init_to_ram,line=1193: Initialize vrlinfo to ram end
[2018-01-10 10:48:36 862] get_partition_info,line=1372: in common partition,Contains in source code:
.
.
.
[2018-01-10 10:48:36 876] crcmbn_post_write_func,line=1304: check Success : CRC
[2018-01-10 10:48:36 876] newapp_send_cmd_to_recovery,line=119: 0 == total_pkg!
[2018-01-10 10:48:36 876] get_update_type,line=2072: get cur_ptr_receiving_buf_property->update_type=2
[2018-01-10 10:48:36 876] get_update_type,line=2072: get cur_ptr_receiving_buf_property->update_type=2
[2018-01-10 10:48:36 876] void usb_ota_update_message(int, char *),line=737: update_mode = 2
skip data:2
module name:CURVER
[2018-01-10 10:48:36 876] cmd_unit_write_begin_func,line=625:
========Module name:CURVER,module ID:FFFFFFF0 ========
[2018-01-10 10:48:36 876] cmd_unit_write_begin_func,line=626: dwMagicNum :A55AAA55
[2018-01-10 10:48:36 876] cmd_unit_write_begin_func,line=627: szDispName :CURVER
[2018-01-10 10:48:36 876] cmd_unit_write_begin_func,line=628: UnlockCode :HW7x27ÿÿðÿÿÿ
[2018-01-10 10:48:36 876] cmd_unit_write_begin_func,line=629: dwDataStartAddr :0xFFFFFFF0
[2018-01-10 10:48:36 876] cmd_unit_write_begin_func,line=630: dwDataLen :0x00000018
[2018-01-10 10:48:36 876] cmd_unit_write_begin_func,line=631: dwBlockSize_hw :0x00
[2018-01-10 10:48:36 876] cmd_unit_write_begin_func,line=632: dwBlockSize :0x1000
[2018-01-10 10:48:36 876] get_part_property,line=2444: Finding: CURVER,0xfffffff0
[2018-01-10 10:48:36 876] get_part_property,line=2484: common table Find by Name : 0xfffffff0, CURVER
[2018-01-10 10:48:36 876] cmd_unit_write_begin_func,line=724: module_offset_in_emmc_or_nand : 0x00000000
[2018-01-10 10:48:36 876] one_write_pre_write_func,line=936: Pre Write CURVER ...
[2018-01-10 10:48:36 876] cmd_unit_write_post_func,line=796: cmd_unit_write_post_func()...
[2018-01-10 10:48:36 876] crc_mbn_check_32k,line=288: crc_mbn_offset = 0,crc0_length=297034
[2018-01-10 10:48:36 876] dload_vendor_country_info_get,line=1356: read vendor/country error!
[2018-01-10 10:48:36 876] curver_check_pkg_validate,line=1854: get vendor info failed.
[2018-01-10 10:48:36 876] curver_check_pkg_validate,line=1858: dataptr is:Victoria_Global_C999B000.
tmp_str is:DATA_.
[2018-01-10 10:48:36 876] curver_write_func,line=1902: this image ok
[2018-01-10 10:48:36 876] default_post_func_no_action,line=844: Attention:No Action!
skip data:0
module name:VERLIST
[2018-01-10 10:48:36 876] cmd_unit_write_begin_func,line=625:
========Module name:VERLIST,module ID:FFFFFFF1 ========
[2018-01-10 10:48:36 877] cmd_unit_write_begin_func,line=626: dwMagicNum :A55AAA55
[2018-01-10 10:48:36 877] cmd_unit_write_begin_func,line=627: szDispName :VERLIST
[2018-01-10 10:48:36 877] cmd_unit_write_begin_func,line=628: UnlockCode :HW7x27ÿÿñÿÿÿ.
[2018-01-10 10:48:36 877] cmd_unit_write_begin_func,line=629: dwDataStartAddr :0xFFFFFFF1
[2018-01-10 10:48:36 877] cmd_unit_write_begin_func,line=630: dwDataLen :0x0000002E
[2018-01-10 10:48:36 877] cmd_unit_write_begin_func,line=631: dwBlockSize_hw :0x00
[2018-01-10 10:48:36 877] cmd_unit_write_begin_func,line=632: dwBlockSize :0x1000
[2018-01-10 10:48:36 877] get_part_property,line=2444: Finding: VERLIST,0xfffffff1
[2018-01-10 10:48:36 877] get_part_property,line=2484: common table Find by Name : 0xfffffff1, VERLIST
[2018-01-10 10:48:36 877] cmd_unit_write_begin_func,line=724: module_offset_in_emmc_or_nand : 0x00000000
[2018-01-10 10:48:36 877] one_write_pre_write_func,line=936: Pre Write VERLIST ...
[2018-01-10 10:48:36 877] cmd_unit_write_post_func,line=796: cmd_unit_write_post_func()...
[2018-01-10 10:48:36 877] crc_mbn_check_32k,line=288: crc_mbn_offset = 2,crc0_length=297034
[2018-01-10 10:48:36 877] amss_version_list_write_func,line=1789: amss version list check Begin!
[2018-01-10 10:48:36 877] amss_version_list_write_func,line=1793: version checked ok
[2018-01-10 10:48:36 877] default_post_func_no_action,line=844: Attention:No Action!
skip data:2
module name:pACKAGE_TYPE
[2018-01-10 10:48:36 877] cmd_unit_write_begin_func,line=625:
========Module name:pACKAGE_TYPE,module ID:FFFFFFF2 ========
[2018-01-10 10:48:36 877] cmd_unit_write_begin_func,line=626: dwMagicNum :A55AAA55
[2018-01-10 10:48:36 877] cmd_unit_write_begin_func,line=627: szDispName :pACKAGE_TYPE
[2018-01-10 10:48:36 877] cmd_unit_write_begin_func,line=628: UnlockCode :HW7x27ÿÿòÿÿÿ
[2018-01-10 10:48:36 877] cmd_unit_write_begin_func,line=629: dwDataStartAddr :0xFFFFFFF2
[2018-01-10 10:48:36 877] cmd_unit_write_begin_func,line=630: dwDataLen :0x0000000E
[2018-01-10 10:48:36 877] cmd_unit_write_begin_func,line=631: dwBlockSize_hw :0x00
[2018-01-10 10:48:36 877] cmd_unit_write_begin_func,line=632: dwBlockSize :0x1000
[2018-01-10 10:48:36 877] get_part_property,line=2444: Finding: PACKAGE_TYPE,0xfffffff2
[2018-01-10 10:48:36 877] get_part_property,line=2484: common table Find by Name : 0xfffffff2, PACKAGE_TYPE
[2018-01-10 10:48:36 877] cmd_unit_write_begin_func,line=724: module_offset_in_emmc_or_nand : 0x00000000
[2018-01-10 10:48:36 877] one_write_pre_write_func,line=936: Pre Write PACKAGE_TYPE ...
[2018-01-10 10:48:36 877] cmd_unit_write_post_func,line=796: cmd_unit_write_post_func()...
[2018-01-10 10:48:36 877] crc_mbn_check_32k,line=288: crc_mbn_offset = 4,crc0_length=297034
[2018-01-10 10:48:36 877] package_type_write_func,line=1966: package type check Begin!
[2018-01-10 10:48:36 877] package_type_write_func,line=1974: package type online,need check
[2018-01-10 10:48:36 877] AuthErrCode getAuthResult(),line=74: update auth result failed[14]
[2018-01-10 10:48:36 877] package_type_write_func,line=1976: auth result is 14!
[2018-01-10 10:48:36 877] package_type_write_func,line=1979: package auth check fail!
[2018-01-10 10:48:36 877] check_write_data_to_partition,line=525: push SD_WRITE_FAIL_L4
[2018-01-10 10:48:36 877] cmd_unit_write_post_func,line=822: ERROR,write_func
[2018-01-10 10:48:36 877] update_from_zip_module_post,line=201: cmd_unit_write_begin_func failure
error:update_device_func,line:312, all_module_func[1]
minzip: Process function elected to fail (in inflate)
minzip: ### result: -1 vs pEntry->uncompLen: 4294967295, ignore...
[2018-01-10 10:48:36 877] all_data_32K_checked_ok,line=2536: ( cur_ptr_receiving_buf_property->crc_mbn_offset != cur_ptr_receiving_buf_property->rec_crc_length )
script aborted: update_huawei_pkg_from_ota_zip: update package from zip failed
check_write_data_to_partition,write data error
update_huawei_pkg_from_ota_zip: update package from zip failed
Func: hw_create_verify_and_update_thread, Line: 463, result = 9.
Func: main, Line: 439, result = 9, verify failed.
open nv file error
read nv VMODE failed, retNv = -1
set verift mode as logging failed.
E:unknown command [errno]
Updater process ended with ERROR: 9
I:Legacy property environment disabled.
I:Install took 0 second(s).
Error installing zip file '/external_sd/HWOTA/update/update.zip'
Updating partition details...
I:Data backup size is 888MB, free: 51959MB.
I:Can't probe device /dev/block/sda
I:Unable to mount '/usbotg'
I:Actual block device: '/dev/block/sda', current file system: 'auto'
...done
I:Set page: 'flash_done'
I:eek:peration_end - status=1
E:[MTP] request read returned -1, errno: 5, exiting MtpServer::run loop
I:[MTP] MtpServer::run fd: 17
I:Set page: 'clear_vars'
I:Set page: 'install'
I:Set page: 'main'
I:Set page: 'clear_vars'
I:Set page: 'main2'
I:Set page: 'advanced'
E:[MTP] request read returned -1, errno: 5, exiting MtpServer::run loop
I:[MTP] MtpServer::run fd: 17
I:Set page: 'copylog'
I:Set page: 'action_page'
I:eek:peration_start: 'Copy Log'
I:Copying file /tmp/recovery.log to /external_sd/recovery.log
 

niobium007

Member
Apr 21, 2010
14
0
Hello everyone .... How to get in Phone ID when the phone is blocked? I have a P10 VTR-L09 EU and a bootloader that is blocked!

thank you in advance
 

Top Liked Posts

  • There are no posts matching your filters.
  • 84
    Steps:
    • Prepare and Notice
      A. Backup data, it might be restore factory default setting especially using downgrade ROM version.
      B. Unlock bootloader before apply manual update, the manual update package bypass auth through modified stock recovery.
      C. After update successfully, device might be locked again.
      D. Only tested China mate9 with MHA-AL00C00 and MHA-L29C636 ROM.
      E. The manual update script use TWRP (Thanks to @Tkkg1994, @OldDroid)

    • Download Update ZIP
      A. Get ROM update link through hwmt.ru. Click "filelist.xml".
      B. Observe "update.zip" size, choose more than 1GB file size FULL OTA from previous step. Example MHA-L29C636B158 filelist Link, all three update files and path are in the filelist.xml content.
      • update.zip: Change URL last "filelist.xml" to "update.zip" download file.
      • update_data_public.zip: Change URL last "filelist.xml" to "public/update_data_full_public.zip" download file, and rename it to "update_data_public.zip"
      • update_all_hw.zip: Change URL last "filelist.xml" to "hw/spcseas/update_full_hw_spcseas.zip" download file, and rename it to "update_all_hw.zip"
      C. Observe "update.zip" size, choose more than 1GB file size FULL OTA from previous step. Example MHA-AL00C00B167 filelist Link, , all three update files and path are in the filelist.xml content.
      • update.zip: Change URL last "filelist.xml" to "update.zip" download file.
      • update_data_public.zip: Change URL last "filelist.xml" to "public/update_data_full_public.zip" download file, and rename it to "update_data_public.zip"
      • update_all_hw.zip: Change URL last "filelist.xml" to "all/cn/update_full_all_cn.zip" download file, and rename it to "update_all_hw.zip"

    17
    Add branch when phone has unlocked bootloader already.

    My instructions are for when bootloader is unlocked in the first place
    It asks for the bootloader unlock code because when you restore OEMINFO, the bootloader automatically gets locked. The only way to unlock is to use the unlock command again, let it reboot into TWRP, and then let TWRP reboot back into Bootloader.

    ---------- Post added at 06:10 PM ---------- Previous post was at 05:53 PM ----------

    Hi, what a great new!! All day messing around but tempted to try. Ye was right, I forget to rename, with your bat you have to do the same rename? Could you write a few lines with the OP, please? :eek: Thank you very much!!!

    Yes. You'd have to rename.

    EDIT: THE INSTRUCTIONS BELOW ARE FOR THE INITIAL OLD SCRIPT. THE NEW BATCH FILES ARE MORE USER-FRIENDLY SO YOU DO NOT HAVE TO FOLLOW THESE STEPS. JUST DOWNLOAD FROM OP AND FOLLOW STEPS FROM THERE.
    Here are details instructions on how to do the rebranding process. It doesn't take long but I wrote all the details so it looks long :p

    Requirements
    - Unlocked Bootloader
    - zip files for update, hw info, public data
    - oeminfo placed correctly in the TWRP Backups folder

    1) Create a directory in your EXTERNAL SDCard and name it "HWOTA"
    2) Copy update.zip, update_data_public.zip, and update_all_hw.zip files to the newly created "HWOTA" directory.
    *Note that you must rename the files to match the names mentioned.
    3) Open the batch file.
    4) It will ask you if you copied the files. Press any key to continue.
    5) Reboot into BOOTLOADER using "Vol-" + "Power" or just use "adb reboot bootloader" then press any key.
    6) TWRP will now be flashed into your device. DON'T use a different version of TWRP. So follow this step even if you already have TWRP installed.
    7) DISCONNECT USB Cable and use "Vol+" and "Power" to enter TWRP.
    8) Restore oeminfo using TWRP then press any key.
    9) Connect USB Cable then press any key.
    10) Restoring oeminfo causes the bootloader to get LOCKED again. Your device will now automatically reboot into bootloader to unlock it using the code you provided earlier.
    11) Your phone will ask you if you want to unlock. Navigate to YES using Vol+ and then press power.
    12) Your device will automatically reboot into TWRP. Press any key on the batch file and your device will be rebooted to bootloader again. (This is all part of the unlocking process.)
    13) Now you will see that your bootloader is unlocked. DISCONNECT USB CABLE
    14) Turn off your device and reboot into recovery using Vol+ and Power. Press any key.
    15) Connect the USB cable and then press any key to continue.
    16) Your device will now do some magic behind the scenes and reboot itself into bootloader :p
    17) When the batch tells you to do so, DISCONNECT USB, and turn off the device to boot into recovery using Vol+ and Power.
    18) You will see your device updating now :D THIS IS IT.

    Note that AFTER it finishes flashing, it might try to do a "Factory Reset" on its own. It might fail on the "Factory Reset" screen. Do not worry about this as it will boot just fine. But just to be on the safe side, reboot into recovery and wipe data and cache.
    15
    GOOD NEWS EVERYONE!
    Managed to go from L29C636 to L09C185 with a slight modification to this method.
    It should work for any other region though. So now you can rebrand for free :D FINALLY FREE REBRAND TO ANY REGION

    I edited the update.bat to work for rebranding. Download it, and replace the old update.bat and TADA now you can rebrand. (or just rename my file into rebrand.bat and place it in the same directory as the update.bat)

    Note that you need to have your OEMINFO ready in the TWRP backups folder before you start the bat. :D
    I tried to make the instructions as clear as possible. If you have any questions, feel free to ask!
    6
    Q: Are you hacking stock recovery to install everything what you want?
    A: Only bypass auth and some checks. See Prepare and Notice B.
    Q: Did you test by self?
    A: Yes, see Prepare and Notice E.
    6
    Or Better say: What exactly should happen when, after I held power and vol+ to reboot my device? Should it show up TWRP or erecovery? Should I plug in the USB Cable while the phone showing the huawei logo or when it is allready showing the recovery (TWRP or Erecovery?).
    Please be a bit more precise for some noobs lol

    It's supposed to boot into TWRP when you reboot. Rebooting into eRecovery is only the last step.
    When you hold VolumeUp and Power it should boot into TWRP. Then after it boots on TWRP, connect the USB cable.

    ---------- Post added at 12:30 AM ---------- Previous post was at 12:27 AM ----------

    Thanks a lot @backb0ne5p1d0r, I'll try again later, totally exhausted right now but really happy with the result of your and @mankindtw work, it is what all of us were waiting for a long time and arrived at last!! :good::good::good:

    Cheers!

    Honestly the work i did is nothing compared to what mindkindtw did :p
    But oh well, tell us how it goes.
    I might make a video later in my free time as it appears many people are getting confused with the instructions.