Skip to content

Iceows/oeminfo-huawei

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

oeminfo-huawei

oeminfo_huawei.py [-h] {extract,pack,replace} ...

positional arguments:
  {extract,pack,replace}

optional arguments:
  -h, --help            show this help message and exit

Detailed Usage example:

  • You must have an unlocked bootloader and Magisk installed to modify the oeminfo
  • Script sucessfully tested on Ubuntu with python3 on a CMR-W09 running EMUI 9.1.0.332 to change the region from C567 to C432 and hw/usa to hw/eu
user@ubuntu:~/oem_info$ adb shell
su
dd if=/dev/block/platform/hi_mci.0/by-name/oeminfo of=/storage/sdcard1/oeminfo.img
adb pull /storage/emulated/0/oeminfo.img eminfo.emmc.win
user@ubuntu:~/oem_info$ python3 oeminfo_huawei.py extract -i ./oeminfo.emmc.win
hdr:OEM_INFO age:  7 id:    8  
hdr:OEM_INFO age:  1 id:   12 Region 
hdr:OEM_INFO age:  1 id:   42  
hdr:OEM_INFO age:  5 id:   43 Root Type (info) 
...
CMR-W09#hw-usa#CMR-W09 8.0.0.200(C567)
  • Edit files within the CMR-W09#hw-usa#CMR-W09 8.0.0.200(C567) directory to change the region using a hex editor like GHex
user@ubuntu:~/oem_info$ python3 oeminfo_huawei.py pack -i CMR-W09#hw-usa#CMR-W09\ 8.0.0.200\(C567\)/ -o ./test2.img
None
user@ubuntu:~/oem_info$ fastboot flash oeminfo test2.img 
target reported max download size of 471859200 bytes
sending 'oeminfo' (65536 KB)...
OKAY [  2.264s]
writing 'oeminfo'...
OKAY [  0.478s]
finished. total time: 2.742s

About

Unpack and repack Huawei oeminfo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%