No root access when restored. - Moto G4 Plus Questions & Answers

I had rooted my moto g4 plus 1 year ago and was using lineage OS. And recently I restored back to stock rom. And now the OEM is unlocked but the phone is not showing root access. Is there any issue if I try to root once more by installing elementalx and supersu?

If you restored back to stock ROM via fastboot, then you will not have root - fastbooting a stock ROM will replace your firmware with completely stock (i.e. not modified) files, so no TWRP, no root etc. If you used a TWRP backup then the backup may have been taken before you rooted.
Rooting with ElementalX/SuperSU should be okay if you flashed the stock ROM via fastboot, just be aware that you cannot use OTA updates whilst rooted/with ElementalX/have TWRP.
Also, ensure that you've flashed the latest stock ROM for your device, or used stock Motorola firmware that is as new or newer than the stock firmware that was on your device prior to Lineage OS. Else, if you do take OTA updates, you may hard brick if you flashed old firmware.

Related

OTA update, TWRP and bootloader...

I've unlocked the bootloader of my Razr M and installed a 10.2 ROM. Right nowI'm doing some experiments with the stock Verizon 4.1.1 ROM, restored through a TWRP backup I've done... I just need to know:
Now that I've unlocked the bootloader and installed TWRP, if I accept the last Verizon OTA (98.18.78) am I going to lose the bootloader and TWRP? Basically, will I be able to get to the recovery / revert to CM10.2?
Thanks in advance!
j27h said:
I've unlocked the bootloader of my Razr M and installed a 10.2 ROM. Right nowI'm doing some experiments with the stock Verizon 4.1.1 ROM, restored through a TWRP backup I've done... I just need to know:
Now that I've unlocked the bootloader and installed TWRP, if I accept the last Verizon OTA (98.18.78) am I going to lose the bootloader and TWRP? Basically, will I be able to get to the recovery / revert to CM10.2?
Thanks in advance!
Click to expand...
Click to collapse
You won't lose the unlocked bootloader but you will lose root. Also, the OTA probably won't install unless you use stock recovery and restore any apps that you got rid of. I didn't do the OTA, but these were some of the issues I've seen other have had. The simplest solution is just finding a stock ROM on here, I think there are a couple in the Dev area that are based off the latest OTA. Also, there is one on Batakang.

Trouble with latest update for Moto X Pure Edition XT1095 Verizon

Hi,
Some time ago, I unlocked the bootloader and installed TWRP on my Moto X Pure Edition XT1095. I tried to root it and soft bricked it. I did have a nandroid backup and restored the phone. I recently go an update notification from Motorola and tried to install it. I forgot about having the TWRP recovery. It began bootlooping after the failed installation. I again used my backup and it's working fine again. How can I install this update? Should I go ahead and root it, then find a zip of the update? Is there a way to disable TWRP and install it? If rooting is the answer, what's the easiest way? I evidently used the wrong way the last rooting attempt.
Thanks in advance for your help!
Motorola Moto X Pure Edition XT1095 (Verizon)
Android Version 6.0
Kernel 3.10.84-perf-g6898F68
Build # MPHS 24.49-18-3
ElectroJoe said:
Hi,
Some time ago, I unlocked the bootloader and installed TWRP on my Moto X Pure Edition XT1095. I tried to root it and soft bricked it. I did have a nandroid backup and restored the phone. I recently go an update notification from Motorola and tried to install it. I forgot about having the TWRP recovery. It began bootlooping after the failed installation. I again used my backup and it's working fine again. How can I install this update? Should I go ahead and root it, then find a zip of the update? Is there a way to disable TWRP and install it? If rooting is the answer, what's the easiest way? I evidently used the wrong way the last rooting attempt.
Thanks in advance for your help!
Motorola Moto X Pure Edition XT1095 (Verizon)
Android Version 6.0
Kernel 3.10.84-perf-g6898F68
Build # MPHS 24.49-18-3
Click to expand...
Click to collapse
You have options. You can flash the stock recovery, use the return-to-stock tool, flash the pre-rooted stock ROM, or flash a custom ROM. My question is, why did you unlock the bootloader (voiding your warranty) unless you wanted to root and flash custom ROMs?
sent via Moto X Pure
over AT&T's crappy network
buggerritt said:
You have options. You can flash the stock recovery, use the return-to-stock tool, flash the pre-rooted stock ROM, or flash a custom ROM. My question is, why did you unlock the bootloader (voiding your warranty) unless you wanted to root and flash custom ROMs?
sent via Moto X Pure
over AT&T's crappy network
Click to expand...
Click to collapse
The OP did state that root was attempted.
My suggestion to the OP: if you have a nandroid backup of the stock ROM that has never been rooted, then restore it, flash the stock recovery, then try to look for the OTA. If it takes and installs, reinstall TWRP, nandroid backup the new ROM, and you can proceed from there. You should be able to root the stock ROM from there. If all else fails, you can install a custom ROM that already has root built in.
Since you have the image of the updated non root unmodified stock ROM, you can easily restore later for the next update.

