yashsingh1/xdaforums huggingface dataset:
[Moto G4 Plus Questions & Answers] strongst:
You don't need an os for installing twrp. Only the first time to allow oem unlocking but that you have done already along with unlocking bootloader.

So you just need fastboot mode on your device and flash twrp through your PC to the phone with "fastboot flash recovery twrp.img" like this guide explains https://xdaforums.com/moto-g4-plus/how-to/guide-newbie-resource-thread-t3386584

---------- Post added at 08:25 PM ---------- Previous post was at 08:19 PM ----------

Rooting the stock android 7.0 rom works only on ElementalX kernel. And updating the stock rom with its internal update function won't work when using root and ElementalX kernel.

Also flashing stock rom through twrp won't work cause its not a twrp flashable zip, you need to extract and flash it according this guide https://xdaforums.com/moto-g4-plus/how-to/stock-rom-npjs25-93-14-4-march-1-t3608138 without locking bootloop again!

I would recommend this for you and afterwards if you want root flash only ElementalX kernel and then Magisk.
[Moto G4 Plus Questions & Answers] mnt_grrrl:
mfastboot hangs

I booted the phone with power and volume down once in the bootloader I ran

mfastboot flash recovery twrm.....img

it hang at waiting for device

thanks

Mountain Grrrl
[Moto G4 Plus Questions & Answers] echo92:
Hmm, what mfastboot or minimal ADB/fastboot do you have installed? Are you connected using the original USB cable or a high quality USB data cable to connect your device?

Also, if you're running Windows 10/8.1 (as you mentioned you had a Windows computer as well as Linux), check you have driver signature enforcement disabled, else the fastboot drivers may not load. https://www.howtogeek.com/167723/ho...8.1-so-that-you-can-install-unsigned-drivers/

You could check that your device is communicating with your computer by booting your device to the bootloader as you've done, and then type 'fastboot devices' without the quotes. You should get a response with your device's serial number.

Just curious, what TWRP are you attempting to flash?
[Moto G4 Plus Questions & Answers] mnt_grrrl:
not booting into recovery

>Hmm, what mfastboot or minimal ADB/fastboot do you have installed? Are you >connected using the original USB cable or a high quality USB data cable to >connect your device?

the one from the link plus the offical motorla drivers

I am now

>Also, if you're running Windows 10/8.1 (as you mentioned you had a Windows >computer as well as Linux), check you have driver signature enforcement >disabled, else the fastboot drivers may not load. https://www.howtogeek.com/167723/ho...8.1-so-that-you-can-install-unsigned-drivers/

windows 7

You could check that your device is communicating with your computer by booting your device to the bootloader as you've done, and then type 'fastboot devices' without the quotes. You should get a response with your device's serial number.

this works now

Just curious, what TWRP are you attempting to flash?[/QUOTE]

twrp-3.2.2-0-thea.img

the flash works but then I click recovery mode from the boot loader and it restarts the boot loader.

Also is there anything else that might work to get the phone to boot

Thank you

Mountain Grrrl
[Moto G4 Plus Questions & Answers] echo92:
Can I ask you to confirm if you're flashing the TWRP for Thea or for Athene?

If you've got the TWRP for Thea, that won't work on Athene (Moto G4/plus) devices. Thea is the Moto G 4G (2014) which is a different model than the G4 (2016).

Download the official TWRP for Athene and see if that works https://twrp.me/motorola/motorolamotogplus2016.html truth be told, I'm surprised the Thea TWRP would even flash....
[Moto G4 Plus Questions & Answers] mnt_grrrl:
recovery fixed

What is the best way to fix the booting animation so that I do not have to deal with it again or if so it does not take hours get the phone working again.

Thank you

Mountain Grrrl
[Moto G4 Plus Questions & Answers] strongst:
What booting animation? Do you get stuck on booting the system os? For the first boot it can take some minutes to write the caches but that's only one time.
[Moto G4 Plus Questions & Answers] mnt_grrrl:
I am trying to boot the operating sytem. Let it run for 3 and then 12 hours respectively.

Thanks

MG
[Moto G4 Plus Questions & Answers] strongst:
Sorry but I don't get you...

You wait 3 and then 12 hours to boot up the phone? It takes so long? Can you be more precisely please :)
[Moto G4 Plus Questions & Answers] echo92:
I second strongst's suggestion that we need more details to assist.

1)What device model do you have, and can you remember what firmware you had on there before you flashed/booted TWRP?

