Running Android 7 - NPJS25.93-14-4, (March 1, 2017 patch level). Is there a way to relock the bootloader?(Dont think there is a factory flash for it). I do not have twrp or anything else, its 100% factory other than unlocked bootloader.
Related
I just updated to Nougat and safetynet fails. I have not even rooted or put TWRP back on.
I'm using the EU ROM.
Previously I updated from 6.0 Sept to 6.0 Dec patch by flashing the boot and recovery image (from the Sept. firmware) on the device, then taking the update. And then flashing TWRP and magisk again.
6.0 Dec. to Nougat didn't go as well. I flashed the boot and recovery but the phone didn't boot... I used the Sept firmware as I do not have the Dec. firmware (I'm very adamant about getting the latest stock ROM for flashing purposes..). Anyways, so I had to flash the entire 6.0 Sept ROM again (I did not wipe my data) and then update to the December patch and then to Nougat. Would have been so much easier if I had the December patch ROM to flash...
I actually uninstalled magisk before all of this. But actually, magisk/root would be gone after flashing the boot image anyway.
After updating to Nougat I have not done any modding, but safetynet fails... Why is this? And I can only start from scratch from the 6.0 September patch...so starting over is not sounding good.
Possibly due to the unlocked bootloader from reading other threads...
d.casper.b said:
I just updated to Nougat and safetynet fails. I have not even rooted or put TWRP back on.
I'm using the EU ROM.
Previously I updated from 6.0 Sept to 6.0 Dec patch by flashing the boot and recovery image (from the Sept. firmware) on the device, then taking the update. And then flashing TWRP and magisk again.
6.0 Dec. to Nougat didn't go as well. I flashed the boot and recovery but the phone didn't boot... I used the Sept firmware as I do not have the Dec. firmware (I'm very adamant about getting the latest stock ROM for flashing purposes..). Anyways, so I had to flash the entire 6.0 Sept ROM again (I did not wipe my data) and then update to the December patch and then to Nougat. Would have been so much easier if I had the December patch ROM to flash...
I actually uninstalled magisk before all of this. But actually, magisk/root would be gone after flashing the boot image anyway.
After updating to Nougat I have not done any modding, but safetynet fails... Why is this? And I can only start from scratch from the 6.0 September patch...so starting over is not sounding good.
Possibly due to the unlocked bootloader from reading other threads...
Click to expand...
Click to collapse
I have the same issue with safetynet, I could only fix it while flashing this: Universal SafetyNet Fix v2 beta 4 !
https://forum.xda-developers.com/apps/magisk/xiaomi-safetynet-fix-t3600431
An unlocked bootloader will cause SafetyNet to fail in Nougat, at least in some devices (Pixel/Nexus, HTC 10/U11, OP3/3T too), could well be the reason it is failing.
unrooted XT1644 (previously Magisk rooted)
bootloader unlocked
TWRP 3.1.1-0
ElementalX kernel 3.10.84
OS version: 7.0
Security patch level: June 1, 2017, firmware NPJ25.93-14.5
Baseband: M8952_70030.25.03.62R ATHENE_RETUSA_CUST
SafetyNet app failed "CTS profile" on unrooted Android. Oddly, my phone passed SafetyNet when I used Magisk. But after restoring my phone from a Nandroid backup taken before Magisk was flashed, it no longer passes. Might there be file directory remnants of Magisk that are affecting the SafetyNet result? Any troubleshooting steps appreciated.
There's now a September 1, 2017 OEM security OTA update waiting for me in my Notifications bar. I'm hopeful that the update will create a new system partition that'll get rid of what's causing the SafetyNet fail. Unfortunately a logo.bin TWRP flash fix made a change to my system partition settings that won't allow me to safely take an OTA update. The last time I flashed a security update was through the kindness of someone who provided a TWRP-flashable zip of the June 2017 NPJ25.93-14.5 OTA file. I'm hoping the same will eventually be provided for the September OTA update.
Same case with me too but I have model XT1643 (Indian Version), Build number: NPJS25.93.14-10.
Also, while booting up I still get bootloader unlocked warning and in Google Play Store it is showing Device Certification as Uncertified.
When I type fastboot oem lock in cmd bootloader slot count, bootloader slot suffixes and one more bootloader line all are showing not found.
And yes, in Bootloader Unlock warning it is showing 'ID: Bad key'
Other than this my device is working fine, IMEI numbers and Fingerprint sensor is working perfectly.
I followed guide by tywinlannister7: https://forum.xda-developers.com/moto-g4-plus/how-to/stock-rom-npjs25-93-14-4-march-1-t3608138
Please can anyone tell how can I correct it.
Its the Elemental X kernel. If you don't have magisk installed, it trips the safetynet. I am using a XT1642, I experienced this about a year ago when I was first experimenting with custom firmware.
I downloaded the September 1, 2017 security patch update but would prefer to flash it via TWRP instead of letting the system install it. However I can't even determine where it was downloaded to and I can't access the root directory anymore. Is it safe to manually flash it on an unrooted system containing TWRP, ElementalX kernel and the logo.bin boot screen fix? I'm especially concerned about flashing it on a system that doesn't pass SafetyNet.
TCUofficial said:
Its the Elemental X kernel. If you don't have magisk installed, it trips the safetynet.
Click to expand...
Click to collapse
Thank you for that essential information. I won't consider it a problem since the phone doesn't have NFC, so no Android Pay support anyway. However, I need some additional info before proceeding with the update.
Do I need to get rid of the ElementalX kernel and restore the original?
Do I need to undo the logo.bin bootloader unlock screen fix?
Do I need to get rid of TWRP before allowing the system to install the security patch?
Thanks.
Sorry to be redundant but I am pressed for an answer. Thanks in advance.
RE: downloaded but installed Moto G4+ September 1, 2017 security patch NPJS25.93-14-10.
- Can the patch be safely installed after TWRP has been flashed on the phone?
- Can the patch be safely installed after an ElementalX kernel has been flashed on the phone?
mel2000 said:
Can the patch be safely installed after TWRP has been flashed on the phone?
- Can the patch be safely installed after an ElementalX kernel has been flashed on the phone?
Click to expand...
Click to collapse
Answer is NO to both your questions. You need a STOCK boot image and a stock recovery image to “patch” (by which I think you mean upgrade via an OTA) your phone.
mel2000 said:
Sorry to be redundant but I am pressed for an answer. Thanks in advance.
RE: downloaded but installed Moto G4+ September 1, 2017 security patch NPJS25.93-14-10.
- Can the patch be safely installed after TWRP has been flashed on the phone?
- Can the patch be safely installed after an ElementalX kernel has been flashed on the phone?
Click to expand...
Click to collapse
In addition to zeomal's reply, your device would also need an unmodified system partition (no root, readonly, so no TWRP modifications) else the OTA will fail too.
Furthermore, I don't think the update you've downloaded is suitable for US retail devices, and if flashed might stop you from receiving future OTA updates. If you want the stock NPJ25.93-14.5 full ROM to revert to: https://androidfilehost.com/?fid=673368273298984458
Or the NPJ25.93-14.7 stock ROM: https://androidfilehost.com/?fid=817906626617945295 Of course, either of these will reset your device to stock, erasing TWRP, root and ElementalX and most likely your data, so back up. However, they should permit you to take OTA updates. Flash only in fastboot.
If you've already installed NPJS25.93-14-10, then you won't likely get the OTA update if installed on US devices.
As for SafetyNet/ device uncertified, I recall that's likely due to an unlocked bootloader. Magisk has the ability to hide the bootloader unlocked status from Safetynet, hence why when you removed magisk, the Safetynet detection saw your unlocked bootloader and therefore trips Safetynet. An easy way to get Safetynet passed is to reflash ElementalX and magisk.
I want to thank both zeomal and echo92 for their prompt and clear responses. I will address related issues before I move on.
EDIT: Used OEM Flash.bat to reupdate to June 2017 NPJ25.93-14.5, then allowed NPJ25.93-14.7 to be installed from Moto. All went well with an unlocked bootloader. Didn't lose any apps.
- TWRP (gone)
- ElementalX (gone)
- Logo.bin fix (gone)
- SafetyNet (failed - due to unlocked bootloader)
Thanks again to all.
so today as of regular cleaning and restoring my g4 plus to stock...i restored and think i updated it to the the february security path xml zip via fastboot using (ATHENE_NPJS25.93-14-10_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml) file...the problem was that i was scared to hell when the security patch downgraded itself to september 2017 even on using feb'18 file and the stock recovery returned "no command" error on startup and "error" on updating so...
can please anyone tell me...
1.what's the current version of the bootloader on the latest april/feb'18 build?
2.can i flash apr'18 build over the the one flashed before with all the commands safely(im too worried about hard bricking it!!!!!)?
thank you so much in advance!
1)The NPJS25.93-14-10 firmware is the September 2017 security patch firmware, so flashing that would flash the Sept 2017 security patch to your device. You'd have likely received the December 2017 NPJS25.93-14-13 update then the NPJS25.93-14-15 Feb 2018 update. I'm not entirely sure which update you tried to flash then...
2)The NPJS25.93-14-18 firmware is currently the latest April 2018 security patch firmware, available from here: https://forum.xda-developers.com/moto-g4-plus/how-to/stock-rom-npjs25-93-14-4-march-1-t3608138 I've seen it flashed on Indian, Brazilian, EU and UK devices, not sure about other territories. Current bootloader version on the April 2018 firmware is B1:07.
3)You should be able to flash the April 2018 firmware over whatever you flashed, and as it's the latest firmware, it should not hard brick your device. Please avoid flashing older firmwares or if you do, be very careful with OTA updates.
4)The 'no command' screen is the normal screen for stock recovery. If I recall, if you're on that screen, hold down power then tap the volume up key, then release both to access the stock recovery.
Hi my Moto G4 Plus(Stock Android 6.0.1, xt1642) don't gets updates anymore. I had Custom Roms installed. But restored the Stock Rom via TWRP. But Motorola published Android 8.1.0 a while ago.
Now my question: How to install the 8.1.0 Update?
Thanks in advance
Limosine
Which route are you wanting to use, TWRP or flashing fastboot stock firmware?
N.B. Back up your device in TWRP and keep the backup off your device before proceeding with either method.
1)Using TWRP to update your device (with an Oreo TWRP flashable) will not fully update your device - it will only update system, kernel and modem. However, this approach might be useful if you wish to downgrade back to Marshmallow, and retains TWRP. Your kernel and root will be replaced. https://forum.xda-developers.com/moto-g4-plus/development/rom-oreo-8-1-0-soak-test-t3873367 for the Oreo TWRP flashable firmware. You will not be eligible for OTA updates.
2)Using the fastboot flash firmware means a more complete update, so possibly fewer issues and greater stability, however you should not downgrade safely after formally updating. For the Oreo fastboot firmware: https://forum.xda-developers.com/moto-g4-plus/how-to/stock-rom-npjs25-93-14-4-march-1-t3608138 You do not have to lock your bootloader (omit fastboot oem lock begin and the fastboot oem lock commands), and if you so choose, you could try to keep your data by omitting fastboot erase userdata. However, in case of instability, you may have to factory reset your device. TWRP, root and any modifications will be overwritten.
My UK XT1642 G4 Plus is running on OPJ28.111-22 with an EMEA baseband without issue. I hope this is the same case for yours.
If I end up with the 4/64 variant (then my 2/32 lives on as some backup device/wifi)...pretty sure it still will have stock Nougat. If I upgrade immediately to Oreo via OTA, can I still unlock the bootloader and root, or unlock it on Nougat and then upgrade via OTA and then root it?
Also, true I couldnt reflash a TWRP backup of a Pie ROM on my 2/32 and into a 4/64?
g 5 +moto
re lock ur bootloader back to stock then up grade to 8.1 if ur a senior member you should know that.2/32 4/64 are hardware in your phone .
Not exactly the answer I was looking for. The exact question is, unlock bootloader on Nougat or unlock after upgrading to Oreo? Or get the unlock code while on Nougat, upgrade to Oreo and then unlock and root?
If you're not currently bootloader unlocked, then you'd be best to take the OTA. After that, you can unlock the bootloader and root. If you're already unlocked, then you'd probably be better off just getting a TWRP flashable oreo build and just flash that. I wouldn't take a TWRP backup from one phone and restore it to another, since it might cause issues with things like serial numbers and IMEI. You'd be better making a backup with Lenovo Moto Smart Assistant or something similar. Just remember that unlocking the bootloader will wipe the phone. So if you re-lock it, or it's not currently locked, make the backup before doing that.
Update to Oreo with LMSA, unlock bootloader then root. Make backup before all. LMSA will prompt you to make back up, I think.