[GUIDE] - How to root debrand and/or remove Retail mode for P20pro CLT-L29

Search This thread

happyhammer66

Senior Member
May 26, 2016
70
6
I rebranded from a UK L09 to a euro L29 some time ago. I have just tried a sim from a different provider and its not working. I checked again with the
Original provider who said its been unlocked from day one so never provided a unlock code. They got that from huawei

1. Is it possible that the rebrand had screwed this up?
2. Has anyone rebranded and used other network sims ?
3.is it possible to rebrand back to original UK L09 to see if that cures the issue?
4. Any suggestions to resolve this?

Thanks

Sent from my SM-T819 using Tapatalk
 
Last edited:

happyhammer66

Senior Member
May 26, 2016
70
6
I rebranded from a UK L09 to a euro L29 some time ago. I have just tried a sim from a different provider and its not working. I checked again with the
Original provider who said its been unlocked from day one so never provided a unlock code. They got that from huawei

1. Is it possible that the rebrand had screwed this up?
2. Has anyone rebranded and used other network sims ?
3.is it possible to rebrand back to original UK L09 to see if that cures the issue?
4. Any suggestions to resolve this?

Thanks

Sent from my SM-T819 using Tapatalk

im trying to go back to L09 C782 UK version after rebranding it to L29 C432. not getting every step correct in the partr of the debrand guide but whilst rooted when i try the oeminfo command i get an error

1|HWCLT:/data/local/tmp #
1|HWCLT:/data/local/tmp #
1|HWCLT:/data/local/tmp # ./oeminfo CLT-L09 C782 hw/eu
./oeminfo[1]: syntax error: unexpected ')'
1|HWCLT:/data/local/tmp #
1|HWCLT:/data/local/tmp #

any idea why i get this syntax error?



i was thinking of using the OTG service software which i used before for L29 but it has L09 folder as well., thats at 9.1.0.311 but i assume this dont change the oeminfo so thats why i want to change the model back to L09 C782. another command i might try if i get L09 C782 oeminfo file is

dd if=/data/media/0/oeminfo.img of=/dev/block/bootdevice/by-name/oeminfo

so any help appreciated
 
Last edited:

happyhammer66

Senior Member
May 26, 2016
70
6
Well I used hisuite to rollback to 8.0 and then the new sim was seen. Went back to 9.0 and not recognised again. Tried changing to L09 by using an oeminfo twrp backup from L09 C432. This changed it to an L09 ok but ballsed up the bootloader unlock code so it's no longer re cognised. That's the end of it for me i think. Never again an Huawei,
 

vectorsum

New member
Nov 25, 2014
2
0
HUGE thanks to OP for making this guide, I was able to go from CLT-AL00 9.1 to L29 9.1 using this method. Initially misread some instructions and bricked my phone pretty hard (to the point where Erecovery did not work). Thanks as well as Vedrick from this thread for steps to recover and get back to a working state to re-do the procedure from OP.

Some notes which hopefully are helpful to anyone else in this situation:
One thing which was key was that I had to flash some partitions which were not usually flashed through bootloader.

Additionally, because i was softbricked, to do OP's procedure I had to

1. flash TWRP in order to
a. run ADB, transfer update/update_all_hw files, move to /data/update/HWOTA
b. run oeminfo, modify region code
c. echo the update commands to /cache/recovery/command
2. reboot to bootloader in order to flash the recovery_ramdisk_nocheckP20.img
3. finally reboot to patched recovery for update to happen.

Definitely do NOT recommend following what I did unless absolutely necessary.
 

happyhammer66

Senior Member
May 26, 2016
70
6
Well I used hisuite to rollback to 8.0 and then the new sim was seen. Went back to 9.0 and not recognised again. Tried changing to L09 by using an oeminfo twrp backup from L09 C432. This changed it to an L09 ok but ballsed up the bootloader unlock code so it's no longer re cognised. That's the end of it for me i think. Never again an Huawei,
So after screwing things up, turns out it was just the phone not recognising the new sims when the sim lock code was active. Once i disabled that, it recognise the sim immediately. So just a stock phone from now on but given the lack of custom ROM , no big deal. Its still a good phone user wise

Sent from my SM-T819 using Tapatalk
 
Last edited:

mac231us

Senior Member
Oct 26, 2010
2,421
517

Blu_Life

Member
Mar 26, 2020
9
0
@ToLive4

Here you go :D




Please read the pre-requisites prior to attempting this guide.

Please bare in mind that this procedure will completely wipe your device.


Pre-requisites