2)What LineageOS ROM did you flash onto your device (does it mention athene in the ROM name)? Did you format /system, /data and /cache before flashing (but after making a TWRP backup of your device)? Was your current install of LineageOS made with the Thea or athene TWRP?

3)What GApps have you installed, or any additional modifications like Xposed, root etc.?

Custom ROMs should not take 3 hours to initially boot - perhaps 5-10 minutes in my experience.
[Moto G4 Plus Questions & Answers] IronTechmonkey:
I'm a former former PC worksation builder, which is similar work to installing and tweaking Android ROMs, so let's say: old professional habits meet new hobby. Also, I'm glad to have access to a robustly developed and relatively mainstream Android option such as LOS which gives me more control over the device so, I think it's worth the time to troubleshoot bugs when they are encountered. That is actually the purpose of development threads here. A sad irony is that it shouldn't be surprising at all when people go deep into the testing - that's the point! As to the ROM, except for a few bugs it's actually fairly stable. Not as good as some peer devices on the same ROM but not bad enough to say it has "so many bugs".

As to SOT, it;s hard to say since I use the device as a wifi phablet with no SIM mostly for testing or writing when I want a large screen. I'sve never really measured SOT.
[Moto G4 Plus Questions & Answers] igortoniato:
i'm with the latest version of the dotOS for athene (moto g4 plus). when trying to use the version of the app that is in the playstore of netflix it says that my device is not compatible with the app, even though I have always used the same, and sends me to a site to download another version of that same app. the problem is that this other version does not allow me to download series within it. I suspected it was some root problem but magisk shows that safetynet is ok, does anyone know how to solve this problem to use netflix in oreo?
[Moto G4 Plus Questions & Answers] echo92:
One thing to check is if your device is reporting as 'Certified' on the Google Play Store - open the Play Store and tap on the 3 lines in the search bar to open the menu. Go to Settings and scroll to the bottom. Does your device report 'Certified'? (if you want illustration, this XDA page should help https://www.xda-developers.com/how-to-fix-device-not-certified-by-google-error/ scroll down to the

How to check if your device is uncertified

section)

If not and magisk hide is on, you could try wiping your Google Play Store cache and data, then rebooting. Netflix seems to require a certified device as well as passing Safetynet. https://www.androidpolice.com/2017/...rootedunlocked-devices-app-still-working-now/
[Moto G4 Plus Questions & Answers] igortoniato:
yes, it shows certified on playstore...tried what you tell me to do and even put netflix on magisk hide but still dont work, when i run the netflix app from playstore it says that my device is not compatible with their app
[Moto G4 Plus Questions & Answers] Hari Haran:
I didn't notice this until greenify was not hibernating apps. What to do? I'm on latest stock with EX installed. Magisk 16 was installed when I came to stock. I didn't notice it much. What to do
[Moto G4 Plus Questions & Answers] echo92:
Hmm, do you have SU access in magisk - can you give other apps root? What version of EX kernel do you have? Does this occur between reboots?

If you can't give other apps root access or it's not stable, that suggests something's gone wrong with the root install. I'd try to uninstall magisk manager, flash the stock Motorola kernel (so removing any traces of root), then reflash the EX kernel and then magisk. Try magisk 15.3 or 16.0, then if you get root access, try to update magisk via the magisk manager.
[Moto G4 Plus Questions & Answers] Hari Haran:
I don't have access to super su right now. But previously I had

Edit : update. I did a reboot and now it shows. I got root in greenify.
[Moto G4 Plus Questions & Answers] Hari Haran:
Why? I'm using GlassFish profile! I've tried Lspeed, AKT and all. Nothing helped improve the battery life. I'm just watching videos on YouTube with slight browsing and texts. Moderate use.
[Moto G4 Plus Questions & Answers] em110:
so i rooted my phone and used ElementalX kernel stock firmware

now i am going to download lineage because i want 64 bit

should i flash the linage kernel after i flash the linage rom ? or i am doing something wrong here ?
[Moto G4 Plus Questions & Answers] strongst:
Every rom for g4 plus comes along with its own kernel. Don't know why you want to flash a lineage kernel(also never heard of it :rolleyes: ).

For 64bit roms it's mandatory to use a 64bit recovery. Hope you flashed one already?
[Moto G4 Plus Questions & Answers] em110:
yeah sry i was stupid everything is fine now but i need gapps i should download the 64 arm right?
[Moto G4 Plus Questions & Answers] strongst:
Yes exactly. Opengapps or mind the gapps.
[Moto G4 Plus Questions & Answers] em110:
I have a little problem

