[Guide] Switching OEMINFO versions

Search This thread

sykomaniac

Senior Member
Jun 16, 2010
1,639
2,431
Leeds
Google Pixel 6
I've seen a number of posts asking how to switch the oeminfo of your phone - so I decided to make a quick guide.

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
    or
    Code:
    fastboot devices
    to check this)
  • 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
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:
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
    to gain root access
  • 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>
[*]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:
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).
 

Attachments

  • Screenshot_20181206-154527.jpg
    Screenshot_20181206-154527.jpg
    240.6 KB · Views: 2,029

zmassy1973

New member
Dec 22, 2018
4
0
p20 lite

hello sorry to be able to replace my current oeminfo with that c432 these are the commands to be executed?

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 on your device!
Extract the contents of the zip to your phone e.g. / sdcard / Download (change the location as required in the subsequent commands)
Run
Code:
adb shell
enter
Code:
su
to gain root access
Overwrite your devices oeminfo using
Code:
dd if = / sdcard / Download / oeminfo.img of = / dev / block / platform / hi_mci.0 / by-name / oeminfo

sorry for my English thank you
 

posedys

Senior Member
Mar 13, 2011
50
1
lima
no puedes especificar mejor
no se entiende el metodo mira yo tengo un zip del oeminfo del c605 lo flasheo desde el twrp ahora crees q se pueda hacer uno asi como este facicilitaria las cosas te subo el archivo asi lo analizas

I've seen a number of posts asking how to switch the oeminfo of your phone - so I decided to make a quick guide.

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
    or
    Code:
    fastboot devices
    to check this)
  • 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
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:
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
    to gain root access
  • 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>
[*]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:
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).
 

Attachments

  • Flash_OEMinfo-ANE-LX3C605.zip
    617.5 KB · Views: 372

ars_chelsea

Senior Member
Sep 5, 2015
462
235
Lisboa
no puedes especificar mejor
no se entiende el metodo mira yo tengo un zip del oeminfo del c605 lo flasheo desde el twrp ahora crees q se pueda hacer uno asi como este facicilitaria las cosas te subo el archivo asi lo analizas

My translation + translated by Cambridge Online Dictionary:
"Can you not specify any better? It is not understood the method, also I have a zip of the c605 oeminfo I flashed from the twrp, now do you think that it could be done one as well as this one? Would be easier if I upload the file so you can analyze it."

It is an English only forum please be sure of that.

If you don't talk English or you can't understand what we write, please send a private message to the person you need to talk via username-->send private message.


Cheers,

AS
 

Top Liked Posts

  • There are no posts matching your filters.
  • 4
    I've seen a number of posts asking how to switch the oeminfo of your phone - so I decided to make a quick guide.

    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
      or
      Code:
      fastboot devices
      to check this)
    • 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
    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:
    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
      to gain root access
    • 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>
    [*]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:
    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).