[HELP] Stock ROM. Want to OTA but gpt.bin is a version ahead of everything else.

Long story short, didn't backup before everything, hard bricked with an OTA, recovered only by blankflashing and flashing the feb2018 gpt.bin (NPJS25.93-14-15) and then since I don't have the ROM for NPJS25.93-14-15, I flashed everything else from NPJS25.93-14-13.
Phone is working. Got TWRP in there, made a backup this time. Installing Magisk softbricks it, but that I'm trying to solve in another thread. Got the backup before trying to install Magisk anyways so I don't make it harder on myself to OTA.
I'd like to be able to do OTA updates, mainly due to the KRACK vulnerability that was solved with NPJS25.93-14-15.
The issue is: how do I get the phone back to the same version on everything? Afaik, I can't downgrade the gpt.bin to NPJS25.93-14-13 (when I try, I get the security downgrade error leading to a remote failure), which means I would have to bring everything to NPJS25.93-14-15 straight up? Can I do that without hardbricking again? As in, flash back the recovery from NPJS25.93-14-13 (the only thing that is not stock is twrp) and straight up do the update ignoring the fact that my gpt.bin is already from the version I will be updating to?
TL, DR Can a phone with NPJS25.93-14-15 gpt.bin and everything else NPJS25.93-14-13 make the OTA update to NPJS25.93-14-15? Can one downgrade gpt.bin somehow?
Did you find a solution for your problem? Maybe it's possible to flash all patched files manually to bring all to NPJS25.93-14-15??
1)If you revert back to NPJS25.93-14-13 fully, you should be okay to use the OTA update to NPJS25.93-14-15. This only will work as NPJS25.93-14-13 is the firmware directly preceding the Feb 2018 update. Using a firmware older than this may well cause a hard brick when you try to OTA update. However, you must fully re-flash or revert to a completely clean stock firmware build - no TWRP, no root etc. Unlocked bootloader does not matter. Easiest way would be to fastboot flash the stock NPJS25.93-14-13 ROM
2)Yeah, generally you cannot downgrade GPT or bootloaders - this is the underlying cause of bricks, as flashing old firmware results in applying old OTA updates, which corrupt your bootloader. However, in this case you're applying an OTA update that is as newer or newer than your existing system, so you should be okay.
3) You could in theory flash the Feb 2018 stock ROM - this is not been fully verified but some users have been able to successfully flash it. Verify this first before flashing: https://forum.xda-developers.com/showpost.php?p=75961872&postcount=716
4)Rooting on stock Nougat on our devices requires a custom kernel. Attempts to root on the stock Motorola Nougat kernel appears to trip anti-rooting protections and so causes the boot failures you've mentioned. You'll have to flash the stock firmware, apply the update, then flash/boot TWRP, then flash ElementalX (or another custom kernel) then magisk.
Holy cow @echo92, thanks so much for the detailed answer! I'll give this a try and update here with results.

Moto G4 Plus (XT1644) Bricked

