yashsingh1/xdaforums huggingface dataset:
[Moto G4 Plus Guides, News, & Discussion] priyankps:
I flashed March'17 build by omitting gpt and bootloader and now I am getting 'unable to mount storage' in twrp. But the phone is working fine.

Issues-

whenever I start my phone normally it start in bootloader.

Unable to flash anything in twrp; 'unable to mount storage'

Questions:-

will it be safe to use phone on stock from?

Should I use any custom ROM after wiping the whole device?

Please help me; I don't want to loose my device:(
[Moto G4 Plus Guides, News, & Discussion] echo92:
If your device is generally running fine for the moment on the stock ROM, I'd have thought it should be okay to use. I don't know if it's safe to take the OTA back up to the June build however, might be worth waiting for the fastboot ROM. If you've downgraded, I'd personally caution against the OTA for now. I might be being overcautious, however I'd prefer there to not be another brick if we can help it.

1) For your starting in bootloader issue, you could try booting to your bootloader, then plug your device to your computer and in adb type 'fastboot fb_mode_clear', without the quotes, that should let your device boot normally.

2)As for your 'unable to mount' error in TWRP, I've read (though not tried, as I don't recall encountering this error) that wiping/formatting your internal storage and performing a factory reset might work. Might be worth waiting for others to suggest other options or see what comes up in your research too. As always, ensure your data is backed up and off your device before you try anything.

3) Custom ROMs should be okay - it's the reverting back to the stock ROM that generally appeared to cause issues. I'd suggest making a TWRP backup of your stock ROM before wiping /system, /data, Dalvik and cache for the custom ROM installation, so that if you wish to revert back to a near-stock ROM, you can flash your TWRP backup. Custom ROMs don't generally appear to affect the firmware much, if any.
[Moto G4 Plus Guides, News, & Discussion] priyankps:
Thanks a lot for such a great reply.:):good:

I was too thinking to go for custom ROM but wasn't sure.
[Moto G4 Plus Guides, News, & Discussion] echo92:
Tried a few attempts with magisk v13 beta, which though flashed in TWRP 3.1.1 (shrep's build) okay, did not recognise root in the magisk manager. This was with the c4377ed build.

However, I've got root access with ElementalX v1.04 and flashing magisk v12 on NPJS25.93-14-8 :) SafetyNet is green from using the core mode of magisk (no modules loaded). As normal on stock Nougat ROMs on our devices, a custom kernel is required to be flashed first before magisk or SuperSU.
[Moto G4 Plus Guides, News, & Discussion] anirudh.m:
Thanks for the explanation! I followed your instructions on updating without losing my data and everything works great! I got root with ElementalX v1.04 and flashing Magisk v13 (54e6a79). It's passing SafetyNet by default. Play store is also showing the device as 'certified'.
[Moto G4 Plus Guides, News, & Discussion] HACK3DANDR0ID:
Just flashed in STOCK recovery WITHOUT issue. XT-1644 ~ TMO ~ USA
[Moto G4 Plus Guides, News, & Discussion] Aby lad:
Installzip via adb
[Moto G4 Plus Guides, News, & Discussion] daeshawn:
Why am I suddenly getting an insane amount of pop ups
[Moto G4 Plus Guides, News, & Discussion] peladoro:
Is this OTA available for 1641 Rogers?
[Moto G4 Plus Guides, News, & Discussion] Ryuller_br:
I was in stock 14-4-8 (last update), now I'm using InvictaOS, I can go back to stock 93-14-4 and then upgrade to the latest version without problems?
[Moto G4 Plus Guides, News, & Discussion] ivan290:
Yes you can, but you can't update from -14 to 14-4
[Moto G4 Plus Guides, News, & Discussion] peladoro:
Will this update the bootloader? I mean if I restore my backup of 14-4 which is official OTA and flash this
[Moto G4 Plus Guides, News, & Discussion] artwisbr:
I cant install through sd and I don't remember How to use adb lol :(

Can someone remember to me?
[Moto G4 Plus Guides, News, & Discussion] ca_guri01:
OTA started for Indian handset 1643. I just got it
[Moto G4 Plus Guides, News, & Discussion] echo92:
Provided you were already on NPJS25.93-14-4 when you restore your backup (so your GPT and bootloader are on the same build, your bootloader should be B1:05 if so) and you have a stock recovery, the OTA update will update your bootloader to B1:06.
[Moto G4 Plus Guides, News, & Discussion] peladoro:
My bootloader is on 1:05 cuz I updated with official OTA...but my concern was recovery. So just to be clear do I need to return to complete stock or can I just flash the stock recovery?
[Moto G4 Plus Guides, News, & Discussion] echo92:
Ahh I see, if you restore your backup of NPJS25.93-14-4 (I'm guessing it's a TWRP backup?) and then flash the stock recovery from the NPJS25.93-14-4 fastboot ROM, I'd have thought your system should be stock, along with your stock kernel so the June OTA should flash without issue (and thus update your bootloader to B1:06). Be prepared to flash the stock March fastboot ROM though if the OTA fails.

I've been thinking and am coming to the conclusion that my initial OTA attempt may have failed because I had a custom logo.bin (hiding the bootloader warning), so the updater didn't consider my system stock enough for it to flash.
[Moto G4 Plus Guides, News, & Discussion] nykola5:
What fixes this update? How's the battery going and overheating with respect to 6.0.1? If I do not like it, can I go down to 6.0.1? (Obviously not upgraded to 7.0)
[Moto G4 Plus Guides, News, & Discussion] peladoro:
Yes the backup is TWRP....my question or concern was recovery being the only non stock part
[Moto G4 Plus Guides, News, & Discussion] echo92:
Yes, you need to flash a stock recovery image to install the OTA image. TWRP won't flash it. The general procedure would be:

1)Revert back to NPJS25.93-14-4 with your TWRP backup (assuming it's clean, no modifications done to the stock ROM, e.g. root or debloating, before backing up). Of course, this will erase any apps, data and messages received after the TWRP backup was made, back up as necessary.

2)From the stock fastboot March 2017 ROM, flash the stock recovery.img either via fastboot or in TWRP as an image. This will replace TWRP with the stock recovery.

2a)For fastboot - on your computer, copy the extracted stock recovery.img to your adb folder. Reboot your device to bootloader and attach to your computer. Flash stock recovery image via adb with 'fastboot flash recovery recovery.img'.

2b)For TWRP, copy the recovery.img to your Download folder on your device. Reboot to TWRP. Tap 'Install' then tap 'Install image'. Navigate to your Download folder and select the stock recovery image. Select as 'recovery' and flash.

3)Reboot to recovery.

4)In stock recovery, flash the NPJS25.93-14-8 update.

That should work in updating your device to the June update. If the OTA update fails, you may try flashing some of the stock ROM (as I described earlier https://xdaforums.com/showpost.php?p=72933121&postcount=5) or the whole stock ROM if you choose.

After you're updated, you may re-flash/boot into TWRP and make a backup of your updated stock ROM, provided it's stable.

EDIT - to save you having to download the whole stock ROM, I've uploaded the recovery.img from the NPJS25.93-14-4 ROM: https://drive.google.com/drive/folders/0B-GUyOfb8OgzR1VrQ1NHWDVmWE0 Usual disclaimer applies when flashing this.

Name:recovery.img

Size:16.1 MB (16879616 bytes)

md5 checksum: de77f4032e8462b4c9e04a22a8efdac3

I've checked that the download is the right size and md5 as the stock recovery. You could also try shreps' upload of the Nougat recovery: https://moto.shreps.fr/?dir=Moto G4 (athene)/recovery
[Moto G4 Plus Guides, News, & Discussion] peladoro:
echo92! Thank you for tutorial! Yes the backup is unaltered except for recovery so I'll follow this...I've already once fastbooted to return to stock to get Roger's 14-4 update but just wasn't completely clear on just flashing a part like recovery. Thank you much!!! [emoji2] [emoji1]
[Moto G4 Plus Guides, News, & Discussion] peladoro:
I know this might get me blasted with read research but I can't seem to find it....how the f@#$_ do you get into stock recovery? Power button vol up?!!
[Moto G4 Plus Guides, News, & Discussion] moonlightdrive:
First of all power off your device and enter to the bootloader (power + vol-) , then, search for recovery (with the volume buttons), and select it with the power button.

You will boot into recovery, and it's going to display an Android robot image saying "No command". Press POWER button for 2 seconds and without release it, press VOLUME+ button.

Easy way: enable developer options (in settings, by touching repeatedly 'build number' in 'about the phone').

Into developer options enable USB debugging, and with ADB (device connected to pc, obviously) type:
[Moto G4 Plus Guides, News, & Discussion] peladoro:
Thank you!
[Moto G4 Plus Guides, News, & Discussion] ayush.motog4:
OTA received on stock rom [INDIA]

I got june patch on the official stock rom.

change log

June 2017 patch

Boot animation now has 'Motorola, a Lenovo company' at the bottom (not sure if that was there previously) when the logo flips from Lenovo to the M symbol.

IMEI SV seems to be changed to 9 (think it used to be 8).

New logo seems to appear when charging with the device off (before the battery gauge appears)?:confused:

[IMG="Screenshot"]https://uploads.disquscdn.com/images/3c75d3badcc478a4c8e9529eb216024994244a29a3a5d7a0c5ac3b9280a1e3f7.jpg[/IMG]
[Moto G4 Plus Guides, News, & Discussion] prabu:
Me too just poped up
[Moto G4 Plus Guides, News, & Discussion] peladoro:
Don't know the issue but can't get into stock recovery. I'm at robot down no command tried sequence Vol+ then power just reboots. Tried adb reboot... reboots to ? down?
[Moto G4 Plus Guides, News, & Discussion] moonlightdrive:
Seems like i explained this wrong, sorry for that. I installed the stock recovery to prove the way to enter into it.

When you see the Android robot and the 'No command' message press POWER button for 2 seconds, and after that (without releasing it) press VOLUME + button, It should work for you, works for me on last stock rom.
[Moto G4 Plus Guides, News, & Discussion] peladoro:
Nope getting error 7... didn't alter anything other than the recovery
[Moto G4 Plus Guides, News, & Discussion] artwisbr:
I just updated it and the boot logo didn't change for me. Is that a problem?
[Moto G4 Plus Guides, News, & Discussion] georgeiulian89:
The bootlogo is the same as in the previous version.
[Moto G4 Plus Guides, News, & Discussion] artwisbr:
Ow, ok. I read on first page it had changed but ok, thanks
[Moto G4 Plus Guides, News, & Discussion] echo92:
Hmm, do you still have your stock logo.bin in place (so should have a 'Your device is unlocked...' message on boot) or did a custom logo.bin get flashed to hide the warning? You may have to flash a stock logo.bin if if you've got a custom logo.bin (and I think having a custom logo.bin is where my installation errored out as well initially).
[Moto G4 Plus Guides, News, & Discussion] peladoro:
As I mentioned earlier, didn't alter anything other than the recovery. I flashed stock got into menu had just black screen did wipe cache mount then received error message...

---------- Post added at 07:00 AM ---------- Previous post was at 06:49 AM ----------

I came from Los rooted elemental x kernel...full wipe format data restored backup
[Moto G4 Plus Guides, News, & Discussion] echo92:
Okay thanks (just double checking you're still on the stock logo.bin with the unlocked bootloader warning) - which stock recovery are you using? I think the OTA is expecting the recovery from the NPJS25.93-14-4 stock ROM, which might be where it's failing. Try the recovery image I pulled from the stock ROM https://xdaforums.com/showpost.php?p=72980135&postcount=55
[Moto G4 Plus Guides, News, & Discussion] peladoro:
Npj25-75 2/1

---------- Post added at 09:19 AM ---------- Previous post was at 09:13 AM ----------

Probably the issue
[Moto G4 Plus Guides, News, & Discussion] GokulChandran:
Lightening symbol missing while charging when the device is off

While charging when the device is off it just shows me the bootloader instead of lightening symbol anyone have the same issue
[Moto G4 Plus Guides, News, & Discussion] Aakash12:
I have updated to The June Security Patch Update, So the root procedures changes or anything? i want to root this device now.

Also, the bootloader is updated now, might have increased security.
[Moto G4 Plus Guides, News, & Discussion] echo92:
For root, I used the same procedure as for earlier Nougat builds for our device:

Flash/boot TWRP (I used shreps' TWRP 3.1.1 athene : https://xdaforums.com/moto-g4-plus/development/recovery-twrp-3-0-2-r3-moto-g4-g4-plus-t3494337)

Backed up my device in TWRP (all partitions).

Flashed ElementalX v.104 (https://xdaforums.com/moto-g4-plus/development/kernel-elementalx-g4-0-01-t3424836)

Wiped cache/Dalvik. Reboot to check system is booting.

Rebooted to TWRP and flashed magisk.

Reboot.

I flashed magisk v12 (and running it in core mode) as I found v13.1 to complain it was rooted but possibly no permissions, even though it was granting root access to apps. Of course, in core mode, you won't have access to modules. Instead of magisk, at that step you may flash SuperSU instead.

I think the bootloader won't care as we flash a custom kernel and have it unlocked, so bypassing many of the checks as I understand it. However, the updated bootloader appears to mean that downgrading is risking a brick (especially if you downgrade the bootloader), perhaps to prevent you from re-opening the security hole that got patched. (LG had a anti-rollback system for their G4, so we may have something similar).

I do not know currently if you can safely downgrade if you elect not to flash the GPT or bootloader partitions. We also currently do not have a means to recover bricked devices, possibly because the blank-flash we have access to is older than the June bootloader, meaning a service centre visit. Therefore, if at a later point you need to revert back to stock, until we get the June fastboot ROM, be careful and use your TWRP backups to roll back to near stock.
[Moto G4 Plus Guides, News, & Discussion] peladoro:
ok finally! I just fastbooted back to 14-4 and from recovery updated...thanks for your help all!
[Moto G4 Plus Guides, News, & Discussion] Supersteam:
How can i relock my bootloader after Updated to NPJS25.93-14-8. I can't revert back to 14-4. The bootloader while fastboot window says "preflash validation failed" .The oem lock didn't working
[Moto G4 Plus Guides, News, & Discussion] GokulChandran:
No, if your are at NPJS25.93-14-8 and ur bootloader is unlocked then you cant lock the bootloader

You have to wait till the firmware with june patch is available
[Moto G4 Plus Guides, News, & Discussion] Supersteam:
Hi

Okay. I got the point. Can i atleast remove the bootloader unlock warning while turning on the phone. I already tried the command "fastboot flash logo logo.bin" . The fastboot window shows success. But in phone it's still the same with unlocked bootloader warning. The warning can't be removed.
[Moto G4 Plus Guides, News, & Discussion] GokulChandran:
No you cant get rid of that prompt

There may be some other way which am not sure

Once I tried to flash the custom boot animation with which I got rid of the whole warning except showing me n/a screen

Don't know whether u can completely remove it
[Moto G4 Plus Guides, News, & Discussion] echo92:
Sounds like you're flashing the stock logo.bin, which won't hide the warning. Flash a custom logo.bin - this won't shorten the waiting time, but should hide the warning - you can find custom logo.bins in the Mods section (e.g. https://xdaforums.com/moto-g4-plus/themes/customized-logo-t3451349 https://xdaforums.com/moto-g4-plus/themes/athene-android-moto-bootlogo-moto-g4-g4-t3597921 https://xdaforums.com/moto-g4-plus/themes/bootlogo-dev-edition-black-n-removed-t3609835 https://xdaforums.com/moto-g4-plus/themes/splash-screen-stark-sigil-game-thrones-t3562019 )

Just bear in mind that a custom logo.bin might be seen by a future OTA update as a 'modified' system and thus fail to install. In that case, you'll have to flash back the stock logo.bin (along with other stock files).
[Moto G4 Plus Guides, News, & Discussion] Supersteam:
Thanks

Thanks. Successfully removed the warning by flashing the custom boot logo:D:D:D. What i did wrong earlier was flashed the stock boot logo:laugh::laugh::laugh:
[Moto G4 Plus Guides, News, & Discussion] SoNic67:
Flashed on my XT1644 US retail.

First I have re-flashed the 14-4 stock system and logo, maintaining my data. Then side-loaded via ADB the update file.

It seems that the modem files got updated too? Baseband version M8952_70030.25.03.62.01R

ElementalX kernel and rooted with Magisk 13.2. Custom logo.

It works perfect, multumesc George!
[Moto G4 Plus Guides, News, & Discussion] Outfield303:
my phone bricked after this $h*t update
[Moto G4 Plus Guides, News, & Discussion] SoNic67:
Update worked for so many people. The $h*t that you complain about most likely happened on the other side of the screen.
[Moto G4 Plus Guides, News, & Discussion] georgeiulian89:
Not the update it's s**t, but the way how you're flashing ota updates (with the modified system/partitions).
[Moto G4 Plus Guides, News, & Discussion] ThaRandomAndroid:
How do you do?

I downloaded the update but i don't know todo aplied?
[Moto G4 Plus Guides, News, & Discussion] echo92:
1) Are you on the March 2017 security update (your build should be NPJS25.93-14-4)? If not, then the update will fail. If you need to update, have a look at this fastboot ROM: https://xdaforums.com/moto-g4-plus/how-to/stock-rom-npjs25-93-14-4-march-1-t3608138

2)If you are the March 2017 update, did you fully update (including your bootloader and GPT, your bootloader should be B1:05 on the bootloader screen) and have a stock recovery/system/kernel?

If at any point in the past your device was downgraded, I'd strongly suggest formally updating your device completely to the March update, using the fastboot ROM mentioned above before proceeding. Back up your data and move your backed up data off your device before flashing

3)Are you on a retail device? I see from your previous posts you're on retmx? Is this update from an OTA or from the first post of this topic?

If 1), 2) and 3) are yes and you downloaded the OTA from this topic, then you should be able to apply the update. Before you do so, ensure your data is backed up and off your device, preferably to your computer - if you have a SD card set to portable storage, that should be okay to back up to. If you have your OTA downloaded to your device, then follow moonlightdrive's instructions to access the stock recovery: https://xdaforums.com/showpost.php?p=72981796&postcount=58

