• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!
  • Fill out your device list and let everyone know which phones you have!    Edit Your Device Inventory

[Guide] Guides for x2 Pro[Locking/unlocking bootloader, tweaks and more]

Status
Not open for further replies.
Search This thread

Designguru

Member
Jan 16, 2020
30
1
Unable to lock bootloader (CN)

I have the CN version (Purchased through aliexpress with an unlocked bootloader)

I reflashed the stock CN ROM, and followed the steps to lock bootloader -

adb reboot bootloader
In Fastboot Mode, when I try to issue 'fastboot flashing lock', the command does not take and it shows all the command line options for fastboot as below. Anyone know what I'm missing?

fastboot flashing lock
usage: fastboot [ <option> ] <command>

commands:
update <filename> reflash device from update.zip
flashall flash boot, system, vendor and if found,
recovery
flash <partition> [ <filename> ] write a file to a flash partition
erase <partition> erase a flash partition
format[:[<fs type>][:[<size>]] <partition> format a flash partition.
Can override the fs type and/or
size the bootloader reports.
getvar <variable> display a bootloader variable
boot <kernel> [ <ramdisk> [ <second> ] ] download and boot kernel
flash:raw boot <kernel> [ <ramdisk> [ <second> ] ] create bootimage and
flash it
devices list all connected devices
continue continue with autoboot
reboot reboot device normally
reboot-bootloader reboot device into bootloader
help show this help message

options:
-w erase userdata and cache (and format
if supported by partition type)
-u do not first erase partition before
formatting
-s <specific device> specify device serial number
or path to device port
-l with "devices", lists device paths
-p <product> specify product name
-c <cmdline> override kernel commandline
-i <vendor id> specify a custom USB vendor id
-b <base_addr> specify a custom kernel base address.
default: 0x10000000
-n <page size> specify the nand page size.
default: 2048
-S <size>[K|M|G] automatically sparse files greater
than size. 0 to disable
 

loumaros

Member
Apr 21, 2011
48
7
I have the CN version (Purchased through aliexpress with an unlocked bootloader)

I reflashed the stock CN ROM, and followed the steps to lock bootloader -

adb reboot bootloader
In Fastboot Mode, when I try to issue 'fastboot flashing lock', the command does not take and it shows all the command line options for fastboot as below. Anyone know what I'm missing?

fastboot flashing lock
usage: fastboot [ <option> ] <command>

commands:
update <filename> reflash device from update.zip
flashall flash boot, system, vendor and if found,
recovery
flash <partition> [ <filename> ] write a file to a flash partition
erase <partition> erase a flash partition
format[:[<fs type>][:[<size>]] <partition> format a flash partition.
Can override the fs type and/or
size the bootloader reports.
getvar <variable> display a bootloader variable
boot <kernel> [ <ramdisk> [ <second> ] ] download and boot kernel
flash:raw boot <kernel> [ <ramdisk> [ <second> ] ] create bootimage and
flash it
devices list all connected devices
continue continue with autoboot
reboot reboot device normally
reboot-bootloader reboot device into bootloader
help show this help message

options:
-w erase userdata and cache (and format
if supported by partition type)
-u do not first erase partition before
formatting
-s <specific device> specify device serial number
or path to device port
-l with "devices", lists device paths
-p <product> specify product name
-c <cmdline> override kernel commandline
-i <vendor id> specify a custom USB vendor id
-b <base_addr> specify a custom kernel base address.
default: 0x10000000
-n <page size> specify the nand page size.
default: 2048
-S <size>[K|M|G] automatically sparse files greater
than size. 0 to disable

Does your computer "see" your device when in fastboot mode?
What's the output of the following command?


 

patalao

Senior Member
Jan 24, 2009
1,204
953
Feira
Realme X2 Pro
Regarding the notification that appears saying we have a new update even if we already have that update(A.08) just go to development options and disable the automatic system update.

Enviado do meu RMX1931 através do Tapatalk
 
  • Like
Reactions: P1f

natedogg20050

Senior Member
Aug 19, 2009
301
72
Can somebody help me i wanted to flash the ozip and the phone bricked , i still can boot into twrp and fastboot

this is the msg i get damaged boot/recovery
any idea how to fix it ?
 
Sep 28, 2014
6
0
don´t install mag isk

when I follow the next steps:

Steps:
- copy magiskfix_v1_realme_wzsx150.zip(from my OneDrive) and magisk***.zip to your phones internal storage,
- boot to TWRP,
- flash magisk,
- flash magiskfix_v1_realme_wzsx150.zip,
- reboot to OS.

I can't install the magisk because I get an error and it doesn't let me install it.
I restart the phone and it is reset to twrp.

helpme
 

Abaddon

Senior Member
when I follow the next steps:

Steps:
- copy magiskfix_v1_realme_wzsx150.zip(from my OneDrive) and magisk***.zip to your phones internal storage,
- boot to TWRP,
- flash magisk,
- flash magiskfix_v1_realme_wzsx150.zip,
- reboot to OS.

I can't install the magisk because I get an error and it doesn't let me install it.
I restart the phone and it is reset to twrp.

helpme


In TWRP. Wipe data/internal storage.
Copy magisk zip from PC to phone
Copy magisk fix from PC to phone
Flash magisk and magisk fix
Reboot
 
Status
Not open for further replies.

Top Liked Posts

  • There are no posts matching your filters.
  • 28
    At start i want to say that I'm not responsible for your bricked devices, houses set on fire, bla bla bla and so on.

    Hello

    Since I see that many users are having problems with unlocking bootloader, flashing twrp and getting properly working Magisk. So here i come.

    Downloads:
    Everything you need you find here, on my OneDrive.


    Unlocking Bootloader

    BEWARE! After unlocking bootloader your DRM widevine will change to L3.

    Steps:
    - download and install Realme_x2_Pro_DeepTesting.apk,
    - open app and apply for deep test,
    - enable Developer Options by tapping 7 times Version in Settings > About Phone
    - go to developer options and enable OEM unlock and USB debugging,
    - open app once again after some time tap "Query verification status",
    - If you got approved application tap "Start the in-depth test" and phone will reboot to bootloader,
    - on PC, download fastboot tools from somewhere else(unless you already have it, its not on my OneDrive)
    - open folder where you have your fastboot installed, hold shift and click right mouse buton and choose "open command prompt here"(or Power Shell in newer version of windows),
    - connect your phone to PC, and write
    Code:
    fastboot flashing unlock
    - now on phone select "yes"
    - now your phone will reboot and erase all your data,
    - now you have unlocked bootloader.

    Flashing Custom Recovery

    I will guide you how to flash Custom Recovery.

    Steps:
    - connect phone to PC,
    - on your PC in command prompt type adb reboot bootloader,
    - download TWRP image from mauronofrio or OrangeFox image from thread put in your fastboot tools folder on PC,
    - download vbmeta.img from my OneDrive and put in your fastboot tools folder on PC,
    - type
    Code:
    fastboot flash recovery *******.img
    - type
    Code:
    fastboot flash vbmeta vbmeta.img
    - when flashing is done, on your phone select "Recovery Mode" with volume +/- buttons and accept with power key,
    - now it will boot into TWRP

    Getting properly working Magisk

    For now I recommend always using Magisk Canary Debug version cause it supports realme phones(stable needs magiskfix to get out of Core only mode).

    Steps:
    -download Magisk Canary zip to your phones internal storage,
    - boot to Custom Recovery,
    - flash magisk,
    - reboot to OS.


    Updating ColorOS on rooted phone via TWRP


    Use Magisk Canary cause it supports realme phones(stable needs magiskfix to get out of Core only mode).
    This is the only way to update ColorOS via TWRP without losing magisk or running into damaged boot/recovery image message on boot for now.


    Steps:
    - download latest Magisk Canary, vbmeta.img and latest update package(ozip) for your device(cn rom for cn device, global rom for eu/in device), if you download update via official OTA app the package is located in
    Code:
    /data/oppo/coloros/OTA/.otaPackage
    - reboot to Custom Recovery,
    - flash latest ozip through twrp recovery(don't reboot yet),
    - flash vbmeta.img through Custom Recovery
    - flash magisk(if flashing fail, than reboot recovery),
    - reboot to system.



    Locking Bootloader


    Think twice after evey step you did if it's done correctly before doing next step to prevent HARD BRICKS.​


    Steps:
    - download right latest ozip for your device from realme site(don't cross flash device, flash global ozip on eu/in devices and cn ozip for cn devices),
    - boot to Custom Recovery,
    - Flash ozip and after don't do anything else, just reboot to system,
    - let it boot to OS and replace Custom Recovery with stock recovery.
    - (optional) boot to recovery to check if it is stock, if its stock recovery than you can lock bootloader(don't ever try to lock with Custom Recovery),
    - reboot device to bootloader and through adb go with:
    Code:
    fastboot flashing lock
    - accept locking bootloader query on phone,
    - device now will reboot and perform factory reset.



    F.A.Q.


    Q: Can't flash xxxxxxxx.zip(or xxxxxxx.ozip/xxxxxxx.img) in Custom Recovery cause it throws an error, what to do?
    A: Reboot recovery and try again.




    ...
    5
    RUDE!!!!!!!!!!
    But true!!!!!!!!
    You just described me in 3 words. Thank you.
    5
    @Jerry08 the A08 update is out, do we still need a custom build prop patch or do you know if the latest twrp 3.3.1.11 can now fully flash Magisk over it not just the core mode?
    You need custom patch and it doesn't flash through mauronofrio. 11. Still needs twrpcnen for properly working magisk.

    Good news is that A.08 fixes fingerprint with unlocked bootloader.
    4
    I'm still on V6.1, RMX1931EX_11_A.06 (EU version) with TWRPCNEN and Canary Magisk latest versions (20.4-0dc9f5c3, Code 20303 and MM 7.5)

    Now I want to change to TWRP Mauronofrio 3.3.1.-12 with vbmeta from Jerry, and official Magisk 20.3 with Magiskfix from Jerry and MM 7.5.1

    Is it correct when I just go to adb and follow the procedure according to @Jerry08 latest guide, overwriting just the old CNEN version, as well as just overwriting the Canary Magisk or do I have to uninstall something of the current installation before changing to the new versions?
    Is it correct that I install all above without booting into OS inbetween?

    Is it correct that after above procedure is done everything should run without reinstalling Color OS A.06?

    Tks a lot.

    Try like patalao described:

    You have to relock your bootloader, install the latest update available A08 and then do the normal procedure to unlock the bootloader again and flash twrp and root.
    That's the only way to get fingerprint working.

    Enviado do meu RMX1931 através do Tapatalk

    But you can relock bootloader after updating to A.08/A.09 than unlock, it will fix fingerprint also.



    As for the game space app, find gamespace apk somewhere and install.