Hey, so I wanted to install a custom ROM (LineageOS 14.1) anyway, I found this site that was showing me how to but first i needed to unlock bootloader and install TWRP, i clicked on the steps for that and it brought me here:
https://devsjournal.com/how-to-root...to_unlock_Bootloader_of_Motorola_Moto_G4_Plus
I followed all the steps on that page, even installing the SuperSU, but this is where the problem began. After rebooting from installing SuperSU i was stuck on a black screen (not even backlight) and a white blinking LED light next to the fingerprint scanner. I began to look around for a fix and i found this site:
https://forum.xda-developers.com/2015-moto-g/help/problem-boot-flashing-supersu-t3507127
I followed the steps but nothing worked. Then i tried this:
https://forum.xda-developers.com/moto-g4/help/troubleshooting-twrp-boot-loop-ota-t3714325
but that still didn't work. Flashing a new ROM does not fix the problem, and it seems nothing will. I am able to get into the bootloader and I am also still able to get into TWRP but i can't boot into ROM. I need help.
I should have attached this before but here is a picture of the bootloader. After typing in all those command the only thing that changed was the yellow text that says Software status: Modified
1) What ROM are you trying to flash onto your device?
2)The issue here appears to be that you've rooted on the stock ROM - what those pages don't mention is that those steps only work for Marshmallow stock ROMs - attempting to root on the stock Motorola Nougat ROM may cause you to bootloop and you need a custom kernel to root on stock Nougat ROMs. One way around this may be to flash a custom kernel such as ElementalX 2.0.1 https://forum.xda-developers.com/moto-g4-plus/development/kernel-elementalx-g4-0-01-t3424836 then attempt to boot. You can boot to TWRP, connect your device to your computer, which should show up as internal storage. There, you should be able to copy a download of the custom kernel to your device and flash through TWRP. If you made a backup before rooting, you could re-flash just the boot (kernel) partition to restore a clean stock kernel then attempt to flash the custom kernel and then root.
3)You could alternatively boot to TWRP and flash Lineage. You do not need root at all to flash custom ROMs - just an unlocked bootloader. Root for installing custom ROMs is unnecessary. Be aware to flash the Lineage build matching your TWRP (i.e. 32 bit Lineage if you're running the official TWRP or any other 32 bit TWRP recovery for athene, 64 bit Lineage only is flashable with the 64 bit TWRP, else you'll get an error 255 on flashing). As always, flashing a new custom ROM requires a /system, /data and /cache wipe at least - possibly an internal storage wipe, so back up to your computer or the cloud as necessary.
4)As for the modified status, that may have been from rooting on the stock kernel. That can disappear if you were to flash a stock OTA onto your device, but that would mean flashing the NPJ25.93-14.7 Sept 2017 security patch stock ROM (latest leak we have for XT1644 devices as far as I recall), and then taking OTA updates up to April 2018 which may be risky.
echo92 said:
1) What ROM are you trying to flash onto your device?
2)The issue here appears to be that you've rooted on the stock ROM - what those pages don't mention is that those steps only work for Marshmallow stock ROMs - attempting to root on the stock Motorola Nougat ROM may cause you to bootloop and you need a custom kernel to root on stock Nougat ROMs. One way around this may be to flash a custom kernel such as ElementalX 2.0.1 https://forum.xda-developers.com/moto-g4-plus/development/kernel-elementalx-g4-0-01-t3424836 then attempt to boot. You can boot to TWRP, connect your device to your computer, which should show up as internal storage. There, you should be able to copy a download of the custom kernel to your device and flash through TWRP. If you made a backup before rooting, you could re-flash just the boot (kernel) partition to restore a clean stock kernel then attempt to flash the custom kernel and then root.
3)You could alternatively boot to TWRP and flash Lineage. You do not need root at all to flash custom ROMs - just an unlocked bootloader. Root for installing custom ROMs is unnecessary. Be aware to flash the Lineage build matching your TWRP (i.e. 32 bit Lineage if you're running the official TWRP or any other 32 bit TWRP recovery for athene, 64 bit Lineage only is flashable with the 64 bit TWRP, else you'll get an error 255 on flashing). As always, flashing a new custom ROM requires a /system, /data and /cache wipe at least - possibly an internal storage wipe, so back up to your computer or the cloud as necessary.
4)As for the modified status, that may have been from rooting on the stock kernel. That can disappear if you were to flash a stock OTA onto your device, but that would mean flashing the NPJ25.93-14.7 Sept 2017 security patch stock ROM (latest leak we have for XT1644 devices as far as I recall), and then taking OTA updates up to April 2018 which may be risky.
Click to expand...
Click to collapse
Yea i should have been more clear on what ROM i was trying to flash, i wanted to flash LineageOS but when i try to flash it and boot i still get the same problem, the led light just blinks over and over until i unplug the phone or go into the bootloader. Maybe i have the wrong version of something? All i know is that the phone was working perfectly fine before and it is the XT1644 model. It had all its updates up to date but i just wanted to install LineageOS, i do now realize that you don't need root to flash a custom ROM but also i don't know where to find files for the kernel you are talking about, I also did not make a backup (lets just say im pretty stupid and i know i should have). If you have any info or need any more to further assist me, let me know. Thank you for responding!
So i tried flashing the custom kernel and it looked like everything was working, but the phone still won't boot, it just flashes the LED light, also i reinstalled LineageOS after wiping all the cache and internal storage and stuff but it still hasn't worked.
Hey, i got good news, i was able to get the phone to boot by downloading and following these steps here: https://forum.xda-developers.com/mo...e-npj25-93-t3549369/post70843323#post70843323
The phone now is working and i will attempt to install LineageOS once more. Thank you for you help!

