yashsingh1/xdaforums huggingface dataset:
[Moto G4 Plus Guides, News, & Discussion] purgy:
I'm currently on the December 2017 patch, if I flash the latest April firmware, does that include the patch for the krack vulnerability included in the February update? or should I flash the Feb patch and then April?

Thanks!
[Moto G4 Plus Guides, News, & Discussion] toppits:
It's the full ROM and includes everything. I was also on Dec'17 patch and flashed the full April version from this thread and everything is fine.

If you wanted to flash the OTA patch, that'd be a different matter.
[Moto G4 Plus Guides, News, & Discussion] JurreTas:
Did you also lock the bootloader?
[Moto G4 Plus Guides, News, & Discussion] shrinidhi2508:
Hello all.

I have Moto g4 plus XT1643 (Indian) which has February 1 2018 security patch. Fully stock non rooted. If I wanna install the latest April 2018 patch, should I unlock bootloader? If so, how?

Or unlocking BL is only for installling custom ROMs?

I need some help here pls.
[Moto G4 Plus Guides, News, & Discussion] thorin0815:
There is no need for an unlocked bootloader for flashing stock firmware.
[Moto G4 Plus Guides, News, & Discussion] shrinidhi2508:
Method worked like charm!!!

Thanks alot.

In the February patch, the battery drain was rapid. Like idle drain was 3% every hour.

Now in April patch, It doesn't drain at all when in idle.

Note: I checked all this changes Immediately after flashing April patch in OP. (No apps installed, no accounts setup yet)

Also for those who's complaining of getting system update of Feb patch, thankfully it's not happening in XT1643.
[Moto G4 Plus Guides, News, & Discussion] martinisok:
Hi I'm going to do this later today. I'm still on original march17 I'm also rooted with xposed installed and su and twrp. I want to go back to rooted after this and don't want to lock boot loader. Am I right in not entering any lines with oem? And do I need to leave out the recovery as well? Thx
[Moto G4 Plus Guides, News, & Discussion] thorin0815:
I'm always using the following batch file to flash new firmware without wiping data and without locking the bootloader.

If you want to have stock recovery aswell, just remove the REM command in front of "fastboot flash recovery recovery.img".

@echo off
cls
echo *******************************************************
echo *** Flash Moto G4 firmware without wiping user-data ***
echo *******************************************************
echo.
echo Checking if device is connected...
echo.
fastboot devices
echo.
echo Press any key to start flash or press "CTRL-C" to stop...
pause >nul
echo.
fastboot getvar max-sparse-size
fastboot oem fb_mode_set
fastboot flash partition gpt.bin
fastboot flash bootloader bootloader.img
fastboot flash logo logo.bin
fastboot flash boot boot.img
rem 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 erase DDR
fastboot oem fb_mode_clear
echo.
echo **************************************************
echo *** Scroll up and check your flash for errors! ***
echo **************************************************
echo.
echo Press any key to reboot the phone or press "CTRL-C" to stop...
pause >nul
echo.
fastboot reboot
[Moto G4 Plus Guides, News, & Discussion] LeonardoDG:
Updates OTA

Hi,

I'm new on ROM stuffs, after do this procedure I'll able to receive new updates trough OTA?
[Moto G4 Plus Guides, News, & Discussion] strongst:
Yes, you receive ota updates and can install them as long as you are on a stock rom with stock recovery which can be flashed like described in first post.
[Moto G4 Plus Guides, News, & Discussion] spirit_of_the_ocean:
No access to telegram group

I joined this group with my xda name:

https://telegram.me/g4plus

and got a reply. At least I saw it I got an answer. Now the group is not accessible for me anymore.

If there is an admin from there: can you check if I was banned accidently?

I am myself an admin in another group and have problem with someone who is not banned but can't join our group.
[Moto G4 Plus Guides, News, & Discussion] pastorbob62:
After over a month of frustrating battery drainage on 14.7-5 when idle, I decided to give this a try since there were comments as to the improved battery life. I wasn't disappointed. My idle battery drain dropped over 50%. Overall it seems to be much better but it will take a few days to get a good read on it. But so far so good. :good::good::good::good::good:
[Moto G4 Plus Guides, News, & Discussion] krishna8691:
any help would be much appreciated. i am on NPJS25.93-14-15 (Feb security patch) the latest stock version mentioned in this thread is NPJS25.93-14-18 (Apr Security patch) but i am not getting any OTA for this latest build ?
[Moto G4 Plus Guides, News, & Discussion] echo92:
Seems that the April 2018 OTA update hasn't been deployed in India yet, I'm not sure why it's been slow to deploy. It's been spotted in Brazil and EU/UK https://www.reddit.com/r/MotoG/comments/8kr4c6/moto_g4_reteu_gets_april_update_is_it_just_me_or/ and based on previous updates, typically Brazil and EU updates have been the same as the India updates for G4 devices.

Up to you if you want to wait for the OTA to officially reach India or try flashing the NPJS25.93-14-18 OTA update https://xdaforums.com/moto-g4-plus/how-to/atheneu-security-patch-april-brazil-ota-t3785196
[Moto G4 Plus Guides, News, & Discussion] RickyGrizu:
I installed it and everything worked. But I have a question. When I go into updates it tells me that there is a new update of February 2018, I put it install and it throws me error. Any ideas? Thank you and sorry for my horrible English
[Moto G4 Plus Guides, News, & Discussion] pastorbob62:
What model phone do you have?
[Moto G4 Plus Guides, News, & Discussion] martinisok:
For some reason I feel I have less internal storage left. Is this the correct amount supposed to be taken by system?View attachment 4509844
[Moto G4 Plus Guides, News, & Discussion] echo92:
On my G4 Plus (32 GB), system is taking up about 6.6 GB. I'm not sure if it scales with storage space, but that system size on your device doesn't look out of the ordinary. However, with 16 GB internal storage, I imagine every gigabyte is precious.
[Moto G4 Plus Guides, News, & Discussion] kman46:
Cannot make calls from my LTE network Sim. Other Sim works fine. Can use LTE Sim for data but when I try to call someone using that Sim it says choose another sim
[Moto G4 Plus Guides, News, & Discussion] ldeveraux:
Latest OTA showed up on my G4 Plus today in the US, NPJS25.93-14.7-8. Going to try to install tonight. After OTA the February 2018 update, I backed up stock recovery (14.7-5) with Flashify. I can just restore that, take the OTA, then backup new recovery similarly? I forget how to backup new stock recovery without TWRP. Do I temp boot TWRP and install ElementX, root, then boot and backup with Flashify?

EDIT: Don't know if I forgot to flash the logo.bin (which I had custom), but it kept rebooting to TWRP. I probably should have restored recovery first, since I had to flash 14.7 and serial update 3x until 14.7-8. Back to normal now though!
[Moto G4 Plus Guides, News, & Discussion] r1rony:
Plz anyone help me after flashing latest rom Imei show is zero and baseband is still their and connects to network for seconds and gone everything works except no network :crying::crying:

here is the getvar

Roneee:

PS J:\moto\mfastboot-v2> fastboot getvar all

(bootloader) version: 0.5

(bootloader) version-bootloader: moto-msm8952-B1.07

(bootloader) product: athene_16mp

(bootloader) board: athene_16mp

(bootloader) secure: yes

(bootloader) hwrev: P2A

(bootloader) radio: 4

(bootloader) storage-type: emmc

(bootloader) emmc: 32GB MICRON Q3J97V RV=08 PV=10 FV=00000000000000A2

(bootloader) ram: 3GB MICRON LP3 DIE=6Gb M5=03 M6=00 M7=00 M8=7B

(bootloader) cpu: MSM8952

(bootloader) serialno: ZY223V89NF

(bootloader) cid: 0x0000

(bootloader) channelid: 0x00

(bootloader) uid: D8A2DF0100000000000000000000

(bootloader) securestate: oem_locked

(bootloader) iswarrantyvoid: yes

(bootloader) max-download-size: 536870912

(bootloader) reason: Volume down key pressed

(bootloader) imei: 351891082530053

(bootloader) meid:

(bootloader) date: 01-17-2017

(bootloader) sku: XT1643

(bootloader) battid: SNN5970A

(bootloader) iccid:

(bootloader) cust_md5:

(bootloader) max-sparse-size: 268435456

(bootloader) current-time: "Thu Oct 13 6: 6:18 UTC 2016"

(bootloader) ro.build.fingerprint[0]: motorola/athene_f/athene_f:7.0/NPJ

(bootloader) ro.build.fingerprint[1]: S25.93-14-18/3:user/release-keys

(bootloader) ro.build.version.full[0]: Blur_Version.25.236.3.athene.reta

(bootloader) ro.build.version.full[1]: il.en.US

(bootloader) ro.build.version.qcom: LA.BR.1.3.6-01710-8976.0

(bootloader) version-baseband[0]: M8952_70030.25.03.62.02u ATHENE_INDIA_

(bootloader) version-baseband[1]: DSDS_CUST

(bootloader) kernel.version[0]: Linux version 3.10.84-ge03508d-00131-g44

(bootloader) kernel.version[1]: 2576f (hudsoncm@ilclbld72) (gcc version

(bootloader) kernel.version[2]: 4.8 (GCC) ) #1 SMP PREEMPT Wed Mar 28 06

(bootloader) kernel.version[3]: :58:16 CDT 2018

(bootloader) sbl1.git: git=MBM-NG-VB1.07-0-g57d1343

(bootloader) rpm.git: git=MBM-NG-VB1.06-0-ga970ead

(bootloader) tz.git: git=69dd24b-dirty

(bootloader) hyp.git: git=69dd24b-dirty

(bootloader) keymaster.git: git=69dd24b-dirty

(bootloader) cmnlib.git: git=69dd24b-dirty

(bootloader) aboot.git: git=MBM-NG-VB1.07-0-gf9b89ba

(bootloader) qe:

(bootloader) frp-state: no protection (0)

(bootloader) ro.carrier: retin

all: listed above

finished. total time: 0.129s
[Moto G4 Plus Guides, News, & Discussion] i_Amlesh:
I was going through discussion over April security patches in different countries but not in India. And then I checked it on my phone and to be surprised, I just received it. :) :)
[Moto G4 Plus Guides, News, & Discussion] jeevan_cool:
is this the latest stock rom with latest security patch/ota?

and can i use this in indian variant ?

thanks in advance
[Moto G4 Plus Guides, News, & Discussion] CMKdaGreatest:
Yes it is. You can
[Moto G4 Plus Guides, News, & Discussion] papy54:
Hello everyone,

I have a XT 1642 reteu NPJS25.93-14-18 updated patch level 01/04/18 with the method of Echo92, TWRP, and then rooted with Elementalx and SU. Everything went well and the phone works perfectly.

Well after I had a problem with my PC where everything worked perfectly (WIN 10) without relation to my phone. I have reinstalled WIN 10 with all the drivers including Motoroladevicemanager. My G4 + is well recognized in "adb devices", starts in "bootloader" with the command, is recognized in "fastboot devices" but not in command "adb devices" when it is in "bootloader". I can not do anything anymore. I tried everything: Drivers, cables, USB ports, WIN 10, WIN 7, WIN XP, 2 computers, GOOGLE .... Note that I encounter the same problem with the MOTO G3 2015 my wife. I do not understand. Below is the result of the orders.

PS C:\Users\JCM\Desktop\ADB+and+Fastboot\ADB and Fastboot> adb devices

List of devices attached

* daemon not running; starting now at tcp:5037

* daemon started successfully

ZY***RXX** device

