yashsingh1/xdaforums huggingface dataset:
[Moto G4 Plus Questions & Answers] SendMond:
My moto g4 is a xt1622, and i have uptaded the stock rom lastre time to nougat. I have unlocked the phone, installed twrp, and all the rom that i flashed give me this problem (lineage os, resurrection remix, aokp, OctOS)

It's been 3 days since i have start install roms in my phone
[Moto G4 Plus Questions & Answers] echo92:
Did you see these problems on the stock ROM as well, or just when flashing custom ROMs?

How are you flashing the custom ROMs? Are you wiping your system, data, Dalvik and cache in TWRP before flashing the custom ROMs and Gapps?
[Moto G4 Plus Questions & Answers] SendMond:
on stock rom no problems, sometimes it appear but after restart the sistem everything goes normal.

When i flash custom rom i total wipe all the data, cache and than i flash rom and gapps
[Moto G4 Plus Questions & Answers] echo92:
Are you wiping the system partition as well to remove your old system before you flash the custom ROM? If you're flashing a particular custom ROM for the first time, you must erase system, data, Dalvik and cache.

Hmm, if it's happening on stock too, is the problem as bad on stock?
[Moto G4 Plus Questions & Answers] SendMond:
on stock rom is only temporaney, and it happens only one time. And i have erased all data before flashing any rom.

I usually erase system, cache, Dalvik and storage using twrp.

Only one time on lineage after a factory reset errors gone, but after some hours it reappears.

I don't know what to do now, maybe i have to remove the sdcard when i flash a rom?
[Moto G4 Plus Questions & Answers] andres88_:
does anyone in south america get the new nougat version??
[Moto G4 Plus Questions & Answers] echo92:
Which new Nougat version are you referring to?
[Moto G4 Plus Questions & Answers] Harshan01:
I have made a backup of data partition alone in twrp when I was using Invicta OS. Now, can I restore the data partition when I clean flash RR. Will Will there be any bugs?
[Moto G4 Plus Questions & Answers] andres88_:
June security patch
[Moto G4 Plus Questions & Answers] rishidatta8:
Play store not updating apps... Stops at 100% download
[Moto G4 Plus Questions & Answers] strongst:
On roaming this is usual behavior since any nougat rom. Otherwise give proper information about your setup first.
[Moto G4 Plus Questions & Answers] rishidatta8:
I'm not on roaming.....it has been working normally before but since last 2 days the update stops at 100%....i need to restart my phone to complete the install.....no changes were made such as software update etc.....i have tried clearimg cache and data and updating google play services but it isn't working
[Moto G4 Plus Questions & Answers] strongst:
Please fill out that bug report to become an overview of your setup:

What is your--
Device model: XT...
Radio (baseband):
ROM version:
Gapps version:
Data Roaming:
Dual SIM:

Did you--
Unlock the bootloader:
wipe:
restore with titanium backup:
reboot after having the issue:
Tested without any additional apps installed:

Are you using--
Substratum themes:
a task killer:
a non-stock kernel:
LOSSettings/Performance settings (other than stock):
other modifications:

Provide any additional information (observations/frequency of problem/last version it worked on/etc) as needed:
[Moto G4 Plus Questions & Answers] ____Mdd:
For Rooting 6.0/7.0 stock you can not flash su.zip directly, there is different methods.

Btw What error are you getting while flashing through sdcard ?

I would suggest you to update TWRP (shreps TWRP builds are good, find them in development section) then try to install any ROM (if you want custom ROM, otherwise flash Stock ROM according to which version of stock rom you had before bootloop.) .

By enabling MTP (in TWRP > Mount > switch at below part) you can directly move any zip to internal memory by connecting to PC.

Also check if your downloaded zip is not currupt and it got downloaded correctly.
[Moto G4 Plus Questions & Answers] blitzik:
Zip isn't corrupt to my knowledge. I re-downloaded it last night to make certain, and i'm still having problems The error i'm currently getting through the SD card method is

"Could not find 'META-INF/com/google/android/update-binary' in the zip file.

Error installing the zip file '/sdcard1/ATHENE_AMZ_MPJ24.139-64_cid50_subsidy-Default_regulatory-DEFAULT_CFC.xml.zip"

I've seen that error a few times on different roms I'm trying to flash, but this time I'm trying to flash exactly the stock rom for my phone version.

