yashsingh1/xdaforums huggingface dataset:
[LG Optimus 4X HD] Specu3800:
Maybe try to download ROM Manager, give it root access and reboot to recovery (in the app: right-top corner, click power button ant there you can find this option)
[LG Optimus 4X HD] aico60:
I think his phone isnt starting at all.Is the phone working?Is it turning on?
[LG Optimus 4X HD] tiflao:
Gps work or not?

Enviado desde mi Optimus 4X HD mediante Tapatalk
[LG Optimus 4X HD] Rafostar:
If You are using TWRP it's volume(+) and power button!!!
[LG Optimus 4X HD] aico60:
No,it's not volume+!!!

I use TWRP and I open it with volume- and power button
[LG Optimus 4X HD] csk1jw:
You can also use adb to enter recovery

$ adb shell setup-recovery
$ adb reboot

If this also failed, then probably your recovery image was corrupted. Use LG

fastboot to flash recovery

$ adb reboot oem-unlock
# fastboot flash recovery recovery.img
# fastboot reboot

Use whatever recovery image to your liking, be it TWRP or CWM or even LG stock recovery.
[LG Optimus 4X HD] Plasma Shadow:
So what is the best and most effective method to fixing GPS on this rom? Ive tried replacing the gps.conf with ones in this thread and GPS Status says it locks on to '0/0' so it musnt be working.
[LG Optimus 4X HD] csk1jw:
AGPS fixed!! Finally!!

[MENTION=5889675]streambinder[/MENTION]:

I almost want to give up and go back to LG stock JB v20c ROM, as GPS is one of the features I care most on my smartphone.

This fixes AGPS issue for this wonderful ROM. Google Maps now acquires position nearly instantaneous indoor and reports optimized in location accuracy tips. Now rejoice!!!:)

$ git diff overlay/frameworks/base/core/res/res/values/config.xml
diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml
index 1d24ce4..e538963 100755
--- a/overlay/frameworks/base/core/res/res/values/config.xml
+++ b/overlay/frameworks/base/core/res/res/values/config.xml
@@ -238,6 +238,14 @@
<!-- Enable support for legacy GPS HALs -->
<bool name="config_legacyGpsHAL">true</bool>

+ <!-- GPS location providers -->
+ <string-array name="config_locationProviderPackageNames" translatable="false">
+ <!-- Current Google location provider -->
+ <item>com.google.android.gms</item>
+ <!-- The standard AOSP fused location provider -->
+ <item>com.android.location.fused</item>
+ </string-array>
+
<!-- Control the behavior when the user long presses the home button.
0 - Nothing
1 - Recent apps view in SystemUI

ADB logcat verified network location provider is active and alive.

V/GmsNetworkLocationProvi( 1479): DISABLE
V/GmsNetworkLocationProvi( 1479): ENABLE
V/GmsNetworkLocationProvi( 1479): onSetRequest: ProviderRequestUnbundled, reportLocation is true and interval is 86400000
V/GmsNetworkLocationProvi( 1479): SET-REQUEST
V/GmsNetworkLocationProvi( 1479): in Handler: ProviderRequestUnbundled, reportLocation is true and interval is 86400000
[LG Optimus 4X HD] Raffaele85:
oh great. [MENTION=5889675]streambinder[/MENTION] when do you think we can test new ROM version after the "patch"?
[LG Optimus 4X HD] csk1jw:
I have also updated the earlier GpsLocationProvider.java patch at post http://xdaforums.com/showpost.php?p=61735796&postcount=849.

If streambinder is starting a new build, the build should also update the AOSP source to 5.1.1_r6 (LMY48G). I can confirmed that everything works wonderfully. :good: This is what I am using with my LG O4X currently.

Now, the only remaining issue is Hotspot & Tethering.
[LG Optimus 4X HD] streambinder:
Cheer, dude!

