yashsingh1/xdaforums huggingface dataset:
[Moto G4 Plus Questions & Answers] echo92:
That's not a good sign - if this happened without warning as you described, it may suggest a flash memory or hardware failure. One thing to try is to flash the stock ROM - here's the link for the April 2018 fastboot ROM https://xdaforums.com/moto-g4-plus/how-to/stock-rom-npjs25-93-14-4-march-1-t3608138

If you want to try to save your data, flash using the following commands in fastboot:

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

See if that gets your device booting. That should flash the full stock firmware onto your device and satisfy the repair requirements if the flash was successful.
[Moto G4 Plus Questions & Answers] shantam22:
This is a wonderful thread. Thanks op.
[Moto G4 Plus Questions & Answers] sd_shadow:
Thank you, But it's the people like [MENTION=7970352]echo92[/MENTION] and [MENTION=5119654]IronTechmonkey[/MENTION] that make it great.
[Moto G4 Plus Questions & Answers] sd_shadow:
And [MENTION=613506]strongst[/MENTION]
[Moto G4 Plus Questions & Answers] strongst:
And [MENTION=4267571]sd_shadow[/MENTION] :cool: this threads should be used more to prevent creating useless threads in Q&A section :svetius: (speaking for every device)
[Moto G4 Plus Questions & Answers] IronTechmonkey:
True that. Across several years of playing with CM/LOS on numerous devices this has been one of the most informative device-specific but non ROM specific threads that I've encountered. IMO that niche is sometimes overlooked since many such threads focus on the intersection of a specific device and a specific ROM. In turn some of the knowledge shared here spills back into the LOS specific threads.
[Moto G4 Plus Questions & Answers] jack_04:
I want to install a ROM on my moto g4 plus but I have never installed a ROM before. Can anyone tell me exact steps/requirements to install any ROM?
[Moto G4 Plus Questions & Answers] strongst:
You need to unlock your bootloader after that you have to install a custom recovery https://xdaforums.com/moto-g4-plus/how-to/guide-newbie-resource-thread-t3386584

The recovery mentioned there isn't suitable for every rom, especially the 64bit based roms. So if you master to unlock bootloader you should decide which rom you want to install. In the roms thread there's mostly given a link to a special recovery that meets the requirements of the rom(like ressurection remix official).
[Moto G4 Plus Questions & Answers] Hari Haran:
Is there anyone who got benefited by AKT? I seriously doubt it did anything at all. Didn't notice any difference. Also does it mean if we add Hal3 manually in build prop we get pro mode in any rom? And what about slow motion? Can't it be obtained in a custom rom?
[Moto G4 Plus Questions & Answers] Tengakallan:
Same to me with akt
[Moto G4 Plus Questions & Answers] sohail_23:
Hello everyone i have a redmi note 3 in which i adopted sd card as internal storage using adb and migrated data to sd card now i want to revert back can anyone help me to migrate data back to internal storage using adb as miui does not allow it from settings i know its an off topic but believe me i am in a very big trouble plz help !!
[Moto G4 Plus Questions & Answers] strongst:
Wrong thread mate, this is g4 plus.
[Moto G4 Plus Questions & Answers] sd_shadow:
https://xdaforums.com/redmi-note-3
[Moto G4 Plus Questions & Answers] kp4587:
Re-lock boot loader

Hey, this is a moto noob.

I had unlocked my moto.

Please mention the detailed step by step instructions to re lock the boot loader.
[Moto G4 Plus Questions & Answers] ____Mdd:
Everything mentioned here, https://xdaforums.com/moto-g4-plus/how-to/stock-rom-npjs25-93-14-4-march-1-t3608138

Take backup (of internal storage)

flash ROM with lock commands,

Done..
[Moto G4 Plus Questions & Answers] kp4587:
Waiting for any device

while in settings - developer options - USB debugging is on..the command prompt shows <waiting for any device> when i run a batch file or even a single command.

The fastboot flash mode screen shows :

Transfer Mode : USB Connected.

How to proceed
[Moto G4 Plus Questions & Answers] strongst:
Do you have the right drivers on your PC? Firewall deactivated?
[Moto G4 Plus Questions & Answers] kp4587:
yup..i have the correct drivers and windows firewall status is "ON".
[Moto G4 Plus Questions & Answers] golu12c:
No Sound Issue

My Moto G4 Plus is facing a weird issue. No Sound from speaker and headphone or any other external device(tried almost everything). The microphone is also not working. My phone has zero sound.

