how to flash stock firmware on moto g5s plus XT1804 - Android Q&A, Help & Troubleshooting

i have moto g5s plus i
successfully unlocked boot loader and installed custom TWRP recovery.
rooted device with Magisk.
wanted to lock boot loader but used wrong command is : fastboot flashing lock ( now flashing is locked so cant flash stock rom using fastoot command)
device is stuck in boot loader and booting again and again in boot loader message shown : your device has failed verification and may not work properly
then flashed stock recovery using TWRP
plz help

shady031 said:
i have moto g5s plus i
successfully unlocked boot loader and installed custom TWRP recovery.
rooted device with Magisk.
wanted to lock boot loader but used wrong command is : fastboot flashing lock ( now flashing is locked so cant flash stock rom using fastoot command)
device is stuck in boot loader and booting again and again in boot loader message shown : your device has failed verification and may not work properly
then flashed stock recovery using TWRP
plz help
Click to expand...
Click to collapse
I don't have this device but, the following thread may be helpful for what you need and don't be afraid to ask for some member guidance within it.
https://forum.xda-developers.com/showthread.php?t=3681018
Good Luck!
~~~~~~~~~~~~~~~
I DO NOT provide support via PM unless asked/requested by myself. PLEASE keep it in the threads where everyone can share.

Fixed device

Related

[GUIDE] Restoring Stock ROM, Recovery, Unbrick, and Rooting 5.0 on Padfone S