Tomorrow gonna have an exam, but I assure to share a new fresh build (along with new AOSP branch and [MENTION=5799877]csk1jw[/MENTION] patches) really soon! ;)
[LG Optimus 4X HD] lg-optimus:
I am in a similar situation. The ROM is great, except for navigation. Do you think GPS gets better with TopNTP - https://play.google.com/store/apps/details?id=by.zatta.agps&hl=de too? At the moment I try the official Cyanogenmod and had a freeze when using GPS with Sygic.

Please write a short posting when an Image is onine, where GPS should work better. For the testers, try GPS in situations, where you

cannot

receive GSM / UMTS. I am sometimes driving in mountain areas with no reception and then I am having strange problems, like a freeze, reset, shutdown, but if I have luck everything works.
[LG Optimus 4X HD] streambinder:
As promised, new build is out!

It includes everything you were expecting:

1. [MENTION=5799877]csk1jw[/MENTION] patches

2. android-5.1.1_r8 branch update

And... if GPS is now correctly working, just hit thousand times [MENTION=5799877]csk1jw[/MENTION] Thanks button. ;)
[LG Optimus 4X HD] Nur Asyiqeen:
Hi, my phone got "Unfortunately the process com.android.phone has stopped" after flashing the newest version. What should i do?
[LG Optimus 4X HD] FaySmash:
Can't install. TWRP says "Patching System inconvendionally" for about 10 mins but nothing happens.
[LG Optimus 4X HD] Sjtaylor75:
I had the same error as Nur Asyiqeen, but I only cleared cache and dalvik cache...
[LG Optimus 4X HD] streambinder:
It seems android-5.1.1-r8 broke out with old versions Phone app configurations. As already said, just wipe its cache and data, in order to reinizialize it.
[LG Optimus 4X HD] csk1jw:
This is very annoying because telephony service is restarting and this makes it very hard to reach the "Settings->Apps" to clear the apps specific data/cache. Well, if you don't mind a factory reset, then this will also solve your problem.

For simplicity and avoid the big hammer of factory reset, you should do it from ADB in recovery.

$ adb mount /data
$ adb shell rm -fr /data/data/com.android.contacts
$ adb shell rm -fr /data/data/com.android.providers.contacts
$ adb shell rm -fr /data/data/com.android.providers.telephony
$ adb reboot

You will lose all the contacts on the phone, so make sure it will re-sync with contacts from the cloud storage.
[LG Optimus 4X HD] Raffaele85:
So it isn't enough do wipe cache and dalvik before and after the update of the ROM?
[LG Optimus 4X HD] csk1jw:
If you have such error, then wipe cache/dalvik is not good enough, because it is the app data that is causing the problem.

Sent from my LG-P880
[LG Optimus 4X HD] lg-optimus:
I used twrp-2.8.6.0-p880.img with aosplp-20150714-p880.zip and mdpi_minigapps-5.1.1-20150605-signed.zip and till now I had no problems. Before I wiped everything possible using "advanced wipe" except the external sdcard (which I normally do).

I will give a feedback to gps ASAP, but to check it I have to go to a foreign country, where I had problems today again with another ROM. It can take a week or longer maybe to test gps. It looks like there is a gap with GPS reception, when you change from your home carrier to a foreign carrier, because I had a long time "weak gps or no gps" with Sygic, but half an hour later, I had gps reception from time to time, sometimes it worked, then not. Let's see how this ROM works with GPS. I will try it without any helping app like TopNTP.

A short test in front of the house didn't show any difference to a previous ROM, I had a fix within 1 minute, using AGPS. I used GPS Test Plus to test. There was a situation when the phone vibrated and no GPS reception was shown but after a few seconds I had a fix again (13 satellites in view, 8-9 used for fix). Indoors no satellites are shown, but I do not expect, that it worked indoors, although I could get a fix with luck indoors with the stock ROM a long time ago.
[LG Optimus 4X HD] csk1jw:
[MENTION=4530638]lg-optimus[/MENTION]

You've got to understand how GPS/A-GPS works in general. For a real, unassisted GPS, it typically takes 3~5 minutes to lock at cold-start and 45 seconds ~ 1 minute for hot-start. When it locked, it means that it has acquired positional data from at least 4 or more satellites, and this requires line-of-sight of the clear sky. This is high accuracy positional data, typically within 10-30 meters of variance.

A-GPS, on the other hand, uses WiFi network and cellular towers location to calculate a coarse estimate of current location. The phone relays WiFI IDs and cellular towers IDs to servers (in this case, Google) to look up the positional data. The advantage of this is location data is fast and quick, but less accurate. And, it works even indoors, especially in malls and office complexes.

Your testing are focusing on the real GPS, which has always been working on this ROM. And hence, you are not observing any difference. If you use Google Maps or Yelp, then you will notice how fast the apps acquired location compared previously. You also need to make sure "Settings->Location" is set to "High accuracy" to take advantage of A-GPS.
[LG Optimus 4X HD] Raffaele85:
sorry I don't understand, I have to do this command from PC and the phone has to be in recovery, is it right?
[LG Optimus 4X HD] Nur Asyiqeen:
Thanks for the reply. I wiped data during recovery. The GPS works like a charm indoors
[LG Optimus 4X HD] lg-optimus:
I know what you wrote, my problem of understanding is, why I loose GPS, when I drive to a foreign country. Assume I am driving for 1 hour or more with a gps fix in my home country and then I am going to a foreign country and I loose the fix. It is still the same situation, like blue sky and wide fields. So maybe the priority is AGPS and not GPS, when the position is calculated.

Yesterday I thought, maybe the problem is "High accuracy", because with my Nexus 7 I have GPS only because there is no active SIM and there it is a lot better. I am aware that AGPS doesn't work then. With the Nexus 7 I have a fix within a minute or maybe a few minutes, but then the fix remains if I am driving to a foreign country, while I losse it with the P880.
[LG Optimus 4X HD] csk1jw:
[MENTION=4530638]lg-optimus[/MENTION]

You have a very specific case which is irrelevant to A-GPS in general, but it is related to real GPS losing lock after getting locked for some time. This can happen sometimes, I believe due to atmospheric interference, but it should be able to re-lock in a very short time. It can also happen to real GPS unit, such as my Garmin GPS. Think of similar situation such as driving through a tunnel.

If the real GPS is losing lock at the crossing of borders, then I presume this must be related to navigation SW issues. Certain events within the SW triggered and interfered with the processing of GPS positional data.

I think the option for you is to experiment with different navigation SW if similar GPS issues arise. Or, go back to LG stock v20c JB ROM and see if the same navigation SW is behaving properly at crossing the borders.
[LG Optimus 4X HD] lg-optimus:
Today I tried GPS only in my home country (data and wifi was turned off too), which leads to wrong navigation in the first minutes and after 20 minutes there is still a position which can be 20-50 meters away from the actual position, in other words I do not get correct orders how to drive, so A-GPS would be very useful in this situation. Then there was only 1 problem for the rest of the day with GPS, when I was in the alps with a very bad gsm reception, but IMO this shouldn't matter, since I used GPS only. It was a bright day, so there was no reason why GPS shouldn't work, no small valleys or something else which can be a problem for gps.

I had this situation so often, lock for hours and then a problem with a gps fix. Never went through a large tunnel in a foreign country, but in my home country, this was never a problem with AGPS activated. With luck I got even a speed camera warning immediately after the tunnel, where the speed camera is situated.

Is there a way to get an acousting warning, when gps fix is lost?

I had already decided to go back to stock, but then I read your posting about gps. I am testing your ROM for a few days and then I will decide if I go back to stock. Unfortunately this is a little bit tricky. Zaiben ends in a boot loop, so I have to get it work, to flash a kdz-file, which is not so easy, since I use a linux pc. AFAIR the stock ROM was perfect with GPS, but there have been some other issues which let me install a custom ROM.

Should A-GPS work in foreign countries too or does this depend on the carrier? Sometimes I think, I "loose" A-GPS in the foreign country and then the position has to be defined by the gps only and this takes time to fix.
[LG Optimus 4X HD] csk1jw:
Turning off data and WiFi may not disable A-GPS. The cellular tower ID would still be accessible as long as your GSM service is active. Google Location service can still scan for WiFi IDs even when WiFi is turned off. This is the default behavior from Android 5 setup wizard, unless you disable this option from WiFi Advanced settings. If you want to disable A-GPS completely, then the best way is to set Location mode to "Device only".

It depends on the navigation SW. Google Maps will have voice notification "GPS signals lost" when Location mode is "Device only". My Garmin GPS will also speak out similar voice notification.

It should as long as you have data connectivity, but your carrier settings may restrict data connectivity if it ends up on data roaming from foreign countries.
[LG Optimus 4X HD] lg-optimus:
That's what I did (in the menu) and I disabled Wifi and data with Power Toggles too.

So an acoustic warning can not be set with the features of the ROM?

And that is my problem exactly, data plans for foreign countries are expensive, so I have a data plan for my home country only and there my position calculation works perfect most times with AGPS. But I noticed another thing. GPS was disabled, Wifi was disabled, but a bus station was shown correctly with an app, so the position must have been calculated by the gsm network. (I wondered a lot, because it was correct and I was going to activate GPS, most times I deactivate GPS to save battery). So if the position can be calculated by the mobile network, it could be that this is tried to use in foreign countries too and then leads to problems maybe, if it doesn't work. I am guessing.

My situation is, that I am living very near to a country border in the mountains (Austria - Germany) and I am travelling a lot in the border area, where my home network could be reached sometimes 1-20km away from my home country. Is there a widget which can switch between GPS-device calculation only and GPS/AGPS combined? I have to try, but maybe it makes sense for me to switch this manually. On the other hand, I do not understand, why a fix takes so long, when I had already one a few seconds before. (as worst case). It can be, that I am going in a hypermarket for 10 min and afterwards I cannot get a fix for a long time, don't know, maybe for 10-15min. When I use my Blumax-GPS (Mediatek) in this hypermarket I can see which ways I took inside.

I want to thank you for discussing this problem with me. It drives me crazy since months.
[LG Optimus 4X HD] mahdiks:
Hey guys. I installed the latest version of the ROM. It great, smooth and speedy.

But there are 2 issues bothering me. Camera and google play doesn't work and every minute I give a message "Google play has stopped working".

Does anyone have this issue? I tried to update Google play services but be problems exist.
[LG Optimus 4X HD] ali nz:
Excuse me....When i updated my phone to this version my battery usage increased alot...for example i fully charge my phone at night and when i wake up at morning it becomes 80%! Is it for this new version of rom?
[LG Optimus 4X HD] Devis73:
Camera problem scanning QRCode

Hi all

I've just installed your splendid ROM in my LG P880 phone

IT's well functioning, but I have a problem using camera

I need to scan QRCode to activate mobile banking app, but it does nt function and it doesn't recognize qrcode. It seems images are disturbed and not stable. Is there any solution for this ?

Thanks in advance

And thanks very much for your great job
[LG Optimus 4X HD] lg-optimus:
What I found out for my phone is, that GPS reception is very poor without AGPS. AGPS helps a lot, but then a data plan must be available, which I have in my home country only. I had problems too now in my home country without AGPS. Driving in a valley (400-500m broad, clear sky) I lost the GPS fix., the phone was behind the windshield.