How do i root lineage 15.1 8.1 oreo ?

Tried magisk had an error that i need stock boot image

Tried super su didnt work too
[Moto G4 Plus Questions & Answers] strongst:
Please be more detailed.

There are plenty of combinations and it takes hours to figure it out, so please provide it:

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

Did you--
wipe before installing the rom(which partitions):
restore with titanium backup:
Tested without any additional apps installed(3rd party not shipped with the rom or gapps):

Are you using--
a non-stock kernel:
Which root method and version:

Provide any additional information (observations/frequency of problem/last version it worked on/etc) as needed:
[Moto G4 Plus Questions & Answers] Vs1607:
Hello sir , I've accidentally flashed European modem for my moto g4 plus when radio[WiFi/sim] in my device wasn't working as mentioned here moto g4 plus repair . Now everythings working fine except volte .

And the baseband version on my device is showing as follows

Athene_EMEA_DSDS_CUST

I've tried the following solution mentioned here in this thread :

solution , but that didn't help either ....

He said if the above script doesn't work , then I may have to find Indian modem variant ! So would you please help with providing the fsg,modem,hw images for Indian xt1643 specific models ..?? If there's an alternative solution then I would be happy to do it ! :fingers-crossed:
[Moto G4 Plus Questions & Answers] Mrinal sahariah:
Where is the link to pixel experience ROM 8.1.0 athene
[Moto G4 Plus Questions & Answers] echo92:
https://xdaforums.com/moto-g4-plus/development/64-bit-pixelexperience-unofficial-rom-t3772744 for the unofficial Pixel Experience build for athene.
[Moto G4 Plus Questions & Answers] Mrinal sahariah:
Where is the official version?
[Moto G4 Plus Questions & Answers] echo92:
I've no idea - there's no sign of an official build on the Pixel Experience download server as of writing this. My guess is that there's still work to do towards an official build; that being said, an unofficial build should be okay to use if you are aware of the bugs.
[Moto G4 Plus Questions & Answers] Mrinal sahariah:
What's working and what's not working in this ROM?

---------- Post added at 01:20 AM ---------- Previous post was at 01:18 AM ----------

What's working and what's not working in this unofficial ROM? Please tell me
[Moto G4 Plus Questions & Answers] echo92:
Please look at the first page of the Pixel Experience ROM thread - there's all the information there.

