yashsingh1/xdaforums huggingface dataset:
[Nexus 6 Q&A, Help & Troubleshooting] poboy975:
So, what is the difference between custom roms and stock roms that causes the lag? I've noticed two things with my 6. I've tried Bliss, PureNexus, crDroid, and purely rooted stock. On the stock rom, after a short while, my 6 lags more and more to where the phone is unusable. It's very frustrating. But, when I'm on a custom rom, it's generally smooth and very fast with no lag at all, BUT, I do get random reboots and shutdowns and fc's. I don't get reboots, fc's or shutdowns on the stock rom. But I get horrible lag. Is it possible to get no lag with no reboots? Has anyone been able to make a stock rom with no lag? That would be ideal for me. I do use root for a few things, call recorder, and backup mostly. Though I don't even need the backup much anymore with google saving everything online now. I've never tried to build a rom of my own, so I don't know what the difference would be to make one like that.
[Nexus 6 Q&A, Help & Troubleshooting] cameraddict:
My fiance is a writer and she records all of her interviews. She has an LG G4 (totally stock) She uses an app called Bold Beast for recording her calls. No root required. (we did need to fiddle with the multitude of settings to get good recording quality...)

As for the lag, I've had my device since 9/16 (bought used on Swappa). It came with the Beta for N installed. I've been using official N since it was released as an OTA. I only experience any noticeable lag in one situation: When my phone is very low on battery (<30) and I use HDR+, usability and reaction times takes a serious hit. I'm a moderate power user, otherwise, and I haven't experienced anything else that I would classify as lag.

That said, I wonder if there was some serious batch quality differences when this phone was being manufactured as I've seen other complaints of lagging.

Good luck, and sorry that I could only provide a contrary anecdotal response.
[Moto G4 Play Questions & Answers] nick_white:
My phone takes a lot of time getting a GPS fix, sometimes it doesn't succeed after minutes of waiting. I compared it to some Samsung phones, those connect within seconds...

The connection seems stable after getting a fix, but getting a fix is very hard for this phone...

Is anyone else experiencing this?
[Moto G4 Play Questions & Answers] Kadah:
You're not the only one, mine's also broken. Looking around at the official Moto forums, it seems like this is a fairly common issue with the G4 Play.

So far stock was broken, CM 14.1 has been no better. If I use GPS Status & Toolbox it will eventually get a lock and maybe the accuracy will get down to +/-30m, but if any other app that calls for location (Google Maps, Pokemon Go, etc), if the GPS is turned on at all, it will almost never lock unless switch to GPS Status, but once it gets a lock, the accuracy will keep dropping till its greater than +/-300-400m before losing the lock and eventually the phone just shuts down GPS and stops trying. Literally not location or app settings make any difference, neither does factory reset.

I've had 2 G4 Plays so far. The first was the Amazon Prime version, it had no location issues at all and was totally rock solid, but boot loader could not be unlocked, so I sold it to a friend for his kids to use for Pokemon Go since it was a great device for that. This second one may as well not have came with GPS.

Edit: I've returned to stock and zero difference. I'm not messing with this anymore, 2.5 weeks was long enough trying to fix it, I'm replacing it through Amazon.
[Moto G4 Play Questions & Answers] rcoacci:
I was heaving issues too, changed my SIM to the second slot and it's quite better now. I even play PoGo.
[Moto G4 Play Questions & Answers] mkollersms:
The problem is actually quite simple: The G4 Play cannot connect to Russian satellites (GLONASS). Under GPS Status and a few other apps, they are perma-greyed out. All of my LG phones connect to them just fine. What kills me is that the feature is listed under Motorola's website, and the phone knows they are there (even on CM14.1), but it simply refuses to use them.
[Moto G4 Play Questions & Answers] nick_white:
I'm not sure of this. I used MapFactor and GPS Status & Toolbox, and the IDs of the satellites are also in the GLONASS range (https://github.com/mvglasow/satstat/wiki/NMEA-IDs). Do you have a US only version of G4 Play? I have the international version.
[Moto G4 Play Questions & Answers] mkollersms:
I can confirm my 1607 is US Retail. I tested multiple GPS apps (including GPS-S&T) and while I got signal from GLONASS satellites, it straight up refused to connect to a single one, even if the satellite had better signal than a comparable US satellite. I don't know if it's possible to flash a new modem for this model yet.
[Moto G4 Play Questions & Answers] rcoacci:
Try this app: https://play.google.com/store/apps/details?id=com.android.gpstest

It gave me the best fix than all the others. I don't know what this guy do but it connects to more satellites and gets a fix faster.
[Moto G4 Play Questions & Answers] ashishwebmail:
I also have a Moto G4 Play mobile with the same problem.

