[Q] AOSP build from SOURCE. Network Positioning don't work. NEED HELP. - Nexus 5 Q&A, Help & Troubleshooting

Hi guys. Its like the 10th thread from me lately. Appreciate all the help getting from you.
I have compiled my first ROM and i had a lot of issues with it. And with your help a lot got fixed. The ROM works 99.9 %.
I only have one more problem with the ROM and its the NETWORK POSITIONING that seems to not working.
And i really need it because i use maps and weather app constantly. Without the NETWORK POSITIONING those apps don't work.
It just waits for gps all the time. I did compile CM11 and it works like a charm. But i dont want cm11
AOSP is more like my taste and i can add all the features i want without messing with CM11 pre compiled stuff.
So if someone could point me in the right direction would be very appreciated .
Cheers.

If the build compiled without errors I'd first look at your APNs. If your getting cell service that should be enough to get location as well. Just some thoughts.

theesotericone said:
If the build compiled without errors I'd first look at your APNs. If your getting cell service that should be enough to get location as well. Just some thoughts.
Click to expand...
Click to collapse
My apns is correct and yes i have cell service of course

AOSP Build That Works With GPS
bariz143 said:
My apns is correct and yes i have cell service of course
Click to expand...
Click to collapse
http://forum.xda-developers.com/google-nexus-5/general/guide-how-to-build-aosp-source-linux-t2703036
This is my guide for the latest build of AOSP (KVT49L) with several bug fixes over the old 4.4.2 build. I just used 'GPS Test And Fix' app from the Play Store and the GPS finds 20 satellites and works in Google Maps. I did use the 'Reset GPS' and 'Download Xtra Data' options in the app and then GPS worked fine.
Hope that helps.
P.S. Often I have trouble when indoors with my Nexus 5 finding satellites so you might want to go outside and test see if the GPS works there.

KedarWolf said:
http://forum.xda-developers.com/google-nexus-5/general/guide-how-to-build-aosp-source-linux-t2703036
This is my guide for the latest build of AOSP (KVT49L) with several bug fixes over the old 4.4.2 build. I just used 'GPS Test And Fix' app from the Play Store and the GPS finds 20 satellites and works in Google Maps. I did use the 'Reset GPS' and 'Download Xtra Data' options in the app and then GPS worked fine.
Hope that helps.
P.S. Often I have trouble when indoors with my Nexus 5 finding satellites so you might want to go outside and test see if the GPS works there.
Click to expand...
Click to collapse
HI man. Yeah its your tutorial that I am using. I don't have gps issues I'm having network positioning issues. Now I am on stock ROM and when I open let's say Google Maps it knows where I am instantly. But when I use my OWN compiled ROM it just shows the country and not Street. I don't know how to explain but I hope you get it.

I am experiencing exactly the same problem with a fresh, clean, by-the-book, build of AOSP 4.4.2. I am on a Nexus 4 though.
GPS works perfectly, but Network Positioning (GPS disabled, or GPS enabled but indoors) doesn't. I have been trying to fix this issue for the past few days now, but have made no progress. Using either the 4.4.2 stock ROM or CM11, both GPS and Network Positioning work.
I am suspecting that the binary blobs are missing a file that is needed for network positioning to work, but I haven't been able to figure out which one.

Yes and because of that I stopped development. I don't get it. I did as you said exactly by the book. I tried everything for a few days and then deleted everything. How did it go for you @xdajeyk?

So, your problem reminded me of something i ran into a few years ago. I haven't build my own rom in a while, so i'm not sure sure whether this helps, but maybe it does:
Search for the lines in frameworks/base/core/res/res/values/config.xml that say:
Code:
<string-array name="config_locationProviderPackageNames" translatable="false">
<!-- The standard AOSP fused location provider -->
<item>com.android.location.fused</item>
</string-array>
And change this into:
Code:
<string-array name="config_locationProviderPackageNames" translatable="false">
<!-- The Google provider -->
<item>com.google.android.gms</item>
<!-- The standard AOSP fused location provider -->
<item>com.android.location.fused</item>
</string-array>
That may fix your problem, it did for me a while ago. Good luck building!