A) A P20 Pro
B) ADB / fastboot files and drivers for ADB usage
C) An unlocked bootloader
D) TWRP Installed and functional: fastboot flash recovery_ramdisk name of recovery
E) Rooted with ramdisk-CLT-L29-MAGISK.img fastboot flash ramdisk CLT-L29-MAGISK.img
F) The ability to use ADB / Fastboot commands to your device - ie: right drivers etc
G) Android debugging and OEM unlocking turned on.
H) Every file in the Google drive link at the bottom of this guide downloaded to your computer.
I) ]NOTE*** If you are on a later firmware than 120, please do not attempt this guide!!
J) NOTE**** There has been 1 known issue with an L-04 device, others have been able to de-brand on L-04 so it's your decision, we don't know if the guide was followed to the letter or not but it ended up unbootable so it's your choice.


Steps


1. Copy all these files to the SDCARD section of your phones memory


update.zip
update_data_public.zip
update_all_hw.zip
oeminfo.bin


2. Copy this file to your ADB folder on your Computer

recovery_ramdisk_nocheckP20.img


3. Boot your phone into Fastboot mode and open a command prompt on your Computer from your ADB folder, then type:

fastboot flash recovery_ramdisk recovery_ramdisk_nocheckP20.img

4. Reboot your phone so it's in the system

5. Install the Magisk Manager APK on your phone

6. With your phone still turned on in the system and connected to your Computer go back to the CMD / ADB prompt.

7. Type:
adb shell

PRESS ENTER

Type: su

PRESS ENTER

NOTE* Accept the prompt on your P20 Pro by pressing: Grant

8. Type:
mkdir /data/local/tmp

PRESS ENTER

Type: mv /sdcard/oeminfo /data/local/tmp

PRESS ENTER

Type: cd /data/local/tmp

PRESS ENTER

Type: chmod +x oeminfo

PRESS ENTER

Type: ./oeminfo CLT-L29 C432 hw/eu

PRESS ENTER

Type: mkdir /data/update/HWOTA

PRESS ENTER

Type: cd /sdcard/

PRESS ENTER

Type: mv *.zip /data/update/HWOTA

PRESS ENTER

9. Copy and paste this whole section into the CMD prompt, make sure there are no spaces before or after the script.

echo "--update_package=/data/update/HWOTA/update.zip" > /cache/recovery/command
echo "--update_package=/data/update/HWOTA/update_data_public.zip" >> /cache/recovery/command
echo "--update_package=/data/update/HWOTA/update_all_hw.zip" >> /cache/recovery/command


10. Type: Exit

PRESS ENTER

Type: Exit

PRESS ENTER

Type: adb reboot recovery

PRESS ENTER

Finally. The device will now reboot and will begin the de-brand process, you'll see a percentage and an EMUI sign with the words "Installing update.."

Allow it to finish, do not interrupt the process.

Once complete, It'll say update success and the device will now reboot

*NOTE: I got an error saying "No SD card or USB device please connect in 2 minutes!" with a percentage moving round from 0 - 100% but it still worked.

Allow the device to continue and it'll perform a factory reset

The device will then boot


Your device will now have the following model and firmware

Model: CLT-L29
Build: CLT -L29 9.1.0.120(C432)
EMUI: 8.1.0
Android: 8.1.0

;) ;) ;) ;) ;) ;)

Link to files: https://drive.google.com/drive/folders/1oWS92OT0Bt2bFktwNCIKLsogA8L50g57
I would like to try out this procedure but the link to the files on google drive is broken. Can it be restored? Thanks
 