I thought it was a software issue. Therefore, i tried all ROMS including Stock(Marshmallow & Nougat) and Custom ROMS. Unfortunately the flashing didn't fixed the issue. I thought it might be a hardware issue with speaker and mic but if it's a hardware issue, then why isnt there any sound in bluetooth, earphones, speaker connected with phone(tried aux and bluetooth both)

Pleasee help:crying::crying:
[Moto G4 Plus Questions & Answers] ____Mdd:
It's discussed before, and when someone (in different thread) tried to check logcat, it said /proc/asound/card is missing (something related to it).

In that same thread, i provided flashable zip for /proc/asound/ but it failed and didn't worked.

If possible, pull /proc/asound/, and upload it here, i just want to compare it with my /proc/asound folder and will try to provide solution...

Edit: tried to search, and came to know you can't mount /proc (or not known how?), And write to it not possible...
[Moto G4 Plus Questions & Answers] Hari Haran:
Need help. Losing alot of battery. I'm on official Lineage 14.1, stock kernel. Using L speed alone
[Moto G4 Plus Questions & Answers] golu12c:
What should i do then. Should i take it to the service center? I am a noob. Need help;-;

Also can you share the link of that thread.

Thanks in advance
[Moto G4 Plus Questions & Answers] ____Mdd:
That thread is here (as it didn't worked, i removed those files from drive ) : https://xdaforums.com/moto-g4-plus/help/sound-drivers-problem-t3640933
[Moto G4 Plus Questions & Answers] golu12c:
Hi read that thread. You asked that person if water went into his phone through headphones jacks. Around 2-3 months back few drops went into my headphone jack. The phone worked fine till 2-3 days back. Could it be because of that?
[Moto G4 Plus Questions & Answers] strongst:
Yes it can, cause even after months water drainage can hurt your device components. I had this on several other mobile phones after days/weeks/months. Mostly you'll see it after disassembling.
[Moto G4 Plus Questions & Answers] Åttavantar:
Hi!

Since flashing Resurrection Remix (Oreo) I've been getting warnings about SElinux being set to permissive, every time I start my phone.

Should I be worried, if so what's the best way of enforcing SElinux?, also I'm not rooted
[Moto G4 Plus Questions & Answers] Dhanush-raj:
Its a new feature introduced by lineage is "Trust". You don't worry the RR developer is working hard to make the build enforcing.
[Moto G4 Plus Questions & Answers] IronTechmonkey:
Off topic. Again: Please respect the topic of development thread and post that stuff here in general (regardless of who the device belongs to).
[Moto G4 Plus Questions & Answers] Nithans:
Hi guys, I saw there are two different threads about RR, the older one includes the tag [FINAL] and runs android 7.1.2 and the other runs 8.1.

Due to some issues with O distributions I'd like to use android N.

My question is: Is RR v5.8.5 receiving android security patches?

I have another question yet... (sorry for that :p )

What does AOSP and OMS stands for? What's the diference?
[Moto G4 Plus Questions & Answers] strongst:
Your answer to RR 5.8.5: https://xdaforums.com/moto-g4-plus/development/rom-resurrection-remix-n-5-8-0-t3507275/post76842001

OMS: https://www.xda-developers.com/layers-manager-is-being-deprecated-in-favor-of-substratum/

AOSP: the Android Open Source Project :D the source most of the custom roms out there.
[Moto G4 Plus Questions & Answers] golu12c:
Well sadly you were right xD. The speaker IC is damaged due to the water. I visited the service center today. They told me the will have to replace the whole motherboard for it, which costs 80% of the phone cost. :/
[Moto G4 Plus Questions & Answers] IronTechmonkey:
[MENTION=9294491]Nithans[/MENTION],Just an FYI about that RR Nougat ROM. You might want to wait for the next version before trying it, or at least if you try it keep an eye out for excessive battery drain, and have a nandroid backup on hand. Reasons being: I've been considering testing something other than LOS 14.1 on my Athene xt1625 device so after seeing your questions and [MENTION=613506]strongst[/MENTION]'s reply I reviewed the OPs and last several pages of that thread to find reports of excessive battery drain and a reply from the developer about how some changes to the kernel may fix that in next build. I'm not saying you should not try it but do review the thread before doing so and make a nandroid backup first.

[MENTION=613506]strongst[/MENTION] (or anyone else with experience with ROMs other than LOS), please correct me if I'm wrong about the battery drain in RR. Also, with the understanding that our usage scenarios may differ, are there any Nougat ROMs which you would recommend to try as an alternative to LOS 14.1 on Athene?
[Moto G4 Plus Questions & Answers] Nithans:
[MENTION=5119654]IronTechmonkey[/MENTION] Yeah, in the last few days I've bein' testing a lot of custom roms but sadly I only have good battery life with stock, it's incredible that with stock I have like 42+ hours between a recharge and other but on LOS or RR (N version) only 8-12.

I've tested some kernels and AKT but it really hadn't worked :(

My device: Athene xt1640
[Moto G4 Plus Questions & Answers] mesac11:
freezing in boot logo

My moto g4 plus is freezing at bootlogo with usb debugging off oem lock, i have tey flashing stock firmware in fastboot mode but the bootloader give some kind of error message please help.....

THANKS...
[Moto G4 Plus Questions & Answers] echo92:
What error are you getting, and what firmware did you flash in fastboot? What's your model number?
[Moto G4 Plus Questions & Answers] strongst:
? What message?

What did you do that it freezes at boot logo?
[Moto G4 Plus Questions & Answers] sanjaybaidya:
Hi. Is there any app that enables the LED light for notifications?? I am not taking about charging led. I am taking about notification led, like lineage os has inbuilt. I am in stock rom(rooted)
[Moto G4 Plus Questions & Answers] mesac11:
Its moto g4 plus xt1643 and its say preflash validation failed

---------- Post added at 06:32 AM ---------- Previous post was at 06:26 AM ----------

Its stock anddroid marshmellow firmware
[Moto G4 Plus Questions & Answers] strongst:
Light flow for example, others too. Search this forum then you find the others.
[Moto G4 Plus Questions & Answers] :
I wanna try to port a pure nexus rom anyone tried or know if its possible also looking into paranoid android
[Moto G4 Plus Questions & Answers] rajeshsharma29744:
I am on npj 25-93.11 my phone showing update npj25-93.14

I have unlocked my boot loader

I am confuse the update will successfully install or not
[Moto G4 Plus Questions & Answers] guessingagain:
If all you have done is unlocked the bootloader it will update. If you flashed any other stuff( TWRP, custom logo, other kernels or any thing else) then you have to return to stock first
[Moto G4 Plus Questions & Answers] Nik11_98:
Hey guys , my wifi isn't working and i cant upgrade to nougat ,while upgrading the file starts to install and then the phone reboots into recovery and stops there plz help ! Is this because of root ? But i have removed my root and twrp recovery :( ...... and after that i tried ota nougat zip file but it didnt flash
[Moto G4 Plus Questions & Answers] Hari Haran:
You can't install ota once you unlocked the device! You need to flash the ota zip manually
[Moto G4 Plus Questions & Answers] Nik11_98:
Oh and wifi issue ?
[Moto G4 Plus Questions & Answers] echo92:
How did you remove TWRP and root? Might be worth flashing MM stock firmware completely, confirm if you have Wi-Fi restored and a working recovery before moving to Nougat (I don't know if the Nougat 93.11 firmware will resolve your Wi-Fi issue, it's possible if you flash it via RSDlite or fastboot). What model do you have?

Also, to the best of my knowledge, unlocking your device I recall doesn't affect OTAs, but any further modifications on top of unlocking may interrupt your install.
[Moto G4 Plus Questions & Answers] :
Just wondering what peoples opinions are with battery life between marshmallow and nougat roms what do yall this is better
[Moto G4 Plus Questions & Answers] Nik11_98:
I had modified the software for root and yep i have solved my wifi issue but i cant upgrade to nougat
[Moto G4 Plus Questions & Answers] sd_shadow:
firmware must be unmodified to install OTA updates

just unrooting isn't enough, you should reflash firmware with RSD Lite or Fastboot.exe

bootloader status shouldn't matter
[Moto G4 Plus Questions & Answers] echo92:
Ah, well done on the Wi-Fi issue, what did you do?

As I mentioned before, you might have to flash MM entirely (what's your phone model?) to ensure your recovery is happy and your firmware is unmodified or try using the RSDLite or fastboot method to update to Nougat (and hope that repairs/replaces your recovery with one that works for OTA access) https://xdaforums.com/moto-g4-plus/how-to/android-7-0-install-nougat-official-t3531612
[Moto G4 Plus Questions & Answers] Nik11_98:
I used elemental x for wifi issue ..... actually i have flashed twrp again to fix wifi thingy and my phone model is xt 1643 and i had used fastboot method to install the twrp recovery

---------- Post added at 07:35 PM ---------- Previous post was at 07:33 PM ----------

How do i unmodify it ?
[Moto G4 Plus Questions & Answers] echo92:
For OTA updates, you need the stock recovery - TWRP won't work (I thought you meant in your original post you removed TWRP too).

To restore your stock recovery and unmodify it, as sd_shadow mentioned, looks like you'll have to flash with a MM ROM (a signed one, for XT1643) is here using fastboot: https://xdaforums.com/moto-g4-plus/how-to/moto-g4-plus-xt1643-updated-signed-t3460695) or flash Nougat as linked above. Personally, I'd clean flash MM and then update to Nougat via OTA, best to start from a known good installation.
[Moto G4 Plus Questions & Answers] Nik11_98:
Oh thanks mahn im new to this so sorry for the trouble :)
[Moto G4 Plus Questions & Answers] strongst:
[MENTION=5119654]IronTechmonkey[/MENTION] there are not really alternatives to stock in terms of battery life nowadays, but some discussion may help to pick a possible rom to test:

https://xdaforums.com/moto-g4-plus/help/best-rom-moto-g4-plus-t3703836

https://xdaforums.com/moto-g4-plus/help/rom-using-t3691454

https://xdaforums.com/moto-g4-plus/how-to/rom-benchmarks-t3575807

https://xdaforums.com/moto-g4-plus/how-to/coming-circle-t3739850

https://xdaforums.com/moto-g4-plus/how-to/extreme-battery-life-moto-g4-plusathene-t3740307

https://xdaforums.com/moto-g4-plus/how-to/8-hrs-massive-sot-rr-o-32bit-loony-t3802164

https://xdaforums.com/moto-g4-plus/how-to/6-hrs-sot-1-12-year-battery-rr-oreo-64-t3791193

If I would decide one, I would recommend Silesh.Nair builds of unofficial LineageOS(later called InvictaOS) , https://xdaforums.com/moto-g4-plus/development/xt16xx-cyanogenmod-14-1-alpha-t3492274

His own kernel was a beast in terms of battery life. I reached easily 6-7h sot, you can search the thread for examples by key word "sot".

But.... It's deprecated as we all know :crying:
[Moto G4 Plus Questions & Answers] a__l__a__n:
I have a Moto G4 Plus XT1644 which I rooted right after receiving it last year (still running the stock Android 6.0.1). Somewhere in the process of customizing I enabled a feature that turns off the screen by swiping the bottom of the screen right-to-left. Now I'm trying to configure a second phone with that same feature but i can't remember how I did it! I'm thinking it was a custom option selected during the rooting process but maybe I remember wrong. Can someone point me in the right direction? Thanks!

OK, I notice I'm running the ElementalX 3.10.84-ElementalX-G4-0.07 kernel. Maybe the feature I'm looking for is what they call "sweep2sleep". If I update the second phone to the latest stock Android update are there any issues with then flashing ElementalX?
[Moto G4 Plus Questions & Answers] Nithans:
If you are talking about a moto g4 or any other devices supported by Elemental X there is no problem.

Actually my G4+ is running stock rom (April Update) with ElementalX and Magisk.
[Moto G4 Plus Questions & Answers] CMKdaGreatest:
Can you disable heads-up in stock ROM??
[Moto G4 Plus Questions & Answers] Dhanush-raj:
For rr-oreo 8.1 64bits what's the best way to clear app's cache in one single click of all apps. Any suggestion would be helpful....
[Moto G4 Plus Questions & Answers] ____Mdd:
(Mostly) every ROM has storage settings, in that tap on cache data usage and it will clear it.. (Screenshot for reference)
[Moto G4 Plus Questions & Answers] comishi:
Does anyone knows if one hand mode has been implemented on oreo roms?

Few months back when I was on LOS 15.1 feature wasn't there
[Moto G4 Plus Questions & Answers] PremanshuRaj:
I am having problems pulling down the status bar during usage of apps which are in full screen like youtube, games like pubg.. I have used RR and HAVOC. I face the problem in both the roms. I just don't know what configuration i have changed which lead to this. Kindly help
[Moto G4 Plus Questions & Answers] Dhanush-raj:
Its not there...
[Moto G4 Plus Questions & Answers] Spaceboy60:
Having the same issue, tried 2 chargers. Same issue. The port on my phone is slightly loose. Not sure if that's the issue or the cable (have tried a few but they're all relatively cheap ones off ebay)
[Moto G4 Plus Questions & Answers] IronTechmonkey:
Your screenshot shows the groups of apps that are in Settings > Storage, which is not the correct place to clear app caches. If the settings in Oreo are anything like they are in Nougat then try this instead: Settings > Apps > select an app > clear cache.
[Moto G4 Plus Questions & Answers] cyrrel:
Hi, I want to give the phone to my buddy, running later rr ROM. That is running already. How can I make sure that everything personal is wiped? All apps with settings etc as well?

Edit: this guy is really not into rom installing etc

Does it make sense to downgrade from Oreo? Didn't use the phone with it as daily driver so I really don't know about stability
[Moto G4 Plus Questions & Answers] strongst:
In system settings you'll find "backup&reset" where you can perform a factory reset of your device which will reset to default.

If you feel that he needs a reliable phone, it's more recommended to flash the latest stock rom instead of a Oreo custom rom if your friend has 0 knowledge about custom roms otherwise he's getting angry maybe ;)
[Moto G4 Plus Questions & Answers] cyrrel:
Thanks man I think I've got it done now with rr 585 and deletion of internal storage partition as well.
[Moto G4 Plus Questions & Answers] IronTechmonkey:
I've been updating my xt1625 (via clean flash) regularly for many months and there have been no bugs regarding charging or USB connection, nor have there been any firmware fixes required to have proper USB connection. On native charger; turbo charging works properly, and when connected via USB to Linux and Windows PCs; charging, ADB access, and MTP file access all function as expected. Additionally, during that time period I've occasionally used the USB port for OTG devices (external SD/hard drives). Also, AFAIK there have been no other similar reports here or at LOS Jira. If you've eliminated all possible 3rd party factors and are having that problem in clean flash with no mods then you may unfortunately have a hardware issue similar to that which others have posted about previously in this thread.