@mbroeders Thanks, that does indeed fix the problem. Actually, I found that solution a few hours ago by browsing around in the device tree sample inside the sources. The sample files contain an overlay file that does exactly the same. To keep in line with the sample, I also made the change inside the device tree at
Code:
device/lge/mako/overlay/frameworks/base/core/res/res/values/config.xml
. Or, @bariz143, for the Nexus 5 that file should be
Code:
device/lge/hammerhead/overlay/frameworks/base/core/res/res/values/config.xml
.
I did not, however, find a detailed explanation of what is actually going on here and why it doesn't work out of the box, so I tried to figure it out myself, mainly from the comments in that sample file and some googling around. I am recording my findings here because I believe it will help other Android n00bs like myself.
Apparently, the network location provider is not part of AOSP, but instead is distributed together with the Google Apps. To get network location to work, you need to tell the framework that it is OK to use location providers provided by Google. It does not do that by default, because they (obviously!) are signed with a different key than the one used to sign the AOSP you just built. So, by adding
Code:
<item>com.google.android.gms</item>
into config.xml, you are telling the framework that it's OK to use location providers that are signed with the same key as the APK that provides the
Code:
com.google.android.gms
app, which apparently is the app that contains the network location provider.

I am going to try this for sure. Hope it workes for me to. Thank you guys.

Related

Hey DEVS, I found something....something to help our HERO's right now