I had stuck on ASUS logo, after I do a lot of researches, a lot of trials and errors for 4 hours. I managed to fix them and I wanted to share how I did here.
Easiest way to root lollipop WW-12.2.2.27
use KingRoot from http://www.kingroot.net/down ,It is android app which will run exploit to root the device successfully.
Not Kingoroot Kingoroot was unable to root. Towelroot v1 works only on Kitkat, but not lollipop.
To boot into fastboot mode
adb reboot bootloader
OR turn off device, press and hold power and volume up, until asus logo appear, and stuck at asus logo, that is fastboot mode, to exit fastboot with buttons, press and hold vol down and power button.
To restore stock recovery and ROM after you install TWRP or CWM, or unbrick device
First, note that stock recovery from http://forum.xda-developers.com/showpost.php?p=59055653&postcount=29, does not work for me (maybe everyone else as well).
I flashed it using fastboot flash recovery recovery.img, when I try to boot into recovery using, vol down and power, then select enter recovery, it stucks at asus logo.
First you need to flash TWRP_2.8.7.0.img from http://quarx2k.ru/asus_padfone_s/recovery/
using fastboot flash recovery TWRP_2.8.7.0.img It will show that flashing FAILED (remote: can't flash unsigned image), it fact, it was succeeded, now you can go ahead and boot to recovery.
Note that this version of TWRP, and 2.8.6.0, and CWM cannot successfully flash stock zip ROM, it may show errors, or when you try to boot the device, it will stuck at ASUS logo. But now, we are going to need TWRP_2.8.7.0 to unlock bootloader.
Let's unlock bootloader
simply flash http://quarx2k.ru/asus_padfone_s/CrowLock_RC3.zip with TWRP
You can check bootloader status with fastboot oem device-info
Before unlock :
(bootloader) Device unlocked: false
After unlock
(bootloader) Device unlocked: true
Let's flash stock Kitkat Firmware
You have to unlock bootloader becuase, well it is complicated.
The only TWRP recovery that can successfully flash stock .zip firmware from ASUS is http://datbak.com/links/padfone_s/asus_t00n_twrp_2_7_1_1.img
But this recovery has another bug, if you flash recovery and try to boot to recovery, you will get blank screen, but TWRP is indeed working, you touch the screen and it vibrates back. Anyway you have tofastboot flash recovery asus_t00n_twrp_2_7_1_1.img because it will be needed later for upgrading Kitkat to Lollipop.
If you don't unlock bootloader, you will not be able to boot into recovery directly without flashing to recovery partition Now let's get into fastboot mode, and fastboot boot asus_t00n_twrp_2_7_1_1.img, by booting into this recovery directly via fastboot without flashing it first, you will not get black screen bug of this recovery., if you boot to this recovery from recovery partition, you will get black screen as I told previously.
Now let's flash downgrade to 4.4.2 firmware from http://dlcdnet.asus.com/pub/ASUS/Mobile_Phone/PadFone_S/UL-ASUS_T00N-WW-99.99.99.0-user-wipedata.zip with TWRP 2.7.1.1.
This is for only WW SKU, not TW SKU. And all userdata will be wiped.
Browse all firmwares and there is TW SKU downgrade here : https://www.asus.com/Phone/PadFone_S_PF500KL/HelpDesk_Download/
Ok, now reboot to system, and yeah, it finally boots now.
The recovery is still TWRP, not stock one, let's upgrade to lollipop and restore stock recovery using TWRP. Simply place http://dlcdnet.asus.com/pub/ASUS/Mobile_Phone/PadFone_S/UL-ASUS_T00N-WW-12.2.2.27-user.zip to root of Internal Memory, unplug usb, press confirmation in notification to begin install lollipop. After device reboot, it will stay blank screen for 5 minutes, don't worry, it is updating to lollipop, after upgrade is done, it will reboot, and recovery will be restored to stock recovery now.
Bootloader is still unlocked.
Another method to root is
fastboot flash recovery asus_t00n_twrp_2_7_1_1.img (recovery is restored to stock now remember)
then flash https://download.chainfire.eu/696/SuperSU/UPDATE-SuperSU-v2.46.zip?retrieve_file=1 with TWRP.
To lock bootloader again, boot into fastboot
then fastboot oem reset-dev_info
But I wouldn't recommend you to lock bootloader, you will lose ability to boot to TWRP recovery without replacing stock recovery, unless you are going to send your device to service center and claim warranty.
Files, fastboot and recoveries and bootloader unlock and super su for rooting
asus_t00n_twrp_2_7_1_1.rar https://mega.nz/#!355UmTCb!0Jn-0wlbGHG7lir8u9vq1l8BrR3dsepDdigqfJ9wRPk
twrp_2.8.7.0.rar https://mega.nz/#!GwRRBBjT!8ms39GK62XHairHOrxlmNJCwA-bDeaKA816Cg4lsQr0
Will this work for S Plus model?
It wont, using files from this thread might brick the device.
Sent from my SM-N910C using XDA Free mobile app
Hi im a noob so ill get straight to the point.
You said "Note that this version of TWRP, and 2.8.6.0, and CWM cannot successfully flash stock zip ROM, it may show errors, or when you try to boot the device, it will stuck at ASUS logo."
I have two question as follow:
1. So can i use twrp to flash stock rom or not?
2. Because I'm still at Kit Kat, I dont need to unlock bootloader and flash Kit Kat firmware right?
3. If so, Can I follow the tutorial until flashing the TWRP? but which TWRP that I need to install?
4. All these tutorial to unbrick needs to be done before you brick your phone right? What should i do if i already brick my phone?
Kindly advise.
ChevanLemon said:
Hi im a noob so ill get straight to the point.
You said "Note that this version of TWRP, and 2.8.6.0, and CWM cannot successfully flash stock zip ROM, it may show errors, or when you try to boot the device, it will stuck at ASUS logo."
I have two question as follow:
1. So can i use twrp to flash stock rom or not?
2. Because I'm still at Kit Kat, I dont need to unlock bootloader and flash Kit Kat firmware right?
3. If so, Can I follow the tutorial until flashing the TWRP? but which TWRP that I need to install?
4. All these tutorial to unbrick needs to be done before you brick your phone right? What should i do if i already brick my phone?
Kindly advise.
Click to expand...
Click to collapse
The only TWRP recovery that can successfully flash stock .zip firmware from ASUS is asus_t00n_twrp_2_7_1_1.img
If you are bricked, but you can still access fastboot mode, then you can unbrick and reflash stock firmware to your phone
First of all, Thank you so much for this GUIDE
Here are my doubts, and hoping for confirmation from you. My Padfone S is running well on latest kitkat firmware, rooted with SuperSu and TWRP 2.7.1.1 installed. Now, I wished to upgrade to Lollipop firmware.
Can I use the TWRP 2.7.1.1 to clean install the lollipop firmware instead of the stock recovery because I wished to wipe date, cache as well as SYSTEM before flashing?
My concern is I afraid if wipe the SYSTEM then the TWRP 2.7.1.1 would not be able to flash the Lollipop firmware successfully. Do I need to unlock bootloader in my case?
If I can do so, then can I still use the Flashify to flash TWRP 2.7.1.1 on the lollipop firmware, or I must use "fastboot flash recovery TWRP_2.8.7.0.img" method.
Thanks in advance for your kindly reply.:laugh:
Bootlooped
When I am upgrading my SuperSU and it requires a reboot,it automatically boot looped itself.
What should I do?
Linux4ever85 said:
Will this work for S Plus model?
Click to expand...
Click to collapse
Yes it work. Mine is Asus Padfone S Plus. Got bootloop problem. I have followed ninekaw guide. Thanks Ninekaw. U have save my precious padfone s plus
ninekaw9 said:
I had stuck on ASUS logo, after I do a lot of researches, a lot of trials and errors for 4 hours. I managed to fix them and I wanted to share how I did here.
Easiest way to root lollipop WW-12.2.2.27
use KingRoot from http://www.kingroot.net/down ,It is android app which will run exploit to root the device successfully.
Not Kingoroot Kingoroot was unable to root. Towelroot v1 works only on Kitkat, but not lollipop.
To boot into fastboot mode
adb reboot bootloader
OR turn off device, press and hold power and volume up, until asus logo appear, and stuck at asus logo, that is fastboot mode, to exit fastboot with buttons, press and hold vol down and power button.
To restore stock recovery and ROM after you install TWRP or CWM, or unbrick device
First, note that stock recovery from http://forum.xda-developers.com/showpost.php?p=59055653&postcount=29, does not work for me (maybe everyone else as well).
I flashed it using fastboot flash recovery recovery.img, when I try to boot into recovery using, vol down and power, then select enter recovery, it stucks at asus logo.
First you need to flash TWRP_2.8.7.0.img from http://quarx2k.ru/asus_padfone_s/recovery/
using fastboot flash recovery TWRP_2.8.7.0.img It will show that flashing FAILED (remote: can't flash unsigned image), it fact, it was succeeded, now you can go ahead and boot to recovery.
Note that this version of TWRP, and 2.8.6.0, and CWM cannot successfully flash stock zip ROM, it may show errors, or when you try to boot the device, it will stuck at ASUS logo. But now, we are going to need TWRP_2.8.7.0 to unlock bootloader.
Let's unlock bootloader
simply flash http://quarx2k.ru/asus_padfone_s/CrowLock_RC3.zip with TWRP
You can check bootloader status with fastboot oem device-info
Before unlock :
(bootloader) Device unlocked: false
After unlock
(bootloader) Device unlocked: true
Let's flash stock Kitkat Firmware
You have to unlock bootloader becuase, well it is complicated.
The only TWRP recovery that can successfully flash stock .zip firmware from ASUS is http://datbak.com/links/padfone_s/asus_t00n_twrp_2_7_1_1.img
But this recovery has another bug, if you flash recovery and try to boot to recovery, you will get blank screen, but TWRP is indeed working, you touch the screen and it vibrates back. Anyway you have tofastboot flash recovery asus_t00n_twrp_2_7_1_1.img because it will be needed later for upgrading Kitkat to Lollipop.
If you don't unlock bootloader, you will not be able to boot into recovery directly without flashing to recovery partition Now let's get into fastboot mode, and fastboot boot asus_t00n_twrp_2_7_1_1.img, by booting into this recovery directly via fastboot without flashing it first, you will not get black screen bug of this recovery., if you boot to this recovery from recovery partition, you will get black screen as I told previously.
Now let's flash downgrade to 4.4.2 firmware from http://dlcdnet.asus.com/pub/ASUS/Mobile_Phone/PadFone_S/UL-ASUS_T00N-WW-99.99.99.0-user-wipedata.zip with TWRP 2.7.1.1.
This is for only WW SKU, not TW SKU. And all userdata will be wiped.
Browse all firmwares and there is TW SKU downgrade here : https://www.asus.com/Phone/PadFone_S_PF500KL/HelpDesk_Download/
Ok, now reboot to system, and yeah, it finally boots now.
The recovery is still TWRP, not stock one, let's upgrade to lollipop and restore stock recovery using TWRP. Simply place http://dlcdnet.asus.com/pub/ASUS/Mobile_Phone/PadFone_S/UL-ASUS_T00N-WW-12.2.2.27-user.zip to root of Internal Memory, unplug usb, press confirmation in notification to begin install lollipop. After device reboot, it will stay blank screen for 5 minutes, don't worry, it is updating to lollipop, after upgrade is done, it will reboot, and recovery will be restored to stock recovery now.
Bootloader is still unlocked.
Another method to root is
fastboot flash recovery asus_t00n_twrp_2_7_1_1.img (recovery is restored to stock now remember)
then flash https://download.chainfire.eu/696/SuperSU/UPDATE-SuperSU-v2.46.zip?retrieve_file=1 with TWRP.
To lock bootloader again, boot into fastboot
then fastboot oem reset-dev_info
But I wouldn't recommend you to lock bootloader, you will lose ability to boot to TWRP recovery without replacing stock recovery, unless you are going to send your device to service center and claim warranty.
Click to expand...
Click to collapse
simply flash http://quarx2k.ru/asus_padfone_s/CrowLock_RC3.zip with TWRP --> link dead
Hi thank for your guidance on how restoring stock rom . Im having trouble detecting my phone when in fastboot mode, as you said to boot up into fastboot hold vol up and power and we will stuck at asus logo , but after i connect my pc and using adb cmd fastboot devices it didnt detect any devices and cant proceed to next step when i need to fastboot boot twrp 2.7.1.1
Currently im using twrp 2.8.7.0 , i want to use stockcrom because i need to use my padfone station (since any custom rom is not compatible with padfone station), any suggestions for this problem ? Thanks in advabce

Officially unlocked Bootloader successfully

Guys what is the difference between Twrp official and Twrp coffance !!
2) now I am on v7.2.5.0 so should I flash modified boot image to flash Twrp !!
Where I can get those image
im now official unlock bootloader. so which one twrp i need use? even i official bootloader im still need patching universal boot img?

Moto E 2015 Surnia XT1527 Bricked: locked bootloader and preflash validation error

Hey guys i tried to install latest Android version on my Surnia (XT1527) but i bricked it, only i can get into bootloader (the bootloader is locked) my pc can't recognize the COM Qualcomm port (i'm trying hard to use QFIL), so i was thinking on use another moto E XT1527 to retrieve a full image of the system to flash it on my device, but i don't know how to do that or what i need for that, trying to flash some stock firmwares keep giving an error (preflash validation failed).
Can you help me with that??
QFIL never worked for me.
Check https://forum.xda-developers.com/showthread.php?t=2759495.
Forget the adb part, just check if fastboot recognizes your device and try the steps.
I think you can also install custom recovery without unlocking the bootloader. Ones that is done you can try to install your custom rom.
rk92 said:
QFIL never worked for me.
Check https://forum.xda-developers.com/showthread.php?t=2759495.
Forget the adb part, just check if fastboot recognizes your device and try the steps.
I think you can also install custom recovery without unlocking the bootloader. Ones that is done you can try to install your custom rom.
Click to expand...
Click to collapse
Did you solve the 'preflash validation error'?? mine keeps giving that error and i tried all the versions of the ROM, all i need is to install a custom recovery without unlocked bootloader, can you help me explaining what have you done? thanks
With locked bootloader you cannot flash custom recovery(even boot).
You can try to flash the newest stock rom without commands:
fastboot flash bootloader...
fastboot flash partition...

