yashsingh1/xdaforums huggingface dataset:
[Moto G4 Plus Guides, News, & Discussion] rajatgupta1998:
This is the official build for the stock firmware, why will it lag? Stock ROM lagging is because of the setup you have. Check what all heavy apps are constantly using your CPU. I really don't understand how the dirty flashing of an OTA makes the phone faster than while flashing the firmware with fastboot which actually factory resets everything.
[Moto G4 Plus Guides, News, & Discussion] echo92:
In addition to tywinlannister7's reply, be aware that:

1)As mentioned, the fastboot commands will wipe your device (including your internal storage). Keep backups off your device off your device (preferably your computer) until you've flashed. Also, if you're restoring apps, I found that downloading the app from the Play Store and just restoring the app data (e.g. using Titanium Backup) worked. Your experience may vary. Of course, don't restore system data...

2)Reverting back to stock may render your SD card - if you have one - unreadable until it's reformatted (I experienced this when reverting from RR to this stock ROM as my SD card was part of internal storage).

3)It's up to you to re-lock your bootloader or keep your bootloader unlocked. You'll need the bootloader unlocked if you choose to root (as per section 4)

4)You'll lose TWRP, root and get a stock recovery and system. You can root in stock Nougat if you wish using this guide:https://xdaforums.com/moto-g4-plus/how-to/guide-root-moto-g4-plus-supersu-android-t3587918

4a)This update will upgrade your bootloader to B1.05 and update your modem to the .62R version (same as the December 2016 build) and of course brings the March security patch.
[Moto G4 Plus Guides, News, & Discussion] yolagarto93:
Oh I forgot! it fixed by itself actually. Don't know how, don't know why. Everything has been butter smooth since then.
[Moto G4 Plus Guides, News, & Discussion] Madmox2000:
I'm coming from latest RR build. Anything special I need to do, or can I just go ahead and flash as per instructions?

Thanks
[Moto G4 Plus Guides, News, & Discussion] echo92:
See my reply here for some things to be aware of: https://xdaforums.com/showpost.php?p=72556193&postcount=50

Other than that, you should be able to flash as per the instructions, besides having some time to flash. It's up to you if you choose to re-lock your bootloader or not (won't affect OTA updates either way).
[Moto G4 Plus Guides, News, & Discussion] markbnj:
Dumb questions (XT1644 with 6.01)

OK, partially dumb question #1

(US XT1644 ) 3gb RAM..

I have 6.01 rooted ok.​

I tried using the guide to upgrade to 7.0 and discovered (quite by accident), that it appears TWRP was installed as my recovery.

so when the ota upgrade ran, it kept starting TWRP. Sigh.

Q1) Am I correct in presuming I can fastboot this version OVER my existing 6.01 install (nicely backed up of course...) and it will give me a stock 7.0

(including stock recovery), that I can then back up, so I can do this again for next update?

q2) is it definite that it will erase my SD card? i have a hell of a time using the moto file manager to move stuff!

q3) I have minimal adb and fastboot installed, so I tried to skip install in step 1)

However, adb devices works fine and shows a serial #, but fastboot devices shows nothing!

will try and install in a new directory

(q4)--

off topic:

can anyone recommend a GOOD file manager (besides ES File Manager?) I used to use it until I found out it transmitted lots of junk somewhere.

thanks

Markb in nj
[Moto G4 Plus Guides, News, & Discussion] echo92:
1) Yes, you should be able to flash this fastboot ROM over your existing installation (and will bring you up to the latest NPJS25.93-14.4 March 2017 build). Other members appear to have succeeded in flashing the 7.0 update over a rooted 6.0.1 installation without needing to wipe data (you can find the relevant flashing commands here: https://xdaforums.com/showpost.php?p=72328793&postcount=255, https://xdaforums.com/showpost.php?p=72329540&postcount=256 ) though your experience may vary and you may have to wipe your data (i.e. a factory reset) to get a stable system, or re-flash this fastboot ROM with the non-locking flashing script (the one without the OEM lock commands).

1a)As for backing up, if you're looking for a complete backup, you may wish to flash TWRP (e.g. shrep's TWRP 3.03n4 or 3.1.0 https://xdaforums.com/moto-g4-plus/development/recovery-twrp-3-0-2-r3-moto-g4-g4-plus-t3494337) after you flash this fastboot ROM and make a back up in TWRP. That way, if another OTA comes along, you could restore this backup (or, if you've rooted, follow a guide to unroot and restore your stock Nougat kernel), then re-flash the stock recovery. Then, you should be eligible for OTA updates again.