So I've been noticing that after a certain amount of use my Hero eventually slows down to the point where typing on the keyboard is frustrating because of the slow response. I did some searching and I came across this online
http://code.google.com/p/android/issues/detail?id=3453
since I'm no where near the level of a dev, I figured I'd put this out there and see if anyone can make heads or tails of it, and possibly create a signed-zip so we can just use the update feature in the recovery screen to flash it to our system.
Seems legit as a fix, and apparently this was something that was a known problem with Android 1.5 that I guess has been fixed with 2.0.
Any Dev help would be hot.
Excellent. Thank you for tracking that down.
The TL;DNR explanation: Location services are causing multiple "heartbeats" on the phone all on top of each other. One guy counted as many as 253 in 5 seconds. This consumes the CPU. I will look at the patch.
Would disabling location services be a temporary fix?
kynetx said:
Would disabling location services be a temporary fix?
Click to expand...
Click to collapse
Yes. We're pretty close to 2.1 though so shouldn't need more then that.
ive seen this problem too but not until recently, it lags the phone and drains the battery amazingly fast.
abcdfv said:
Yes. We're pretty close to 2.1 though so shouldn't need more then that.
Click to expand...
Click to collapse
I'm taking a wait and see approach on the 2.1 progress right now, what's there looks very promising but without the camera, accel., & (for me anyway because I do have alot of apps that i use) a2sd, I'm content with Fresh 1.0, just wanna get help get that issue solved cuz I'm sure I'm not the only one who is experiencing it.
PS: I know I said I have alot of apps, but I know that's not the cause because the same thing happened when I did a wipe and just left things "stock" with Fresh Rom 1.0 for a few days
If they got the accel and wifi tether working, I'd make the jump to 2.1, but I need the accel for work, and the wifi tether for internet.
What app can be used to show the system_server process? I use task manager but it isn't listed. I want to monitor this process.
Also, does anyone know about the patch? How Do you apply it?
1) I can't answer the first question. I just took the advice here and turned all location services off. My phone is back to its snappy self. The only way I'm really impacted by having to do this right now (I'm sure I'll use this phone for more after 2.1) is using google maps. I already kept GPS off when I wasn't using it but having to go into the settings and allow Location Setting before using gmaps is a PITA.
2) I know very little about android and ROM DEV but think the "patch" is programming code, only useful to people who know how to read and write it.
jdlumley said:
What app can be used to show the system_server process? I use task manager but it isn't listed. I want to monitor this process.
Also, does anyone know about the patch? How Do you apply it?
Click to expand...
Click to collapse
RoboTop???
You can use DDMS from the Android SDK toolkit to monitor processes running on the phone. Should be able to pull up a process list from there.
Now, I'm using Locale but not with Location settings for my different profiles. I also have Location settings turned on for use with Google Maps as well as the HTC Flip Clock / Beautiful Widgets Home. Surprisingly, my system_server process is sitting at 0% right now, and the phone has been on for over a day. Both DDMS and running "top -n 1" in the adb shell confirm this. If there's much of a change over the day, I'll be sure to let you know. So, it's possible that HTC found and fixed this issue with their SenseUI CDMA 1.5 build. Unlikely, but possible.
So I was seeing this issue even with the modified services.jar from that thread. Granted I didn't test it very long and it was only maxing out at 1%, but it was enough for me to feel that it wasn't working.
I have since removed HTC's location service. After rebooting it looks as if because the phone couldn't find HTC's service anymore it installed the stock one. Time to see if it makes any difference.
with my BB for example there was an application which rebooted your phone at a custom time that u have set .. is there an application that can be used to do the same with the hero? ... reboot device while u are sleeping.. so it runs nice and quick for u the next day?
flipzmode said:
So I was seeing this issue even with the modified services.jar from that thread. Granted I didn't test it very long and it was only maxing out at 1%, but it was enough for me to feel that it wasn't working.
I have since removed HTC's location service. After rebooting it looks as if because the phone couldn't find HTC's service anymore it installed the stock one. Time to see if it makes any difference.
Click to expand...
Click to collapse
On the Fresh ROM thread I thought you said that it was using 16% previously... and is this an issue that's apparent immediately or is it something that gets worse with time?
Any chance of including the modified services.jar in the next release even if it doesn't immediately appear to make a difference? I mean, if it's not crashing things and is supposed to be an improvement, then why not stick it in there, right?
Just read nearly that entire chain of messages. now somebody (fresh, ima callin you out!) dooo eeeet!
What's the word on progress for this in Fresh ROM? I have found it to be a very significant issue for me (and apparently so has my roommate), as I use location services quite a lot. GMaps being most in particular, but some other apps as well (Aloqa, Sprint Navigation). I'm really glad there's a workaround that doesn't involve a reboot!
I looked at the other link and I have downloaded both the services.jar file and the LocationManagerService.patch. Which one should I apply and do I apply it? I am having problems with this now.
bcellis said:
On the Fresh ROM thread I thought you said that it was using 16% previously... and is this an issue that's apparent immediately or is it something that gets worse with time?
Any chance of including the modified services.jar in the next release even if it doesn't immediately appear to make a difference? I mean, if it's not crashing things and is supposed to be an improvement, then why not stick it in there, right?
Click to expand...
Click to collapse
The bug is that it gets worse over time. I can include it for sure. I believe the reason it's not working is because our hero's code is all stored in services.odex, not services.jar. And I haven't been able to deodex that file yet. But I'll include it regardless because it can't hurt.
scirio said:
Just read nearly that entire chain of messages. now somebody (fresh, ima callin you out!) dooo eeeet!
Click to expand...
Click to collapse
patches11 said:
What's the word on progress for this in Fresh ROM? I have found it to be a very significant issue for me (and apparently so has my roommate), as I use location services quite a lot. GMaps being most in particular, but some other apps as well (Aloqa, Sprint Navigation). I'm really glad there's a workaround that doesn't involve a reboot!
Click to expand...
Click to collapse
I'm working on testing whether disabling HTC's location service will fix our issue. However with the release of the kitchen I was rebooting my phone non-stop. Impossible for me to know if it was working or not.
ElAguila said:
I looked at the other link and I have downloaded both the services.jar file and the LocationManagerService.patch. Which one should I apply and do I apply it? I am having problems with this now.
Click to expand...
Click to collapse
The patch is designed to apply to the source, so that won't help you. The services.jar would replace the one that's already there.
turning off location has been a dramatic difference in speed. its obvious theres something to that. it would get so bad the whole phone would lag

GPS + AUTO CONFIG + Navigon 3.5.3 = GREAT!

