yashsingh1/xdaforums huggingface dataset:
[Moto G4 Plus Questions & Answers] echo92:
Ahh, you've installed the soak test? As we don't have the subsequent soak tests to put you back on the official OTA, you'll have to flash the fastboot ROM from the guides section. This should bring you the latest stock with the December patch and bring you back to the official OTA path. https://xdaforums.com/moto-g4-plus/how-to/moto-g4-plus-xt1640-43-athene-npj25-93-t3549369

Follow the instructions in the linked post.
[Moto G4 Plus Questions & Answers] aryan2642:
HELP bricked device Plz Help Plz

I have rooted my moto g4 plus xt1643 , and installed team win custom recovery , and i wiped ART cache , system , data , internal storage ,cache , Micro sd via team win recovery now when every i try to install a rom it say "Unable to mount storage" .

(P.S i am a noob at this)
[Moto G4 Plus Questions & Answers] DevanshSharma:
Camera Quality reduced in RR 5.8.2 21Feb2017 Nightly. I have just installed it today and find it way better than LineageOS. But the camera quality was same in both ROMs which was LESS THAN THAT OF STOCK. The app is same but the quality is not even close. Laser focus seems to be gone. Plzz help asap.
[Moto G4 Plus Questions & Answers] strongst:
The camera quality will never be the same on custom roms. That's a fact on every device.

---------- Post added at 06:50 PM ---------- Previous post was at 06:49 PM ----------

On which storage is your rom you want to install? Did you tried to mount that storage and copy the rom on?
[Moto G4 Plus Questions & Answers] DevanshSharma:
Why is that so? I thought Custom ROMs are good for devices and are a must. Is there anything that can be done? I feel jealous of my friend posting so awesome pics in a group. Please do something.
[Moto G4 Plus Questions & Answers] aryan2642:
i factory reset the phone and installed the rom again , its working properly now , thanks
[Moto G4 Plus Questions & Answers] rajatgupta1998:
See, there are optimizations and other under-the-hood-things done by moto in the stock ROM which just can't be put up in custom ROMs. However, there are certain things you can do to get better photos and videos:

1. Use moto camera (flashable zip , ported for custom ROMs)

2. Add these lines in build prop and save it(Root needed) build prop is in /system/

WARNING: TAKE BACKUP BEFORE YOU PROCEED

ro.media.enc.jpeg.quality=100
ro.media.dec.jpeg.memcap=8000000
ro.media.enc.hprof.vid.bps=8000000
ro.media.enc.hprof.vid.fps=65
ro.media.capture.flash=led
ro.media.capture.flashMinV=3300000
ro.media.capture.torchIntensity=40
ro.media.capture.flashIntensity=70
ro.media.capture.maxres=8m
ro.media.capture.fast.fps=4
ro.media.capture.slow.fps=120
ro.media.panorama.defres=3264x1840
ro.media.panorama.frameres=1280x720
ro.camcorder.videoModes=true

---------- Post added at 08:35 AM ---------- Previous post was at 08:34 AM ----------

LineageOS Official builds are broken for a while. You can try Unofficial builds. And you need to have Nougat firmware present too.
[Moto G4 Plus Questions & Answers] DevanshSharma:
I am very excited to try them but don't want to reinstall RR ROM after wiping system data. Have you tried these codes?
[Moto G4 Plus Questions & Answers] strongst:
You don't need to wipe anything to try this. Make a twrp backup of your current rom, reboot and add the lines in /system/build.prop. Then reboot and test. You also can make a backup of build.prop file too ;)
[Moto G4 Plus Questions & Answers] DevanshSharma:
I have installed latest RR build, i.e., 21Feb2017 Nightly. While I was reading the instructions, it said to install Nougat Firmware. But I did not install it as I rooted my phone after updating to Nougat. Should I still install the Nougat Firmware. I have no issue in ROM, just the laser focus not working as in stock.
[Moto G4 Plus Questions & Answers] rajatgupta1998:
No, you just need to flash Stock Nougat 93-14 once to get the bootloader and modem files. Since you did everything after you updated to Nougat there's no need to do it again and again. And use moto camera (the flashable zip ) which is ported for custom ROMs.
[Moto G4 Plus Questions & Answers] pavanchary:
Friends how to switch on/off different sim cards in lineage os (un official) on my moto g4 plus
[Moto G4 Plus Questions & Answers] raunaq04:
AOSP EXTENDED