2)The OS wanted to erase my SD card as I switched from a custom ROM back to stock, plus it was adopted as internal storage - I guess that the encryption key was lost in the wipe back to stock and hence I had to re-format. Since you're upgrading stock to stock, I would have thought your SD card would be safe, but perhaps prudent to keep your SD card backed up too or separate (provided it's not adopted) until you flashed.

3)Yeah, I used to like ES File Manager, then they stuffed it full of ads and turned it into a shadow of its former self... I tend to use Amaze (a bit lightweight, perhaps, but free) or Solid Explorer (paid), both work with magisk 12 on the stock ROM :) Just bear in mind with Nougat on Moto G4 devices, you need a custom kernel flashed if you want to use root.
[Moto G4 Plus Guides, News, & Discussion] markbnj:
sidebar: adb devices works, fastboot devices doesn't

edited for brevity, think i have answer:

Question:

any ideas why my

[SIZE="2"]C:\Program Files (x86)\fastboot>fastboot device
< waiting for any device >
C:\Program Files (x86)\fastboot>fastboot devices

C:\Program Files (x86)\fastboot>

[/SIZE] doesn't give me any results? I also tried re-installing from the suggested directory into another directory, and got same response (adb responds with devices list but fastboot devices doesn't.

C:\Program Files (x86)\fastboot>adb devices
List of devices attached
ZY223L4RJS device

and the other version of fastboot I have from my previous install is:

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot --version
fastboot version fc2a139a55f5-android

and that shows this as output:

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot devices -l

C:\Program Files (x86)\Minimal ADB and Fastboot>

and I even copied the help output (thanks to the 2> option) and verified the help screen as well as the version #

C:\Program Files (x86)\fastboot>fastboot --version
fastboot version 0e9850346394-android

thanks again!

duh. apparently, I can'tt parse the difference between fastboot and adb.

This link: https://android.stackexchange.com/questions/58187/adb-can-discover-devices-but-not-fastboot discusses the differences between the two programs, and points out (duh?!) that:

(message # 11)...snip...

Of course, I still have original problem which is that I must have flashed TWRP as my recovery instead of the stock recovery, so fastboot devices wont work!

Sigh.

OK. full (easy reason in my case:)

this site has the answer in english

(fastboot seems to want an answer from the bootloader). HERE is the work-around

I'm ready to go back to the days of the "shoe-phone", and forget about all this high tech stuff!
[Moto G4 Plus Guides, News, & Discussion] Sharp404:
Hey guys..

I can't see ambient display switch on and off in display settings..is it like this in stock..anyone can confirm?

I recently flashed stock with help of this thread
[Moto G4 Plus Guides, News, & Discussion] rajatgupta1998:
It's under Moto Actions app Moto Display.
[Moto G4 Plus Guides, News, & Discussion] Sharp404:
Thankss#
[Moto G4 Plus Guides, News, & Discussion] ozgurubuntu:
Can you upload twrp flash version this update pls
[Moto G4 Plus Guides, News, & Discussion] runindia:
What a lovely post. I used the manual method. Every thing went smoothly . I was on custom rom 8.0, wanted to go back to stock 7.0 . Followed your steps carefully. Worked like a charm.

thank you for helping. great stuff great site
[Moto G4 Plus Guides, News, & Discussion] hoshang.govil12:
Hi there. I flashed this Firmware, But I haven't locked my Bootloader. But Play Store is showing My Device Uncertified. Do we need to lock Bootloader to Pass Safetynet check??

I am not Sure for it, As In Moto G2 there were no such issues.

I am completely on Stock ROM aka Firmware.
[Moto G4 Plus Guides, News, & Discussion] echo92:
Safetynet is more stringent and on newer versions of android I recall they detect an unlocked bootloader

https://www.xda-developers.com/sult...otloader-check-on-latest-cm13-builds-for-op3/

You could relock your bootloader, of course the process will erase your device and mean you cannot flash anything custom.

If you wish to keep your unlocked bootloader, then you can root; flash TWRP, then a custom kernel like ElementalX v2.0 and then flash magisk. Magisk can hide your bootloader unlocked status and allow you to pass safetynet. I'm on this December 2017 stock firmware, with an unlocked bootloader, with ElementalX and magisk, and the play store is showing certified. You may have to wipe the play store data for it to re-detect your bootloader status after rooting to get certified.

Be aware that magisk and safetynet are in a battle to keep breaking each other, so this safetynet bypass may not always work, though topjohnwu has been excellent at getting around safetynet so far.
[Moto G4 Plus Guides, News, & Discussion] ex-r-wagon:
XT1644 RETUSA on stock ROM now offering OTA update to NPJS25.93-14.7-3
[Moto G4 Plus Guides, News, & Discussion] libralibra:
I flashed the last rom in this post of 25.93.14.10 - the September security patch. Will I receive this ota soon? Or I have to flash this new rom again by myself?
[Moto G4 Plus Guides, News, & Discussion] echo92:
If your device is retgb (retail GB/UK) as I see from your previous posts, you should be due the OTA update to NPJS25.93-14-13 if you have NPJS25.93-14-10, anything on the software update checker? Just ensure your device is fully stock before taking the OTA update (unlocked/locked bootloader status doesn't appear to matter). RetGB channel updates seem to be slow at times...
[Moto G4 Plus Guides, News, & Discussion] Jdgp42:
I need some help. I installed "ATHENE_NPJS25.93-14-13" at top of "Pixel Experience 64b" the comand for returning to stock went ok, but the phone not longer boot, no recovery, no fastboot. Only thing I get from device is the flash led at the botton when connected to a power supply. Any advice.?
[Moto G4 Plus Guides, News, & Discussion] Yuset Alfaro:
Moto G4 plus Help please

C:\Users\Usuario\Downloads\NPJS25_93_14_10_Sept2017_GPT_bootloader>fastboot flash partition gpt.bin

(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.005s]

writing 'partition'...

(bootloader) Flashing primary GPT image...

(bootloader) Failed to write primary GPT.

(bootloader) Failed to program partition table

FAILED (remote failure)

finished. total time: 34.741s

C:\Users\Usuario\Downloads\NPJS25_93_14_10_Sept2017_GPT_bootloader>fastboot flash bootloader bootloader.img

(bootloader) slot-count: not found

(bootloader) slot-suffixes: not found

(bootloader) slot-suffixes: not found

(bootloader) has-slot:bootloader: not found

target reported max download size of 536870912 bytes

sending 'bootloader' (3651 KB)...

OKAY [ 0.127s]

writing 'bootloader'...

(bootloader) validating: bootloader.default.xml ...

(bootloader) Invalid partition name aboot

(bootloader) will fail: flash:aboot

FAILED (remote failure)

finished. total time: 0.251s

C:\Users\Usuario\Downloads\NPJS25_93_14_10_Sept2017_GPT_bootloader>fastboot reboot
[Moto G4 Plus Guides, News, & Discussion] ldeveraux:
Sorry to sidetrack here Echo, but what is the latest OTA for RETUS? I have NPJS25.93-14-10 and check for updates reveals none. I know there is a December 17 update, but has it not been pushed to OTA yet? I've the Moto G4 Plus XT1644 on VZW if it matters...
[Moto G4 Plus Guides, News, & Discussion] echo92:
As far as I know, the latest retUS update is NPJ25.93-14.7-3 which appears to be the December 2017 update. https://xdaforums.com/showpost.php?p=75344773&postcount=586 https://www.reddit.com/r/MotoG/comments/7tisge/december_security_patch_for_moto_g4_plus_released/

Though I cannot confirm this yet without the OTA update, I think the update requires NPJ25.93-14.7, which would have been the last US retail September 2017 firmware. Having NPJS25.93-14-10 on your device, although this firmware should work okay, the Motorola servers may not recognise the build you have on the retus channel, and thus are not offering updates. As I understand it, you have to have the correct build for a particular software channel (and have a network SIM in as well) to receive OTA updates, else an incorrect update may brick your device. I do not know if you can safely flash the NPJ25.93-14.7 firmware to be back onto the US OTA update path, even if in theory the builds should be similar but with different modem/baseband versions. Here's the link for the NPJ25.93-14.7 if you want: https://androidfilehost.com/?fid=817906626617945295

Else, you may have to manually update with the NPJS25.93-14-13 stock ROM/OTA if you do not wish to cross flash the NPJ25.93-14.7 firmware.
[Moto G4 Plus Guides, News, & Discussion] ldeveraux:
That's weird! I upgraded from the G4 to the G4 Plus from Swappa a month ago and it came with NPJS25.93-14-10 already on it. I've never seen an OTA either, and the OTA screen looks different than the G4 did (see attached). I can't flash to 93-14.7 because that would be a downgrade, correct? I'd need to wipe and reflash the entire device? That doesn't sound fun! So I guess I could manually update to 93-14-13?
[Moto G4 Plus Guides, News, & Discussion] libralibra:
thanks man. I'm on retgb channel and build number is 14.10. It looks like I need extra waiting here for OTA. Interestingly, another g4 (yes, I have two exact same phones) I have got the OTA yesterday. The only difference I can say is that it is on 14.3 and always stay on stock roms.

I'm so tired to flash different roms and root/unroot stuffs like that. I decided to stay stock from now on unless stock Oreo rom is ready for flashing.

---------- Post added at 03:55 PM ---------- Previous post was at 03:47 PM ----------

YES, that screen looks unfamiliar to me as well - just double-checked my software update screen.

you might have an slightly customized rom. did you reset the phone as soon as you got it?
[Moto G4 Plus Guides, News, & Discussion] echo92:
Could be the previous owner flashed NPJS25.93-14-10 onto the G4 Plus. This firmware appears to work okay on XT1644 devices from the reports I've seen about this particular firmware flashed onto US devices. As mentioned previously, NPJS25.93-14-10 was not deployed via OTA to retUS devices; only Brazil, India, EU and UK users, to the best of my knowledge, received such an update.

Hmm, in theory flashing NPJ25.93-14.7 should work, as both are the Sept 2017 firmwares. However, due to the different modem/baseband versions, flashing the US firmware may cause issues with radios and hence why I can't recommend to do this. We've seen enough loss of network/SIM/no IMEI issues as it is from flashing other regions' firmware. I do not know what the differences/improvements are with regards to the US specific firmware, though the different baseband suggests that what changes are present seem to be US centric.

If you really wish to try (and your device has an unlocked bootloader already), I'd back up your device in TWRP, including fsg, before attempting to cross flash.

You do not need to wipe the whole device for a flash, though always useful to have as an option whilst flashing stock firmware.

Else, the only other option is to manually update to NPJS25.93-14-13. You can find the OTA update here: https://xdaforums.com/moto-g4-plus/how-to/december-update-t3725760 or you can flash the stock ROM here.

If you want to flash the NPJS25.93-14-13 stock ROM without losing your data, try the following commands - these should work on unlocked or locked bootloaders, but have a backup and be ready to factory reset if your device is unstable after flashing: In theory, these same commands should work on flashing NPJ25.93-14.7 if you wanted to.

fastboot flash partition gpt.bin
fastboot flash bootloader bootloader.img
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
fastboot flash modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn
fastboot erase cache
fastboot reboot

EDIT - that 'Your device's software is up to date' looks normal on a G4 Plus :)

Though, do you have Xposed on your device for the centred date and time on the top menu bar?
[Moto G4 Plus Guides, News, & Discussion] Vickydahiya:
hey guys

i try to run these command to re-lock my boot loader but didn't able to lock it as it says invalid boot image but able to got latest security patch and boot loader say bad key.

Any Suggestion Please ?
[Moto G4 Plus Guides, News, & Discussion] ldeveraux:
Thanks for the quick reply! Good eye, I just recently flashed Xposed, that's Gravity Box you're seeing. The framework installed wouldn't prevent the OTA from showing up, would it?

EDIT: since this device doesn't have NFC, I can't use Android Pay. I tried to think of any drawbacks to Xposed on this device before installing it, but couldn't come up with one. Are there?

I'm guessing that my Update Software dialogue looks similar to yours because I'm on NPJ25.93-14.10, which isn't a US firmware. Libralibra maybe is in the US and his looks different?

EDIT2: Consequently, I heard from the seller who claims he never flashed anything to it.

If I flash NPJ25.93-14.7 over NPJ25.93-14.10 using those commands, it should overwrite anything that would give me issues, right? It will flash the modem, firmware, etc?

I think I'm going to try this:

1) Backup via TWRP

2) Flash NPJ25.93-14.7 using the commands

3) Hopefully reboot and let it settle

4) take OTA

5) reboot to check functionality

6) reinstall TWRP, Magisk, Xposed

I want to do this to check specifically Step 4; I definitely want to be able to receive OTA in the future. Or at least have that option. What do you think?
[Moto G4 Plus Guides, News, & Discussion] strongst:
You need to flash this through fastboot and not on top of a custom rom within twrp. You need to start now by flashing the stock rom here from op. If that really didn't work you need blank flash rom in case you can't get your device back to fastboot.
[Moto G4 Plus Guides, News, & Discussion] Yuset Alfaro:
---------- Post added at 01:55 AM ---------- Previous post was at 01:50 AM ----------

[/COLOR]

If you've hard bricked and are trying to get your GPT/bootloader working, you could try flashing either the December 2017 stock ROM in the opening post or the December 2017 GPT and bootloader from here: https://drive.google.com/open?id=1IfAX7v94ooB5wS7KTJGNYfQ2kXkHxP80

C:\Yuset\Hardbrick Solution MOTO G4 PLUS\NPJS25_93_14_13_Dec2017_GPT_bootloader>

fastboot flash partition gpt.bin

sending 'partition' (32 KB)...

OKAY [ 0.047s]

writing 'partition'...

Flashing primary GPT image...