PS C:\Users\JCM\Desktop\ADB+and+Fastboot\ADB and Fastboot>

PS C:\Users\JCM\Desktop\ADB+and+Fastboot\ADB and Fastboot> adb reboot bootloader

PS C:\Users\JCM\Desktop\ADB+and+Fastboot\ADB and Fastboot> fastboot devices

ZY***RXX** fastboot

PS C:\Users\JCM\Desktop\ADB+and+Fastboot\ADB and Fastboot> adb devices

List of devices attached

PS C:\Users\JCM\Desktop\ADB+and+Fastboot\ADB and Fastboot> fastboot reboot bootloader

(bootloader) slot-count: not found

(bootloader) slot-suffixes: not found

(bootloader) slot-suffixes: not found

rebooting into bootloader...

OKAY [ 0.172s]

finished. total time: 0.172s

PS C:\Users\JCM\Desktop\ADB+and+Fastboot\ADB and Fastboot> fastboot reboot recovery

(bootloader) slot-count: not found

(bootloader) slot-suffixes: not found

(bootloader) slot-suffixes: not found

fastboot: usage: unknown reboot target recovery

PS C:\Users\JCM\Desktop\ADB+and+Fastboot\ADB and Fastboot>

PS C:\Users\JCM\Desktop\ADB+and+Fastboot\ADB and Fastboot> fastboot boot twrp-3.1.1-athene_shreps

(bootloader) slot-count: not found

(bootloader) slot-suffixes: not found

(bootloader) slot-suffixes: not found

error: cannot load 'twrp-3.1.1-athene_shreps': No such file or directory

PS C:\Users\JCM\Desktop\ADB+and+Fastboot\ADB and Fastboot> fastboot reboot

(bootloader) slot-count: not found

(bootloader) slot-suffixes: not found

(bootloader) slot-suffixes: not found

rebooting...

finished. total time: 0.188s

PS C:\Users\JCM\Desktop\ADB+and+Fastboot\ADB and Fastboot>

A solution please? Thank you in advance. :crying:
[Moto G4 Plus Guides, News, & Discussion] echo92:
If I've understood you correctly, ADB commands do not usually work when your device is booted to the bootloader. Only fastboot commands will work (as that's all the bootloader is programmed to recognise as far as I know).

If you want to use ADB commands, you need to be booted to stock recovery or TWRP or system.
[Moto G4 Plus Guides, News, & Discussion] papy54:
:good:

Thank you for your answer "ultra fast". indeed, everything works normally for the flash, but on my previous PC operating system, it did not look the same. I flashed two different TWRP and it was not a problem. Here I am reassured ! ;)I did not dare flashed! Thanks again for your accurate answer. Good night. :cool:
[Moto G4 Plus Guides, News, & Discussion] reggiexp:
just to be sure this is android 7? latest official?

