Hello ,
I tried rooting my Moto G5 using Moto G5 toolkit (flashing superSU).
Then I flashed TWRP and Flashed the WLAN_CUSTOM
Now i get that generic warning screen of unlocked boot loader and boots the phone in 5 seconds. however My phone is not rooted. and I cant open camera at all , getting error as " Camera Busy - Camera unable to start. If this happens again, please power off your phone and restart."
I did restarted several times but no luck.
Can someone help me fix this camera issue? or just help me to revert back as it was previously no root nothing, I guess this TOOLKIT has some bugs in it or may be I did something wrong or ignorant.
Any help will be appreciated as I am newbie with this android development.
Probably easier to reflash the stock firmware, if you still want to have root then maybe follow one of the root guides available rather than the tool kit, if you're not wanting root and want to stay on stock firmware then read this carefully ensuring you download the correct firmware for your device:
https://forum.xda-developers.com/g5-plus/help/relock-bootloader-t3601751/page2
A bit more reading from the moto website regarding returning to stock:
FLASH AND RELOCK YOUR DEVICE
After downloading the image for your device:
Make sure you have a Moto Pure Edition or a Developer Edition device.
Make sure you download the corresponding recovery image from the above portal.
To flash, put the phone in fastboot mode:
1. Power OFF your device
2. Then Power ON + Volume Down
Alternatively, you can reboot into fastboot mode if you have adb...adb reboot bootloader.
Next flash the images using fastboot:
$ fastboot flash partition gpt.bin
$ fastboot flash motoboot motoboot.img
$ fastboot reboot-bootloader
$ fastboot flash logo logo.bin
$ fastboot flash boot boot.img
$ fastboot flash recovery recovery.img
$ fastboot flash system system.img
$ fastboot flash modem NON-HLOS.bin
$ fastboot erase modemst1
$ fastboot erase modemst2
$ fastboot flash fsg fsg.mbn
$ fastboot reboot
You also have the option to erase all the data on your device with
$ fastboot erase userdata
$ fastboot erase cache
After performing this sequence, you can relock your device with
$ fastboot oem lock
Priezti said:
Probably easier to reflash the stock firmware
Click to expand...
Click to collapse
I thanked you for him
That's why those tools only harm... People don't like to read...
It easy, you had a compilation not compatible with the toolkit (using kernel and wifi for another build version), that's why camera got broken
Simply reflash the firmware and for future instances, try to read instead using automatic tools
Priezti said:
Probably easier to reflash the stock firmware, if you still want to have root then maybe follow one of the root guides available rather than the tool kit, if you're not wanting root and want to stay on stock firmware then read this carefully ensuring you download the correct firmware for your device:
https://forum.xda-developers.com/g5-plus/help/relock-bootloader-t3601751/page2
A bit more reading from the moto website regarding returning to stock:
FLASH AND RELOCK YOUR DEVICE
After downloading the image for your device:
Make sure you have a Moto Pure Edition or a Developer Edition device.
Make sure you download the corresponding recovery image from the above portal.
To flash, put the phone in fastboot mode:
1. Power OFF your device
2. Then Power ON + Volume Down
Alternatively, you can reboot into fastboot mode if you have adb...adb reboot bootloader.
Next flash the images using fastboot:
$ fastboot flash partition gpt.bin
$ fastboot flash motoboot motoboot.img
$ fastboot reboot-bootloader
$ fastboot flash logo logo.bin
$ fastboot flash boot boot.img
$ fastboot flash recovery recovery.img
$ fastboot flash system system.img
$ fastboot flash modem NON-HLOS.bin
$ fastboot erase modemst1
$ fastboot erase modemst2
$ fastboot flash fsg fsg.mbn
$ fastboot reboot
You also have the option to erase all the data on your device with
$ fastboot erase userdata
$ fastboot erase cache
After performing this sequence, you can relock your device with
$ fastboot oem lock
Click to expand...
Click to collapse
Thank You for your help. I will surely try this in case of Apocalypse.
I flashes ElementalX and my camera started working. . I dont trust this TOOLKIT thing anymore. Old Paramparik mehod is good.:silly:
Thank you for your all the help. Will bug you guys again if ran into trouble. :cyclops:
Related
Moto X XT1060 re-root VZW after [KXA21.12-L1.26] Moto X ver. 4.4.4
So without checking before updating to 4.4.4 version 231.46.1.ghost_ _en.US *my build number has a ".1"* KXA21.12-L1.26.1. I lost root access, was kinda bummed, so I tried a few methods to re-flash to get root access again. And a few trial and error I was able to get root access again.
My setup and steps:
My setup:
Moto X Dev.Ed. XT1060 vzw
Macbook / terminal
Got recovery images and steps from flashing bacak to stock at www.motorola.com, follow steps got back to stock minus relock bootloader (still unlocked bootloader), used the fastboot from the "Darwin" folder
Step from www.motorola.com:
$ fastboot flash partition gpt.bin
$ fastboot flash motoboot motoboot.img
$ fastboot reboot-bootloader
$ fastboot flash logo logo.bin
$ fastboot flash boot boot.img
$ fastboot flash recovery recovery.img
$ fastboot flash system system.img
$ fastboot flash modem NON-HLOS.bin -*** I skipped this step was following older step from text file
$ fastboot erase modemst1
$ fastboot erase modemst2
$ fastboot flash fsg fsg.mbn
$ fastboot reboot
Lost root access, FML!
Solution:
Used old twrp recovery - TWRP 2.6.3.1 for Android 4.4 [2013-11-19] *big up to hashcode :good:* got root access again,
Hope this helps
_slam said:
Lost root access, FML!
Solution:
Used old twrp recovery - TWRP 2.6.3.1 for Android 4.4 [2013-11-19] *big up to hashcode :good:* got root access again,
Hope this helps
Click to expand...
Click to collapse
You will always lose root when fastboot flashing an entire rom, and usually lose root when taking an OTA.
IF you have an unlocked bootloader, you can always root by following -> http://forum.xda-developers.com/moto-x/moto-x-qa/instructions-unlocking-rooting-dev-ed-t2649738 Please be sure to use the latest TWRP fastboot IMG file (Alternate Link) and Installable ZIP of SuperSU
Moto X XT1060 re-root VZW after [KXA21.12-L1.26] Moto X ver. 4.4.4
So without checking before updating to 4.4.4 version 231.46.1.ghost_ _en.US *my build number has a ".1"* KXA21.12-L1.26.1. I lost root access, was kinda bummed, so I tried a few methods to re-flash to get root access again. And a few trial and error I was able to get root access again.
My setup and steps:
My setup:
Moto X Dev.Ed. XT1060 vzw
Macbook / terminal
Got recovery images and steps from flashing bacak to stock at www.motorola.com, follow steps got back to stock minus relock bootloader (still unlocked bootloader), used the fastboot from the "Darwin" folder
Step from www.motorola.com:
$ fastboot flash partition gpt.bin
$ fastboot flash motoboot motoboot.img
$ fastboot reboot-bootloader
$ fastboot flash logo logo.bin
$ fastboot flash boot boot.img
$ fastboot flash recovery recovery.img
$ fastboot flash system system.img
$ fastboot flash modem NON-HLOS.bin -*** I skipped this step was following older step from text file
$ fastboot erase modemst1
$ fastboot erase modemst2
$ fastboot flash fsg fsg.mbn
$ fastboot reboot
Lost root access, FML!
Solution:
Used old twrp recovery - TWRP 2.6.3.1 for Android 4.4 [2013-11-19] *big up to hashcode :good:* got root access again,
Hope this helps
That is a very old version of twrp you are using my friend.
You will always lose root when fastboot flashing an entire rom, and usually lose root when taking an OTA.
IF you have an unlocked bootloader, you can always root by following -> http://forum.xda-developers.com/moto-x/moto-x-qa/instructions-unlocking-rooting-dev-ed-t2649738 Please be sure to use the latest TWRP fastboot IMG file (Alternate Link) and Installable ZIP of SuperSU
I.e. if your bootloader is unlocked, just flash TWRP reocvery, and use it and SuperSU to root.
Follow at your own risk. Unlocked bootloader required.
This is how I was able to fix my softbrick after updating to -64 on my US XT1625 Amazon G4. Credit goes to Android Doctor (his YouTube tutorial), I changed his fastboot commands a little though to better match how a real Moto upgade would act (based off of the flashfile.xml file in the firmware zip).
From here download "XT1625_ATHENE_AMAZON_MPJ24.139-64_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip" (Here's a direct link if it works for you).
Extract that zip to a folder and copy ADB/fastboot files to that folder. Navigate or open a command prompt window to that directory. Boot your phone into fastboot (power it off and power it back on holding the volume down key or just run "adb reboot bootloader" if you're in recovery). Run the following commands from the command prompt window when your phone is in the bootloader and your command prompt window is navigated to the folder you extracted XT1625_ATHENE_AMAZON...zip to (you can also copy and paste them all into command prompt):
Running the below commands unmodified will wipe your data. You can try to run them without the "fastboot erase userdata" command at the bottom to possibly save your data (I can't guarantee anything).
Code:
fastboot oem fb_mode_set
fastboot flash partition gpt.bin
fastboot flash bootloader bootloader.img
fastboot flash logo logo.bin
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash dsp adspso.bin
fastboot flash oem oem.img_sparsechunk.0
fastboot flash oem oem.img_sparsechunk.1
fastboot flash system system.img_sparsechunk.0
fastboot flash system system.img_sparsechunk.1
fastboot flash system system.img_sparsechunk.2
fastboot flash system system.img_sparsechunk.3
fastboot flash system system.img_sparsechunk.4
fastboot flash system system.img_sparsechunk.5
fastboot flash system system.img_sparsechunk.6
fastboot flash system system.img_sparsechunk.7
fastboot flash modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn
fastboot erase cache
fastboot erase userdata
fastboot erase customize
fastboot erase clogo
fastboot erase DDR
fastboot oem fb_mode_clear
fastboot reboot
Again, I give no guarantees on this and probably won't be checking back on this thread for replying or updating. Also note, Amazon ads will return to your lock screen.
beano311 said:
Follow at your own risk.
This is how I was able to fix my softbrick after updating to -64 on my US XT1625 Amazon G4. Credit goes to Android Doctor (his YouTube tutorial), I changed his fastboot commands a little though to better match how a real Moto upgade would act (based off of the flashfile.xml file in the firmware zip.
From here download "XT1625_ATHENE_AMAZON_MPJ24.139-64_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip" (Here's a direct link if it works for you).
Extract that zip to a folder and copy ADB/fastboot files to that folder. Navigate or open a command prompt window to that directory. Boot your phone into fastboot (power it off and power it back on holding the volume down key or just run "adb reboot bootloader" if you're in recovery). Run the following commands from the command prompt window when your phone is in the bootloader and your command prompt window is navigated to the folder you extracted XT1625_ATHENE_AMAZON...zip to (you can also copy and paste them all into command prompt):
Running the below commands unmodified will wipe your data. You can try to run them without the "fastboot erase userdata" command at the bottom to possibly save your data (I can't guarantee anything).
Code:
fastboot oem fb_mode_set
fastboot flash partition gpt.bin
fastboot flash bootloader bootloader.img
fastboot flash logo logo.bin
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash dsp adspso.bin
fastboot flash oem oem.img_sparsechunk.0
fastboot flash oem oem.img_sparsechunk.1
fastboot flash system system.img_sparsechunk.0
fastboot flash system system.img_sparsechunk.1
fastboot flash system system.img_sparsechunk.2
fastboot flash system system.img_sparsechunk.3
fastboot flash system system.img_sparsechunk.4
fastboot flash system system.img_sparsechunk.5
fastboot flash system system.img_sparsechunk.6
fastboot flash system system.img_sparsechunk.7
fastboot flash modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn
fastboot erase cache
fastboot erase userdata
fastboot erase customize
fastboot erase clogo
fastboot erase DDR
fastboot oem fb_mode_clear
fastboot reboot
Again, I give no guarantees on this and probably won't be checking back on this thread for replying or updating. Also note, Amazon ads will return to your lock screen.
Click to expand...
Click to collapse
Will this work on a locked bootloader?
Mathracer1 said:
Will this work on a locked bootloader?
Click to expand...
Click to collapse
I think not. Check out the youtube link I posted. The first thing you see in the video description is "UNLOCKED BOOTLOADER REQUIRED BEFORE DOING THIS THIS,UNLOCKED BOOTLOADER RQUIRED BEFORE DOING THIS, UNLCOKED BOOTLOADER REQUIRED BEFORE DOING THIS". I'll update the main post to reflect this.
I tried this with a unlocked bootloader and it worked.
I then locked the bootloader at the last step. However, the software status still shows "modified". How do I make it official?
SemiConductor said:
I tried this with a unlocked bootloader and it worked.
I then locked the bootloader at the last step. However, the software status still shows "modified". How do I make it official?
Click to expand...
Click to collapse
I don't think there is a way of relock. Well, whatever you do and whatever you see on the screen or your PC says it has been locked again, the hardware counter tells the bootloader has been unlocked once. I read this from somewhere else on the internet. Correct me if it is wrong.
beano311 said:
I think not. Check out the youtube link I posted. The first thing you see in the video description is "UNLOCKED BOOTLOADER REQUIRED BEFORE DOING THIS THIS,UNLOCKED BOOTLOADER RQUIRED BEFORE DOING THIS, UNLCOKED BOOTLOADER REQUIRED BEFORE DOING THIS". I'll update the main post to reflect this.
Click to expand...
Click to collapse
Yes! its able to flash whith Locked Bootloader, but only flash oem, system, recovery, non-hlos, cache, userdata, flash boot, bootloader,gpt, always because a locked bootloader
Lussardi said:
Yes! its able to flash whith Locked Bootloader, but only flash oem, system, recovery, non-hlos, cache, userdata, flash boot, bootloader,gpt, always because a locked bootloader
Click to expand...
Click to collapse
Please could you specify better that I should install, I am desperate :llorando:
stephydth said:
Please could you specify better that I should install, I am desperate :llorando:
Click to expand...
Click to collapse
Code:
only flash oem, system, recovery, non-hlos, cache, userdata, boot, bootloader
download firmware zip extract and flash above mentioned
Phone : TYPE: M266C MODEL:XT1687. (G5 Plus, 4GB, from AMAZON, unlocked).
Currently on NPN25-137-33.
I'm fed up with the upgrade notifications to NPNS25.137-35-5 (not to mention It really interferes with day to day use). So it's time to upgrade.
But, as it's TWRPed, I cant just use the OTA update.
So, If I download POTTER_NPNS25.137-35-5_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip from here anroidfilehost , will running the following fastboots (the undeleted ones) solve this issue and leav me with an updated, working TWRPed phome?
Code:
[STRIKE]$ fastboot flash partition gpt.bin[/STRIKE]
[STRIKE]$ fastboot flash motoboot motoboot.img[/STRIKE]
[STRIKE]$ fastboot reboot-bootloader[/STRIKE]
[STRIKE]$ fastboot flash logo logo.bin[/STRIKE]
[STRIKE]$ fastboot flash boot boot.img[/STRIKE]
[STRIKE]$ fastboot flash recovery recovery.img[/STRIKE]
$ fastboot flash system system.img
[STRIKE]$ fastboot flash modem NON-HLOS.bin[/STRIKE]
$[STRIKE] fastboot erase modemst1[/STRIKE]
[STRIKE]$ fastboot erase modemst2[/STRIKE]
[STRIKE]$ fastboot flash fsg fsg.mbn[/STRIKE]
$ fastboot reboot
I see no reason to repartition (first striked out command) - am I right ?
DO I need to flash motoboot or any other boot/bootloader image ?
$ fastboot flash system system.img should be run for each of the 5 img_sparsechunk.[0-4]?
And of course - have a current backup ready
Any advice will be appreciated.
Ben
No ideas anyone ?
Ben
I updated to 137-33-5.
Phone was TWRP'ed and rooted with Magisk.
I flashed all the items except "erase user data", if I remember correctly.
flashed TWRP, boot image, and rooted again.
All is well
Thank you !
Will try it in a few days (need my phone working now )
So, in the end, and after realizing that with each update I will have to fastboot again, decided to custom ROM my phone.
Installed RR yesterday.
I do not know whether my EFS and Persist are intact but I have backed them up. I had installed Pixel Experience 9.0 and then restored my TWRP backup to go to Stock Oreo, Build Number: OPSS28.85-13-5. This is my current Build, unlocked, rooted and has TWRP.
Can I follow this (https://forum.xda-developers.com/g5-plus/development/stock-firmware-npn25-137-67-5-fastboot-t3694738) guide to go back to Stock Nougat and then upgrade to the latest official update from moto?
I am asking to confirm as the Stock ROM given in the guide is Nougat ROM and I am on Oreo as mentioned above. I won't have any problems right? I do not want to lose VoLTE and my IMEI.
Any help will be appreciated.
Installed Oreo ROM via fastboot on my Moto G5 Plus [RETIN/Indian/ XT1686]
I am sharing my experience here so that it might help someone looking to flash stock ROM via fastboot. This is not meant to be a tutorial, but I will list out the steps I followed. I am not responsible if you mess up or hard/soft brick your device when following the steps I mentioned below. Always make a backup of your data/photos/videos/music and whatever else. Also make a backup with TWRP to be safe.
So instead of following the guide linked in the above post, I followed this one and successfully unrooted and returned to stock: https://forum.xda-developers.com/g5-plus/how-to/moto-g5-plus-fastboot-flash-stock-oreo-t3848433
But I did not use the ROM linked by the OP in that thread. Instead I downloaded this one : https://mirrors.lolinet.com/firmwar...ubsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip
This RETIN ROM works for me because I have the Indian XT1686. I don't know if it matters but I had the same version (13-5) before, but I am not sure whether it was RETAIL or RETIN.
Anyways guys make sure you download the right ROM for your device if you are going to install via fastboot. You can download the right ROM for your device from here: https://mirrors.lolinet.com/firmware/moto/potter/official/
There are different folders for ROMs of different regions in the above link. So carefully download the one your device is compatible with.
Also, I installed fastboot drivers from here: https://forum.xda-developers.com/showthread.php?t=2588979
Follow the instructions and also follow the video tutorials in the post to install fastboot drivers if your phone isn't detected in fastboot.
Then once I had downloaded the ROM and installed ADB, I extracted the ROM zip into a folder. Copy pasted ADB Files into the same folder (download ADB Files that worked for me _ attached to this post below).
FInally I put my phone in fastboot (turn off phone, then press volume down and power simultaneously till fastboot shows up). Connected the phone to my PC. Then opened CMD in the folder where I had extracted the ROM and copy pasted the ADB Files. To open cmd in a folder, just type cmd in the address bar of the folder and press enter.
And then I copy pasted the following code into the cmd window:
Code:
fastboot oem fb_mode_set
fastboot flash partition gpt.bin
fastboot flash bootloader bootloader.img
fastboot flash logo logo.bin
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash dsp adspso.bin
fastboot flash oem oem.img
fastboot flash system system.img_sparsechunk.0
fastboot flash system system.img_sparsechunk.1
fastboot flash system system.img_sparsechunk.2
fastboot flash system system.img_sparsechunk.3
fastboot flash system system.img_sparsechunk.4
fastboot flash system system.img_sparsechunk.5
fastboot flash system system.img_sparsechunk.6
fastboot flash system system.img_sparsechunk.7
fastboot flash system system.img_sparsechunk.8
fastboot flash modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn
fastboot erase cache
fastboot erase userdata
fastboot erase customize
fastboot erase clogo
fastboot oem fb_mode_clear
fastboot reboot
The above commands will run when pasted in cmd and your phone will be flashed with the ROM. It took a couple minutes to install and then I had to press enter while still in cmd to reboot the phone. Then the phone rebooted. Took a couple minutes more to boot, so stay patient. Then once the phone booted, I disconnected it from my PC and set the phone up as usual. DO NOT disconnect the phone when the fastboot commands are running and the ROM is being flashed. Note that the above fastboot commands will only flash the ROM. It will not lock the bootloader.
If you want to lock the bootloader then follow the instructions here: https://forum.xda-developers.com/g5-plus/how-to/moto-g5-plus-fastboot-flash-stock-oreo-t3848433
Note that I haven't locked my bootloader. So you will have to try and see for yourself whether it locks your bootloader.
Also once I booted up I got update notification and was able to update to the Feb 2019 OTA security update. So I can for sure say that updates work. VoLTE, calling, camera, almost everything I checked works.
Cheers. :victory: