NO RPMB (how to install TWRP, a new ROM and using Magisk)

Is it working

  • Working

    Votes: 0 0.0%
  • Not working

    Votes: 0 0.0%

  • Total voters
    0
Search This thread

PedroM.CostaAndrade

Senior Member
Nov 22, 2013
394
229
27
Porto
Hello, I have sent my phone to warranty and after that I received a phone with NO RPMB and after many frustrations I found (with help of many users and forums) how to workaround this..
To start:
  1. Download boot image from here
  2. Download twrp from the official website
  3. Change the name to boot.img and twrp.img and put it in the platform-tools folder
  4. Open the terminal there
  5. Download your favourite rom
  6. Enter fastboot mode on your phone

!!!!After this you will loose all of your data!!!!
Paste this to the terminal

fastboot oem unlock
(select yes on your phone)
fastboot flash boot boot.img
fastboot flash recovery twrp.img
fastboot format userdata
fastboot format cache


Reboot to recovery (if it doesn't enter at the first time enter download mode again and restart to recovery)

After that you have twrp and can flash every rom.. yay!!!

Wipe everything.
Copy the rom zip to your phone using MTP
Install your fancy new rom :)

If you want to install magisk:

Install the magisk manager.
On the app select install and select patch image file. (it will create a new boot image already patched)

After that install the new image (patched_boot.img) using twrp

Do a clean instalation of your ROM (recomended) or a Factory Reset first

Reboot to twrp
Select install
Click in install image
Select patched_boot.img
Select install to boot partition
Reboot.
Install magisk manager and do the sugested setup.
You now have magisk working :)

Thanks to all the users that helped me!!
 
Last edited:
D

Deleted member 2405884

Guest
I had real trouble getting twrp to work the last time I tried this a few months ago. Followed the steps here and am now on pixel experience with magisk. Thanks!
 

sigibian

Member
Jan 9, 2012
39
11
Hello, im in the same situation of NO RPMB. This procedure will permanently lets have bootloader unlocked?
About Magisk, i can install it in usual way once im in the recovery? (I mean download latest stable version for Bullhead and flash via TWRP).

Thanks.
 
D

Deleted member 2405884

Guest
Hello, im in the same situation of NO RPMB. This procedure will permanently lets have bootloader unlocked?
About Magisk, i can install it in usual way once im in the recovery? (I mean download latest stable version for Bullhead and flash via TWRP).

Thanks.

My bootloader is still unlocked after following this guide :)

For Magisk:
-Install your custom ROM and boot it up (without root)
-Then extract the boot.img from the ROM zip file and save it on your phone storage.
-Install the Magisk manager apk
-In Magisk manager, select install Magisk> choose the patch boot image option and -Select the boot.img you previously saved.

Once it's done, reboot into twrp and flash the patched boot.img. When you reboot Magisk will be working.

I've had no issues with my bootloader, even after an ota update for pixel experience.
 

Attachments

  • Screenshot_20190218-191955.png
    Screenshot_20190218-191955.png
    99.2 KB · Views: 313
  • Screenshot_20190218-191946.png
    Screenshot_20190218-191946.png
    100.7 KB · Views: 307

sigibian

Member
Jan 9, 2012
39
11
Thank you, i will try it.
Another question. I never tried dowload mode before, as i read in other post i should Plug USB cable into pc, Hold volume up and power at the same time and plug phone into usb that's already connected to pc, right?
When in download mode i can fire up fastboot commands like im in bootloader mode?
So then after do last command fastboot format cache i can reboot to recovery from terminal using adb reboot recovery or i can / should do it from device?

About twrp it's ok to use the latest 3.2.3.0 official version or the 3.2.1 4core version from here as someone suggested from Reddit? https://forum.xda-developers.com/nexus-5x/development/recovery-twrp-3-2-1-4-core-t3796656
 
Last edited:
D

Deleted member 2405884

Guest
Thank you, i will try it.
Another question. I never tried dowload mode before, as i read in other post i should Plug USB cable into pc, Hold volume up and power at the same time and plug phone into usb that's already connected to pc, right?
When in download mode i can fire up fastboot commands like im in bootloader mode?
So then after do last command fastboot format cache i can reboot to recovery from terminal using adb reboot recovery or i can / should do it from device?

About twrp it's ok to use the latest 3.2.3.0 official version or the 3.2.1 4core version from here as someone suggested from Reddit? https://forum.xda-developers.com/nexus-5x/development/recovery-twrp-3-2-1-4-core-t3796656

The official twrp works for fine for me, haven't tried the 4 core version but it can't hurt to try if you need it.

Power off your phone then press and hold volume - and power to enter bootloader, then connect to your pc and follow the steps in the OP
 
Last edited by a moderator:
  • Like