Also, you may wish to review the last few pages of the thread, since those pages will likely include recent reports from ROM users, which should also inform you what is working and what is not.
[Moto G4 Plus Questions & Answers] Mrinal sahariah:
Can't I just download the ROM and flash it through twrp which I've installed 64bit or will I need a PC?
[Moto G4 Plus Questions & Answers] echo92:
Provided you have the 64 bit TWRP already installed, you should be able to download and flash PE as per the ROM installation instructions without needing a PC. If you have 32 bit TWRP you will need to update the TWRP to 64 bit (instructions are here https://xdaforums.com/moto-g4-plus/development/recovery-twrp-3-2-1-unofficial-touch-t3722206 )

As mentioned in the ROM installation instructions, please backup your existing ROM installation, and keep that backup off your device's internal storage (e.g. on an SD card). This should ensure you have a backup in case of any issues. I would recommend reading through the ROM's opening post for all the details.
[Moto G4 Plus Questions & Answers] Mrinal sahariah:
I tried flashing but it shows an error flashing error cfc. XML.zip
[Moto G4 Plus Questions & Answers] IronTechmonkey:
------------- Rant ensues

There is a saying attributed to Shantideva

“Where would I find enough leather

To cover the entire surface of the earth?

But with leather soles beneath my feet,

It’s as if the whole world has been covered

Likewise it is not possible for me

To restrain the external course of things

But if could I restrain this mind of mine

Why would I need to restrain all else?”

In that light the android doze feature attempts to and fails miserably at covering the world with leather while at the same time stealing our shoes, thereby achieving the worst of all worlds. In my minimalist usage scenarios not only does doze fail to provide any battery savings but it actually costs more battery life as it forces use of sensors when the device is “off”, yet it somehow also manages to cripple the most important of notifications.

To answer 1 of the 2 rhetorical question posed by Shantideva's statement; we know why Google would restrain all else but Android doze is truly one of the most foolish and nastily manipulative things I’ve ever seen in the realm of computers and handheld devices, now rendering 3 different devices useless when idle for anything but phone calls and a few native notification functions.

OK, it should be clear that I’m not interested in any attempts to rationalize doze or tout its virtues so I’ll get to the questions at hand.

------------- Rant concludes.

In LOS 14.x on Moto G4 Athene the absurdity of doze is made worse by some long standing bugs and I am exploring other options on this device to see if they are worth applying to others. With that in mind:

- Does anyone know how to completely disable doze (COMPLETELY, not app by app which does not work and is not practical)? Having done some research it seems that the only way to do this is to build a ROM without it but even that may not be possible.

- Alternatively, is there any CM12.x or other Lollipop ROM for this device that could be recommended? I'm aware of the risks of using older firmware, including potential issues with security and Google Play Services, and do not care about that.

- As a last resort, might there be a way to protect Tasker and aCalendar+ from doze, beyond any in app settings and exemption from battery optimization in the ROM.

Any advise in this regard would be appreciated.
[Moto G4 Plus Questions & Answers] echo92:
Can you post a screenshot of the error, and also verify that you've downloaded the whole file? Also, is this after erasing /system, /data, /cache as per the instructions? What TWRP version are you using?
[Moto G4 Plus Questions & Answers] Mrinal sahariah:
I'm using twrp 3.2.1 by rajat gupta

---------- Post added at 03:55 AM ---------- Previous post was at 03:54 AM ----------

Can't upload screenshot poor connection

---------- Post added at 03:57 AM ---------- Previous post was at 03:55 AM ----------

The file I've downloaded is 1.14gb and there's no meta info file
[Moto G4 Plus Questions & Answers] echo92:
What file did you download? The Android File Host page only reports the file size should be 808.8 MB....? Whatever you downloaded at 1.14 GB doesn't appear to be the right file. You do not need to unzip the file - you should be flashing the entire ROM zip in TWRP.
[Moto G4 Plus Questions & Answers] Mrinal sahariah:
Thanks let me try again

---------- Post added at 04:15 AM ---------- Previous post was at 04:07 AM ----------

Now downloading 791.28mb file, is it the right file?

---------- Post added at 04:17 AM ---------- Previous post was at 04:15 AM ----------

Now downloading size is 791.28mb , is it the right file?
[Moto G4 Plus Questions & Answers] IronTechmonkey:
Point taken but that's a risk I'd be willing to take and could somewhat mitigate if I could find CM12.1, but I wont insist that you make a recommendation you don’t think is wise. :)

This does not seem to be the case for devices which are configured to be in a particularly idle state when display is off. E.g. all radios off, no automatic updates of any type enabled, no data syncing, anything that uses sensors off (e.g. rotation, gestures), etc. I use a Tasker scene, and LMT Pie, and launcher gestures to toggle things only when needed. Part of how I achieved that is actually thanks to observations made in BBS. It may seem counter-intuitive to various recommendations for using processing power efficiently but it works wonderfully for me and yields nearly 2 full days of moderate usage on 1 full charge.

Paraphrasing a I post that I just made here https://xdaforums.com/showpost.php?p=77377472&postcount=1489:

"I sound like a doze hater but really am not. To your point it's quite helpful to people who have radios, updates and services enabled all the time, but an implementation which does not let people opt out when it does not benefit them is yet another google trap to force us toward their services which seem less affected."

That is very helpful to know because it supports a theory I have for this issue: That, because I keep the device in such an idle state when display is off it is more prone to doze issues because most of the things that would tickle doze are not active.

BTW Here's a screen-shot showing how I achieve a relatively "all-off" state on my devices with LMT Pie and my own creation; a home-made Tasker dashboard which I call "Cake". The image shows them overlapping just to show both at once although that is not how they are typical used. They have some redundant and some unique functions which are used in different circumstances, and some of the Tasker switch invoke more complex custom "modes".

Having done this stuff since CM11 - I was doze before doze was doze. :silly:
[Moto G4 Plus Questions & Answers] strongst:
We'll, that's indeed a special use case you have :) so much manual engagement to achieve those those runtime, respect :good:

And yes you're right, with this special use case, doze cannot fully evolve its features and isn't a benefit for you.
[Moto G4 Plus Questions & Answers] Doughboy9:
Hi all,

I'm trying to unlock my G4 plus. From what I can see in my terminal output it seems to work:

> sudo fastboot oem unlock MY_CODE
...
(bootloader) WARNING: This command erases all user data.
(bootloader) Please re-run this command to continue.
OKAY [ 0.005s]
finished. total time: 0.005s

The device itself however is of another opinion. The fastboot info screen still says "oem_locked" and my attempt at flashing a twrp recovery image fails.

$ sudo fastboot flash recovery twrp-3.2.1-0-athene.img
target reported max download size of 536870912 bytes
sending 'recovery' (12644 KB)...
OKAY [ 0.626s]
writing 'recovery'...
(bootloader) Image recovery failed validation

(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 0.640s

What am I to do?

Edit: At the first attempt I had forgotten to "allow OEM unlock" in dev options. After allowing it and trying again I get the exact same result, however.

Edit 2: But, after trying again, giving the same "fastboot oem unlock" command several times in a row without restarting, it worked all of a sudden. So, some frustrated hammering seems to do the trick. Onward in the booting procedure I go. Please delete this post if you wish.
[Moto G4 Plus Questions & Answers] echo92:
With the first attempt, did you repeat the exact same command twice as mentioned in the notice? You should have received a message saying bootloader unlocked and rebooting device if it worked. At least you've got the device unlocked now.

---------- Post added at 02:48 PM ---------- Previous post was at 02:46 PM ----------

No - I've just downloaded the file and it comes to 808.8 MB/809 MB as reported on AFH - so either you're downloading the incorrect file or your download is failing (for reference, I downloaded this - PixelExperience_athene-8.1.0-20180802-1442-UNOFFICIAL.zip - over 4G.

Also, please bear in mind these forums are not real time - you do not need to repeat the same message. We'll reply to you when we have time.
[Moto G4 Plus Questions & Answers] Mrinal sahariah:
Contacts aren't restoring, what to do?
[Moto G4 Plus Questions & Answers] echo92:
Kind of need more detail, what firmware (is it Pixel experience) and what contacts are you restoring (e.g is it WhatsApp or the Android contacts)? Did you back them up to Google or use an app like MyPhoneExplorer for backup?
[Moto G4 Plus Questions & Answers] Mrinal sahariah:
Yes pixel experience rom. Google default contacts,

---------- Post added at 06:06 PM ---------- Previous post was at 06:05 PM ----------

Android contacts

---------- Post added at 06:09 PM ---------- Previous post was at 06:06 PM ----------

When I go to settings>Google>restore contacts, it shows " something went error "
[Moto G4 Plus Questions & Answers] echo92:
That's odd, is your device still updating? I'm guessing your contacts were backed up on your previous ROM?

Maybe try a reboot after the updates and see if it works. I'm hoping you've got a backup...
[Moto G4 Plus Questions & Answers] Mrinal sahariah:
I can see contacts download them but it doesn't sync? All contacts are backed up in my Google account
[Moto G4 Plus Questions & Answers] strongst:
What gapps did you use? Did you tried other gapps like "mind the gapps"?
[Moto G4 Plus Questions & Answers] Mrinal sahariah:
Nope! The rom came with gapps
[Moto G4 Plus Questions & Answers] echo92:
If you go to Settings>Accounts>Google, then tap the 3 dots in the top right to sync now, does that work?

If not, the next option may be to download the vcf and import the vcf files into contacts. You could try:

Go to https://contacts.google.com and log in.

Open the menu on the left hand side. Tap more and tap export. Export as a vcf.

Open contacts on your device, then hopefully there's an option to import (on stock nougat, that option is under the 3 dots in the top right corner). Import the vcf file.

Else, I'm not sure what's going on, you're logged in with the exact same Google login?
[Moto G4 Plus Questions & Answers] Mrinal sahariah:
Csv file not opening. I can see all contacts but can't bring to mobile
[Moto G4 Plus Questions & Answers] strongst:
Have you tried to clean flash the rom again?
[Moto G4 Plus Questions & Answers] echo92:
In addition to strongst's suggestion, did you try .vcf as I wrote above? CSV doesn't appear to be supported in the Contacts app.

You may have to open the .vcf file in your file browser, then when the app to choose prompt appears, select the Contacts app.
[Moto G4 Plus Questions & Answers] Mrinal sahariah:
I tried but it's loading and loading

---------- Post added at 07:10 PM ---------- Previous post was at 07:06 PM ----------

There's no option as vcf only csv and iPhone compitable