Custom recovery issues

Hello
I recently bought a new device (lollipop version) and I've rooted it successfully so I decided to flash a custom recovery because I want to back up my OS before I start flashing xposed framework.
So I searched the net for a custom recovery for my device (Infinix hot 3 x554) and I found one, then I flashed the custom recovery using mobileuncle root and I reboot into recovery and nothing changed my stock recovery was still there, then after booting my device I flashed the custom recovery again using flashify and I reboot into recovery my phone just booted normally instead if taking me to recovery mode, now my stock recovery isn't there anymore, please I need assistant on how to fix this.
My device: Infinix Hot 3 x554
Version: 5.1
Kernel Version: 3.10.72+
Build Number: x554-W90918-A2-L-20160607
I used kingroot to root the device.
Thank you
It seems your recovery partition restores itself or there are specific scripts in your boot.img which restores stock recovery when detects modified recovery. You must install it via fastboot.
Obtain fastboot and run this command (You can have it with Android SDK or you can find it in Google too.).
Code:
fastboot flash recovery *filename*.img
But you have to be sure you have proper drivers for your device.
Okay, but I did some little research about how to flash recovery and I saw something about unlocking bootloader, so could it be because I haven't unlocked my bootloader that's why it didn't work?
Spadex said:
Okay, but I did some little research about how to flash recovery and I saw something about unlocking bootloader, so could it be because I haven't unlocked my bootloader that's why it didn't work?
Click to expand...
Click to collapse
Yes. You need to unlock bootloader before flashing custom recovery. Locked bootloader prevents modify stock partition.
Ashwinrg said:
Yes. You need to unlock bootloader before flashing custom recovery. Locked bootloader prevents modify stock partition.
Click to expand...
Click to collapse
So after I unlock the bootloader, should I use flashify to flash the custom recovery or I should just use PC to flash it
Spadex said:
So after I unlock the bootloader, should I use flashify to flash the custom recovery or I should just use PC to flash it
Click to expand...
Click to collapse
Use fastboot command to flash recovery.img
sachin n said:
Use fastboot command to flash recovery.img
Click to expand...
Click to collapse
Okay thanks for your time.