Another soft bricked Moto g4 plus XT1642

Hi all,
So I am new to the game, I had an old(ish) phone and attempted to root the device. As some of you might have read on here before, I failed, I thought I had followed all the correct steps. I used the following steps as a guide: (from the unlockr). After attempting to install supersu I was left with a black screen. I can however access my recovery mode in bootloader, the thing is that bootloader is the only thing I can access. I cannot access my moto g4 plus via USB on windows, but for some reason I can access both internal and external memory on a mac. I can see the supersu version, my TWRP etc. I was wondering if someone could help me out, I know this has probably been posted before but I have not been able to find a possible solution as of yet. Thanks in advance
Is your device running stock Nougat (7.0) firmware? If so, then attempting to root on the stock Nougat Motorola kernel may result in a black screen and failure to boot, which appears to be what you've experienced. What those guides generally fail to mention (as they're quite old) is that rooting on the G4/Plus running Nougat requires flashing a custom kernel before you root. Failure to do so appears to trip the anti-rooting measures built into the stock kernel. A more recent guide that I've used for a stable root on a G4 Plus is this https://forum.xda-developers.com/mo...de-root-moto-g4-plus-supersu-android-t3587918 Bear in mind you do not need root to flash custom ROMs whatsoever, just TWRP.
If you can still access TWRP, you may have a way out. One thing to try is to flash a custom kernel onto your device - ElementalX is a good choice. https://forum.xda-developers.com/moto-g4-plus/development/kernel-elementalx-g4-0-01-t3424836 for ElementalX v2.0.1 for stock . Download the kernel to your computer, ensure your device is connected to your computer and booted to TWRP, and copy the custom kernel to your device. Try to flash the kernel and then see if your device boots.
If your device still fails to boot, you could try flashing the stock kernel from your backup (you did make a backup before rooting?) or if you're running a more recent OS build, I've uploaded the Feb 2018 and April 2018 security patch stock kernels here: https://drive.google.com/drive/folders/0B-GUyOfb8OgzcUl1NUtHYWNIR2M To flash this in general:
a)Download the kernel boot.img to your device.
b)In TWRP, tap Install.
c)Tap Install image at the bottom of the screen.
d)Navigate to where you downloaded the boot.img and select the image file.
e)Target the image to boot (not recovery).
f)Flash, and wipe cache.
g)Reboot and see if that works.
If those don't work, restore your backup if you made one or you may have to re-flash your stock firmware - you do not have to re-lock your bootloader or wipe your device with this re-flash of the stock firmware.
Does your Windows computer have the correct Motorola USB drivers installed on it? https://support.motorola.com/uk/en/drivers

Categories

Resources