stuck in recovery - Moto G5 Plus Questions & Answers

Hello!
I have unlocked recovery and flash twrp. As for now I have bootloader and gpt that can not be reflashed from fastboot using stock rom zips. Any ROM flashed lead me to boot to recovery rather than system.
Is it any way to flash original Moto firmware including gpt, bootloader and other stuff?

Problem fixed with _not_ formattingdata and cache and flashing any rom. Now I'm on AEX and all is ok.

Related

Switching between N and MM roms

Good morning, (at least where I'm at) I want to test out a Nougat rom or two and I am currently on a Marshmallow rom (specifically Resurrection Remix). I know I have to flash the radios for Nougat, and also the vendor image. However,if I end up going back to my old rom will I have to flash MM radios again or will the new radios still work? Also will there be any other problems when going between Nougat and MM? I don't believe this question has been asked. At least I could not find it. If it was feel free to just leave the link below! Thanks for you help!
Hi mate.
Radios are backwards compatible, so the Nougat radio will work on MM, however in case you want to go back you can also do it.
About downgrading from N to MM this are the steps I used to return to stock MM. The only thing that cannot be downgraded is the bootloader.
1. Enabled OEM unlock in developer options.
2. Booted into bootloader and used "fastboot flashing unlock" to unlock bootloader.
3. Rebooted phone and went through initial setup (Still in Nougat).
4. Booted into bootloader and flashed radio.img and rebooted bootloader.
5. In bootoader, I booted TWRP without flashing it using "fastboot boot twrp.img"
6. In TWRP I did a factory reset, then went into advanced wipe and marked all the options and proceeded to wipe. Finally I used the option of wipe data.
7. Booted into bootloader again from the options in TWRP, and started doing the following commands:
a. fastboot flash boot boot.img
b. fastboot erase cache
c. fastboot flash cache cache.img
d. fastboot flash recovery recovery.img
e. fastboot format system
f. fastboot flash system system.img
g. fastboot erase vendor
h. fastboot flash vendor vendor.img
i. fastboot format userdata
8. Then proceeded to boot the phone and now I'm running MM again.
You do need only this...from Marshmallow just update to the last Nougat version NRD90U, with the stock factory image...then you can with a custom recovery, switch between N and M without any problem...just flash custom via recovery and it works...no need to flash boot, bootloader, vendor ecc any time... only rom
Thanks, if i would have known that i would have updated my stock to Nougut first before unlocking, when i get home tonight i will go back to stock and update. Then i will reflash twrp and my custom rom. Thanks!

Bootloader and Recovery not working

I was on CM 13 rom ,reboot recovery,reboot bootloader,were working properly.
then I flashed pre rooted rom.
fastboot flash system system.img
fastboot flash boot boot.img
fastboot flash recovery recovery.img
then
fastboot oem reboot-recovery was not working.
From then recovery and bootloader was not booting
I had cm 13 Complete Nandroid Backup
So i restored the twrp backup
Now still previous cm 13 rom ,reboot recovery,reboot bootloader,were not working.
But Power+Volumeup ,and Power+Volumedown were working.
So i am not able to flash any rom files.
but flashing supersu and xposed sdk were flashing and working.
Where is the problem ?????
All system,recovery,boot partitions had backup so they Dont has problem
Is the Bootloader Patitions disturbed ?????
What is the way to Solve this Kind of Problem ?????
Thanks in Advance.
Niteesh kumar said:
I was on CM 13 rom ,reboot recovery,reboot bootloader,were working properly.
then I flashed pre rooted rom.
fastboot flash system system.img
fastboot flash boot boot.img
fastboot flash recovery recovery.img
then
fastboot oem reboot-recovery was not working.
From then recovery and bootloader was not booting
I had cm 13 Complete Nandroid Backup
So i restored the twrp backup
Now still previous cm 13 rom ,reboot recovery,reboot bootloader,were not working.
But Power+Volumeup ,and Power+Volumedown were working.
So i am not able to flash any rom files.
but flashing supersu and xposed sdk were flashing and working.
Where is the problem ?????
All system,recovery,boot partitions had backup so they Dont has problem
Is the Bootloader Patitions disturbed ?????
What is the way to Solve this Kind of Problem ?????
Thanks in Advance.
Click to expand...
Click to collapse
u r saying that bootloader and recovery not booting, and then saying xposed and super su is getting flashed, how's it possible without recovery
I found the answer
So to solve this I was trying different ways
First open recovery
In the recovery
I found that the system was not mounted
When we use custom ROMs they are not installed in the system folder so the customs ROMs system will not be mounted
So As I was using a stock ROM system should be mounted So I mounted system and flashed resserection remix 5.8 N
I successfully booted inresserection remix 5.8N
yograjfire18 said:
u r saying that bootloader and recovery not booting, and then saying xposed and super su is getting flashed, how's it possible without recovery
Click to expand...
Click to collapse
In recovery reboot recovery ,reboot bootloader both we rebooting system not recovery and bootloader

Stock recovery (from TWRP) for A2017

Hi guys,
I'm just finalising restoring an A2017 (China) to stock for warranty exchange.
I have gone back to stock OS, locked bootloader but I still have the TWRP recovery.
I believe all I need to do is flash a stock recovery.img though TWRP and voila I should be finished, but I can't find a download link that definitely points me to what I should use.
Could someone point me in the right direction?
Thanks!
EDIT - Actually wait a minute can I just install full A2017 factory OTA update through MiFavor stock OS which I believe contains recovery, does that mean that everything goes back to stock (including recovery)?
https://forum.xda-developers.com/axon-7/development/axon-7-chinese-stock-roms-t3436817
EDIT2 - When I try to install the A2017 B13 update.zip through MiFavor it says update failed. Should I install it through TWRP?
EDIT3 - Refused to update the whole image (update.zip) through MiFavor within the ZTE OS. I flashed the default recovery.img through fastboot, then I used the MiFavor recovery (not in OS) to manually flash the full image.
Anyway, got it to stock!
Where did you got the recovery.img?
MagicSeeker said:
Where did you got the recovery.img?
Click to expand...
Click to collapse
In the link from my post above. Download the original stock ROM you want, unzip, one of the files is the recovery.img. FYI I had A2017 B11, installed B13 recovery.img and it worked fine.
I tried to flash recovery.img but it says: FAILED (remote: Partition flashing is not allowed)
What do I do? I'm on B13 stock with locked bootloader. I want to get rid of TWRP and back to stock recovery so I can get OTA updates again.
FuzzyDunlop9 said:
I tried to flash recovery.img but it says: FAILED (remote: Partition flashing is not allowed)
What do I do? I'm on B13 stock with locked bootloader. I want to get rid of TWRP and back to stock recovery so I can get OTA updates again.
Click to expand...
Click to collapse
The first step in flashing anything is to unlock the bootloader, flash TWRP recovery, root, custom ROM etc. The inverse is the same. You are trying to flash an image to the recovery partition with a locked bootloader, which isn't going to work. I'd suspect you need to unlock your bootloader again, flash the stock recovery from the B13 stock image, and re-lock the bootloader. I am fairly new to the Axon 7 but I would consider yourself lucky if your bootloader is in fact locked. Typically locking the bootloader with anything but stock recovery is messy...
jdgesmlls said:
The first step in flashing anything is to unlock the bootloader, flash TWRP recovery, root, custom ROM etc. The inverse is the same. You are trying to flash an image to the recovery partition with a locked bootloader, which isn't going to work. I'd suspect you need to unlock your bootloader again, flash the stock recovery from the B13 stock image, and re-lock the bootloader. I am fairly new to the Axon 7 but I would consider yourself lucky if your bootloader is in fact locked. Typically locking the bootloader with anything but stock recovery is messy...
Click to expand...
Click to collapse
You usually end up with a DFU brick, sometimes only with fastboot. Very messy
There are flashable recovery zips for the A2017G, maybe @tron1 can make you one?

need help urgent

hi everyone i am running on nougat stock rom successfully unlock my bootloader and follow this step to root my phone but after installing twrp and flash supersu and i restart my phone it again boots into twrpi am not able to boot into system.
It only boot into fastboot and recovery
plz help me here i have indian moto g4 plus.
this the link which i follow
https://www.youtube.com/watch?v=dK2uacpjGwc&t=64s
Yeah, that Youtube guide is for rooting under Marshmallow - Nougat is more stringent and rooting with the stock kernel, as you've found out, will cause boot issues. A reliable way to root on Nougat is to flash a custom kernel onto your device.
Do you have a backup in TWRP to fall back to?
If so, and you've restored it, or if you don't have a backup of your system, then try rebooting back to TWRP and flash ElementalX v1.04 onto your device (either from a SD card or by plugging your device into your computer and try using 'adb push' to transfer ElementalX v1.04 to your device's internal storage). https://forum.xda-developers.com/moto-g4-plus/development/kernel-elementalx-g4-0-01-t3424836 for ElementalX. Hopefully then, you'll be able to boot.
For rooting under Nougat with SuperSU, have a look at this guide: https://forum.xda-developers.com/mo...de-root-moto-g4-plus-supersu-android-t3587918
I faced the same problem when I unlocked my bootloader because for some reason on some models the phone will wipe the whole system partition instead of just the data. If you want to use a custom rom then you are able to flash that with twrp no problems but if you want the stock rom back you will hava to flash it either with fasboot (will flash stock recovery) or use a twrp backup someone made of the stock rom (nougat) I just did a google search for *moto g4 plus stock rom twrp backup* and clicked on the first link which contains guides for both methods (I cannot post links sorry)
Hope I could help
echo92 said:
Yeah, that Youtube guide is for rooting under Marshmallow - Nougat is more stringent and rooting with the stock kernel, as you've found out, will cause boot issues. A reliable way to root on Nougat is to flash a custom kernel onto your device.
Do you have a backup in TWRP to fall back to?
If so, and you've restored it, or if you don't have a backup of your system, then try rebooting back to TWRP and flash ElementalX v1.04 onto your device (either from a SD card or by plugging your device into your computer and try using 'adb push' to transfer ElementalX v1.04 to your device's internal storage). https://forum.xda-developers.com/moto-g4-plus/development/kernel-elementalx-g4-0-01-t3424836 for ElementalX. Hopefully then, you'll be able to boot.
For rooting under Nougat with SuperSU, have a look at this guide: https://forum.xda-developers.com/mo...de-root-moto-g4-plus-supersu-android-t3587918
Click to expand...
Click to collapse
Tried element kernel but the results will be same boot into twrp
Can anyone have stock rom for indian dual sim variant of moto g4 plus firmwares?
rakesh595160 said:
Tried element kernel but the results will be same boot into twrp
Can anyone have stock rom for indian dual sim variant of moto g4 plus firmwares?
Click to expand...
Click to collapse
If you're after Nougat v7.0 Dec 2016, NPJ25.93-14 https://forum.xda-developers.com/moto-g4-plus/how-to/moto-g4-plus-xt1640-43-athene-npj25-93-t3549369
Nougat v7.0 March 2017, NPJS25.93-14.4 https://forum.xda-developers.com/moto-g4-plus/how-to/stock-rom-npjs25-93-14-4-march-1-t3608138
Bear in mind flashing either may wipe your device (and thus your data and internal storage), if you can, try to back up your key files via TWRP to your computer.
If you're downloading the same firmware as the build you have at the moment, you may be able to save your data and restore your system by using these commands, however be prepared to use all the flash commands (including wipes) if it doesn't work:
Code:
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
echo92 said:
If you're after Nougat v7.0 Dec 2016, NPJ25.93-14 https://forum.xda-developers.com/moto-g4-plus/how-to/moto-g4-plus-xt1640-43-athene-npj25-93-t3549369
Nougat v7.0 March 2017, NPJS25.93-14.4 https://forum.xda-developers.com/moto-g4-plus/how-to/stock-rom-npjs25-93-14-4-march-1-t3608138
Bear in mind flashing either may wipe your device (and thus your data and internal storage), if you can, try to back up your key files via TWRP to your computer.
If you're downloading the same firmware as the build you have at the moment, you may be able to save your data and restore your system by using these commands, however be prepared to use all the flash commands (including wipes) if it doesn't work:
Click to expand...
Click to collapse
I just flash revivour os ut boots my phone well nkw how do i root my devices?
rakesh595160 said:
I just flash revivour os ut boots my phone well nkw how do i root my devices?
Click to expand...
Click to collapse
If you've flashed revivorOS, the rooting instructions are on the opening post of that ROM... https://forum.xda-developers.com/mo...om-npjs25-93-14-4-deodexed-debloated-t3587180

Not starting after updating bootloader via TWRP

I just finished flashing the latest vendor image + dirty unicorns rom + root + gapps and made a reboot.
Then I decided to also update my bootloader and downloaded 3.68.
I went into TWRP, flash .img, boot, choose bootloader.img
Thw flash was successfull but since then i cant boot the rom anymore? I am only able too boot the recovery but not the rom.
Do I need to re-flash the rom now or what should I do?
Oh it seems like flashing "boot" in "TWRP" means that you will flash the boot.img and not the bootloader.
So I just flashed the bootloader via fastboot and I guess I will be just fine if I extract boot.img from the lates rom.zip and flash that in TWRP?
@edit: ye that fixed it.
Utini said:
Oh it seems like flashing "boot" in "TWRP" means that you will flash the boot.img and not the bootloader.
So I just flashed the bootloader via fastboot and I guess I will be just fine if I extract boot.img from the lates rom.zip and flash that in TWRP?
@edit: ye that fixed it.
Click to expand...
Click to collapse
Yep, never flash any images other than the vendor, bootloader and radio unless you are trying to restore to stock. Bootloader is the obvious area of the phone you can use to enter recovery but boot is the actual boot process of the phone so be careful there. Glad you got it sorted.:good:

Categories

Resources