Top Liked Posts

  • There are no posts matching your filters.
  • 28
    This is a solution created from few posts on XDA. It's only collected, edited and tested by me to have all in one place.
    Files currently uploading to Gdrive so be patient

    Here is also manual edited by @dladz
    Same thread post #152 https://forum.xda-developers.com/showpost.php?p=76785704&postcount=152

    ROOT ONLY
    1.Unlock Your Bootloader https://forum.xda-developers.com/huawei-p20-pro/how-to/how-to-bootloader-unlock-codes-news-t3785294
    2.Root your P20PRO with Patched Ramdisk ramdisk-CLT-L29-MAGISK.img
    3.Install Magisk Manager MagiskManager.apk
    4. Update MagiskManager

    Full Debrand
    DONT TRY TO REBRAND L29 to L09 or vice versa will brick or have problems ! EDIT:SOME PEOPLE TRIES AND IT WORKS FROM L-09 TO L-29 https://forum.xda-developers.com/showpost.php?p=76536502&postcount=29

    THERE IS NO HW POSSIBILITY TO CHANGE SINGLE TO DUAL SIM, SO EVEN IF YOU GO FROM L-09 TO L-29 THERE WILL BE NO DUAL SIM!!! NOT EVEN IF YOU PAY TO FUNKY


    1.Unlock Your Bootloader https://forum.xda-developers.com/huawei-p20-pro/how-to/how-to-bootloader-unlock-codes-news-t3785294
    2.Root your P20PRO with Patched Ramdisk ramdisk-CLT-L29-MAGISK.img
    3.Copy firmware files via MTP to your internal memory
    update.zip
    update_all_hw.zip
    update_data_public.zip
    4.Boot into fastboot mode and flash no check recovery recovery_ramdisk_nocheckP20.img
    fastboot flash recovery_ramdisk recovery_ramdisk_nocheckP20.img
    5.Install Magisk Manager MagiskManager.apk
    6. Copy OEM info binary file to internal memory oeminfo.bin
    7.Boot into Android System enable adb debbuging in developer settings.
    8. Start ADB
    9.adb shell
    10.su
    11.accept the prompt at your P20pro
    12.mkdir /data/local/tmp
    13.mv /sdcard/oeminfo /data/local/tmp
    14.cd /data/local/tmp
    15.chmod +x oeminfo
    16. ./oeminfo CLT-L29 C432 hw/eu
    17. mkdir /data/update/HWOTA
    18. cd /sdcard/
    19.mv *.zip /data/update/HWOTA
    20.Paste recovery command(all lines at once) and wait for prompt to be shown before next step:
    echo "--update_package=/data/update/HWOTA/update.zip" > /cache/recovery/command
    echo "--update_package=/data/update/HWOTA/update_data_public.zip" >> /cache/recovery/command
    echo "--update_package=/data/update/HWOTA/update_all_hw.zip" >> /cache/recovery/command
    21. Exit
    22. Exit
    23.adb reboot recovery
    24.Phone will reboot and starts to install and Rebrand your Phone
    Please always use the same Region for Brand and Firmware Files



    https://drive.google.com/open?id=1oWS92OT0Bt2bFktwNCIKLsogA8L50g57
    17
    @ToLive4

    Here you go :D




    Please read the pre-requisites prior to attempting this guide.

    Please bare in mind that this procedure will completely wipe your device.


    Pre-requisites


    A) A P20 Pro
    B) ADB / fastboot files and drivers for ADB usage
    C) An unlocked bootloader
    D) TWRP Installed and functional: fastboot flash recovery_ramdisk name of recovery
    E) Rooted with ramdisk-CLT-L29-MAGISK.img fastboot flash ramdisk CLT-L29-MAGISK.img
    F) The ability to use ADB / Fastboot commands to your device - ie: right drivers etc
    G) Android debugging and OEM unlocking turned on.
    H) Every file in the Google drive link at the bottom of this guide downloaded to your computer.
    I) ]NOTE*** If you are on a later firmware than 120, please do not attempt this guide!!
    J) NOTE**** There has been 1 known issue with an L-04 device, others have been able to de-brand on L-04 so it's your decision, we don't know if the guide was followed to the letter or not but it ended up unbootable so it's your choice.



    Steps


    1. Copy all these files to the SDCARD section of your phones memory

    update.zip
    update_data_public.zip
    update_all_hw.zip
    oeminfo.bin


    2. Copy this file to your ADB folder on your Computer

    recovery_ramdisk_nocheckP20.img


    3. Boot your phone into Fastboot mode and open a command prompt on your Computer from your ADB folder, then type:

    fastboot flash recovery_ramdisk recovery_ramdisk_nocheckP20.img

    4. Reboot your phone so it's in the system

    5. Install the Magisk Manager APK on your phone

    6. With your phone still turned on in the system and connected to your Computer go back to the CMD / ADB prompt.

    7. Type: adb shell

    PRESS ENTER

    Type: su

    PRESS ENTER

    NOTE* Accept the prompt on your P20 Pro by pressing: Grant

    8. Type: mkdir /data/local/tmp

    PRESS ENTER

    Type: mv /sdcard/oeminfo /data/local/tmp

    PRESS ENTER

    Type: cd /data/local/tmp

    PRESS ENTER

    Type: chmod +x oeminfo

    PRESS ENTER

    Type: ./oeminfo CLT-L29 C432 hw/eu

    PRESS ENTER

    Type: mkdir /data/update/HWOTA

    PRESS ENTER

    Type: cd /sdcard/

    PRESS ENTER

    Type: mv *.zip /data/update/HWOTA

    PRESS ENTER

    9. Copy and paste this whole section into the CMD prompt, make sure there are no spaces before or after the script.

    echo "--update_package=/data/update/HWOTA/update.zip" > /cache/recovery/command
    echo "--update_package=/data/update/HWOTA/update_data_public.zip" >> /cache/recovery/command
    echo "--update_package=/data/update/HWOTA/update_all_hw.zip" >> /cache/recovery/command


    10. Type: Exit

    PRESS ENTER

    Type: Exit

    PRESS ENTER

    Type: adb reboot recovery

    PRESS ENTER

    Finally. The device will now reboot and will begin the de-brand process, you'll see a percentage and an EMUI sign with the words "Installing update.."

    Allow it to finish, do not interrupt the process.

    Once complete, It'll say update success and the device will now reboot

    *NOTE: I got an error saying "No SD card or USB device please connect in 2 minutes!" with a percentage moving round from 0 - 100% but it still worked.

    Allow the device to continue and it'll perform a factory reset

    The device will then boot


    Your device will now have the following model and firmware

    Model: CLT-L29
    Build: CLT -L29 9.1.0.120(C432)
    EMUI: 8.1.0
    Android: 8.1.0

    ;) ;) ;) ;) ;) ;)

    Link to files: https://drive.google.com/drive/folders/1oWS92OT0Bt2bFktwNCIKLsogA8L50g57
    6
    Installing OTA's after de-branding

    Just updated my phone through the various updates and seeing as no one had actually mentioned it i thought i'd do another little guide just to help people out.

    After you've gone through either the guide in the OP or https://forum.xda-developers.com/showpost.php?p=76785704&postcount=152 you'll probably have re-rooted and installed TWRP.

    *NOTE* You do not have to uninstall TWRP or install the stock recovery, nor do you need to unroot.

    Please read through prior to committing to the guide. ;)



    1. Go here https://drive.google.com/drive/folders/1oWS92OT0Bt2bFktwNCIKLsogA8L50g57 and download the file called recovery_ramdisk_nocheckP20.img

    2. Connect your phone to your computer (make sure USB Debugging is on)

    3. Put the img file in your ADB / Fastboot folder (my default is C:\adb )

    4. Open a command prompt / powershell from your ADB/Fastboot folder.


    Type: adb reboot bootloader

    PRESS ENTER

    5. Wait for the device to boot to the bootloader (white screen)

    Type: fastboot flash recovery_ramdisk recovery_ramdisk_nocheckP20.img

    PRESS ENTER

    6. Type: Fastboot reboot bootloader

    PRESS ENTER

    7. Disconnect the phone and allow the device to boot up.

    8. Once the device is booted, take the update and allow it to fully install.


    NOTE* Not sure if it's completely necessary but i did it anyway, disabled all PIN / Password / Fingerprint prior to performing this.

    After the installation you'll have no TWRP and you won't be rooted so if you'd like to go back to the way it was.

    Follow the guide in the OP to get TWRP and root back.

    Hope this helps. :D
    3
    Where exactly? Point them and I will change them

    Just the way it's written mate, id normally say where you need to be on the phone prior to each step, ADB (device booted) fastboot, recovery.



    Number 2 do you use L29 if you've got a different variant?

    Number 3 id add the links to that section

    Number 4 what exactly is the code to be typed in?

    Put the code to be typed in in italics so it stands out.

    Number 5 so we've left fastboot? Nothing to state we have and we need to install an APK? State If the device needs to be booted up at this point.

    Number 6 where is the oeminfo file? I know it's in the gdrive but I'd link to it at this point, does it need to be on the root directory?

    Number 7 boot into Android system? We just installed an apk according to point 5 ? Aren't we already there??

    Numbers 3 and 8 - 19 where specifically are the files we're working with stored? Are they on the phone? Or the computer, are we working via ADB or via a command prompt on a PC, are we booted into the system or recovery at this point?

    Locations of the files need to be referenced so that no mistakes are made.

    Number 24, what exactly happens here? How would someone know if it's working? Region? How would someone know specifically what they can use?

    Perhaps a list of what this method actually works on and what to avoid, maybe an FAQ.

    Add a space as I have between steps, easier to read.

    Lastly are there any prerequisites? Should prior be backing up their oeminfo? Anything else they should be doing in offer to be able to get back to normal? Avoid bricks etc?

    PS not being a d*ck pal trust me, I'd just like it to be clearer, if you'd like help with it I'd be more than happy to help, I have some spare time today.
    3
    I've managed to do it! Rebranded to CLT-L29(C432)! Thanks so much @dladz @colthekid and @ToLive4 as you helped answer all my questions and get me to understand the process!

    Is it safe to take OTAs now?