EDIT: 03/210/11 Well tried 9.8 and 9.9.5 Base Roms......As unmodded ROMS, first of all the are quite buggy on my Captivate.
HOWEVER, I found the Apex ROM by watsaa and GPS on my phone is FIRE HOT!! ESPECIALLY IN AUTO CONFIG! Had to wear oven mitts to old my phone!!
Here is watsaa's ROM http://forum.xda-developers.com/showthread.php?t=952588
Here are my most recent observations on the GPS, for anyone with headaches still. I have run Navigon 3.5.3 for 45 days with absolutely no problem...I decided to try a proper navigation program over Google Maps type stuff.
The point of this thread: In LbsTestMode for SUPL settings choosing "Auto Config" gives stunning GPS performance as I have with Navigon. There is no need to use any customization, and I have not used any kind of GPS fixes. I do not remember which base rom began including the "Auto Config"
Regions Tested: All over New York City; Connecticut
Phone: Captivate (ATT)
ROM: Built using Romkitchen.org/(Captivate version only tested).
Base ROM: XWJS5 9.6
CSC: XEU
Modem: Telus TLJL3 - In my opinion this is critical and this has been the best in my hands---- see here for modem thread http://forum.xda-developers.com/showthread.php?t=869628
Kernel: Speedmod kernel....works great with glitterballs also, but I am not big on over clocking etc.
1. In LBSTestMode "Application Settings": Operation Mode is standalone; Start Mode is hot start and everything else is DEFAULT.
2. In Supl Settings...just choose "Auto Config"
3. Return back to main menu and delete GPS data.
4. Then run test.
5. As long as I keep the Telus modem, this stuff works every time.
Google Maps also works fine, and of course, turn-by-turn requires download of voice synthesis program.
Good Luck !!
EDIT: this is my ROM for anyone who wants to try. Please use odin to flash to stock, master clear then flash using CW recovery.
http://www.mediafire.com/?x948ax13h8wmf9l
IT IS WHOLLY COOKED IN THE ROMKITCHEN.ORG...I TAKE NO CREDIT AT ALL FOR THE ROM.
chappatti said:
AND NAVIGON IS THE REAL THING ....it is not Google maps.
Click to expand...
Click to collapse
yea google maps suck its not meant to be a navigation software .
with that said thx for sharing your experiences with gps , you woudl have read some rom threads you would have noticed how gps subject get out of hand easy, nvm the bad comments and go on , although either refrain form posting in the dev section or be ready to get shot at ...
DAGr8 said:
yea google maps suck its not meant to be a navigation software .
with that said thx for sharing your experiences with gps , you woudl have read some rom threads you would have noticed how gps subject get out of hand easy, nvm the bad comments and go on , although either refrain form posting in the dev section or be ready to get shot at ...
Click to expand...
Click to collapse
Thanks for the support !!
Anyways....enuf of that. I will update this with my experiences with the 9.9.5 base...and a more complete how to for newer-bies.

[Q] Slow GPS fix

