GPS HAL Transplant between ROMs - Android Q&A, Help & Troubleshooting

The general question:
If, for a given device, the gps is broken in the last official stock ROM available for that device, but working properly in a custom ROM w/ a newer version of Android, is there any way to backport/copy/etc the relevant files to the older stock ROM?
The specifics (posting here, though, since I think it has MUCH broader implications to anyone with an older device w/ now useless GPS due to the 2019 Week Rollover Bug):
XT926 on Stock 4.1.2 (same problem in 4.4.2), gps rarely gets a position fix, even though 8 or more satellites have strong signal (in GPS Status & Toolbox)
If I flash cm-12.1-20160822-NIGHTLY-xt926, the GPS works PERFECTLY.
I have to believe there's a way to 'migrate' the CM12 fix back to 4.1.2, and that this would be more generally applicable across devices/ROMS?
Thanks for any expertise on this.

Related

GPS not working at all

Hey guys,
I'm having some major issues with GPS on my g/f's I5500. For some reason GPS isn't working at all. I ordered this thing online and haven't been able to get it working despite numerous attempts with suggestions from this forums and others.
Amongst *trying* to get a decent baseband on this thing, I've tried the recommended GPS optimisation apps and such to no avail. Regardless of application nothing is picking up any GPS satellites, which makes me think this is a firmware or hardware problem. I'm of course hoping it's not the latter of the two.
This is a european I5500 (looking to have an optimal configuration with froyo in Germany) being used in Germany.
I'm to the point now that I believe I need to downgrade this to a typical German 2.1 (or just an older 2.2 rom perhaps) and then let Odin update the phone accordingly. I've had a little bit of a hard time really understanding the Galaxy 5 scene (X10 user normally).
Anyone saying I need to "learn how to use the search function" can respectfully keep his opinion to himself as I have definitely given this a shot.
My basic understanding of the I5500 scene at the moment is that since 2.2 was released mostly all attention is being given to CM7.1 and roms designed for daily use are harder to get running due to bad links to Team MAD's site.
Could anyone give me a hand?
BB: LUYJP2
PDA: MDBKD9
Phone: LUYJP2
Thank you very much for reading and helping
sorry 2 x same post so deleted
Perhaps this link will help you a bit?? http://arstechnica.com/gadgets/news/2009/01/assisted-gps.ars Because your phone has AGPS instead of GPS

[Q] GB.XXKPF.WT-0.2.0 ROM - anybody used it?