Reactions: sigibian

sigibian

Member
Jan 9, 2012
39
11
So i have to enter in bootloader mode? At point 6 of OP there is written to enter in the download mode, this makes me confusing.
Can anyone explain me latest 2 commands why they are needed?
fastboot format userdata
fastboot format cache
 
D

Deleted member 2405884

Guest
So i have to enter in bootloader mode? At point 6 of OP there is written to enter in the download mode, this makes me confusing.
Can anyone explain me latest 2 commands why they are needed?
fastboot format userdata
fastboot format cache

This thread is fairly comprehensive;

https://forum.xda-developers.com/nexus-5x/general/moto-nexus-5x-sticky-roll-t3207487

Holding volume - and power takes you to fastboot mode (download mode essentially), theres also an option to reboot into recovery (selectable using the volume keys.)

Formatting user data and cache is necessary prior to installing a new rom (especially if moving from stock). You lose all data (back up first!) But a clean flash is the best place to start.
 
Last edited by a moderator:

sigibian

Member
Jan 9, 2012
39
11
This thread is fairly comprehensive;

https://forum.xda-developers.com/nexus-5x/general/moto-nexus-5x-sticky-roll-t3207487

Holding volume - and power takes you to fastboot mode (download mode essentially), theres also an option to reboot into recovery (selectable using the volume keys.)

Formatting user data and cache is necessary prior to installing a new rom (especially if moving from stock). You lose all data (back up first!) But a clean flash is the best place to start.

Thanks for the explanation but for installing a new ROM usually you can do factory reset directly in TWRP, plus doing all the wipes, this should be enough.

About fastboot mode and download mode, they are completely different, fastboot mode: vol down + power, download mode for LG: Plug USB cable into pc, Hold volume up and power at the same time and plug phone into usb.
My question is what i can do in download mode? As OP says after entering download mode open terminal and use fastboot commands.
 
D

Deleted member 2405884

Guest
Thanks for the explanation but for installing a new ROM usually you can do factory reset directly in TWRP, plus doing all the wipes, this should be enough.

About fastboot mode and download mode, they are completely different, fastboot mode: vol down + power, download mode for LG: Plug USB cable into pc, Hold volume up and power at the same time and plug phone into usb.
My question is what i can do in download mode? As OP says after entering download mode open terminal and use fastboot commands.

You need to use vol- and power to go into fastboot mode then connect to the pc. As for userdata and cache, if you don't clean them when coming from stock you will have issues (your data will be encrypted if you're on stock?). As I said this guide worked for me. The op was talking about fastboot mode in the 6th option (also there is much more information in the thread I linked above)
 

PedroM.CostaAndrade

Senior Member
Nov 22, 2013
394
229
27
Porto
sorry for the confusing i wanted to say fastboot mode..
i knew the thread that you are saying but most people doesn't want to search so I made a little thread only with the needed parts..
I use it myself so I have a place to remember all the steps when I need to change the rom to a new one or when I make experiments and brick my phone XD
 

fhartane

Senior Member
Dec 5, 2015
196
45
Hi. I just went through the whole process several times (I have tried the different modified boot images from the dedicated post) and my device is still locked [emoji24] any suggestions?
 
Last edited:

PedroM.CostaAndrade

Senior Member
Nov 22, 2013
394
229
27
Porto
Hi. I just went through the whole process several times (I have tried the different modified boot images from the dedicated post) and my device is still locked [emoji24] any suggestions?

your device will always be locked this is a workaround to get twrp, new roms and magisk while it stays locked..
with twrp usable it won't matter if you are locked or not
 
  • Like
Reactions: fhartane

fhartane

Senior Member
Dec 5, 2015
196
45
your device will always be locked this is a workaround to get twrp, new roms and magisk while it stays locked..
with twrp usable it won't matter if you are locked or not
Thanks for the answer. You mean that now I have twrp, I can flash custom Roms with my bootloader locked without any issue?

Envoyé de mon ONEPLUS A3003 en utilisant Tapatalk
 

PedroM.CostaAndrade

Senior Member
Nov 22, 2013
394
229
27
Porto
Yes :) if you have TWRP you can install custom ROMs, custom Kernel's, magisk, super su, etc..
the locked bootloader only prevents you from using fastboot commands like the one needed for installing custom recovery
Now that you have TWRP you can use it for everything
 
  • Like
Reactions: fhartane

Fabiojoker

Member
Nov 22, 2009
5
0
Hello everyone, I also have a nexus 5x with motherboard that has been replaced under warranty and unfortunately I can't keep the bootloader unlocked.
I tried the procedure you have indicated, but at this point there is the problem, because after inserting the boot.img and twrp.img inside the phone, then when I go to do the unlocking procedure with 'fastboot oem unlock (select yes on your phone) 'in practice the memory is deleted on the phone, so I lose the previously uploaded files, and therefore I can no longer continue with the flash procedure of boot.img and twrp.img because they are no longer present in memory.
I hope I made myself understood, maybe I am wrong, or is there a way to solve this problem?
 