Hello ,
I have a problem with my optimus 3d p920 .
It seems to get a very slow GPS fix .
I been searching alot but not realy found a fix .
Can someone point me in the right direction ?
i am on XPlay3D v2.0 rom with baseband l6260_modem_sic_01.1042.00 accoring to system info of phone
.
Im having the same issue
I think it depends on the ROM settings and maybe even the build.prop file in /system/
I am using Prometheus ROM v1.4 with stock+ kernal and my GPS locks VERY quickly. I usually leave GPS enabled anyways which probably helps once its locked the first time.
I have been on other roms that takes FOREVER to lock onto GPS as well and if I recall correctly, I think some of Meemos roms had that problemf or me too.
Sorry I can't be much more help than that. My suggestion: try other roms and see how they do.
carlsberg112 said:
Hello ,
I have a problem with my optimus 3d p920 .
It seems to get a very slow GPS fix .
I been searching alot but not realy found a fix .
Can someone point me in the right direction ?
i am on XPlay3D v2.0 rom with baseband l6260_modem_sic_01.1042.00 accoring to system info of phone
.
Click to expand...
Click to collapse
What I use and I must say with success is a little apk called GPSFix.I start gps module from drawer, then start the gps fix, wait for about three secs till morr sattelites are shown then start my navigation program. Doing so in about 20 secs maximum, usually I get a 12 secs, I do get a fix.Anyway for me it works.
Sent from my LG-P920 using xda app-developers app
BigBadSheep said:
What I use and I must say with success is a little apk called GPSFix.I start gps module from drawer, then start the gps fix, wait for about three secs till morr sattelites are shown then start my navigation program. Doing so in about 20 secs maximum, usually I get a 12 secs, I do get a fix.Anyway for me it works.
Sent from my LG-P920 using xda app-developers app
Click to expand...
Click to collapse
Where do you get that ?
Check your NTP setting in:
system/etc/gps.conf
In the line:
NTP_SERVER=(you must set your closest location)
And change SUPL_PORT= to 7275
Search for your closest NTP server in www.pool.ntp.org
I found out that the GPS fix speed is ROM and/or settings dependent. For example, all the Froyo stock roms were much faster to get a GPS fix (10-20sec) comparing with the Gingerbread stock roms (45-90sec). The same applies to custom roms as well.
I would not recommend getting the GpsFix as suggested because it comes with tones of spam as you can see on the comments. Instead you could use the much more popular and with many additional features GPS Status & Toolbox.
Also if you don't want to change your NTP settings manually as suggested above, you could do it with an app called FasterFix.
I have to say though that even if the above apps could help decrease a few seconds from your GPS fix time, the most important for that is the ROM that you are using. I think it's unacceptable for LG to break the GPS fix on GB roms (together with other things) while it was working perfectly fast on Froyo.
I just made a comparison of O3D with the 6 times cheaper ZTE Blade with the app GPS Status. For O3D it took 75sec to fix and it fixed on 5/7 satellites. ZTE Blade made a fix in 11sec on 12/13 satellites!
Hello ,
Flashed XBSA V21E P920 and it seems much better , bt im gonna test more .
Thx for the help .
avelosoi said:
Check your NTP setting in:
system/etc/gps.conf
In the line:
NTP_SERVER=(you must set your closest location)
And change SUPL_PORT= to 7275
Search for your closest NTP server in www.pool.ntp.org
Click to expand...
Click to collapse
thx but in this rom i cant seem to find gps.conf .. it isnt where it suppose to be ..
botson71 said:
I found out that the GPS fix speed is ROM and/or settings dependent. For example, all the Froyo stock roms were much faster to get a GPS fix (10-20sec) comparing with the Gingerbread stock roms (45-90sec). The same applies to custom roms as well.
I would not recommend getting the GpsFix as suggested because it comes with tones of spam as you can see on the comments. Instead you could use the much more popular and with many additional features GPS Status & Toolbox.
Also if you don't want to change your NTP settings manually as suggested above, you could do it with an app called FasterFix.
I have to say though that even if the above apps could help decrease a few seconds from your GPS fix time, the most important for that is the ROM that you are using. I think it's unacceptable for LG to break the GPS fix on GB roms (together with other things) while it was working perfectly fast on Froyo.
I just made a comparison of O3D with the 6 times cheaper ZTE Blade with the app GPS Status. For O3D it took 75sec to fix and it fixed on 5/7 satellites. ZTE Blade made a fix in 11sec on 12/13 satellites!
Click to expand...
Click to collapse
You might be right even if the spam that I get is not generated by GPSFix. But even so we're talking about offline navigation, so there won't be any data connection so no spam.Even so you can use some ad blocker program, starting from rom toolbox lite, just to name one.
Sent from my LG-P920 using xda app-developers app
avelosoi said:
Check your NTP setting in:
system/etc/gps.conf
In the line:
NTP_SERVER=(you must set your closest location)
And change SUPL_PORT= to 7275
hi i just got my lg 920, leaving in south africa.
i tried every thing but i still cant get a gps fix.i edited the gps.conf files as recomended here with the following settiing
server 3.za.pool.ntp.org
server 1.africa.pool.ntp.org
server 0.africa.pool.ntp.org
can anyone please help me
Click to expand...
Click to collapse

[Q] [ROM][PROBLEM] Slimkat 4 Official and GPS problem