You won't believe that touching to the gps device on the back side of the phone solved the problem to some extent. I go for running every morning and I use Runkeeper to track my moves. So how much distance I cover in a day is much important for me and thus gps accuracy also. But my location is tracked like a heart rate monitor of a hospital. But one day I was experimenting with my phone and found that if I remove the back cover of the phone and touch to the part where it was written Harpia GPS S01, the signal of the gps boosted and the radius of the blue circle became shorter to about 4-8 metres that means I was getting more accuracy than before. So from that day whenever I go to run, I remove the back cover and put a finger on the gps set and the problem somewhat solved. But this was only a part of the story. My father owns a Micromax Unite 3 mobile and he also used to run daily. What to say about the latter, it gives an accuracy of unbelievable 1 metre. On the latter, the runkeeper even tracks the change of lane or the side of the road. I am just jealous of the phone even though it costs 4000 rs less than mine.
[Moto G4 Play Questions & Answers] Kadah:
Sounds like connector failed. Someone on the Lenovo forum had theirs repaired by moto and the antenna connector was what they fixed. Betting mine (and yours) are that. I replaced mine through Amazon, so far the replacement device has been working.

I'm wondering if it's a bad design on the antenna or just manufacturing defect and bad QA on some units.
[Moto G4 Play Questions & Answers] mkollersms:
Dumb question, but if the connection is exposed upon removal of the cover, isn't it possible to tear into and reconnect/solder without taking it to a manufacturer? I mean, what I see are two screws to the right of the headphone jack, a plastic cover that says "Harpia GPS S01," and what looks like some kind of antenna watermark.
[Moto G4 Play Questions & Answers] PavelBronco:
Interesting. I've just checked mine (European XT1602) and it does that, too - the GLONASS satellites are showing up, but are not being used.
[Moto G4 Play Questions & Answers] ronaldotalison:
When I was in stock rom after some time the gps stopped working well, don't know why. Now with Aox 14.1 is working fine, I don't understand the satellites but the accuracy is pretty good
[Moto G4 Play Questions & Answers] mkollersms:
Not seeing any active Russians on that image. Your phone might still be having the same problem as everyone else.
[Moto G4 Play Questions & Answers] hamelg:
I've bought a xt1602 yesterday. The GPS is excellent. I get a fix in few seconds with solid signals, but without glonass.
[Moto G4 Play Questions & Answers] Kadah:
Update on the current replacement G4 Play: GPS is starting to fail on it as well. I've hardly even used it, maybe only a dozen times in the last several weeks. So far that's 3 of 3 that are defective. I think I'm going to return this one to Amazon too, not sure I want to try a 4th.
[Moto G4 Play Questions & Answers] seven21075:
I see russian satellites on his picture. How do you know that they were not active?
[Moto G4 Play Questions & Answers] mkollersms:
Because the three that I see are missing values under the "Flags" column. That hints at the aGPS data being there but that the phone might not have interfaced with them. The UI says 12 of 22 sats are connected. Of the 13 US shown, 12 have all fields with information and the thirteenth is missing info in one column. Granted, all of this is conjecture.
[Moto G4 Play Questions & Answers] seven21075:
I think u are right. Ive tested it today by myself. But ive to say that this mobile phone has got a VERY fast GPS fix, atleast where i live. (Germany)
[Moto G4 Play Questions & Answers] Wocli:
I also have bad GPS, thing I've tried:

Reset to factory settings

Safe boot

GPS Toolbox

I will now try putting the sim card in the second slot, like suggested here on the forum. Keep you posted!
[Moto G4 Play Questions & Answers] Wocli:
Unfortunately putting the SIM card in the second slot did not better the situation. Back to the shop...
[Moto G4 Play Questions & Answers] AranhaEscarlate:
Hi,

Mine was solved installing the APP TopNTP (Google play). What it does is to generate a new and correct gps.conf file for your device (you need to give root permissions to the APP). Just run the APP, click on Install and then the reboot option.

My ROM is a Lineage 14.1, the 20190110 version for the harpia device.

Hope this will help someone else.
[Moto G4 Play Questions & Answers] sprayone:
Work for me!

Hi, it's work fine for me!!

Thanx, my fellow countryman..

I'm using Android 7.1.1 - XT1601.
[Moto G4 Play Questions & Answers] TheWarrior01:
Will it work XT1604? i'm on a Pie ROM and GPS is always stuck at one place!
[Moto G4 Play Questions & Answers] mtmtumbo:
i thought this was a hardware gps issue on the g4 play and not software

