Hi, it's been a while since I've flashed a rom on a phone and I am looking for some help. I've read rczrider's guide for unlocking the bootloader, as well as codeworkx's post on his thread, but I am still a bit uncertain on the process. Is rcrider's method the only method that allows me to unlock the bootloader? Would solely following codeworkx's method in installing twrp not work?
Also, I cannot tell by reading through codeworkx's thread that data and phone calls will work on the x522 US variant. Could someone please clarify this?
Quote from codeworkx's post:
HOW TO INSTALL TWRP
Quote:
- Enable developer options
- Allow oem unlock
- Power off
- Hold Volume down + Power for Fastboot mode
- fastboot oem unlock-go
- fastboot boot twrp.img
- adb push twrp.img /sdcard/
- Choose "Install" and then "Install Image"
- Select twrp.img
- Select Partition "Recovery"
- Confirm Flash
- Reboot to recovery
Thanks in advance.
Ghoulsnumber said:
Hi, it's been a while since I've flashed a rom on a phone and I am looking for some help. I've read rczrider's guide for unlocking the bootloader, as well as codeworkx's post on his thread, but I am still a bit uncertain on the process. Is rcrider's method the only method that allows me to unlock the bootloader? Would solely following codeworkx's method in installing twrp not work?
Also, I cannot tell by reading through codeworkx's thread that data and phone calls will work on the x522 US variant. Could someone please clarify this?
Quote from codeworkx's post:
HOW TO INSTALL TWRP
Quote:
- Enable developer options
- Allow oem unlock
- Power off
- Hold Volume down + Power for Fastboot mode
- fastboot oem unlock-go
- fastboot boot twrp.img
- adb push twrp.img /sdcard/
- Choose "Install" and then "Install Image"
- Select twrp.img
- Select Partition "Recovery"
- Confirm Flash
- Reboot to recovery
Thanks in advance.
Click to expand...
Click to collapse
This is the line which unlocks the bootloader
>>fastboot oem unlock-go<<
no matter which rom you use..upon rebooting it will be relocked..
best way to find out how a rom runs,is to load it up and give it a whirl
for unlocking the boot loader try this thread its detailed here
https://forum.xda-developers.com/le-2/development/install-stable-update-eui-5-9-20s-to-t3500609
just download everything except the rom from the step one
Related
I'd like to install the VZW OTA update from the soak test and need to flash back to stock. If I flash the stock firmware from droid-developers will I lose my unlocked bootloader? Is there a separate firmware for the VZW developers edition or will I need to unlock it through Motorola's site again?
Thanks!
Only way I know to loose a bootloader unlock is via the fastboot relock command. (For unlockable bootloaders......not sure about safe strap devices)
gokart2 said:
Only way I know to loose a bootloader unlock is via the fastboot relock command. (For unlockable bootloaders......not sure about safe strap devices)
Click to expand...
Click to collapse
So I could just flash stock, install the OTA and install fastboot TWRP? That would be gravy.
Edit: Steps
1) Download the correct firmware (http://sbf.droid-developers.org/ghost_rcica/list.php). Extract boot.img, logo.bin, motoboot.img, recover.img, system.img.
2) Enter into fastboot (down volume + Power)
3) Launch command prompt/window on fastboot folder (shift key + right click)
4) Fastboot everything except system.img
5) Get motorola fastboot (http://forum.xda-developers.com/showthread.php?t=1953948) Thanks: jayboyyyy!
6) mfastboot system.img
7) Reboot into recovery, wait for it to time out.
8) Hold the up volume for 10 seconds and tap the power button.
9) Select update from the menu and find your OTA update.
Winner.
I recently had to reinstall the android os due to something I did wrong, anyway my bootloader is relocked and I can't unlock it because s-on is active, and ontop of that I don't have it rooted because I just recently redid the OS. So basically I'm stuck here, any help would be greatly appreciated.
s-on still allows to unlock the bootloader
Turn on developer options and enable oem unlocking.
Then follow the steps
Step one
adb reboot download
Step two
fastboot oem get_identifier_token
Step three
go to htc-dev site input your code and get the unlock file e-mailed to you.
Step 4
again in download mode
do
fastboot devices to see if your device is in fastboot mode.
Step 5
fastboot flash unlocktoken unlock_code.bin
Step6
fastboot flash recovery twrprecovery.img
Step7
Download supersu flashable zip and copy to sd card
Step8
boot into twrp recovery using volume and power buttons. Select boot recovery from bootloader menu.
Step9
Install supersu zip in TWRP recovery.
Now you should be unlocked and rooted.
BigCountry907 said:
s-on still allows to unlock the bootloader
Turn on developer options and enable oem unlocking.
Then follow the steps
Step one
adb reboot download
Step two
fastboot oem get_identifier_token
Step three
go to htc-dev site input your code and get the unlock file e-mailed to you.
Step 4
again in download mode
do
fastboot devices to see if your device is in fastboot mode.
Step 5
fastboot flash unlocktoken unlock_code.bin
Step6
fastboot flash recovery twrprecovery.img
Step7
Download supersu flashable zip and copy to sd card
Step8
boot into twrp recovery using volume and power buttons. Select boot recovery from bootloader menu.
Step9
Install supersu zip in TWRP recovery.
Now you should be unlocked and rooted.
Click to expand...
Click to collapse
I'll give this a shot and get back to you, thanks!!
I have the P10 64gb Dual Sim version, VTR-L29C63B162
I have rooted the phone, unlocked the boot loader and upgrated to VTR-L29C63B162
After searching the forums and the web I can't find a successful or comprehensive way to Revert all the changes, can someone provide thier help please?
- Relock bootloader
- Remove root
- flash stock recovery and OS
Thanks:good:
Hey Mate,
First: i never did locked the bootloader again, but i readed something on the internet about it. I also not have a Guide, but maybe i can give you some hints about it.
Flashing Stock Recovery and System via. Bootloader
If you want to flash back the Stock Recvovery and System you have to download the original Firmeware (Update.app from Huawei).
After you got the Update.app (should be like 2 GB) you have to extract the Update.APP to get BOOT.IMG, SYSTEM.IMG, RECOVERY.IMG (plus CUST.IMG).
To extract the UPDATE.APP you can use this tool (HUAWEIUPDATEEXTRACTOR) from worstenbrood:
https://forum.xda-developers.com/showthread.php?t=2433454
Extract the BOOT.IMG, SYSTEM.IMG, RECOVERY.IMG (plus CUST.IMG) to your ADB and Fastboot Platforms Tool.
after that you can flash the Images in the fastboot mode.
I think (i am not 100% sure about it) to flash the Images in this sequence (control that on the internet):
fastboot flash boot BOOT.IMG
fastboot flash recovery RECOVERY.IMG
fastboot flash system SYSTEM.IMG
(fastboot flash cust CUST.IMG)
after that your phone should boot like your unboxing it the first time.
Locking Bootloader again via fastboot
I think you can relock your Bootloader again with one of these fastboot commands:
fastboot oem lock YourCode
fastboot flashing lock
fastboot oem relock YourCode
if one of this is working you can boot your devices (fastboot reboot).
I never tried this and dont know exactly whats your goal (relock, lock whatever) but maybe this is another hint:
https://forum.xda-developers.com/mate-9/how-to/guide-rebrand-chinese-al00-mate9-to-t3554656/page57
Kind Regards
@neuenburg Thanks!
I will try this and let you know if it works for me
It worked , although I had to:
- restore factory settings
- connect device to pc via usb
- click on build to enable developer mode
- enable USB debugging in developer mode
- unplug device, replug and authorise usb debugging for the pc
Then I did this via adb cmd
- adb reboot-bootloader
- fastboot flash boot BOOT.IMG
- fastboot flash recovery RECOVERY.IMG
- fastboot flash system SYSTEM.IMG
- fastboot reboot
Go back into fastboot after device restart
- fastboot oem relock [unlockcodexxxxxxxxx]
dev_don said:
It worked , although I had to:
- restore factory settings
- connect device to pc via usb
- click on build to enable developer mode
- enable USB debugging in developer mode
- unplug device, replug and authorise usb debugging for the pc
Then I did this via adb cmd
- adb reboot-bootloader
- fastboot flash boot BOOT.IMG
- fastboot flash recovery RECOVERY.IMG
- fastboot flash system SYSTEM.IMG
- fastboot reboot
Go back into fastboot after device restart
- fastboot oem relock [unlockcodexxxxxxxxx]
Click to expand...
Click to collapse
:highfive: :good:
Thanks a lot, works great!
When relocking the bootloader does the phone then say *bootloader relocked" or anything like that or is it back to standard as if first unboxed?
Also, on a side note, is there a way to use banking apps with the bootloader unlocked/rooted etc? On my old phone Barclays wouldn't work with the root but it looked like Magisk etc were working on ways top get past this.
As I say in the tittle, my phone has not slot b. It means that when I try to flash any .img or .zip I have an error message telling my that "XXX_b not accesible".
How can I create the partition? I have android one and everything locked as I flashed the stock image vía COM because I have no idea how to solve the partition problem.
gfpablo_ said:
As I say in the tittle, my phone has not slot b. It means that when I try to flash any .img or .zip I have an error message telling my that "XXX_b not accesible".
How can I create the partition? I have android one and everything locked as I flashed the stock image vía COM because I have no idea how to solve the partition problem.
Click to expand...
Click to collapse
You say you are trying to flash something but then you also say that everything is locked. You can't flash anything other than the stock firmware (in EDL mode) if your bootloader is locked.
Catsonvi said:
You say you are trying to flash something but then you also say that everything is locked. You can't flash anything other than the stock firmware (in EDL mode) if your bootloader is locked.
Click to expand...
Click to collapse
I tried to flash it when i have everything unlocked. I tried to flash ASOP v6.6 and the result was a bricked phone. However I flashed the android one stock ROM and locked everything with the Xiaomi flash program.
You need to flash stock through EDL
Nebrassy said:
You need to flash stock through EDL
Click to expand...
Click to collapse
That's what i've done. Although, if I try to flash TWRP from fastboot I have an error message telling me that I have no slot b
gfpablo_ said:
That's what i've done. Although, if I try to flash TWRP from fastboot I have an error message telling me that I have no slot b
Click to expand...
Click to collapse
You can't flash the TWRP image from fastboot, since our phone does not have a seperate recovery partition and you also cannot flash ANYTHING (other than stock via EDL) if your phone's bootloader is locked.
Now since it seems that your bootloader is locked, you need to enable developer options first and then in developer options enable the "OEM unlocking" option. After that you need to go to fastboot in order to unlock the bootloader and use these commands one at the time:
fastboot flashing unlock
fastboot flashing unlock_critical
Keep in mind that after using these commands you will get a prompt on your phone to confirm that you want to unlock the bootloader and doing so will erase everything (basically like doing a factory reset).
After you fully unlock the bootloader, in order to flash TWRP with stock you need to go to the official TWRP website and find the .img and the .zip installer for the Mi A2. You need to boot the .img via fastboot with fastboot boot *location to the .img* (without the asterisks) and then transfer and flash the TWRP .zip installer with TWRP. After that you can boot into TWRP normally without fastboot booting.
If you want to flash a custom ROM you will still need to fastboot boot into the TWRP .img because the .zip you flashed is tied to the system, and since you need to wipe the system before flashing a custom ROM you will also wipe the flashed TWRP.
I still recommend reading this guide: https://forum.xda-developers.com/mi-a2/how-to/guide-how-to-flash-custom-roms-stuff-t3876375
[SOLVED]
Catsonvi said:
You can't flash the TWRP image from fastboot, since our phone does not have a seperate recovery partition and you also cannot flash ANYTHING (other than stock via EDL) if your phone's bootloader is locked.
Now since it seems that your bootloader is locked, you need to enable developer options first and then in developer options enable the "OEM unlocking" option. After that you need to go to fastboot in order to unlock the bootloader and use these commands one at the time:
fastboot flashing unlock
fastboot flashing unlock_critical
Keep in mind that after using these commands you will get a prompt on your phone to confirm that you want to unlock the bootloader and doing so will erase everything (basically like doing a factory reset).
After you fully unlock the bootloader, in order to flash TWRP with stock you need to go to the official TWRP website and find the .img and the .zip installer for the Mi A2. You need to boot the .img via fastboot with fastboot boot *location to the .img* (without the asterisks) and then transfer and flash the TWRP .zip installer with TWRP. After that you can boot into TWRP normally without fastboot booting.
If you want to flash a custom ROM you will still need to fastboot boot into the TWRP .img because the .zip you flashed is tied to the system, and since you need to wipe the system before flashing a custom ROM you will also wipe the flashed TWRP.
I still recommend reading this guide: https://forum.xda-developers.com/mi-a2/how-to/guide-how-to-flash-custom-roms-stuff-t3876375
Click to expand...
Click to collapse
Thank you! I have to admit that I have no idea of whats wrong earlier. This guide solved the problem tho.
is there any TWRP img supported for HTC Desire 12???? been searching it for few days now...
Shahxada said:
is there any TWRP img supported for HTC Desire 12???? been searching it for few days now...
Click to expand...
Click to collapse
Did you find any solution
mesutsenol said:
Did you find any solution
Click to expand...
Click to collapse
I don't need recovery for this phone but I dumped stock recovery which can be used to make own twrp recovery. You can read and do instructions from this site
HTML:
https://gist.github.com/rokibhasansagar/15c8e728d94a6bd35a687aac73ef79a5
.
If you want just only root (probably this method is only way to get root on this device) just:
1. UNLOCK BOOTLOADER! (developer options -> oem unlocking -> connect phone to pc in fastboot mode -> write in adb "fastboot oem unlock")
2. flash patched stock boot via fastboot (fastboot flash boot <path to magisk_patched.img>)
3. Install Magisk Manager
4. Done!
_____
If you want do something with this phone I recommend to use SP Flash Tool. You need to install unsigned MT67xx USB VCOM DRIVERS (preloader driver). You must have scatter files too with partition addresses and sizes in hex and you must download preloader. You can do it downloading ota update from htc via HTC_OTA_Downloader (model: htc_breeze_dugl CID: HTC__401 version: 1.90.401.1) and unpacking it. You can find there scatter file with partition addresses and preloader. If you want turn on preload mode just turn off and connect phone to pc.
Before doing something I truly recommend do backup/dump all partitions in SP Flash Tool.
krzysiek546 said:
I don't need recovery for this phone but I dumped stock recovery which can be used to make own twrp recovery. You can read and do instructions from this site
HTML:
https://gist.github.com/rokibhasansagar/15c8e728d94a6bd35a687aac73ef79a5
.
If you want just only root (probably this method is only way to get root on this device) just:
1. UNLOCK BOOTLOADER! (developer options -> oem unlocking -> connect phone to pc in fastboot mode -> write in adb "fastboot oem unlock")
2. flash patched stock boot via fastboot (fastboot flash boot <path to magisk_patched.img>)
3. Install Magisk Manager
4. Done!
_____
If you want do something with this phone I recommend to use SP Flash Tool. You need to install unsigned MT67xx USB VCOM DRIVERS (preloader driver). You must have scatter files too with partition addresses and sizes in hex and you must download preloader. You can do it downloading ota update from htc via HTC_OTA_Downloader (model: htc_breeze_dugl CID: HTC__401 version: 1.90.401.1) and unpacking it. You can find there scatter file with partition addresses and preloader. If you want turn on preload mode just turn off and connect phone to pc.
Before doing something I truly recommend do backup/dump all partitions in SP Flash Tool.
Click to expand...
Click to collapse
dude this really helped a lot! its a shame we cant even get full stock firmware for modding purpose, thanks!