Related
Getting GN tomorrow, I've read all the [REF] posts and I've been working with Samsung devices since Samsung has been making devices.
I know little about Nexus devices, and I am surprised at how easy this process seems to be.
Naturally I'm suspicious, so I come to you to make sure I have this all straight:
1 adb fastboot oem unlock
2 rom manager > install clockworkmod
3 flash rom/gapps in recovery
Ya? No ODIN? No messing with partitions? Is it really as easy as these 3 steps?
kthanks
Step 1.5 is to root while using fastboot. Use efrant's guide in the "stickies" for the commands and sequence. It's very easy.
If you follow your steps as you wrote them (without the rooting commands in fastboot) then ROM Manager will install but you won't be able to flash the CWM recovery because there is no root.
Good luck!
Doc_rockulus said:
Getting GN tomorrow, I've read all the [REF] posts and I've been working with Samsung devices since Samsung has been making devices.
I know little about Nexus devices, and I am surprised at how easy this process seems to be.
Naturally I'm suspicious, so I come to you to make sure I have this all straight:
1 adb fastboot oem unlock
2 rom manager > install clockworkmod
3 flash rom/gapps in recovery
Ya? No ODIN? No messing with partitions? Is it really as easy as these 3 steps?
kthanks
Click to expand...
Click to collapse
Learn to do it all yourself, makes life a LOT easier!
1. fastboot oem unlock. Phone will reboot once you've done this so once booted go back to the bootloader
2. fastboot flash recovery recovery.img (download the latest CWM here and rename it recovery.img)
3. fastboot reboot
4. Once back in Android copy the ROM to your phone (and GAPPs if you need them). I'd also use a wipe script to format the phone before flashing the new ROM. You can get mike1986's one here
5. Turn on USB Debugging
6. adb reboot-bootloader
7. Go into recovery
8. Flash Super Wipe script (if you're going to use one)
9. Flash ROM
10. Flash GAPPs (if required)
11. Reboot phone
12. Enjoy!
EddyOS said:
Learn to do it all yourself, makes life a LOT easier!
1. fastboot oem unlock. Phone will reboot once you've done this so once booted go back to the bootloader
2. fastboot flash recovery recovery.img (download the latest CWM here and rename it recovery.img)
3. fastboot reboot
4. Once back in Android copy the ROM to your phone (and GAPPs if you need them). I'd also use a wipe script to format the phone before flashing the new ROM. You can get mike1986's one here
5. Turn on USB Debugging
6. adb reboot-bootloader
7. Go into recovery
8. Flash Super Wipe script (if you're going to use one)
9. Flash ROM
10. Flash GAPPs (if required)
11. Reboot phone
12. Enjoy!
Click to expand...
Click to collapse
To clarify, the fastboot oem unlock command only unlocks the bootloader, correct?
At what part of the process is root obtained? I've never seen/tried a CWM flash prior to root/SU.
Am I obtaining root simply by flashing the root enabled rom?
I wouldn't call that "Doing it myself"
That's right. Once the bootloader is unlocked you can then flash new files to the different partitions on the device (system, data, recovery, boot, etc...). Root is obtained when you flash the SuperSU package in CWM or when you flash a custom ROM (as they tend to be pre-rooted)
When I say 'do it yourself' I mean all the steps of unlocking the bootloader, flashing CWM manually, etc. as opposed to using apps that do it all for you
Doc_rockulus said:
Getting GN tomorrow, I've read all the [REF] posts and I've been working with Samsung devices since Samsung has been making devices.
I know little about Nexus devices, and I am surprised at how easy this process seems to be.
Naturally I'm suspicious, so I come to you to make sure I have this all straight:
1 adb fastboot oem unlock
2 rom manager > install clockworkmod
3 flash rom/gapps in recovery
Ya? No ODIN? No messing with partitions? Is it really as easy as these 3 steps?
kthanks
Click to expand...
Click to collapse
yup, that's pretty much it.
1. fastboot OEM unlock
2. fastboot flash a custom recovery(differs from ROM manager)
3. flash the su binaries or a custom ROM in your new recovery
4. reboot and profit
Put the rom you want on your sd card before you do any of this actually. Then get yourself into fastboot mode. Then do the
fastboot oem unlock.
Fastboot flash recovery "name of recovery.img"
fastboot boot recovery
Install ROM
Actually come to think of it, maybe the oem unlock erases sd card, putting ROM on before unlocking might not be good. Most roms have root permission anyhow so you don't gotta worry about getting root if your flashing a custom rom.
M3drvr said:
Put the rom you want on your sd card before you do any of this actually. Then get yourself into fastboot mode. Then do the
fastboot oem unlock.
Fastboot flash recovery "name of recovery.img"
fastboot boot recovery
Install ROM
Click to expand...
Click to collapse
if you put the rom you want in your storage before you fastboot oem unlock, then it wont be there when you need to flash it, considering the contents of your storage gets erased when you fastboot oem unlock.
simms22 said:
if you put the rom you want in your storage before you fastboot oem unlock, then it wont be there when you need to flash it, considering the contents of your storage gets erased when you fastboot oem unlock.
Click to expand...
Click to collapse
Ya i thought of that after i posted. That was my bad. Although you could boot into recovery, mount the sd card so computer sees it, copy the rom into phone then flash it. Rather than rebooting to system and using rom manager.
M3drvr said:
Ya i thought of that after i posted. That was my bad. Although you could boot into recovery, mount the sd card so computer sees it, copy the rom into phone then flash it. Rather than rebooting to system and using rom manager.
Click to expand...
Click to collapse
No you can't mount the sdcard as the nexus does not have mass storage
Sent from my Galaxy Nexus using Tapatalk 2
Zepius said:
No you can't mount the sdcard as the nexus does not have mass storage
Sent from my Galaxy Nexus using Tapatalk 2
Click to expand...
Click to collapse
Then i have a messed up phone, cause when i'm in recovery i can drop files into my phone from my computer.
M3drvr said:
Then i have a messed up phone, cause when i'm in recovery i can drop files into my phone from my computer.
Click to expand...
Click to collapse
+1
Thanks guys, I've got it. Rooted, CM10.1 in record time.
First device I've had that hasn't put up a fuss during this process.
Now that I'm in CM10.1 can I use AOSP kernel or do I need one based off of CM?
As title says, but we need a working backup. Mine is broken, can someone upload a working one, plz?
This is the howto:
1. Flash a stock image (I used the August stock image MTC20F)
2. Fastboot flash TWRP 3.0.2-0
3. Boot into TWRP
4. Select Wipe -> Advanced Wipe -> Select and repair each partition individually (some won't be able to, and that's fine, just move on to the next one)
5. Restore a full nandroid backup (make sure everything is selected) and reboot
6. You should now be free of the never ending boots, and if your device is bootlooped at this point (stuck at the boot animation), you can just flash stock again.
Thanks for this solution. But I have a problem because after installing the rom file .tot have a locked bootloader, and at this moment I can not do flash twrp.
In order to unlock the bootloader command "fastboot oem unlock" I get the answer that it is not possible. NTR it can not unlock it.
Goes some way to upload twrp with a locked bootloader or a way to unlock?
Danielf85 said:
Thanks for this solution. But I have a problem because after installing the rom file .tot have a locked bootloader, and at this moment I can not do flash twrp.
In order to unlock the bootloader command "fastboot oem unlock" I get the answer that it is not possible. NTR it can not unlock it.
Goes some way to upload twrp with a locked bootloader or a way to unlock?
Click to expand...
Click to collapse
My bootloader is locked, too. The only way to write to the phone seems to be via download mode, but flashing LGH790AT-00-V10f-NXS-XXX-OCT-03-2015-32G-MDA89E-US.tot doesn't work...
To install twrp we need to unlock the bootloader.
However, when the command "fastboot oem unlock" system gives the answer
FAILED (remote: oem unlock is not allowed)
Then how to unlock?
Danielf85 said:
To install twrp we need to unlock the bootloader.
However, when the command "fastboot oem unlock" system gives the answer
FAILED (remote: oem unlock is not allowed)
Then how to unlock?
Click to expand...
Click to collapse
There's really nothing you can do to force an unlock. If you can adb sideload a full OTA zip (say for 7.0) from Google and get that to boot up, that's pretty much your best bet.
Sent from my Nexus 5X using Tapatalk
I mean, the new unlock command is:
fastboot flashing unlock
oc2 said:
I mean, the new unlock command is:
fastboot flashing unlock
Click to expand...
Click to collapse
On Nexus 5X both commands can be used (oem unlock and flashing unlock)
I followed all the steps except I can't boot to recovery...when I try (manually via ADB or automatically using Wug's tool) it just goes back into the bootloop. I can't even boot temporarily to recovery (without flashing). I'm getting close to throwing in the towel...
Did not work for me, sadly
Edit: Here's how I managed to fix the problem
1. Moved Nandroid backup to PC.
2. Download factory image MTC20F from https://developers.google.com/android/nexus/images.
3. Install factory image (This will erase all data on your phone so move your files to your PC).
4. Install TWRP 3.0.2-0 from https://dl.twrp.me/bullhead/twrp-3.0...lhead.img.html via fastboot.
5. Go in TWRP>Wipe>Advanced Wipe and repair all partitions that can be repaired (System, Data, Cache).
6. Restore Nandroid backup.
7. Success.
Hope it works for other people too, cheers
Anyone in Portland Oregon and want to take a crack at unbricking my 5x? LG gave me an RMA, but given it's not a hardware issue, I'm thinking it will be a waste of time to send it in -- I'm worried they'll just say "all your hardware is fine". Happy to buy drinks or pay a bit if someone can get me up and running.
Hi
I was trying to add a custom rom and root my honor 7x.
So i installed a twrp-like recovery (with success), and with that, i sucessfully installed a new ROM.
But now my home folder (/storage/emulated/0) is not writable and seems to be encrypted :/
I cannot do a factory reset or install a new ROM:
- when i go to fastboot mode, i have:
- PHONE Unlocket
- FRP Lock
So i cannot flash anything with fastboot, and my recovery is no more accessible (don't know why...)
My question is, how can i unlock the FRP ?
Thank you very much,
boehm_e
boehm_e said:
Hi
I was trying to add a custom rom and root my honor 7x.
So i installed a twrp-like recovery (with success), and with that, i sucessfully installed a new ROM.
But now my home folder (/storage/emulated/0) is not writable and seems to be encrypted :/
I cannot do a factory reset or install a new ROM:
- when i go to fastboot mode, i have:
- PHONE Unlocket
- FRP Lock
So i cannot flash anything with fastboot, and my recovery is no more accessible (don't know why...)
My question is, how can i unlock the FRP ?
Thank you very much,
boehm_e
Click to expand...
Click to collapse
Look in developer options, the "enable OEM unlock" switch is the "frp lock"
You might already know but I will say anyway just in case.
To boot recovery while phone is rebooting unplug USB and press volume up
To boot from adb use "adb reboot recovery"
From terminal app on phone "reboot recovery"
From powered off, make sure USB in unplugged hold volume up and power
mrmazak said:
Look in developer options, the "enable OEM unlock" switch is the "frp lock"
You might already know but I will say anyway just in case.
To boot recovery while phone is rebooting unplug USB and press volume up
To boot from adb use "adb reboot recovery"
From terminal app on phone "reboot recovery"
From powered off, make sure USB in unplugged hold volume up and power
Click to expand...
Click to collapse
Thank you for your reply.
Yes i know for the oem option in developper mode, but this option is grayed out (and enabled) but the frp is still locked :/
I also know about rebooting to recovery, but this is the default Honor recovery (nothing very usefull).
I tried the dload folder method (by putting an update.app into dload folder of my sdcard and then booting with + and - and power, but the update failes at 5%. It must be because of the frp lock).
Thank you
boehm_e said:
Thank you for your reply.
Yes i know for the oem option in developper mode, but this option is grayed out (and enabled) but the frp is still locked :/
I also know about rebooting to recovery, but this is the default Honor recovery (nothing very usefull).
I tried the dload folder method (by putting an update.app into dload folder of my sdcard and then booting with + and - and power, but the update failes at 5%. It must be because of the frp lock).
Thank you
Click to expand...
Click to collapse
I keep seeing this frp lock issue, comes uP after a reset in twrp or attempted exposed install, some other system change.
Are you on stock ROM and stock recovery?
If so can try to relock bootloader, that will make OEM toggle not greyed anymore. Then can make it off and back on.
Then unlock bootloader again
But only relock if on unchanged stock
I already tried to lock the bootloader again, with no success (probably bcs of the frp lock itself)
:/
Hi
I have same issue too.
How I can relock bootloader and then unlock it?
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:
Download boot image from here
Download twrp from the official website
Change the name to boot.img and twrp.img and put it in the platform-tools folder
Open the terminal there
Download your favourite rom
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!!
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!
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.
sigibian said:
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.
Click to expand...
Click to collapse
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.
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
sigibian said:
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
Click to expand...
Click to collapse
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
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
sigibian said:
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
Click to expand...
Click to collapse
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.
baddesthad said:
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.
Click to expand...
Click to collapse
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.
sigibian said:
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.
Click to expand...
Click to collapse
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)
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
If anyone know anything else that should be in here just say, I really want to improve the post
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?
fhartane said:
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?
Click to expand...
Click to collapse
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
PedroM.CostaAndrade said:
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
Click to expand...
Click to collapse
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
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
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?
Fabiojoker said:
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?
Click to expand...
Click to collapse
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
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
PedroM.CostaAndrade said:
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
Click to expand...
Click to collapse
Why is a custom boot image needed? I don't want to root.
Hello all
I desperately try to relock my bootloader but failed many times and I am shortly before giving up. I was once on a locked bootloader on LOS but camera didn't work. (Couldn't reproduce)
Maybe you see something I missed out / didn't understand.
The main reason is, that some apps like ebanking check the state of the bootloader. And they also don't go through Securenet because of huawei.
So what I tried with this setup:
sign both boot.img and twrp.img with BootSignature.jar using own private key
Twrp Using: twrp-3.5.2_9-0-oneplus3
boot img from:
lineage-17.1-20210330-microG-oneplus3
lineage-18.1-20210403-microG-oneplus3
With firmware: oxygenos-9.0.6-firmware-3 from https://github.com/nvertigo/firmware-3t/tree/master/archive/op3
Mostly I got the ideas from https://forum.xda-developers.com/t/device-forum-rules-please-read-before-posting.3333345/
And what I do is this:
Using fastboot flash signed recovery
boot into recovery
whipe everything (is this needed every time?), data, factory reset, all partitions except internal & usb
reboot into recovery
sideload lineageos with signed boot.img inside
fastboot oem unlock => directly restarts after 'yes'
boot into LOS
fastboot oem unlock => directly restarts after 'yes' again
Do you see something I do wrong? Should I use other versions/files?
Hope to find a way
Edit: Also I can go back to stock where it gets locked again using the latest OnePlus3_16_A.86_191104_repack.