Failed to write primary GPT.

Failed to program partition table

FAILED (remote failure)

finished. total time: 34.788s

C:\Yuset\Hardbrick Solution MOTO G4 PLUS\NPJS25_93_14_13_Dec2017_GPT_bootloader>

fastboot flash bootloader bootloader.img

sending 'bootloader' (3651 KB)...

OKAY [ 0.172s]

writing 'bootloader'...

validating: bootloader.default.xml ...

Invalid partition name aboot

will fail: flash:aboot

FAILED (remote failure)

finished. total time: 0.281s

C:\Yuset\Hardbrick Solution MOTO G4 PLUS\NPJS25_93_14_13_Dec2017_GPT_bootloader>

fastboot reboot

rebooting...

finished. total time: 0.016s

C:\Yuset\Hardbrick Solution MOTO G4 PLUS\NPJS25_93_14_13_Dec2017_GPT_bootloader>
[Moto G4 Plus Guides, News, & Discussion] ____Mdd:
This GPT command took 34 seconds (that is more, usually it don't take that much time) and failed, according to my knowledge your phone's storage (emmc) chip is damaged and possibly it's related to storage chip. But before concluding,

I see your issue post in this thread started directly from flashing December's gpt & bootloader, no other information provided,

why did you try to flash those ?

What is issue with your phone ?

Do you have access to bootloader ?

What is phone's current condition ?

Tell something to get proper help.
[Moto G4 Plus Guides, News, & Discussion] Vickydahiya:
I got it

But one more question when i switch on my device after switch off it reboot in bootloader automatically
[Moto G4 Plus Guides, News, & Discussion] echo92:
Hmm, did you flash with the command 'fastboot oem fb_mode_set' in fastboot? If so, then you'll want to clear this flag with 'fastboot oem fb_mode_clear' (without the quotes), else your device may keep booting into the bootloader, as this flag tells your device to boot to fastboot/bootloader and not to boot directly to system.

1)Boot your device to bootloader. Connect your device to your computer by USB.

2)In the ADB terminal, type 'fastboot oem fb_mode_clear' without quotes. Press Enter.

3)Test by powering off your device, then power on with the power button.

4)If that doesn't work, check if your volume down button is pressed in or stuck.
[Moto G4 Plus Guides, News, & Discussion] Vickydahiya:
it worked

thanks buddy
[Moto G4 Plus Guides, News, & Discussion] Z-borg:
i don't have a pc how can i flash stock rom via stock recovery

i'm on lineage 14 (don't ask how I got here)
[Moto G4 Plus Guides, News, & Discussion] strongst:
Not possible to flash full stock rom without PC. There are twrp flashable stock roms but they did not flash modem and other partitions!
[Moto G4 Plus Guides, News, & Discussion] minhajul6322:
which recovery should I use after flashing this firmware suggest please..and what should be the root software and at last should I flash ElementalX kernel??
[Moto G4 Plus Guides, News, & Discussion] strongst:
You need ElementalX kernel at first to root(magisk or supersu) this stock rom. To do that use latest recovery for athene. It can be found on official twrp site or here in recovery section.
[Moto G4 Plus Guides, News, & Discussion] Caleb39411:
Does anyone know how to edit the customize partition? I accidentally wiped it.
[Moto G4 Plus Guides, News, & Discussion] SoNic67:
Fastboot flash everything system related (without erasing user data).
[Moto G4 Plus Guides, News, & Discussion] Hari Haran:
Same flash commands for the Dec updated rom too right?
[Moto G4 Plus Guides, News, & Discussion] Panneer867:
oem locked after blank flash

C:\Minimal ADB and Fastboot>fastboot flash oem oem.img

(bootloader) has-slot:oem: not found

target reported max download size of 536870912 bytes

sending 'oem' (96490 KB)...

OKAY [ 3.103s]

writing 'oem'...

(bootloader) Invalid partition name oem

FAILED (remote failure)

finished. total time: 3.112s
[Moto G4 Plus Guides, News, & Discussion] strongst:
Yes

---------- Post added at 01:41 PM ---------- Previous post was at 01:39 PM ----------

What do you want to flash? What are the stats of the other partitions? Which device did you have? Which rom did you use to flash?