Trying to install from fastboot now, but I can't find the radio img in the zip file. Using the tutorial here https://xdaforums.com/nexus-5x/general/guides-how-to-guides-beginners-t3206930 (part 11) .
[Moto G4 Plus Questions & Answers] echo92:
For the stock Motorola ROMs, you're getting that error because they require fastboot. As far as I know, you cannot adb sideload stock ROMs.

Easiest way to get your device back up and running, if you want to restore back to stock, is to (this should preserve your data, but be prepared to factory wipe your device. If you wish, you may wish to boot to TWRP and backup your data first to your computer. DId you wipe your data though?) :

Reboot to bootloader

Connect your device to your computer (ensure you have adb 1.4.2 installed on your computer)

Open the adb terminal and verify your device is still communicating by typing 'fastboot devices' (without quotes) Link for adb 1.4.2: https://www.androidfilehost.com/?fid=745425885120698566

If communicating, then flash the stock ROM with the following commands:

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

NOTE: This method only to be used with the same stock ROM build as you had on your device. If you had Nougat, then the MM ROM you have isn't suitable, let us know what stock ROM you had previously and we'll try to provide a link.

This method will replace TWRP with stock recovery. However, you can re-flash/boot to TWRP and attempt to root again.

Be aware if you're on Nougat to flash a custom kernel after you flash TWRP, before you root.

On MM: Flash TWRP > Flash SuperSU (preferably 2.79 or higher) / magisk

On Nougat: Flash TWRP > Flash a custom kernel (e.g. ElementalX) > your root manager of choice.
[Moto G4 Plus Questions & Answers] echo92:
Something I noticed from your last post: do you have an Amazon Prime XT1625 (i.e. do you have adverts on the lockscreen and it was discounted) or just a regular XT1625 (either bought via Motorola, or a retail store or Amazon but not discounted)? If you've flashed the stock ROM that you mentioned, you likely flashed the Amazon stock firmware onto your device, rather than the stock firmware... If you're certain you had Marshmallow on your device (6.0.1), then here's the link for the non-Amazon-Prime XT1625 firmware: https://androidfilehost.com/?fid=312978532265364350

Try to re-flash that, see if your device is working. What version is your bootloader (should be starting with B1.xx), which you'll see on your bootloader screen.

As I mentioned, you'll have removed TWRP and restored your stock recovery (everything should be stock again...), and I hope flashing the stock non Amazon ROM will get your device operational.

As an aside, our fastboot files are different to the Nexus 5X - our radio files are held in modem and non_HLOS for starters, if I recall. Though the adb steps for flashing TWRP are the same, subsequent steps may be different between devices. Please be very careful when attempting to use instructions intended for another device. Just asking, what TWRP version did you download, was it the 3.0.2 build for athene devices? athene is our device's codename and only custom TWRP/ROMs that mention athene in their name should be flashed on Moto G4/G4 Plus devices.
[Moto G4 Plus Questions & Answers] blitzik:
No advertisements, I picked this unit up from a best buy. Trying this out now. Bootloader B1.05
[Moto G4 Plus Questions & Answers] echo92:
Oh jeez, I'm kind of glad now we're not flashing the GPT/bootloader (not that fastboot would allow us), as B1:05 indicates you were likely on the stock Nougat March 2017 update previously to flashing TWRP.

That means that flashing the Marshmallow ROM we've been trying to do isn't advisable - you can flash it, but do not accept OTAs please. If you're still downloading the ROM, cancel that and use the March 2017 fastboot ROM instead in fastboot: https://www.androidfilehost.com/?fid=889764386195899847 This should help to unify your device and bring it back up to the same patch level, mixing patch levels is generally not a good idea.

That would also explain your troubles with rooting, as rooting on Nougat for Moto G4 devices requires a custom kernel to flash, which the Nexus guide fails to mention.
[Moto G4 Plus Questions & Answers] blitzik:
Good god. Ok, I'm downloading the new file and trying to try that out now. Is there a root method from here, or am I going to be lucky just to get back to a working rom?
[Moto G4 Plus Questions & Answers] echo92:
Root is definitely working on Nougat - I've been running with stable root with magisk 13.3 on the June update, and was running magisk 12/13 on the March update.

2 relevant guides/posts are here: https://xdaforums.com/moto-g4-plus/how-to/guide-root-moto-g4-plus-supersu-android-t3587918

https://xdaforums.com/showpost.php?p=72496111&postcount=270

The core steps are the same in both though:

Flash/boot into TWRP (up to you which version you use, 3.0.2 or 3.1.1 work, ensure they've been built for athene. I prefer shreps' TWRP)

Backup your device.

Flash a custom kernel (e.g. ElementalX)