I wonder anybody flashed GB.XXKPF.WT-0.2.0 ROM for Galaxy Player 5.0 INTL (YP-G70). Is there any bugs? Any improvement for wifi reception signal?
njguyc said:
I wonder anybody flashed GB.XXKPF.WT-0.2.0 ROM for Galaxy Player 5.0 INTL (YP-G70). Is there any bugs? Any improvement for wifi reception signal?
Click to expand...
Click to collapse
The only issue I see so far is some camera apps will have upside down images but I am not sure if it is even a problem of the ROM or the app. Other than that there is nothing bother me when using the rom, but I have to say that I never use any of those Samsung apps. So there may be problems that I am not aware of.
As for wifi reception, if I am right next to the router, I've got a Rssi value of -34 and Elixir2 says (98% - strong). If I am in another room (there is a solid concrete wall between the device & the router), the signal will drop to around -86 and Elixir2 will say (31% - medium), which is still usable.
Thanks WT. I used to have Skype camera upside down problem when I was on Froyo, but when upgrading to GB, it was solved. However, wifi signal was weaker than Froyo (maybe ~30% less?). Lots of forum mentioned it's a common problem for GB (regardless of model).
BTW. How differentis this ROM from G70XXKPF-rooted-rj10 (also yours)? Tinking to flash one which is more stable and battery efficient.
njguyc said:
Thanks WT. I used to have Skype camera upside down problem when I was on Froyo, but when upgrading to GB, it was solved. However, wifi signal was weaker than Froyo (maybe ~30% less?). Lots of forum mentioned it's a common problem for GB (regardless of model).
BTW. How differentis this ROM from G70XXKPF-rooted-rj10 (also yours)? Tinking to flash one which is more stable and battery efficient.
Click to expand...
Click to collapse
There is no modification to G70XXKPF-rooted-rj10 except for root and a custom kernel. If you prefer stability, G70XXKPF-rooted-rj10 will be a better bet. You can try out various kernel versions to see which one has better battery life.
The GB.XXKPF.WT ROM looks similar on the surface but all the jar files and apk files were decompiled and compiled again (because of modding). So there is a higher risk in using this ROM. Although it looks stable on my device, it is hard to say for others. Actually two users have just reported problems about flashing the 0.2.0 ROM.
As for wifi problem, I don't really see that my self. If you have some links to GB wifi problems, I can have a look.
One in our forum mentioned it too (after upgrading to GB):
http://forum.xda-developers.com/showthread.php?t=1141893&page=13
I checked my current wifi reception and have similiar signal strength as yours. However, if you revert to Froyo, you will find big improvement immediately esp a distance from your router. Should get plenty when google "poor wifi reception Gingerbread Samsung galaxy S". The other is problem of connecting hidden SSID which can be patched from Market (HiddenSSID enabler).
I can find patch for i9000 not YP-G70.
http://androidadvices.com/fix-galaxy-wifi-disconnection-poor-coverage-issue-xxjvs-235/
njguyc said:
One in our forum mentioned it too (after upgrading to GB):
http://forum.xda-developers.com/showthread.php?t=1141893&page=13
I checked my current wifi reception and have similiar signal strength as yours. However, if you revert to Froyo, you will find big improvement immediately esp a distance from your router. Should get plenty when google "poor wifi reception Gingerbread Samsung galaxy S". The other is problem of connecting hidden SSID which can be patched from Market (HiddenSSID enabler).
I can find patch for i9000 not YP-G70.
http://androidadvices.com/fix-galaxy-wifi-disconnection-poor-coverage-issue-xxjvs-235/
Click to expand...
Click to collapse
Wifi problem can be difficult to reproduce and fix because of every site is unique. The patch you found is interesting though. I peeked into that patch, it needs further study because the patch includes some binary files which looks like firmware for the wifi chip. If our player use the same chip, there is a chance that the patch may work. Or we can try restoring the firmware of Froyo and see if it will work with the current kernel. (These are all speculations though.)
Just did a binary compare of the wifi firmware of this patch with the firmware I found on our device. They are the same! So the patch you found can potentially be used on our player.
It is said only suitable for XXJVS. I've asked if it's suitable for our device (bottom of their thread), and answer is no. Interesting why it's only for one specific rom? WT, wonder if you feel better wifi reception when you were on Froyo?
Is Wifi config in any relation with kernel?
njguyc said:
It is said only suitable for XXJVS. I've asked if it's suitable for our device (bottom of their thread), and answer is no. Interesting why it's only for one specific rom? WT, wonder if you feel better wifi reception when you were on Froyo?
Is Wifi config in any relation with kernel?
Click to expand...
Click to collapse
If you unzip their "patch", you will see what is really inside. There are a couple bin files, I think those are firmware of the wifi chip (often closed source and only binary is available). Other than that, there are a number of text files for configuration of the wifi which can likely be tweaked. They didn't patch the kernel or the android framework.
Their way of flashing is odd though because the update script of the 2nd patch will overwrite what they have patched in the first patch.
If the firmware bin files are exactly the same, then what we need to do is to tweak the setting.
I am not good at this at all. Can you pls tell what tweak have they done by comparing their settings and original one on our device. Is conf file the driver for wifi chip? Really hope wifi reception can be improved on our device since it is the only way to connect internet. Currently, the signal is a lot weaker than your laptop (and only close to laptop when it is on Froyo which I am reluctant to go back).
njguyc said:
I am not good at this at all. Can you pls tell what tweak have they done by comparing their settings and original one on our device. Is conf file the driver for wifi chip? Really hope wifi reception can be improved on our device since it is the only way to connect internet. Currently, the signal is a lot weaker than your laptop (and only close to laptop when it is on Froyo which I am reluctant to go back).
Click to expand...
Click to collapse
Actually I have done that before, but I will have a look this weekend and see what can be changed.
Great! Looking forward to your progress. Will be a good news for all YP-G70 users if making a success.
WT Ho said:
Actually I have done that before, but I will have a look this weekend and see what can be changed.
Click to expand...
Click to collapse
Oops! What I want to say is "I haven't done that before...". Anyway, I will first do a comparison of wifi related files of different ROM first. That will give use some idea where to start.

[Q] What is the most stable JB ROM with working GPS?