After that, then use the volume keys to move and the power button to select 'Apply update from SD card', and navigate to the Download directory where your OTA update is held. (You may have to mount /system on the main recovery menu if you have mount issues, then attempt to navigate to the OTA update).

Press the power button to select the update and wait for it to flash.

Following the flash, at the main menu, you may wish to wipe cache, then reboot.

If you get an error 7 (may occur if you have an unlocked bootloader, as your system may not be completely stock), then you may have modifications to your system, which will need a clean stock flash to rectify.

A few things to note before you flash though:

A)We currently do not have a way to lock the bootloader once your device is updated to the June update since we don't have the June fastboot firmware yet. If you desire your bootloader locked, you will want to lock your device with the March 2017 fastboot firmware before proceeding to flash the June update.

B)I would strongly suggest that following a flash of the June security patch, you do not downgrade your bootloader at any point Attempting to do so seems to result in a hard brick and there is currently no resolution besides sending your device to a service centre. Additionally, downgrading without flashing GPT and bootloader, then accepting an OTA appears to hard brick devices too. Be aware and be careful.

C)If at any point you are not confident in any of the steps, please ask before flashing or you may wish to wait for the OTA to arrive from Motorola.
[Moto G4 Plus Guides, News, & Discussion] shasrahman:
can someone please provide me any link to download this NPJS25.93-14-8 whole fastboot firmware image.