PedroM.CostaAndrade

Senior Member
Nov 22, 2013
394
229
27
Porto
Hello everyone, I also have a nexus 5x with motherboard that has been replaced under warranty and unfortunately I can't keep the bootloader unlocked.
I tried the procedure you have indicated, but at this point there is the problem, because after inserting the boot.img and twrp.img inside the phone, then when I go to do the unlocking procedure with 'fastboot oem unlock (select yes on your phone) 'in practice the memory is deleted on the phone, so I lose the previously uploaded files, and therefore I can no longer continue with the flash procedure of boot.img and twrp.img because they are no longer present in memory.
I hope I made myself understood, maybe I am wrong, or is there a way to solve this problem?

fastboot is for the files on your PC not your phone
you need to put the files inside of platform-tools and then open cmd inside it and use the fastboot commands
fastboot will take the files of your PC
 

Fabiojoker

Member
Nov 22, 2009
5
0
Hello, thank you for your information, since I haven't done modding on phones for a long time, I didn't remember exactly the procedure with fastboot and therefore I didn't understand where I had to put the files, but in the end I did it.
Thank you

fastboot is for the files on your PC not your phone
you need to put the files inside of platform-tools and then open cmd inside it and use the fastboot commands
fastboot will take the files of your PC
 

Top Liked Posts

  • There are no posts matching your filters.
  • 2
    Hello, I have sent my phone to warranty and after that I received a phone with NO RPMB and after many frustrations I found (with help of many users and forums) how to workaround this..
    To start:
    1. Download boot image from here
    2. Download twrp from the official website
    3. Change the name to boot.img and twrp.img and put it in the platform-tools folder
    4. Open the terminal there
    5. Download your favourite rom
    6. Enter fastboot mode on your phone

    !!!!After this you will loose all of your data!!!!
    Paste this to the terminal

    fastboot oem unlock
    (select yes on your phone)
    fastboot flash boot boot.img
    fastboot flash recovery twrp.img
    fastboot format userdata
    fastboot format cache


    Reboot to recovery (if it doesn't enter at the first time enter download mode again and restart to recovery)

    After that you have twrp and can flash every rom.. yay!!!

    Wipe everything.
    Copy the rom zip to your phone using MTP
    Install your fancy new rom :)

    If you want to install magisk:

    Install the magisk manager.
    On the app select install and select patch image file. (it will create a new boot image already patched)

    After that install the new image (patched_boot.img) using twrp

    Do a clean instalation of your ROM (recomended) or a Factory Reset first

    Reboot to twrp
    Select install
    Click in install image
    Select patched_boot.img
    Select install to boot partition
    Reboot.
    Install magisk manager and do the sugested setup.
    You now have magisk working :)

    Thanks to all the users that helped me!!
    1
    D
    Deleted member 2405884
    Thank you, i will try it.
    Another question. I never tried dowload mode before, as i read in other post i should Plug USB cable into pc, Hold volume up and power at the same time and plug phone into usb that's already connected to pc, right?
    When in download mode i can fire up fastboot commands like im in bootloader mode?
    So then after do last command fastboot format cache i can reboot to recovery from terminal using adb reboot recovery or i can / should do it from device?

    About twrp it's ok to use the latest 3.2.3.0 official version or the 3.2.1 4core version from here as someone suggested from Reddit? https://forum.xda-developers.com/nexus-5x/development/recovery-twrp-3-2-1-4-core-t3796656

    The official twrp works for fine for me, haven't tried the 4 core version but it can't hurt to try if you need it.

    Power off your phone then press and hold volume - and power to enter bootloader, then connect to your pc and follow the steps in the OP
    1
    sorry for the confusing i wanted to say fastboot mode..
    i knew the thread that you are saying but most people doesn't want to search so I made a little thread only with the needed parts..
    I use it myself so I have a place to remember all the steps when I need to change the rom to a new one or when I make experiments and brick my phone XD
    1
    Hi. I just went through the whole process several times (I have tried the different modified boot images from the dedicated post) and my device is still locked [emoji24] any suggestions?

    your device will always be locked this is a workaround to get twrp, new roms and magisk while it stays locked..
    with twrp usable it won't matter if you are locked or not
    1
    Yes :) if you have TWRP you can install custom ROMs, custom Kernel's, magisk, super su, etc..
    the locked bootloader only prevents you from using fastboot commands like the one needed for installing custom recovery
    Now that you have TWRP you can use it for everything