While I love AOSP EXTENDED ROM I can't get the camera to work. I've searched the entire thread,

I tried OPEN Camera which is extremely slow and gives errors quite often.

Both Moto and Motorola Camera crash.

The AOSP camera provided crashes on switching to video.

If someone can help me out with the camera and camcorder I'd be more than willing to use this instead of RR. Thank you. Any help is appreciated :)
[Moto G4 Plus Questions & Answers] rajatgupta1998:
Afaik, You can't do it on Custom ROMs.

---------- Post added at 05:20 PM ---------- Previous post was at 05:19 PM ----------

You delete the com.motorola."*** files from

/system/etc/permissions and do a reboot
[Moto G4 Plus Questions & Answers] raunaq04:
Thank you. I'll try it :)
[Moto G4 Plus Questions & Answers] bullfinch110:
https://xdaforums.com/moto-g4-plus/how-to/how-to-motomotorola-camera-official-t3551851
[Moto G4 Plus Questions & Answers] raunaq04:
It didn't work I first deleted that one file which is mentioned then it didn't work after the reboot. Then I deleted all the files it still doesn't work on the latest build of AOSP Extended :( help me please
[Moto G4 Plus Questions & Answers] DevanshSharma:
When I was installing RR, I flashed the "pico" GApps. So, now, if an update comes, I would have to flash that pico .zip or I can flash the mini .zip also.?

I also wanted to ask that now the camera of Moto G4 Plus doesn't appear to have Laser Focus. Focus has not been working that awesome like it was in stock. I am on RR 20170221 Nightly. Any thing thou guys recommend? Also please state if this also happens with you.:(:crying:
[Moto G4 Plus Questions & Answers] strongst:
You can flash the mini package. If you only update the new RR version, then you can also update the gapps version to a bigger one. https://github.com/opengapps/opengapps/wiki/Package-Comparison
[Moto G4 Plus Questions & Answers] rajatgupta1998:
1.) Generally the ROM's updater script keeps the Google Apps. AFAIK. And you can flash the Pico or mini zip later if you want to. Just remember wiping caches.

2.) Exact camera performance won't be achieved owing to the optimization done by moto in the stock ROM which can't be implemented on custom ROMs. Use the flashable zip of moto camera ported for custom ROMs. There's not a noticeable difference.
[Moto G4 Plus Questions & Answers] pavanchary:
How to switch 2g network mode in lineage(unofficial) in my moto g4 plus
[Moto G4 Plus Questions & Answers] ramansehra:
Hello there ,

I have installed latest update of nougat through ota(build 93-14).

After updating boot time is very long. Every time It takes around 5 minutes to boot. White screen with moto logo persists for longer-term time.

Must device is rooted with twrp recovery installed.

Thanks in advance.
[Moto G4 Plus Questions & Answers] strongst:
Which device version did you have? With XT1643 there is no 2g option in mobile network settings
[Moto G4 Plus Questions & Answers] pavanchary:
I have xt1644
[Moto G4 Plus Questions & Answers] echo92:
What happens if you wipe your Dalvik and cache, or perform a factory reset from within TWRP and then reboot? Which method did you use to root?
[Moto G4 Plus Questions & Answers] toppits:
I'm getting the Nougat update OTA now and want to install it, but I need root. I'm kind of overwhelmed by all the "Nougat root" threads. Is there a working systemless root method for Nougat NPJ25.93-14 for the XT1642 ?