I can confirm, that with the newest ROM battery drain is bigger than before.
[LG Optimus 4X HD] Raffaele85:
hi all, with last build of this ROM wifi/3G geolacation works fine but there is a very big problem: the phone doesn't go in deep sleep, [MENTION=5889675]streambinder[/MENTION] or [MENTION=5799877]csk1jw[/MENTION] can be this bug fix?
[LG Optimus 4X HD] varadinum:
I have the same problem. [emoji30]
[LG Optimus 4X HD] Nur Asyiqeen:
Im sorry i did not know the difference between AGPS and GPS before. After doing some reading, you are right. It needs wifi/data to get the current location. It is hopeless if it only depends on the GPS. And yes, after a few days using the newest rom, the battery drains much faster than previous version.
[LG Optimus 4X HD] Landi01:
Hello community,

Since a few days, I can neither use the phone or send a SMS. I used the version "20150423" and "20150714". When I want to make a phone call, the call is immediatly ended and when sedning a SMS, it fails to deliver it. I already have tried to make a complete fresh installation of two different versions, bot nothing seems to work. I hope somenone here can help me.

Landi
[LG Optimus 4X HD] Raffaele85:
I tried to switch off the geolocation option but it doesn't fix
[LG Optimus 4X HD] BeBeLKhaN:
hi

i was able to install cwm from rom manager but unfortunately i have lost my vol buttons and cant use cwm :( and i cant buy cwm touch from ram manager either (due to limitations in my country)

i really like this rom and need to update it. is there anyway i can install cwm touch or twrp without flashing them from cwm? (not familiar with adb)

thank u so much :X
[LG Optimus 4X HD] Specu3800:
Use Flashify from Google Play and flash TWRP
[LG Optimus 4X HD] csk1jw:
Yes, when location was set to high accuracy the battery life really suck. Location set to device only helps battery life, but I confirmed that awake is always as shown in the battery stat. I will have to look more into what prevent it from entering deep sleep.

Sent from my LG-P880

---------- Post added at 09:55 AM ---------- Previous post was at 09:44 AM ----------

If anyone wants to help debugging this, then please check if setting location to OFF will enable the phone to enter deep sleep.

Can someone also check if 20150625 release will be able to enter deep sleep when location set to high accuracy or device only?

Sent from my LG-P880
[LG Optimus 4X HD] Raffaele85:
hi, I confirm that the phone doesn't go in deep sleep but if geolocation is off the battery is better (however it doesn't go in deep sleep), I see that when geolocation is on google app wakes up about 500 times the phone and this worsens the battery drain. Another bug of the last build is that the phone is hotter than previous build.

I can confirm too that the 20150625 goes in deep sleep but there isn't 3G/wifi geolocation, so I would ask if it's possible to include the 3G/wifi geolocation patch in 20150625 release (I ask this to [MENTION=5889675]streambinder[/MENTION] too), I can test it if you want
[LG Optimus 4X HD] csk1jw:
Yes, I think it is possible to patch the 20150625 release for one of the fixes in framework-res.apk. I am away from my PC right now.

Sent from my LG-P880
[LG Optimus 4X HD] Raffaele85:
oh great, so I wait to some news from you or from [MENTION=5889675]streambinder[/MENTION]
[LG Optimus 4X HD] streambinder:
If you need a new compilable build, I would surely do it.

Manually patching old one isn't that similar.
[LG Optimus 4X HD] Raffaele85:
so can't you apply the A-GPS patch at the 20150625 build?
[LG Optimus 4X HD] csk1jw:
Google for Apktool_2.0.0. You can use this to decompile and recompile framework-res.apk to add the gms network location provider in xml for 20150625 release. Similar trick was used for Google webview patch to remove system webview.

Sent from my LG-P880
[LG Optimus 4X HD] Raffaele85:
is this a trick for [MENTION=5889675]streambinder[/MENTION] right?
[LG Optimus 4X HD] streambinder:
I currently know how to do it, mate, but I appreciate that. Anyway, the matter is around the fact I really have no time, except in the case I just need to launch a build and share it. It seems not to be this case, anyway.