If you can establish this is actually a ROM issue (IMO an unlikely possibility) then bring it back to the development thread and to LOS Jira with full details, confirmation of clean flash, logs, etc. It also could not hurt to test on stock or a different ROM for comparison.
[Moto G4 Plus Questions & Answers] T_I:
Ah, ok, then the phone probably is dieing on me after 2 years (found initial backup of stock image on the sdcard of 1 juli 2016). Will have to look if I'm sticking to Moto or switch to Samsung (Moto's are getting to big)
[Moto G4 Plus Questions & Answers] sohail_23:
HELP I am running stock Android rooted using ElementalX kernel and SuperSU after two days of usage suddenly my phone switched off and as I turned it on again my lockscreen was disabled I cannot access my quick settings and when I try to enter in developer options it is saying that not available for this user I am also not able to use home button as well as recent button only back button Working I am running without any mods I just remembered that I turned on the fsync while setting up my ElementalX kernel help

And sorry for something incomplete information.
[Moto G4 Plus Questions & Answers] IronTechmonkey:
AGAIN - "Whether or not this is a Lineage OS ROM issue, [no-one has provided] any supporting evidence or expected bug reporting details. It is possible that you've discovered a bug or known limitation which is specific to certain carriers or circumstances but the reports become meaningless in the absence of any supporting details which would help developers fix the problem... If you can reproduce the problem in a clean flash with no 3rd party factors (no SuperSU, no Magisk, no Xposed, no vyper audio, etc) and still think it is a ROM bug then please submit a proper bug report here and at LOS Jira (https://jira.lineageos.org/)."