Hello everyone,
I have GPS problems with the latest release "Slim-xt925-4.4.2.build.4-OFFICIAL-3648".
GPS is not available with GPS status or GPS Checker apps and I can't locate myself on maps.
When I run maps for the first time after installing Slimkat with CWM 6.0.4.4. (from my original rom "JB 4.2.1 vodafone-en" which is adapted for SFR (french provider)), GPS works well. But when I change gps parameters, or just change gps function with the widget controller, GPS doesn't work anymore.
I've got the same problem with other roms like CM11.
By the way, this release of Slimkat rocks in every point. Stable, fast and well build. Love it. Except that GPS issue. Don't know what to do.
I've read that it works with "dirty flash" or location could be blocked by "privacy protection" app. I also read a topic about the same problem but for Samsung galaxy S4 and peoples are talking about flashing the "pit". It's something I never heard before on XT925 flashing method. It may just belong to samsung flashing method. Or not.
I try to find a solution on many XDA thread and on other forums but nothing appear clear or understandable to me.
If someone have any clue about that GPS issue, it would be a great pleasure to read you.
Cheers.
zozandroid said:
Hello everyone,
I have GPS problems with the latest release "Slim-xt925-4.4.2.build.4-OFFICIAL-3648".
GPS is not available with GPS status or GPS Checker apps and I can't locate myself on maps.
When I run maps for the first time after installing Slimkat with CWM 6.0.4.4. (from my original rom "JB 4.2.1 vodafone-en" which is adapted for SFR (french provider)), GPS works well. But when I change gps parameters, or just change gps function with the widget controller, GPS doesn't work anymore.
I've got the same problem with other roms like CM11.
By the way, this release of Slimkat rocks in every point. Stable, fast and well build. Love it. Except that GPS issue. Don't know what to do.
I've read that it works with "dirty flash" or location could be blocked by "privacy protection" app. I also read a topic about the same problem but for Samsung galaxy S4 and peoples are talking about flashing the "pit". It's something I never heard before on XT925 flashing method. It may just belong to samsung flashing method. Or not.
I try to find a solution on many XDA thread and on other forums but nothing appear clear or understandable to me.
If someone have any clue about that GPS issue, it would be a great pleasure to read you.
Cheers.
Click to expand...
Click to collapse
I'm with same problem..... Still didn't solve that....
It was a bad commit on their last stable release. If you would read the Slim thread, you would see that they are aware of the issue and are working to fix it.

[Q] Building Hammerhead branch 'android-4.4.3_r1.1' - GPS / Mobile Data Issues

Apologies if this is in the wrong place, I did search for quite a while and couldn't find what I was looking for.
I have built Android for the first time using the branch mentioned in the title and have flashed it to my N5. It boots up fine and i can make phone calls, use wi-fi + mobile data, I flashed gapps etc. However, I have no GPS capability from what I can ascertain. I did download the proprietary blobs from the google site and ran the extractors. I then used a guide i found on the net (which i cant post in a message as im new) to add some missing vendore files/libraries:
Missing from vendor/lge/hammerhead:
/system/app/OmaDmclient.apk
/system/etc/DxHDCP.cfg
/system/vendor/bin/vss_init
/system/vendor/firmware/discretix/dxhdcp2.b00
/system/vendor/firmware/discretix/dxhdcp2.b01
/system/vendor/firmware/discretix/dxhdcp2.b02
/system/vendor/firmware/discretix/dxhdcp2.b03
/system/vendor/firmware/discretix/dxhdcp2.mdt
/system/vendor/lib/libDxHdcp.so
/system/vendor/lib/libvdmengine.so
/system/vendor/lib/libvdmfumo.so
/system/vendor/lib/libvss_common_core.so
/system/vendor/lib/libvss_common_idl.so
/system/vendor/lib/libvss_common_iface.so
/system/vendor/lib/libvss_nv_core.so
/system/vendor/lib/libvss_nv_idl.so
/system/vendor/lib/libvss_nv_iface.so
And these, from vendor/qcom/hammerhead:
/system/app/shutdownlistener.apk
/system/app/TimeService.apk
I have re-flashed stock 4.4.3 using the google factory image and the GPS is working as expected.
Has anyone experienced these issues before?
Thanks.
In case anyone is interested, the fix for the GPS issue is as follows:
In frameworks/base/core/res/res/config.xml
add <item>com.google.android.gms</item> to config_locationProviderPackageNames. Changing the current one did not work for me but adding another item did.
I found this on a website that I can't paste into replies yet but if you google 'Nexus 5 w/AOSP' there will be a page called 'Howto Build Android KitKat (4.4) for the Google Nexus 5' in the first 5-10 results. It had the fix for GPS and some other issues like green line in the camera etc.

Categories

Resources