I searched through some threads and I couldn’t find a definitive answer on this that was recent.
I am currently running ICS Euphoria on my phone, but I recently started having issues with my phone missing calls intermittently. What happens is I will get a voicemail from a call that never came to my phone (no ring, no missed call). Since it has been awhile since ICS was released, I figured this would be a good time to upgrade to JB.
I’m looking for a slim, fast, and functional version. Don’t care about customization, just need a good daily driver. Specifically I’m looking for a ROM with decent GPS (as good as it can be on the vibrant anyway).
What do you guys recommend?
Slim bean, I know the final jb41 build had solid gps, not sure about jb42 beta builds. CM10 stable also hassolid gps.
Sent from my GT-P5113 using xda premium
Slim Bean seems to come highly recommended, but when I looked at it originally the big complaint was no GPS, maybe that has changed?
I have stayed away from CM roms since they seem to be more on the bloated side of things, but offer lots of customization. Really what I'm interested in is a fairly vanilla experience that runs fast and doesn't eat battery like crazy.
There are some flashable files that will help gps, yagf2, experia gps files and gps wrapper. IMO, slim is your best bet.
What you don't know could fill a book.
You can look at the thread I started here with the same Q and my experience: http://forum.xda-developers.com/showthread.php?t=2040685
Bottom line (for me so far) is that NONE will have a working GPS,
and if you do get a gps it will eat your battery with all the Kernel Wakelocks caused by the gps.
Again, this is MY experience, I know others have better exp, would appereciate if you could update what you found...
BTW, on Bionix (Froyo) my GPS worked OK, so I don't think it is my device, but who knows...
Interesting points guys. I have had a few different roms on this phone, and the best gps so far has been ICS euphoria.
I think I'll give slimbean a try. I still need to do the little hardware mod for the GPS as well. Hopefully this will net me somewhat reliable GPS.
I have a copy of PA 2.54-360 with ICS GPS files that jrongi1 sent me. If you would like it you can PM me.
The GPS worked great for me!
And I still got love for the streets..
Gps is tricky with our phones. Each is different it seems. I have an orriginal T959 so I did the harware fix. The hardware fix combined with my use of angrygps.apk. I use "supl.sonyericsson.com" port 7275 in both gps.conf and angrygps.
I dont have DS issues with 4.1 or 4.2 roms. never had.
I installed cm10 and kept the gps.conf that came with it, it looks working OK, not the best signal but that might be phone fault.
Its IMPORTANT to use port 7275 in the supl server and not 7276 as some other posts suggests, the 7276 port was the reason for the kernel wake locks and GPS drain...
Sent from my Nexus 7 using Tapatalk
RemICS-JB v1.0(Team Remics) has good GPS. Doesn't lock as fast at first. Then after few seconds it kick ass. Great rom may I say.

Install Cyanogenmod 11 on LG L7II 710 from stock 4.4.2 or 4.1.2 roms

