roll back to a previous update xt1768 - Moto E4 Questions & Answers

For some reason I can't flash Magisk on the latest updates (November / December) getting "unable to mount /data" or "unable to mount /cache" errors in twrp (3.2.3-r1) so I wanted to roll back to one of the previous updates (July / August) and try flashing Magisk from there. However, every time upon starting the flashfile I get this error:
Code:
Writing 'partition' (bootloader) Validating 'gpt.default.xml'
(bootloader) Security version downgrade
(bootloader) Image primary_gpt failed validation
(bootloader) Preflash validation failed
(bootloader) Cancelling 'gpt.default.xml'
FAILED (remote: '')
So I have two questions: 1) Was there something about the latest updates that prevents Magisk/root, and if so, how could I go about getting it done? Has anyone else run into this? I've read something about patching the boot.img, but I'm not sure what that has to do with this or how to accomplish that. 2) If there indeed was something in the recent updates that breaks the rooting process, is there a way to downgrade to an earlier update and get root from there?
Edit: rooted the phone by flashing a boot image that I patched through Magisk Manage. Didn't even know that's possible, as I used to always flash no-verity (as well as Magisk) through twrp on this phone.

Related

****, phone aint booting up

So i unlocked the bootloader using the code that you get from the motorola official website and then installed twrp. It all went just find, but then I flashed the magisk zip and tried booting up but no response. Its like the power button doesnt work at all. Fastboot mode is still working and i can get into the recovery, tried restoring the old backup, factory reset, installing a rom (RR) but no luck. pls help this fella
Wipe data. Install the ROM of your choice.
If that fails, flash your device's stock ROM.
You have to flash a custom kernel like ElementalX before rooting because magisk roots your phone by patching the boot image which isn't supported by the stock kernel! This is why your phone is not booting up!
If you can still access bootloader mode, try this https://forum.xda-developers.com/moto-g4-plus/how-to/moto-g4-plus-xt1640-43-athene-npj25-93-t3549369
Saumitraa said:
You have to flash a custom kernel like ElementalX before rooting because magisk roots your phone by patching the boot image which isn't supported by the stock kernel! This is why your phone is not booting up!
If you can still access bootloader mode, try this https://forum.xda-developers.com/moto-g4-plus/how-to/moto-g4-plus-xt1640-43-athene-npj25-93-t3549369
Click to expand...
Click to collapse
i see, will try this right now
Darkther said:
i see, will try this right now
Click to expand...
Click to collapse
You have to flash the custom kernel before rooting only when you are on stock or stock based roms and not on custom roms! Good Luck
Saumitraa said:
You have to flash the custom kernel before rooting only when you are on stock or stock based roms and not on custom roms! Good Luck
Click to expand...
Click to collapse
while flashing the images i am getting the following error
Code:
(bootloader) slot-count: not found
(bootloader) slot-suffixes: not found
(bootloader) slot-suffixes: not found
(bootloader) has-slot:partition: not found
target reported max download size of 536870912 bytes
sending 'partition' (32 KB)...
OKAY [ 0.006s]
writing 'partition'...
(bootloader) Security version downgrade
(bootloader) Image primary_gpt failed validation
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 0.054s
Darkther said:
while flashing the images i am getting the following error
Click to expand...
Click to collapse
Looks like you are trying to get back to stock, follow the steps here
https://forum.xda-developers.com/moto-g4-plus/how-to/moto-g4-plus-xt1640-43-athene-npj25-93-t3549369
Darkther said:
while flashing the images i am getting the following error
Code:
(bootloader) slot-count: not found
(bootloader) slot-suffixes: not found
(bootloader) slot-suffixes: not found
(bootloader) has-slot:partition: not found
target reported max download size of 536870912 bytes
sending 'partition' (32 KB)...
OKAY [ 0.006s]
writing 'partition'...
(bootloader) Security version downgrade
(bootloader) Image primary_gpt failed validation
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 0.054s
Click to expand...
Click to collapse
If the above firmware isn't working, it might be because the firmware you're trying to flash is too old; you may have to flash the March 2017 firmware (the latest firmware we have) which is here: https://forum.xda-developers.com/moto-g4-plus/how-to/stock-rom-npjs25-93-14-4-march-1-t3608138