Wipe cache/Dalvik.

Optional - reboot to test your device is still working. If so, reboot back to TWRP.

Flash your root manager of choice.

You may wish to use SuperSU (2.79 SR3 or later please) as a more stable root manager, though magisk has the built in option to hide itself from root detection. Root detection may stop certain apps from being downloaded/updated/running. I understand SuperSU has a method to hide itself from root detection but requires an additional install.

First things first though, let's get your device back up and running. Flashing the March 2017 stock ROM should achieve that.
[Moto G4 Plus Questions & Answers] blitzik:
OK, that seems to have worked as far as getting us back to stock. Thanks!!

I'm re-installing TWRP, now that the bootloader is still unlocked. Now attempting those tutorials for Root!

Edit: IT WORKED AND WE ARE NOW ROOTED AND BACK TO STOCK! WOOOO-HAAA THANKS EVERYONE!!!
[Moto G4 Plus Questions & Answers] Duoquote:
USB Connection issue

Hello, I have been using this phone about a year and I found that my phone is not connecting to my computer. In either case like using MTP or ADB or Fastboot I am unable to connect my phone to my computer. My computer even doesn't give me a feedback that it's plugged in. I tried other usb ports and other cables but I can not connect it to my computer in either way. I also tried plugging in a mouse and flash drive to my phone with OTG incase the I/O pins are not working but the OTG works fine, it detects both mouse and flash drive. I have no idea what's going inside my phone. Don't tell me that I didn't choose MTP on the notification bar because it doesn't even come up too. Any thoughts?

EDIT: Also I tried changing USB connection method in developer mode and when I switch it to MTP it goes back to charging state but when I reboot the phone it switches back to MTP but in either state it does not give me the plugged in feedback on my computer. I tried opening bootloader and ADB but you know my computer doesn't even detect the phone, they are useless.
[Moto G4 Plus Questions & Answers] ramansehra:
Anybody know how to use moto g5 active display on moto g4 plus.?
[Moto G4 Plus Questions & Answers] NiranjanS:
Reboot Loop on XT1643 - India version

Hi all,

Just to give some background I have a Moto G4 Plus (32GB, 3GB) from the first batch sold via Amazon India.

The device was completely stock with locked bootloader. It was working all great until I installed June 2017 security patch over OTA.

After June 2017 security patch I started facing an issue. Fingerprint sensor would stop working with an error - "Fingerprint hardware not available". This would cause my phone to go into a reboot loop (not bootloop - the device would start with launcher and immediately restart again). After few reboots the phone started working normally with Fingerprint option totally missing from Settings. Since other phone features worked normally I stopped worrying and continued using the phone.

After a week or so, I did a factory reset. The fingerprint sensor worked normally after this factory reset.

Phone worked great for a month or so and started acting up again with Fingerprint option gone missing. This time the reboot loop continued infinitely and wouldn't stop. Performed a factory reset from stock recovery. And now I wasn't able to go past the setup wizard. As soon as I tried to setup the device, phone would reboot.

Fed up, I flashed the stock image via fastboot from https://xdaforums.com/moto-g4-plus/how-to/stock-rom-npjs25-93-14-4-march-1-t3608138

But the reboot loop still continues. I am suspecting this to be a hardware failure which is causing the reboot loop (note the fingerprint hardware not available error).

After flashing the June stock firmware I have noted, I can play around in setup wizard as long as I don't insert a SIM card or connect to a Wifi.

Also tried getting into Settings via Accessibility options (Reference - FRP bypass videos on YouTube) to check if I can enable USB debugging and toggle Allow OEM unlock.

But tapping 7 times on the build number doesn't bring up developer options either. If I can atleast toggle allow OEM unlock, I can unlock my bootloader and flash a custom build.

Apologies for such a long post, but thought it was required to give a background of the issue I am facing and seeking help for.

Any suggestions/workarounds to get past the reboot loop?

Thanks,

Niranjan
[Moto G4 Plus Questions & Answers] akilan30:
Can any1 help me how to take backup?
[Moto G4 Plus Questions & Answers] strongst:
Hello again :D There are mainly two ways

1: Within twrp you can make backups of your boot/system/data partition where kernel/android system/user apps are installed. It's not recommended to restore those backups over new installations of other roms/rom versions. You have more trouble as before! This is only as full backup in case something went wrong(dirty flashing a new version of the same rom)

2: With the app Titanium Backup you can backup and restore user apps and settings from stock rom/custom rom to another custom rom as long as you don't restore system apps vice versa. That's the best tool you can get for money. The fast hyper shell batch restoring for example is paid, but worth the price!