Yup, it seems to.
[LG Optimus 4X HD] terirem:
Because of grouper blobs, probably. Try Euphoria OS, it uses original blobs.
[LG Optimus 4X HD] csk1jw:
Attached the framework-res.apk from 20150625 release patched to include <com.google.android.gms> location provider. Testers, please check if this fix is preventing the phone from entering deep sleep.

You need to replace the framework-res.apk using adb in recovery. Sorry, I don't know how to create flashable zip yet. Still learning....

adb mount /system
adb push framework-res.apk /system/framework/
[LG Optimus 4X HD] csk1jw:
Battery drain in Airplane mode

Hi,

Found another serious bug. The battery will drain very heavily in Airplane mode without rebooting. I was on a 5-hour plane and the batter drained from 83% to 3% for nothing and screen off. On my return flight, I have the AC on the plane plugged in and the phone became insanely hot from the touch at the backplate for nothing and screen OFF.

The workaround to this is cumbersome, I believe you have to switch to Airplane mode and power OFF the phone. Then power ON the phone again in Airplane mode. Now, the battery should drain normally.

Similarly, the battery will drain very fast, very sharp slope from the battery stat when GSM signals is yellow.
[LG Optimus 4X HD] csk1jw:
Fix wakelock leak in GpsLocationProvider.java

[MENTION=5889675]streambinder[/MENTION]

Trying to fix wakelock leak in GpsLocationProvider.java.

This should also improve overall system responsiveness as our GPS should be capable of on-demand time injection instead of periodic time injection. CPU and network utilization should be lower with on-demand time injection when GPS is active.

Hopefully, this will fix the battery life issue.

Update: Confirmed wakelock fixed. I can see system entering deep sleep from battery stat. I tested the following setttings

Location - High accuracy / Device only

WiFi - Always / Only when plugged in

Location history - OFF

$ git diff services/core/java/com/android/server/location/GpsLocationProvider.java
diff --git a/services/core/java/com/android/server/location/GpsLocationProvider.java b/services/core/java/com/android/server/location/GpsLocationProvider.java
index 5ae6300..f0f2543 100644
--- a/services/core/java/com/android/server/location/GpsLocationProvider.java
+++ b/services/core/java/com/android/server/location/GpsLocationProvider.java
@@ -536,6 +536,7 @@ public class GpsLocationProvider implements LocationProviderInterface {
Log.d(TAG, "GPS properties reloaded, size = " + properties.size());

// TODO: we should get rid of C2K specific setting.
+ handleEnable();
setSuplHostPort(properties.getProperty("SUPL_HOST"),
properties.getProperty("SUPL_PORT"));
mC2KServerHost = properties.getProperty("C2K_HOST");
@@ -554,6 +555,7 @@ public class GpsLocationProvider implements LocationProviderInterface {
properties.store(baos, null);
native_configuration_update(baos.toString());
Log.d(TAG, "final config = " + baos.toString());
+ handleDisable();
} catch (IOException ex) {
Log.w(TAG, "failed to dump properties contents");
}
@@ -1628,6 +1630,7 @@ public class GpsLocationProvider implements LocationProviderInterface {
private void setEngineCapabilities(int capabilities) {
mEngineCapabilities = capabilities;

+ /*
if (!hasCapability(GPS_CAPABILITY_ON_DEMAND_TIME) && !mPeriodicTimeInjection) {
mPeriodicTimeInjection = true;
requestUtcTime();
@@ -1637,6 +1640,7 @@ public class GpsLocationProvider implements LocationProviderInterface {
(capabilities & GPS_CAPABILITY_MEASUREMENTS) == GPS_CAPABILITY_MEASUREMENTS);
mGpsNavigationMessageProvider.onCapabilitiesUpdated(
(capabilities & GPS_CAPABILITY_NAV_MESSAGES) == GPS_CAPABILITY_NAV_MESSAGES);
+ */
}

/**
[LG Optimus 4X HD] Raffaele85:
hi, I use Ubuntu so have I to download the apk in my home and use the previous comands? I read the next post and i don't understand if this patch causes battery drain