unlocked oem but says device locked

so im trying to downgrade by flashing marshmallow
i do everything im supposed to, i unlocked oem from developers settings or by using fastboot oem unlock, but it keeps saying device locked.
whenever i try to flash something it says (bootloader) Preflash validation failed and other things.
idk what to do.
when using oem unlock my data doesnt get wiped nothing happens, in cmd it says ok but nothing changes
it says this (bootloader) Invalid signed image
(bootloader) Preflash validation failed
FAILED (remote failure)
1st
Downgrade botloader and partition table(gpt) is impossible.
2nd
What is your status code in bootloader screen? @reyfor11

Can't restore stock firmware with fastboot

I flashed a custom Oreo 8.1 ROM onto my Moto G4 Plus, and decided to go back to the stock firmware.
However, when attempting to restore the firmware with fastboot, several of the commands fail:
Code:
writing 'system'...
(bootloader) Security version downgrade
(bootloader) Image s failed validation
(bootloader) Invalid signed image
(bootloader) Preflash validation failed
FAILED (remote failure)
How can I restore the stock firmware? Is there another way, other than through fastboot?
Any help is greatly appreciated.
I installed the custom Oreo rom found here: https://forum.xda-developers.com/moto-g4-plus/development/rom-android-source-project-t3716697
I downloaded the firmware found here: https://forum.xda-developers.com/showpost.php?p=74467073&postcount=413
I followed the instructions found here: https://forum.xda-developers.com/moto-g4-plus/how-to/stock-rom-npjs25-93-14-4-march-1-t3608138
I may have figured it out - looks like I was trying to flash the non-US firmware instead of the US firmware. I'll let y'all know if I get it figured out or not.
Never mind, it's all good!! A lesson to others to check the build numbers and software channels before flashing.

How can I repair my soft bricked XT1622?

Hello!
Something went wrong, I think it's called a soft brick, although I'm not sure.
I was trying to root my Moto G4 / Athene / XT1622, which was running Android 7.0 (NPJ25.93-11). I followed the sticky guide, except for the backup (I lacked a free microSD card) and ElementalX kernel parts, AND I forgot to wipe dalvik cache when it was asked. I did a lot of mistakes, it'll teach me to be more careful. :-/
After flashing Magisk, when I tried to reboot into Android, all I got was a black screen. I'm still able to boot to bootloader or recovery using the volume down + power buttons combination.
So I went back to TWRP and tried to flash LineageOS 14.1 + pico OpenGApps, then stock NPJ25.93-11 (Android 7.0), then stock MPJ24.139-23 (Android 6.0.1), none of which worked.
It looks like that at some point in the process I messed up the partition table (TWRP reports errors about them when trying to flash LineageOS).
Yet, as soon as I launch "fastboot flash partition gpt.bin", which is the first part of a stock recovery, I get:
Code:
target reported max download size of 536870912 bytes
sending 'partition' (32 KB)...
OKAY [ 0.004s]
writing 'partition'...
(bootloader) Security version downgrade
(bootloader) Image primary_gpt failed validation
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 0.040s
(Same result with Android 6.0 or Android 7.0 factory images)
Any suggestion please?
try flash using RSDLite
Oops, I forgot to reply to myself, but I've been able to unbrick it following these steps: https://forum.xda-developers.com/showpost.php?p=75005815&postcount=5
So my problem is solved, thank you anyway!

Help please. Athene bricked after updating Lineage Nougat.

OP. After downloading Lineage last update through updater in settings, my phone was hardbricked.
I tried to follow this guide https://forum.xda-developers.com/moto-g4-plus/how-to/moto-g4-plus-hardbrick-solved-guide-t3657761 without success. My phone recovered from hardbricking with blankflash and now I'm into a barebone bootloader screen.
The point is I cannot continue with the steps because it seems I'm trying to downgrade the gpt and bootloader
(bootloader) Security version downgrade
(bootloader) Image primary_gpt failed validation
(bootloader) Preflash validation failed
FAILED (remote failure)
Please, help me, thanks.
It lives now, I don't know why.
I tried a yolo and flashed a stock ROM in that barebone fastboot. Almost everything failed but, surprise, Lineage booted in a clean state.

Categories

Resources