More bluntly stated: Please make your report meaningful or stop trolling the dev thread and use this one instead. You may have discovered a real issue and there is a path to determining that for sure and possibly fixing it.
[Moto G4 Plus Questions & Answers] CMKdaGreatest:
Could someone tell me how Firehound ROM is?? How does it perform? How's the battery life??
[Moto G4 Plus Questions & Answers] marsh96:
im new here. after rooting my phone with SuperSU i updated my phone (without knowing that it would cause problems) and while rebooting after update, its showing No os installed and entered the recovery mode. i can only access the twrp recovery mode. i cant enter the bootloader mode. i tried adb sideloading the stock firmware but its showing wrong zip file format, no MD5 file found. My device is g4 plus XT1643 running on stock android7.0 kernel is vegito (custom). Even if i restore my backups, it still shows no OS installed
[Moto G4 Plus Questions & Answers] mnt_grrrl:
moto g4 plus lineage (not booting) and no twrp

I am running lineage and from time to time it gets stuck in the boot animation.. This happened a few days ago. I know how to fix this normally but now twrp is also missing.

All the flashing guide for twrp that I have found require a working os.

I am running linux but have access to windows.

Am I hosed or is there a work around?

Also anything I can do to prevent it from not booting once I get this all sorted.

Mountain Grrrl