Boot loop after trying to root.

I followed the instructions here: https://theunlockr.com/2015/09/19/how-to-root-the-sony-xperia-z4-tablet/
I unlocked the bootloader, flashed the new boot.img, then rebooted.
It now keeps going to the sony logo then restarting over and over.
Please help!
I got out of the boot loop by installing version 43 from here: https://drive.google.com/drive/folders/0B0j3VJ1Xp5N8cnhQamtxRWVtRmc
But now I'm still not rooted
Random667 said:
But now I'm still not rooted
Click to expand...
Click to collapse
AndroPlus kernel is not up to date anymore.
AndroPlus kernel is NOT rooted.
You need to flash SuperSu or Magisk (did not try M.) after flashing a custom kernel.
The flawed documentation also left out the installation of a recovery necessary for this.
Im able to flash TWRP and boot into it but then I have to re-flash the boot.img to get back into android.
It seems I cant have TWRP and boot.img working at the same time.
I just looked at the guide in your footer, I'm guessing I lost my TA partion
There was no mention of that on sonys bootloader unlock info page.
I finally got it.
To get into recovery I had to use the command: fastboot boot TWRP-3.1.1-lineageos-karin-20170520.img
I was then able to install superSU
Random667 said:
I just looked at the guide in your footer, I'm guessing I lost my TA partion
There was no mention of that on sonys bootloader unlock info page.
Click to expand...
Click to collapse
I really do not know why they do not mention and link my [Guide].
And the guide I read on flashing the recovery said to use this command: fastboot flash boot TWRP-3.1.1-lineageos-karin-20170520.img
That was flashing the recovery to the boot partition!
The same guide said to hold both vol+ and vol- to boot into recovery, that's why I was having such a hard time.

Categories

Resources