---------- Post added at 08:39 AM ---------- Previous post was at 08:32 AM ----------

can someone please provide me any link to download this NPJS25.93-14-8 whole fiastboot firmware image. i want to flash my moto g4 plus xt1643. but i cant find this NPJS25.93-14-8 firmware image. when i try to flash my device with the old NPJS25.93-14-4 ( MARCH SECURITY PATCH FIRMWARE) it says failed to downgrade the gpt and partition. that is why i want the new firmware image. please someone help me
[Moto G4 Plus Guides, News, & Discussion] rajatgupta1998:
Not yet available
[Moto G4 Plus Guides, News, & Discussion] shasrahman:
thanks!!! but can you please tell me when it is going to be available. i want this on urgent basis.
[Moto G4 Plus Guides, News, & Discussion] SoNic67:
Flash 14-4 without those two.
[Moto G4 Plus Guides, News, & Discussion] ccalixtro:
Maybe a month or two.
[Moto G4 Plus Guides, News, & Discussion] echo92:
[EDIT - link removed as issues with SIM loss are investigated]
[Moto G4 Plus Guides, News, & Discussion] toppits:
I was on NPJ25.93-14, with ElementalX Kernel and rooted with SuperSU. I flashed the files I left above: logo, boot, recovery and the 8 sparsechunk files. I didn't unroot or do ANYTHING else besides flashing those files, so in short my steps were:

(- shutdown, take out my sim card, reboot, search for update, magically an update appears (don't ask me why, but it works, I did it on two devices and several users confirmed it in a german forum), download update)

- boot into TWRP and Backup

- from TWRP boot into fastboot and flash logo, boot, recovery and the sparsechunk files

- boot into system and install the update

- wait until you get the message that the update is finished, search for the second update, download, install and wait until you get the "update finished" message

- copy Kernel.zip and root.zip to your phone, boot into TWRP and flash ElementalX and SuperSU, reboot

-> I'm on june security patch, no data loss, I don't even have to regive root permission - my previous configuration is still there in SuperSU.
[Moto G4 Plus Guides, News, & Discussion] AkashAlien:
Are you able to select mtp or photo transfer options when u connect ur phone to PC? In new update?
[Moto G4 Plus Guides, News, & Discussion] toppits:
[MENTION=4859596]AkashAlien[/MENTION]

Yes, it works.

It isn't labeled as MTP anymore, just says something like "data transfer" now, but it is MTP and works.

PTP is still labeled PTP and also works.
[Moto G4 Plus Guides, News, & Discussion] AkashAlien:
oh well in my case nothing show's up,might be issue with connector
[Moto G4 Plus Guides, News, & Discussion] kevinarol:
Official fastboot file with June 2017 security patch available, thanks to [MENTION=6324159]tywinlannister7[/MENTION] [MENTION=7568614]lCrD512[/MENTION]

https://xdaforums.com/moto-g4-plus/...-93-14-4-march-1-t3608138/page14#post73157470
[Moto G4 Plus Guides, News, & Discussion] Danny1976:
Echo92, I thought you were using Invicta ROM. Any reason you switch to stock? Invicta is not as battery efficient as before. How is the stock on battery compare to Invicta ROM?