Also, I rooted with bender87s systemless guide. I didn't flash a boot.img and only booted into TWRP. Root apps I used: AdAway (systemless, has an option to undo the changes), FasterGPS (also has an option to undo the changes), Nova Launcher, DevCheck and Partitions Backup. Is it right that I just need to let AdAway and FasterGPS undo the changes and then unroot with SuperSU and afterwards I can install the OTA update?
[Moto G4 Plus Questions & Answers] rajatgupta1998:
Probably yes..but do take backup before you proceed.. sometimes somethings still stay there.. its better to be on unmodified system before installing OTAs.

and to root nougat 93-14 you have to flash elementalx kernel v1.02 and then SuperSU v2.79 SR3
[Moto G4 Plus Questions & Answers] toppits:
Thx [MENTION=6324159]tywinlannister[/MENTION]

That's not systemless root, right? So if I root how you described I'd have to do a backup of system and recovery, so I can restore them when the next OTA updates hits our phone or else I won't be able to get it OTA, right? I'd like to root systemless so it's easier to get OTA updates in the future, but I guess I'll have to wait a little longer for that.
[Moto G4 Plus Questions & Answers] rajatgupta1998:
It is systemless mode. We don't have the non systemless (or whatever you call it) root for stock ROM. AFAIK.

I remember it as the SuperSU installer shows something like checking for boot image support and goes to systemless mode. And since you'll be modifying the boot image of the phone you'll need to undo all the changes you made to the system by rooting, and also get back to the stock boot partiton and recovery. A good way is to keep a twrp backup of stock ROM and then flash stock recovery via fastboot.
[Moto G4 Plus Questions & Answers] rajatgupta1998:
[MENTION=4643647]toppits[/MENTION] See the screenshot.
[Moto G4 Plus Questions & Answers] ramansehra:
I flashed superuser zip and install phh superuser from play store. Tried wiping dalvik cache and cache but with no success.

Also I am using elemental kernel 1.02
[Moto G4 Plus Questions & Answers] Adarsh balu:
Hey...Help me with this..

I tried to root my moto g4 plus using temporary twrp so that i get system updates,It is not working out.

I have used moto g3.. and used this same method for rooting and is successful..

In g4 plus till the last step i.e untill u need to flash supersu it works but there comes error.

Every data is lost and i have to boot into my custom rom backup...

Please suggest something to help me...please
[Moto G4 Plus Questions & Answers] rajatgupta1998:
To root stock Nougat this is the standard process in simple steps:

Install twrp>wipe cache and art> install ex kernel v1.02> install superSU v2.79 SR3> reboot
[Moto G4 Plus Questions & Answers] Adarsh balu:
Will i be able to update to android o if it comes for g4 plus if root nougat by changing kernel
[Moto G4 Plus Questions & Answers] rajatgupta1998:
To install any system OTA you need to have your phone unmodified. If you try to install any OTA on a custom kernel and rooted system, it'll either fail or result in a bootlooop. So it'll be good if you make a backup in twrp before you proceed. (Later to install the OTA restore it and the stock recovery)
[Moto G4 Plus Questions & Answers] Adarsh balu:
Can u suggest a safe way to do this in steps please tell me : .....

In my earlier phone i.e lenovo A6010 plus i rooted it when it was lollipop using twrp permanent root method and later it got marshmallow update which i could not get...

It will download and install correctly but when it boots back it goes into twrp settings and there it is the update is not completed and i must restart it from there...

I don't want this to happen to my moto g4 plus so can anyone give me step wise guide...

It would be really helpful for users like me:o
[Moto G4 Plus Questions & Answers] rajatgupta1998:
Follow the links in each step .

Rooting:

1. Setup Drivers on your PC and then reboot.

Fastboot&ADB Motorola

1. Unlock Bootloader. Follow the unlock part here:

Newbie Thread

2. Download and install twrp Recovery.

fastboot flash recovery filename.img

(Allow modifications) Also, take a backup right now and copy it to your computer. It is stored in

/sdcard/TWRP/BACKUPS/

3. Download and install ElementalX Kernel v1.02 and Reboot to System once.

4. Download and install SuperSU v.279 SR3 and Reboot to System.

Chainfire's Thread