I don't know which backup type you need, but those 2 methods are working in most cases flawlessly if you keep things simple.
[Moto G4 Plus Questions & Answers] akilan30:
Thanks brother.it was really helpful
[Moto G4 Plus Questions & Answers] Santosh Rajvear:
Why not root my moto g4 plus nougat
[Moto G4 Plus Questions & Answers] strongst:
What did you mean? Want you to know why you can't root it or what's the question if you have one? :rolleyes:
[Moto G4 Plus Questions & Answers] Santosh Rajvear:
Mera phone root nhy ho raha h m try v kr chuka hu nd twrp install v nhy ho raha h
[Moto G4 Plus Questions & Answers] strongst:
Sorry, but please write in English only(forum rules you already accepted)...
[Moto G4 Plus Questions & Answers] Santosh Rajvear:
I try root moto g4 plus nougat but my phone was not root acpt
[Moto G4 Plus Questions & Answers] strongst:
You checked this link https://cloud.mail.ru/public/CKF3/AWVREk6s9

within my link I postet?
[Moto G4 Plus Questions & Answers] addy1me:
Yes I opened the link and downloaded that file but when i opened the file

It wasn't a firmware there was some different files not the firmware files

Please help me

---------- Post added at 07:42 PM ---------- Previous post was at 07:41 PM ----------

There was some patch files
[Moto G4 Plus Questions & Answers] Rack D01:
Help please

Hey sd_shadow

Its Prakan****

Bro am unable to get ota updatea on my g4 plus xt1643

Plz plz plz pm me on whtsapp +918793689895

??
[Moto G4 Plus Questions & Answers] strongst:
Yeah I looked into it too. So you have to wait. Otherwise use soak test or latest from India. I here's no difference.
[Moto G4 Plus Questions & Answers] manjeetexplorer:
Hi i got this from other thread but some senior members saying it is working fine on xt-1643 indian but it is from Russian Lenovo forum can you please check and verify that it is useful or not

http://xdaforums.com/moto-g4-plus/help/stock-firmware-t3530377/

Claiming as official latest nougat full size flashable rom....
[Moto G4 Plus Questions & Answers] addy1me:
No its not the flashable stock rom of nougat for Moto g4 plus

