I've seen a number of posts asking how to switch the oeminfo of your phone - so I decided to make a quick guide.
Pre-req's
Getting Ready
To check your current oeminfo run the following command from an ADB shell:
This should return something like this:
This was what my oeminfo partition was prior to installing the generic European single sim oeminfo.
Similarly, you can run the following fastboot command to check your current oeminfo:
Which will report something like the following:
The Good Stuff
Assuming you have followed the pre-req steps (you have been warned!) Do the following:
Now What?
When I ran the above my boot-loader became re-locked. To unlock the boot-loader you must have your boot-loader unlock code!. To unlock the boot-loader do the following:
[*]Reboot to fastboot
[*]Run
[*]I then performed a factory reset with the stock recovery
[/LIST]
Verifying
To check your new oeminfo run the following command from an ADB shell:
This should now return something like this:
Similarly, you can run the following fastboot command to check your oeminfo:
Which will report something like the following:
Oeminfo's
Warning: Use this guide at your own risk. I did this on my own p20 Lite without issue but YMMV.
Pre-req's
- Please ensure that you actually have an unlocked boot-loader
- Ensure that you still have access to your boot-loader code as switching the oeminfo partition caused my phone's boot-loader to become re-locked
- You are rooted
- You have enabled USB debugging and your device is detected by adb/fastboot (run
Code:
adb devices
Code:fastboot devices
- Make a backup of your current oeminfo - this can be shared on this thread for other users (in-case they haven't done this) or for your own piece of mind. You can use Partitions Backup from the Play Store, TWRP etc.
- After switching my oeminfo I used the stock recovery to perform a factory reset. I'm not sure this was required but remote backing up of files is probably recommended just in-case...
Getting Ready
To check your current oeminfo run the following command from an ADB shell:
Code:
getprop ro.hw.custPath
This should return something like this:
Code:
/cust/ee/gb
Similarly, you can run the following fastboot command to check your current oeminfo:
Code:
fastboot getvar vendorcountry
Which will report something like the following:
Code:
vendorcountry: ee/gb
The Good Stuff
Assuming you have followed the pre-req steps (you have been warned!) Do the following:
- Download one of the attached oeminfo zips. Choose either single or double sim depending on your device!
- Extract the contents of the download zip to your phone e.g. /sdcard/Download (change the location as required in the subsequent commands)
- Run
Code:
adb shell
- Enter
Code:
su
- Overwrite your devices oeminfo using
Code:
dd if=/sdcard/Download/oeminfo.img of=/dev/block/platform/hi_mci.0/by-name/oeminfo
Now What?
When I ran the above my boot-loader became re-locked. To unlock the boot-loader you must have your boot-loader unlock code!. To unlock the boot-loader do the following:
[*]Reboot to fastboot
[*]Run
Code:
fastboot oem unlock <your bootloader code>
[/LIST]
Verifying
To check your new oeminfo run the following command from an ADB shell:
Code:
getprop ro.hw.custPath
This should now return something like this:
Code:
/cust/hw/eu
Similarly, you can run the following fastboot command to check your oeminfo:
Code:
fastboot getvar vendorcountry
Which will report something like the following:
Code:
vendorcountry: hw/eu
Oeminfo's
Warning: Use this guide at your own risk (for a final time).