Restore and install OTAs:

1. Reboot to Recovery and choose Restore. Choose the backup you made earlier.

2. Download and install the stock Recovery. (I'm not sure if twrp install method will work or not so follow fastboot.) Needed for installing OTAs

fastboot flash recovery filename.img

3. Reboot to System and do a factory reset. ;)

Alternatively you can use the following links to flash stock ROM:

Fastboot method TWRP Backup

4. And now proceed with the OTAs. :good:
[Moto G4 Plus Questions & Answers] Adarsh balu:
Ok thank u for this..i will try this and tell about the results..:)
[Moto G4 Plus Questions & Answers] Adarsh balu:
My g4 plus now successfully rooted with elemental x kernal and phh supersu...xt1643
[Moto G4 Plus Questions & Answers] Adarsh balu:
Lucky pather does not show all options on menu of patches..even after rooted..please tell me why this happens and how to remove it
[Moto G4 Plus Questions & Answers] sd_shadow:
Lucky Patcher

Discussions about Lucky Patcher are not allowed on XDA

-https://xdaforums.com/announcement.php?f=263

https://xdaforums.com/report.php?p=61427415

https://xdaforums.com/report.php?p=46806505

https://xdaforums.com/report.php?p=36071751
[Moto G4 Plus Questions & Answers] Adarsh balu:
Sorry.. Won't repeat this...:crying:
[Moto G4 Plus Questions & Answers] jesemalave1:
I have a question I'm on xt1644 us version on nougat. Ever since I upgraded to nougat my data stops working like every hour. Apn is right also. Also I have reset and reflashed. I would be happy with a MODEM FIRMWARE COMPATIBLE. I can't find it anywhere. Does anyone know where I can find it a modem for nougat just the modem that I can flash it with stock recovery or twrp
[Moto G4 Plus Questions & Answers] Cupid.shaan:
Open gapps

What Gapps i have to use for custom rom of my moto g4 plus?

Arm? Or arm64?
[Moto G4 Plus Questions & Answers] Hari Haran:
Arm
[Moto G4 Plus Questions & Answers] pavanchary:
How to update lineage os (unofficial) with out loosing any data in my moto g4 plus
[Moto G4 Plus Questions & Answers] strongst:
Make a titanium backup if dirty flash isn't possible
[Moto G4 Plus Questions & Answers] peek_12_21:
I have xt1644 I'm in USA. I still have MM . Would it be worth waiting for N? Or to root and use a rom. I don't want to lose stuff like Moto camera and Moto actions but I want nougat. Would that still be there in a different rom? Thanks in advanced
[Moto G4 Plus Questions & Answers] echo92:
Might be worth waiting as there are reports of an US soak test around, suggesting Nougat is coming. https://xdaforums.com/moto-g4-plus/how-to/nougat-update-apparently-rolling-t3566271