I'm also waiting for the flashable stock rom
[Moto G4 Plus Questions & Answers] manjeetexplorer:
It can b flashed using fastboot and some senior xda member claims it as official as well tested on XT-1643
[Moto G4 Plus Questions & Answers] addy1me:
I tried myself yesterday but it didn't worked
[Moto G4 Plus Questions & Answers] manjeetexplorer:
May b you have done something wrong some of the senior members claiming this is working perfect
[Moto G4 Plus Questions & Answers] stefanwe92:
Hi! I`m on AOSP N 7.1.1 with Nougat souk test flashed before.

Anything works fine but I want to flash latest Lineage OS nightly for Moto G4. Where do I find it?
[Moto G4 Plus Questions & Answers] strongst:
Official nightlies are not released yet. You can only install unofficial builds. Please look in rom forum.
[Moto G4 Plus Questions & Answers] stefanwe92:
I didnt found any (download) link for the unofficial builds.

I searched through silesh.nair's thread but found nothing :-/ sorry...
[Moto G4 Plus Questions & Answers] strongst:
http://xdaforums.com/moto-g4-plus/development/xt16xx-cyanogenmod-14-1-alpha-t3492274

Or

http://xdaforums.com/moto-g4-plus/development/rom-cyanogenmod-14-1-t3522101

Where did you search?
[Moto G4 Plus Questions & Answers] addy1me:
Is moto g4 plus stock rom firmware out

Not the update I'm searching for stock firmware so that I can manually install firmware on my moto G4 plus through minimal adb

Please help me i need Firmware asap
[Moto G4 Plus Questions & Answers] manjeetexplorer:
This is flashable through fastboot or adb and ofcourse it is stock firmware so u can flash it without any hesitation.
[Moto G4 Plus Questions & Answers] addy1me:
Can you please give me the download link

And can I relock the bootloader from this nougat firmware
[Moto G4 Plus Questions & Answers] manjeetexplorer:
Today i just flashed it on my g4 plus working perfect but unfortunately i am not able to lock bootloader because previously i already flashed latest ota NPJ.25.93-11 so i am not confirm about locking of bootloader but it is confirmed that this is latest stock firmware flashable from adb and download links are already posted on the same thread just scroll and find....
[Moto G4 Plus Questions & Answers] addy1me:
Is this is the one you're talking about check this screenshot

If this the one please let me know hw can i flash this in my moto g4 plus

Please give me the steps
[Moto G4 Plus Questions & Answers] strongst:
There's already a guide for this: http://xdaforums.com/moto-g4-plus/how-to/android-7-0-install-nougat-official-t3531612
[Moto G4 Plus Questions & Answers] addy1me:
extract it

open folder name : athene_oem_user_7.0_NPJ25.93-11_12_release

under the folder their is a folder name "Windows"

copy files from "windows" folder to root folder

What does this mean?

I have to extract in minimal adb or what??
[Moto G4 Plus Questions & Answers] strongst:
Can you please link a guide you followed or the exact steps you followed?
[Moto G4 Plus Questions & Answers] Santosh Rajvear:
[youtube]zCWSnGe7pr8[/youtube]

---------- Post added at 08:05 PM ---------- Previous post was at 08:04 PM ----------

That's link i follow
[Moto G4 Plus Questions & Answers] strongst:
Can't open the video... What's your Android version of you device. You can always use the easy guides here in the guides section depending on your device/rom.

Like this one:

https://xdaforums.com/moto-g4-plus/how-to/guide-root-moto-g4-plus-supersu-android-t3587918
[Moto G4 Plus Questions & Answers] Santosh Rajvear:
It's only for nougat ya marshmallow
[Moto G4 Plus Questions & Answers] strongst:
You have marshmallow installed, is that right? You need a guide for marshmallow?
[Moto G4 Plus Questions & Answers] Santosh Rajvear:
My phone work on nougat

---------- Post added at 06:47 AM ---------- Previous post was at 06:47 AM ----------

Not marshmallows
[Moto G4 Plus Questions & Answers] strongst:
The that's the right guide to start with https://xdaforums.com/moto-g4-plus/...g4-plus-supersu-android-t3587918/post71817560
[Moto G4 Plus Questions & Answers] NiranjanS:
Can someone help me get out of this reboot loop? Any pointers?
[Moto G4 Plus Questions & Answers] strongst:
Really strange. You can try to flash latest June Stock rom again or at last the blank flash version. Maybe someone has another/better idea?
[Moto G4 Plus Questions & Answers] echo92:
Hmm, so when you went to Settings > About Phone, tapped on the build number (NPJS25.93-14-8 for June 2017), did you see a toast popup saying '3 taps until you become a developer' or 'You've now unlocked developer settings' or something along those lines when you tapped the build number 7 times? And the Developer Options isn't present in the Settings menu near the bottom of the list?

Have you been to a service centre or a mobile repair shop to ask how much it'd be to replace the fingerprint sensor, if it is a hardware failure of the sensor? Looking at teardown videos it does look like the sensor is separate from the screen. However, I don't know if the FP sensor is replaceable or linked to your device, but perhaps worth asking.
[Moto G4 Plus Questions & Answers] NiranjanS:
Appreciate your inputs [MENTION=613506]strongst[/MENTION] and [MENTION=7970352]echo92[/MENTION]. I did try the blank flash version too after your suggestion despite the device not being bricked. But the reboot loop still continues..

About the developer options, no I cant see the message popping up saying '3 taps until you become a developer' neither do I see Developer options in the Settings after I keep tapping build number.

And no, I haven't been to repair centre yet. Considering that as a last resort.

Few more observations from my side,

1) In a different forum found a similar issue where the device would reboot after connecting to internet. Most of the users suggested Google Play services was the culprit. So after disabling play services, my reboot loop does stop indeed. But then I am stuck at "Checking Network...Adding a few finishing touches. This may take a minute or two" forever.

2) Upgraded Play services version from 9.6.83(438-133155058) to 10.2.98 (438-146496160). Still the reboot issue continues when connected to internet.
[Moto G4 Plus Questions & Answers] flako72:
What hurts me the most is that at least for now I have not been able to get rid of Amazon announcements, and less become root to install what I want, if anyone knows if there is any way please share it.

moto g4

xt1625

NPJ25.93-14.5
[Moto G4 Plus Questions & Answers] strongst:
You have a G4, this is G4 plus forum :rolleyes: there are guides for G4 too https://xdaforums.com/moto-g4/how-to/how-to-root-g4-fix-bootable-attempted-t3417592 and AFAIK it should be working with ex kernel too, anybody can confirm: https://xdaforums.com/moto-g4-plus/how-to/guide-root-moto-g4-plus-supersu-android-t3587918