Hi all,
this is about getting Cyanogenmod 11 installed on a LG L7II (P710).
Why should I do so?
* If you upgraded your phone to the stock 4.4.2 roms, then GPS is severly broken.
* If you use the stock rom, the google apps do use a lot of memory so that system performance is just awful.
I've been loosely following some other threads here on XDA how to solve the above problems. As a result I have written up a precise summary specifically taylored to the LG L7II and CM11.
The summary is currently on my external site. Since I am a newbie to this forum, I cannot yet post external links. So here is how to navigate to it: Goto open-terrain.org and enter "CM11" in the search box. First hit is the summary.
I hope it will be useful for others struggling with the stock 4.4.2 roms.
Cheers,
Stefan
PS: When I have time I will put the external description here.
roettger said:
Hi all,
this is about getting Cyanogenmod 11 installed on a LG L7II (P710).
Why should I do so?
* If you upgraded your phone to the stock 4.4.2 roms, then GPS is severly broken.
* If you use the stock rom, the google apps do use a lot of memory so that system performance is just awful.
I've been loosely following some other threads here on XDA how to solve the above problems. As a result I have written up a precise summary specifically taylored to the LG L7II and CM11.
The summary is currently on my external site. Since I am a newbie to this forum, I cannot yet post external links. So here is how to navigate to it: Goto open-terrain.org and enter "CM11" in the search box. First hit is the summary.
I hope it will be useful for others struggling with the stock 4.4.2 roms.
Cheers,
Stefan
PS: When I have time I will put the external description here.
Click to expand...
Click to collapse
In stock 4.4.2 check system/etc/gps.conf...
maxx_hr said:
In stock 4.4.2 check system/etc/gps.conf...
Click to expand...
Click to collapse
Yes, I would have loved to fix the system gps setup, but to do so a rooted device is necessry. On my LG L7II 4.4.2, however, I did not find any exploit that was acutally working as proposed.
So the only option I found was to use the LGFlashTool and flash a completely new rom. When flashing a new rom anyway, it is best to not flash a modified stock 4.1.2 or 4.4.2 rom, since those do not play well with memory and make the system awfully slow - at least compared to the CM11 system I choose to flash.
The main reason is the number of google services and non-removable gapps installed, so that the free memory is very low - in the low 200 MBs. This leads to a complete wipe of the launcher when a new app is started. Switching forth and back between the launcher and gmaps, for example, took an endless minute on my system at the end (I remember that is was much faster with the initial versions of the google apps, which came shipped with the stock rom).
So to sum up: Do not upgrade your LG L7II to the stock 4.4.2 roms. Stay with 4.1.2 or flash CM11 for a much better experience.
roettger said:
Yes, I would have loved to fix the system gps setup, but to do so a rooted device is necessry. On my LG L7II 4.4.2, however, I did not find any exploit that was acutally working as proposed.
So the only option I found was to use the LGFlashTool and flash a completely new rom. When flashing a new rom anyway, it is best to not flash a modified stock 4.1.2 or 4.4.2 rom, since those do not play well with memory and make the system awfully slow - at least compared to the CM11 system I choose to flash.
The main reason is the number of google services and non-removable gapps installed, so that the free memory is very low - in the low 200 MBs. This leads to a complete wipe of the launcher when a new app is started. Switching forth and back between the launcher and gmaps, for example, took an endless minute on my system at the end (I remember that is was much faster with the initial versions of the google apps, which came shipped with the stock rom).
So to sum up: Do not upgrade your LG L7II to the stock 4.4.2 roms. Stay with 4.1.2 or flash CM11 for a much better experience.
Click to expand...
Click to collapse
Since I have tried almost everything you could to try to P710 (published, unpublished, from different sources, including my own efforts/mods), I agree that for now the fastest fw for our device is stock JB 4.1.2.
But, CM11 and KK4.4.2 is by performances equal. You must don't look on that performances on fresh install, you must try them in real world, with all added software you use every day. Of course, I didn't talk about stock 4.4.2 out of the box, you must uninstall bloatware, and fine tune it. I don't see problem with installing prepared rootable kdz, it is easy for every noob. So CM11, imo is not significantly better experience, but it is different, and that is nice.
And if you have time, you can try Christi's CM10 ( http://forum.xda-developers.com/optimus-l3-l5-l7-l9-ii/orig-development/rom-cyanogenmod-10-l7-ii-t3048672 ). This is early release, with some problems, but this is also rom we all waiting for, try and see.
For the end, 4.4.2 is not so desperatly bad, if you like KK features, but need some workaround to get what you need. I use it half year...
BR
I can say that when I upgraded my P714 to CM11, GPS could hardly get a fix. Installing FasterGPS helped a bit, but I still couldn't get fixes most of the time. Very frustrating when you use Waze for instance. I don't recall having such problems with Stock 4.4.2. Anyway when reverting to Stock (Purified) 4.1.2, GPS came back to normal (and many other problems were solved, mainly the device performance and stability).
Digdis said:
I can say that when I upgraded my P714 to CM11, GPS could hardly get a fix. Installing FasterGPS helped a bit, but I still couldn't get fixes most of the time. Very frustrating when you use Waze for instance. I don't recall having such problems with Stock 4.4.2. Anyway when reverting to Stock (Purified) 4.1.2, GPS came back to normal (and many other problems were solved, mainly the device performance and stability).
Click to expand...
Click to collapse
I did a quick test: I've got a new untouched stock 4.4.2 LGL7II and an old one with CM11 (former 4.1.2). I put those two onto the sill and let GPS run for a quite a while. They both had trouble to get a fix in the first place. Eventually the CM11 found a fix with 7 satellites and about 12m resolution which is about what I would expect for the conditions. The stock 4.4.2 found a fix with even 8 satellites but still reported an accuracy of no more than 70meters no matter how many satellites it found.
I mean, the GPS module of the LG L7II is not one of the most renowned ones, but showing 70m accuracy while the other one reports 10m under the same conditions is not what I expected. There must be a software or setup problem with 4.4.2. The actual position was identical to the CM11, but the accuracy appears to be bogus. Could it be that the hardware is working well in principle, just the accuracy is reported wrong due to a software bug?
In comparison to 4.1.2 the CM11 may appear to find a fix slower, but in my experience the accuracy is about the same as with 4.1.2. And I occasionally had the 4.1.2 search for 15 minutes to get a fix. It also had a "bad-hair-day" in Sardinia, when it searched for more than half an hour under pretty good conditions. Afterwards it reported an altitude of -3000m. If you really are into outdoors there are better options, but it is still a nice cheap device to play around.
roettger said:
I did a quick test: I've got a new untouched stock 4.4.2 LGL7II and an old one with CM11 (former 4.1.2). I put those two onto the sill and let GPS run for a quite a while. They both had trouble to get a fix in the first place. Eventually the CM11 found a fix with 7 satellites and about 12m resolution which is about what I would expect for the conditions. The stock 4.4.2 found a fix with even 8 satellites but still reported an accuracy of no more than 70meters no matter how many satellites it found.
I mean, the GPS module of the LG L7II is not one of the most renowned ones, but showing 70m accuracy while the other one reports 10m under the same conditions is not what I expected. There must be a software or setup problem with 4.4.2. The actual position was identical to the CM11, but the accuracy appears to be bogus. Could it be that the hardware is working well in principle, just the accuracy is reported wrong due to a software bug?
In comparison to 4.1.2 the CM11 may appear to find a fix slower, but in my experience the accuracy is about the same as with 4.1.2. And I occasionally had the 4.1.2 search for 15 minutes to get a fix. It also had a "bad-hair-day" in Sardinia, when it searched for more than half an hour under pretty good conditions. Afterwards it reported an altitude of -3000m. If you really are into outdoors there are better options, but it is still a nice cheap device to play around.
Click to expand...
Click to collapse
What can I say, what I experienced was the opposite. Same device, same conditions, only difference was the ROM.
Digdis said:
What can I say, what I experienced was the opposite. Same device, same conditions, only difference was the ROM.
Click to expand...
Click to collapse
After quite some testing with my two devices, I conclude that the GPS module of the LG L7II in general is flawed, at least on my older one and to some extent on my newer one. With CM11 the problems persist and unfortunately I cannot tell whether or not they are caused by the GPS module, a particular rom or model number/age. Probably the entire package. The GPS module occasionally is experiencing severe startup problems even under optimal conditions both with CM11 and with 4.4.2. My older device with CM11 sometimes sits there for 15 minutes doing nothing other than reporting 10 satellites but not getting a single fix. Next day it gets a fix on the same location in a couple of seconds. My newer device with 4.4.2 does not behave much different, but on average it shows 1 or 2 satellites more. Whatever reason there might be for it.
roettger said:
After quite some testing with my two devices, I conclude that the GPS module of the LG L7II in general is flawed, at least on my older one and to some extent on my newer one. With CM11 the problems persist and unfortunately I cannot tell whether or not they are caused by the GPS module, a particular rom or model number/age. Probably the entire package. The GPS module occasionally is experiencing severe startup problems even under optimal conditions both with CM11 and with 4.4.2. My older device with CM11 sometimes sits there for 15 minutes doing nothing other than reporting 10 satellites but not getting a single fix. Next day it gets a fix on the same location in a couple of seconds. My newer device with 4.4.2 does not behave much different, but on average it shows 1 or 2 satellites more. Whatever reason there might be for it.
Click to expand...
Click to collapse
Right. Your experience with CM11 (showing many satellites, but not getting a fix) is exactly what I had in this ROM. Right now with 4.1.2, I have momentary losses of satellite reception when driving, but overall experience is OK. I agree that there are other devices with better GPS modules.

Any GPS issues when rooted?

I've been rooting my android phones since Cupcake. This is my first Android that i haven't found a need to root. I don't have any complaints aside from tethering limits and bloatware.
My issues with rooted Android is the buggy GPS functionality. I have had zeros issues with GPS since buying my S5 and that has been the main reason I've steered clear of rooting. But now I'm coming to a cross road because the S6 doesn't impress me and it's making me want to keep my S5 a little longer.
Are there any GPS issues when rooted?
Ive searched but can't find anything specific.
Thanks in advance.
I had GPS issues with a certain rom, but it's fine on any other rom. As far as just simply rooting, you'll be fine! Enjoy!

Categories

Resources