Custom ROMs like the Lineage (both official and unofficial ROMs) and Resurrection Remix have Moto actions included and work well, and Moto camera does work with those ROMs (though there's currently a video recording bug affecting Moto camera, where the camera stops recording after 30-45 sec). Photo quality seems to be close if not comparable to the stock ROM.

However, as you have an XT1644 (and applicable for Plus models in general), I'd recommend to update to Nougat to have the best experience with those ROMs, else you'll run into fingerprint issues and other bugs. The stock firmware is needed to update the parts of the device that custom ROMs cannot access.

If you don't wish to wait for Nougat, you may choose to look at this fastboot thread for the 93-14 firmware. https://xdaforums.com/moto-g4-plus/how-to/moto-g4-plus-xt1640-43-athene-npj25-93-t3549369

Be aware though that the official firmware, when it's released in the US, might be a different build and thus may not let you back on the OTA update path unless you can obtain a fastboot zip of that ROM to flash or rollback to Marshmallow and update via OTA.
[Moto G4 Plus Questions & Answers] Aniruddh9:
Can i flash freedom os for moto g4 plus?
[Moto G4 Plus Questions & Answers] sd_shadow:
I don't see it in https://xdaforums.com/moto-g4-plus/development

so unlikely
[Moto G4 Plus Questions & Answers] toppits:
I'm pretty lost right now. After researching how to root Nougat I thought, I'm ready, let's do it.

XT1642, MPJ24.139-63, reteu, rooted systemless how [MENTION=5107905]bender87[/MENTION] described it. I did backup /system and /boot before rooting and then did a backup of /recovery and /logo.

Now I tried to get everything back to original so I can do the OTA-Update, but nothing seems to work.

After everything else I tried before didn't work I did the following, but still no success:

- I restored /recovery and /logo (even though I don't think I changed anything there since I didn't flash a different logo and I only booted into TWRP)

- I unrooted with SuperSU (tried without this step, didn't work as well)

- I restored /system and /boot in TWRP

- reboot

- started the OTA update, it failed after perhaps a minute - the android guy with a red triangle with an exclamation mark inside appeared and "Fehler" ("error") was written below.

I really don't know what else I can do to make this work. I there another way to get to Nougat without wiping my data and hopefully being able to perform the next OTA update?

If not, what would be the easiest way to get to Nougat (with a wipe, if it isn't possible otherwise) but so I can get the next OTA update?
[Moto G4 Plus Questions & Answers] sd_shadow:
probably need to flash stock firmware with RSD Lite or Fastboot.exe
[Moto G4 Plus Questions & Answers] toppits:
Thx, I wouldn't lose my data right?

Problem is, I can't find the version that's currently on my phone.
[Moto G4 Plus Questions & Answers] sd_shadow:
yes data is wiped with RSD Lite, unless you remove wipe data line in .xml
[Moto G4 Plus Questions & Answers] toppits:
Okay I finally did it!

Since I couldn't find the MPJ24.139-63 for the XT1642 I used the "boot.img, logo.bin, recovery.img, system.img_sparsechunk.0 till 7"-files for the XT1643 from here

Flashed them like it is described here.

Afterwards finally the OTA-update worked. After that I rooted.

And the best part: I didn't lose any data!

Thx for all the replies, I hope this helps someone in the same position as I was.
[Moto G4 Plus Questions & Answers] ThePrathamesh:
[MENTION=4267571]sd_shadow[/MENTION] how to capture OTA via adb...? I am on marshmallow 6.0.1 XT1643 I have downloaded OTA but didn't know command to capture it.
[Moto G4 Plus Questions & Answers] sd_shadow:
file manager with root access

/cache
[Moto G4 Plus Questions & Answers] sd_shadow:
Blur_Version.xx.xx.xx.xx..zip
[Moto G4 Plus Questions & Answers] ThePrathamesh:
How to capture if I don't have rooted my device... Any fastboot command?????

Any fastboot command?
[Moto G4 Plus Questions & Answers] echo92:
I found the OTA update in /data/data/com.Motorola.CCC.OTA, though this was for the nougat 93-14 update from marshmallow, don't know if they've changed the location in nougat. Still needed a root browser with root access to find it however!
[Moto G4 Plus Questions & Answers] rajatgupta1998:
Can anyone give me the approximate range of the screen coordinates (X,Y) of the "n/a" we get

on the screen while booting up?

Been designing a few logos but hiding that "n/a" is a pain.

---------- Post added at 08:50 PM ---------- Previous post was at 08:46 PM ----------

I tried this back when the update came but in vain..

Well we can start a "adb logcat -v "

just before starting the download and just seek the url (time dependent).

I did this and was able to download the zip on my computer.
[Moto G4 Plus Questions & Answers] raunaq04:
I'm running AOSP extended that has substratum OMS support but once I apply any theme it just doesn't do anything and the UI doesn't change at all in any of the app. I'm running g 7.1.1 Athene AOSP Extended. If substratum app is also themed it just glitches out and force closes. If not then the UI remains same without a force close. Can someone help?
[Moto G4 Plus Questions & Answers] strongst:
Try to delete the .substratum folders and delete substratum as well.
[Moto G4 Plus Questions & Answers] raunaq04:
This didn't work :(
[Moto G4 Plus Questions & Answers] ____Mdd:
Which theme are you using..? Is it capable to theme 7.1.1's system UI and all..? you can read theme's description about if it works or not..
[Moto G4 Plus Questions & Answers] pavanchary:
Some times wifi is not switching on .... In that time I need to reboot every time for switching WiFi .... In my lineage os (unofficial) .. How to solve that problem.. In my xt1644 g4 plus
[Moto G4 Plus Questions & Answers] Tamarho:
Do anyone can help me with my battery life. I have installed RR with the N Firware and everything that the developer said. Now I have 43% od battery, but I haven't used it, just 59 minutes of screen on, the first thing in the battery graphic is Google play services, please help me. I have a XT1641
[Moto G4 Plus Questions & Answers] strongst:
Detailed screens of better battery stats after full charge please.
[Moto G4 Plus Questions & Answers] strongst:
https://play.google.com/store/apps/details?id=com.asksven.betterbatterystats that's what I meant. Also available on xda developers.
[Moto G4 Plus Questions & Answers] Tamarho:
Do you know any other app than that? I don´t have google play store money xD. If it can free it's better for me
[Moto G4 Plus Questions & Answers] strongst:
Did you read what I wrote? ALSO AVAILABLE ON XDA DEVELOPERS

And, trust me, it's worth to buy this app to support the dev. It's always worth to support someone who is doing great work for free.
[Moto G4 Plus Questions & Answers] Tamarho:
I'm sorry, yes I will help the developer when y have enough money for him because the app is very nice, but for now I haven't enough. Here are my stats after a full charge, if you need more tell me
[Moto G4 Plus Questions & Answers] strongst:
After more then one day you have only 6 minutes sot? I meant you should full charge and then monitor your usual behavior with better battery stats till the battery is nearly empty or at least one day or so. Then post the screenshots :svetius:
[Moto G4 Plus Questions & Answers] Aditya potdar:
Im not able to use Hike on Resurrection Remix N.It has stuck on "Scanning Contacts".Please help
[Moto G4 Plus Questions & Answers] rajatgupta1998:
Yes it's a well known issue that Hike Messenger doesn't work on any Nougat 7.1 ROMs and has been discussed a few times. So the only work around to get it working it is get back to stock ROM, install and set up Hike Messenger and then take a Titanium Backup of the app and restore the app+data in your desired custom ROM.
[Moto G4 Plus Questions & Answers] Aditya potdar:
Okay so rather than switching to the Stock Rom, Can i just sign in onto my other phone and try taking backup of app+data and then transfering it onto my old phone....and restoring​ it....?
[Moto G4 Plus Questions & Answers] SmartGEEK235:
Fingerprint not working!!!

I flashed ElementalX over LineageOs OMS. And now my fingerprint sensor isn't working at all. Also no options for it in Security too. I'm using Moto G4 Plus XT1643. Need help ASAP!
[Moto G4 Plus Questions & Answers] echo92:
You'll have to update your sensor firmware by flashing the sensorhub firmware. You can find it here from Silesh's post https://xdaforums.com/showpost.php?p=71360979&postcount=2723 ElementalX requires the sensor firmware from Nougat, whereas LineageOS OMS comes with a Marshmallow kernel (and thus MM sensor firmware) for performance and battery improvements, as I understand it.

Bear in mind the stock kernel included in Lineage OS OMS already has the features of ElementalX kernel. (credit: https://xdaforums.com/showpost.php?p=71361109&postcount=2726), so EX Kernel Manager works (and is running well on my XT 1642 device with the 11/03 build) In other words, you don't have to flash ElementalX if you're running Lineage OS OMS :)
[Moto G4 Plus Questions & Answers] Tamarho:
Now I have wasted most of my battery and it is the same battery life, can you help me? Please
[Moto G4 Plus Questions & Answers] strongst:
Did you have more screenshots like before? The only thing that is unusual is, that GPS is a lot active.