do you have an international version or north american harpia?

also do you have to keep the app installed or can you install it, let is patch the gps conf file, reboot and then remove it?
[Moto G4 Play Questions & Answers] rodrigian:
After installing TopNTP and applying whatever "patch" this app aplies this issue is still present. In my case my phone gets a lock pretty quickly but only within urban areas with good coverage (this applies to where I live, Buenos Aires) but as soon as I try to navigate, the problem reappears. It's seems as if the phone can't keep the peace while I'm driving. It constantly jumps from one place to the other, so I'm guessing there's really a hardware issue. I tried bending the gps springs and it seemed to work for a little bit, but then the problem resurfaced. Right now the only things that seem plausible to solve the problem are putting conductive grease in between the gps plate and the springs, (not confirmed to work but I will try it) or building a new gps antenna altogether. Personaly I'm gonna try the grease thing and if it doesn't work I might just give up, I really wouldn't know how tu build a fking antenna, and I don't want to mess up things; my G4 Play is my daily driver so...
[Moto G4 Play Questions & Answers] DB126:
Clearly and undisputably a hardware issue with no reasonable resolution. Note nearly identical E4 works fine.
[Moto G4 Play Questions & Answers] rodrigian:
So i tested electroconductive grease in my phone's gps pads. Before applying i scratched the pads with a razor blade, then applied solder stripper, then cleaned, applyed electroconductive grease and reasembled. Then I turned on the phone, turned on plane mode and tested it. This is what I got. I really think it's working better but nowhere near the boundaries of a "normal" phone. I haven't try navigation yet but I don't think it would work, because the precision is awful. All in all I would say it's working better, but I wouldn't recommend this mod. It's lot's of hassle for just a minor increase in gps performance.
[Moto G4 Play Questions & Answers] DB126:
There are no known working (reasonable) "mods" for the G4P GPS issue as noted in the post just prior to yours.
[Moto G4 Play Questions & Answers] EtoileLabrie:
Is there a reason why none in the thread of you soldered the both sides with a thin short wire? (I am not an expert in soldering but I see videos of louisrossmann and it seems possible to solder even small thin cables.

Thanks for any replies (or even criticisms)

Sorry to open this thread again!
[Moto G4 Play Questions & Answers] jamiscs:
Well, after i've installed AospExtended 6.5, the GPS ressurected. I even get fast fixes inside my house, 10m accuracy.
[Moto G4 Play Questions & Answers] Sup3rHugh:
I have tried those commands, rebooted the phone and now my GPS is unable to get a fix. Did I miss something?

I am thinking to unlock the bootloader and reflash the stock image.

Ideas welcome...
[Moto G4 Play Questions & Answers] Sup3rHugh:
After many reboots, the GPS is "kinda" working again. Can't tell you what I did.
[Moto G4 Play Questions & Answers] kngharv:
May I ask: how do you attach the copper wire?

There is a hole says "GPS Harpia." Do you simply insert a copper wire into it? I tried that and it didn't work for me.

Do you have to solder the copper wire to somewhere?

Thanks in advance
[Moto G4 Play Questions & Answers] Wocli:
Got one last trick up my sleeve:

Found it on the Lenove forum
[Moto G4 Play Questions & Answers] andrebrait:
I kinda fixed mine with fastboot. Enable ADB USB Debugging and reboot the device to fastboot mode. Then, connect the phone to the PC (assumibg you have the Motorola drivers and adb/fastboot installed) and run

fastboot erase modemst1

fastboot erase modemst2

Then reboot the device.

I just drove from work and I havent seen any of the crazy behaviour it usually has since I used these commands.
[Moto G4 Play Questions & Answers] mkollersms:
Can you verify GLONASS on your device? If you have a GPS testing app (such as GPS Status & Toolbox), we just need to know that the phone is connecting to satellites marked GLONASS R1-R28, (or numbers above 32).
[Moto G4 Play Questions & Answers] andrebrait:
Yes, sure!

Just checked and it connects to GLONASS satellites (as in, they're used to fix the position). However, it does fix to some GLONASS sats even if the signal is 0, and doesn't to some others even when the signal is strong. This doesn't happen with GPS sats.
[Moto G4 Play Questions & Answers] mkollersms:
Well, I attempted it and sadly, no change on my XT1607. I'm starting to think there's something in the chipset of this model that Lenovo set up incorrectly, as modifying the gps.conf file hasn't changed anything either.
[Moto G4 Play Questions & Answers] andrebrait:
Did you try messing with the NTP settings? I have heard GPS issues can be fixed with those.
[Moto G4 Play Questions & Answers] mkollersms:
That would be in the gps.conf file, and like I said, no luck. It's not a matter of the phone not seeing them, because it can. It just refuses to use them for location data, meaning a signal is that much harder to acquire.
[Moto G4 Play Questions & Answers] andrebrait:
Yeah, Lenovo messing it up somehow makes sense. It's very weird that my phone uses GLONASS sats with no signal at all but ignores ones with excellent signal.
[Moto G4 Play Questions & Answers] mkollersms:
Hrm... Let me paste my gps.conf file and see how it differs from yours.

#XTRA_SERVER_1=http://xtrapath2.izatcloud.net/xtra2.bin

#XTRA_SERVER_2=http://xtrapath2.izatcloud.net/xtra2.bin

#XTRA_SERVER_3=http://xtrapath3.izatcloud.net/xtra2.bin

# Error Estimate

# _SET = 1

# _CLEAR = 0

ERR_ESTIMATE=0

#Test

#NTP_SERVER=time.gpsonextra.net

#Asia

# NTP_SERVER=asia.pool.ntp.org

#Europe

# NTP_SERVER=europe.pool.ntp.org

#North America

#NTP_SERVER=us.pool.ntp.org

# DEBUG LEVELS: 0 - none, 1 - Error, 2 - Warning, 3 - Info

# 4 - Debug, 5 - Verbose

# If DEBUG_LEVEL is commented, Android's logging levels will be used

DEBUG_LEVEL = 2

# Intermediate position report, 1=enable, 0=disable

#INTERMEDIATE_POS=1

# supl version 1.0

#SUPL_VER=0x20000

# Emergency SUPL, 1=enable, 0=disable

#SUPL_ES=0

# SUPL Mode (0=Standalone, 1=MSB, 2=MSA)

#SUPL_MODE=1

# GPS Capabilities bit mask

# SCHEDULING = 0x01

# MSB = 0x02

# MSA = 0x04

# ON_DEMAND_TIME = 0x10

# GEOFENCE = 0x20

# default = ON_DEMAND_TIME | MSA | MSB | SCHEDULING | GEOFENCE

CAPABILITIES=0x37

# Accuracy threshold for intermediate positions

# less accurate positions are ignored, 0 for passing all positions

# ACCURACY_THRES=3000

################################

##### AGPS server settings #####

################################

# FOR SUPL SUPPORT, set the following

# SUPL_HOST=supl.host.com or IP

# SUPL_PORT=1234

####################################

# LTE Positioning Profile Settings

####################################

# 0: Enable RRLP on LTE(Default)

# 1: Enable LPP_User_Plane on LTE

# 2: Enable LPP_Control_Plane

# 3: Enable both LPP_User_Plane and LPP_Control_Plane

#LPP_PROFILE = 0

################################

# EXTRA SETTINGS

################################

# NMEA provider (1=Modem Processor, 0=Application Processor)

#NMEA_PROVIDER=1

# Mark if it is a SGLTE target (1=SGLTE, 0=nonSGLTE)

#SGLTE_TARGET=0

##################################################

# Select Positioning Protocol on A-GLONASS system

##################################################

# 0x1: RRC CPlane

# 0x2: RRLP UPlane

# 0x4: LLP Uplane

#A_GLONASS_POS_PROTOCOL_SELECT = 0
[Moto G4 Play Questions & Answers] andrebrait:
My device is not rooted. Can I read the file without root access?
[Moto G4 Play Questions & Answers] mkollersms:
It's under system/etc so if you can find a way to access that folder without root... Though if not...
[Moto G4 Play Questions & Answers] andrebrait:
OK, got it

#gps_conf_from_sim.conf

#XTRA_SERVER_1=http://xtrapath2.izatcloud.net/xtra2.bin

#XTRA_SERVER_2=http://xtrapath2.izatcloud.net/xtra2.bin

#XTRA_SERVER_3=http://xtrapath3.izatcloud.net/xtra2.bin

# _SET = 1

# _CLEAR = 0

ERR_ESTIMATE=0

#Test

#NTP_SERVER=time.gpsonextra.net

#Asia

# NTP_SERVER=asia.pool.ntp.org

#Europe

# NTP_SERVER=europe.pool.ntp.org

#North America

#NTP_SERVER=north-america.pool.ntp.org

# DEBUG LEVELS: 0 - none, 1 - Error, 2 - Warning, 3 - Info

# 4 - Debug, 5 - Verbose

# If DEBUG_LEVEL is commented, Android's logging levels will be used

DEBUG_LEVEL = 2

# Intermediate position report, 1=enable, 0=disable

#INTERMEDIATE_POS=0

# supl version 1.0

#5UPL_VER=0x20000

# Emergency SUPL, 1=enable, 0=disable

#SUPL_ES=0

# SUPL Mode (0=Standalone, 1=MSB, 2=MSA)

#SUPL_MODE=1

# GPS Capabilities bit mask

# SCHEDULING = 0x01

# MSB = 0x02

# MSA = 0x04

# ON_DEMAND_TIME = 0x10

# GEOFENCE = 0x20

# default = ON_DEMAND_TIME | MSA | MSB | SCHEDULING | GEOFENCE

CAPABILITIES=0x37

# Accuracy threshold for intermediate positions

# less accurate positions are ignored, 0 for passing all positions

# ACCURACY_THRES=5000

################################

##### AGPS server settings #####

################################

# FOR SUPL SUPPORT, set the following

# SUPL_HOST=supl.host.com or IP

# SUPL_PORT=1234

# FOR C2K PDE SUPPORT, set the following

# C2K_HOST=c2k.pde.com or IP

# C2K_PORT=1234

####################################

# LTE Positioning Profile Settings

####################################

# 0: Enable RRLP on LTE(Default)

# 1: Enable LPP_User_Plane on LTE

# 2: Enable LPP_Control_Plane

# 3: Enable both LPP_User_Plane and LPP_Control_Plane

#LPP_PROFILE = 0

################################

# EXTRA SETTINGS

################################

# NMEA provider (1=Modem Processor, 0=Application Processor)

#NMEA_PROVIDER=0

# Mark if it is a SGLTE target (1=SGLTE, 0=nonSGLTE)

#SGLTE_TARGET=0

##################################################

# Select Positioning Protocol on A-GLONASS system

##################################################

# 0x1: RRC CPlane

# 0x2: RRLP UPlane

# 0x4: LLP Uplane

#A_GLONASS_POS_PROTOCOL_SELECT = 0
[Moto G4 Play Questions & Answers] mkollersms:
Considering that was the default for mine before I made changes, I guess we can rule it out as being the issue.
[Moto G4 Play Questions & Answers] andrebrait:
Yeah. Every uncommented line of our files are the same. I'll try disabling the Bluetooth and Wifi scanning thing and also I'll try not using LTE mode while using the GPS because some carrriers use frequencies for LTE that conflict with those of the GPS. However, I had a somewhat pleasant experience with it when I came back home this evening. Not Moto G 2013 pleasant, but way better than what it used to be... Maybe it was luck. I'm gonna try again tomorrow.
[Moto G4 Play Questions & Answers] mkollersms:
Want to give an update since I tried a few things. Looking at another device I own (LG LS660), there's addons to location services which allows iZat support. This is compatible with the Snapdragon 410 but Lenovo didn't implement it for some reason. So, I thought I would try brute forcing it.

I copied the following files from my LG phone: libxt_native.so, libxtwifi_ulp_adaptor.so and libxtwifi_zpp_adaptor.so all to /system/vendor/lib.

I then went into build.prop and added two lines to ADDITIONAL_BUILD_PROPERTIES:

ro.qc.sdk.izat.premium_enabled=1

ro.qc.sdk.izat.service_mask=0x0

Finally, I copied the xtra_t_app.apk (which installs as com.qualcomm.location.xt). I went to install it directly, and received an "App Already Installed" error, even though no app/apk with that name exists on the ROM as far as I can tell. I looked through File Manager and even browsed with Titanium Backup; no luck.

Any ideas?
[Moto G4 Play Questions & Answers] ProudlyTM:
I saw the line which has a "5" instead of "S" but that line is commented out with a "#" so I guess it doesn't really matter, does it ?
[Moto G4 Play Questions & Answers] Wocli:
Today I had bad GPS connection again, so my last trick didn't work either. I can't edit gps.conf because I don't want root access. So out of options I guess....

:(
[Moto G4 Play Questions & Answers] mkollersms:
Could you possibly push the file through TWRP? If so, then I could probably just send you a copy of mine.
[Moto G4 Play Questions & Answers] Wocli:
Couldn't I just copy the text from your post? I am not very keen on installing a new bootloader either though (or just net desperate enough yet), but thanks for the suggestion!
[Moto G4 Play Questions & Answers] mkollersms:
The gpsconf file is under /system/etc. You either need to be rooted to access it from the ROM, or you have to access it through a recovery and attempt to overwrite it there. If you wanna fix the problem, you will have to get your hands dirty but honestly, it's worth it. There are no plans for Motrola/Lenovo to fix this, because they admitted that they refuse to recognize this problem.