cause on RR oreo the camera is just TRASH, feels like a patato :(

better of going back stock that works great also
[Moto G4 Plus Guides, News, & Discussion] echo92:
Yes - as far as I know, this April 2018 firmware, NPJS25.93-14-18, is the current latest build for Brazil, India, EU and UK devices (as of writing this in June 2018). For US devices, the latest build is the related April 2018 NPJ25.93-14.7-8 firmware https://xdaforums.com/moto-g4-plus/how-to/xt1644-april-update-patch-14-7-8-t3798386

Stock firmware often includes proprietary camera processing and camera firmware (blobs) included, which may not be accessible (fully or otherwise) to custom ROMs due to licencing and by extension no available source code. As such, custom ROM developers have to patch the camera to work, sometimes resulting in issues that require a lot of work. I'm hoping that when the Oreo update arrives with Oreo camera drivers, the custom ROM developers may have an easier time getting the camera to work. However, image quality and processing may still be an issue between stock and custom ROMs, depending on how you judge the quality of the camera images.
[Moto G4 Plus Guides, News, & Discussion] venkatkrishna_s:
I'm on nitrogen os 8.1..if I flash it back to 7.0 using these commands ..it won't brick my device right ...
[Moto G4 Plus Guides, News, & Discussion] echo92:
Flashing this stock ROM should not brick your device as it's the latest stock ROM we currently have access to. Bricks seem to involve flashing a stock ROM older than the stock firmware you had on your device (custom ROMs do not matter in this regard) and then using an old OTA update. Downgrading from custom Oreo ROMs to stock should not brick your device, just ensure you flash the newest stock ROM and avoid flashing old stock ROMs if you can.

Ensure you have a TWRP backup and backups of files from your internal storage before you flash this stock ROM and keep the backups off your device
[Moto G4 Plus Guides, News, & Discussion] venkatkrishna_s:
Thank you so much !!

---------- Post added at 04:27 AM ---------- Previous post was at 03:50 AM ----------

i followed these commands and the phone is not booting ...after the motorola logo ..black screen ..please help!!

---------- Post added at 04:28 AM ---------- Previous post was at 04:27 AM ----------

i followed these commands and the phone is not booting ...after the motorola logo ..black screen ..please help!!
[Moto G4 Plus Guides, News, & Discussion] echo92:
If you have been waiting for 2-5 minutes, then hold down the power button for 1-2 minutes to force a hard shutdown. After that, you should be able to boot properly.

Did you erase user data or lock your bootloader?
[Moto G4 Plus Guides, News, & Discussion] venkatkrishna_s:
did that...still black screen ..and btw should i flash usedata thing also...it doesnt erase internal storage right
[Moto G4 Plus Guides, News, & Discussion] echo92:
I think that command does not affect your internal storage, you did make a backup of your internal storage or at least the important files as I suggested, right?

If you're reverting from custom ROMs to stock, you must use the erase user data commands, else you may face boot issues (since custom ROM data is different to stock ROM data) if you locked your bootloader, the wipe should be automatic.
[Moto G4 Plus Guides, News, & Discussion] venkatkrishna_s:
thanks broo...it worked ..!!!
[Moto G4 Plus Guides, News, & Discussion] vihitshah:
Can i directly flash it using TWRP ? I already have custom rom installed.
[Moto G4 Plus Guides, News, & Discussion] strongst:
No you can't, only with the mentioned method through fastboot.

Hint: please don't quote the first post:good:
[Moto G4 Plus Guides, News, & Discussion] reggiexp:
euh okay i run the script u posted..

got straight back in my RR 8.1 oreo rom...

that is not what i wanted, i will try to run 1 line by 1 line manual...

just hate the camera on custom rom, and since its not my phone i prefer to put it back on stock..
[Moto G4 Plus Guides, News, & Discussion] echo92:
Hmm, that's odd - can you confirm if the script actually worked and flashed the stock ROM? You should have seen [OKAY] appear if the script was successful.

However, the script may have been too fast to see. I'd definitely try each command manually - you can copy/paste each command in sequence into the ADB terminal and press Enter on your keyboard to execute. As mentioned, you do not need to re-lock your bootloader (avoid the OEM lock commands, should be 2 in the beginning and the fastboot OEM lock towards the end), and verify you have the stock ROM extracted to your ADB folder.
[Moto G4 Plus Guides, News, & Discussion] reggiexp:
yeha i think the script whent to fast. and yeah files are in the adb folder
[Moto G4 Plus Guides, News, & Discussion] echo92:
Okay, and your device is connected to your computer via USB, and it's booted to the bootloader? Also, can your computer see your device if you open an ADB terminal and type 'fastboot devices' without quotes, then press Enter on your keyboard? That command should return your device serial number.
[Moto G4 Plus Guides, News, & Discussion] nkcarter09:
I'm on 1 Feb 2018 patch with elementalX kernel. Rooted the device with elementalX and flashed the SU through the TWRP. If i want to update to April Patch, how can i do it...? Do i have to remove the twrp and custom kernel and revert it back to locked bootloader to update the device. Is there any way i can update my device by keeping it the same.
[Moto G4 Plus Guides, News, & Discussion] echo92:
You cannot update your device without removing TWRP, ElementalX and root - you need to fully revert to a clean stock ROM to properly update (either via OTA or using the stock ROM firmware flash). I cannot recommend partial flashing of the stock firmware. However, the same root method should work on the April 2018 firmware (and if you've got all the files on your devices, should be a quick process of re-rooting).

You do not need to lock your bootloader to update your device. If you want to update with this stock ROM without wiping your data, you can use the following flashing commands, but ensure you have a TWRP backup before updating (and keep that backup on your computer) in case you have to factory reset your device if it's unstable after the flash:

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

Your device should be then formally updated to the April 2018 firmware, and you should still have your data with an unlocked bootloader. You can then boot or flash TWRP recovery, re-flash ElementalX and then root to be rooted on the April 2018 stock firmware. I'm running ElementalX 2.0.1 with magisk 16 on the NPJS25.93-14-18 build without issue. Bear in mind that this NPJS25.93-14-18 firmware is for Indian, Brazil and EU/UK devices. Other regions may be able to flash this firmware with no problems but may not be eligible for automatic OTA updates.
[Moto G4 Plus Guides, News, & Discussion] nkcarter09:
Thanks...for the instructions and everything. Where do i get the latest firmware file to flash all of the recovery and stuff...?
[Moto G4 Plus Guides, News, & Discussion] echo92:
You can find it all on the first post of this very thread you've posted in: https://xdaforums.com/moto-g4-plus/how-to/stock-rom-npjs25-93-14-4-march-1-t3608138

I'd suggest reading through all of the first post - most of the procedure is there. Heed the warnings about bootloader locking (and recall my above suggested commands instead of the ones in the first post for keeping your bootloader unlocked and trying to keep your data).
[Moto G4 Plus Guides, News, & Discussion] reggiexp:
nvm lol wrong thread
[Moto G4 Plus Guides, News, & Discussion] echo92:
I'm not sure I understand - this stock ROM in this thread is the official fastboot April 2018 stock firmware (so should be the same as the official update you received...). If you've flashed this via fastboot, you're already on the stock ROM - this is not a custom/TWRP flashable of the stock ROM.
[Moto G4 Plus Guides, News, & Discussion] reggiexp:
nvm tought i was on a other thread lol my bad
[Moto G4 Plus Guides, News, & Discussion] killerstreak976:
THANK YOU!

Thank you so much!!!!
[Moto G4 Plus Guides, News, & Discussion] iamhar****hdaya:
can i make a flashable zip out of it? or use it in Android kitchen to tweak and then flash it?
[Moto G4 Plus Guides, News, & Discussion] corlatemanuel:
Nope, sorry.
[Moto G4 Plus Guides, News, & Discussion] echo92:
In theory you could, here's a guide for the G5 Plus (potter) for creating TWRP flashable zips from fastboot images. Of course, you'd have to adapt the guide for our stock ROM (usefully, the G5 Plus and our G4 Plus are both running Android 7.0, so there shouldn't be any major version quirkiness. An issue I see is that the number of sparsechunks for the system image is different for both stock ROMs - 8 for athene and 6-7 for potter, so just something to be aware of ).

https://xdaforums.com/g5-plus/how-to/guide-creating-twrp-flashbale-stock-roms-t3804776
[Moto G4 Plus Guides, News, & Discussion] gutosilva:
Off topic question: will Moto G4 (no Plus, no Play) receive Oreo? The Moto G4 Plus has the update guaranted but haven't information about G4. Theorically the devices share the same ROMs, so: any information about this?
[Moto G4 Plus Guides, News, & Discussion] strongst:
No information other than than the discussions in guides/discussions section like here https://xdaforums.com/moto-g4-plus/how-to/moto-g4-plus-getting-android-o-t3576948