[Q] Building Hammerhead branch 'android-4.4.3_r1.1' - GPS / Mobile Data Issues - Nexus 5 Q&A, Help & Troubleshooting

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.

Related

[Q] GPA17 and Maps

Hi there,
I am new to the Android world and just got a Nexus S (i9023), and am playing with it quite a lot.
I have been using GPA17 ROM and kernel since this morning, and I am mostly satisfied with it, though I do have one question :
I was using stock ROM before, and could store in cache some parts of the map in Maps, just by selecting that option in the location. But after having changed to GPA17, I just do not have access to it, though I have Maps v5.9.0...
Does anyone know why, and/or how I could fix this? (or maybe, it caches map automatically when loading it?)
I cannot post in the Dev section yet, but I do have to wait at unlocking right after I switch my Nexus S on, the desktop takes time to appear (so do the drawer...).

[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] AOSP build from SOURCE. Network Positioning don't work. NEED HELP.

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.

Google Maps Not Working *Please Help*

Hello,
I need some help regarding the google maps application. Google maps are a big part of my phone and I always use it to get to places I am not familiar with, so it's a pretty important app to have. I have been using this app for a long time now and I also started to flash firmware and root phones. I am currently flashed to a pre-rooted version of Lollipop 5.0 and now my google maps is not working.
The problem I have is, when I start navigation the arrow or cursor moves into a random area and it glitches out it does not stay with my location, it always drifts off the map and goes into a different location and it's really slow to realize where I am at. I haven't had this problem EVER until now when I flashed my firmware, I am thinking maybe flashing it has something to do with this issue.
I am updated to the latest version and no matter what I do I still can't seem to find the solution as I been looking and doing some research for a while now.
If someone could help me find the solution on how to fix this, you would be a life saver and wouldn't know how to thank you.

Installed CM11 - everything else seems to work great, Chrome crashes immediately?

So, I'm obviously not remotely an expert when it comes to Android mods, but I'm finally fed up with being stuck on Android 4.1 - since it doesn't appear we'll ever get any upgraded qwerty phones ever again, I figured I'd try diy'ing it.
I have successfully flashed TWRP, rooted the phone, and installed what I believe(?) to have been the most recent version of CM11 (I figured it'd be cleanest to keep the phone closer to what it was designed for - I've seen tons of apps require 4.4 at minimum, not too many that require 5+): cm-11-20150626-SNAPSHOT-XNG3CAO1L8-moto_msm8960_jbbl.zip. Was the most recent version I could find, anyway?
I booted it up and for the most part, everything seemed to be working. Everything except Chrome, which crashes reliably and immediately. I tried clearing all the caches (the app's cache + data, and the phone's, from recovery), uninstalling and reinstalling Chrome, I tried the beta version (crashes), I tried a fork, Brave (crashes). Other browsers are working fine, but I like Chrome.
One weird thing I did notice: I was thinking it might be a gapps issue, but weirdly, the Play store, gmail, maps, everything else just installed and seem to work out of the box before I did anything with gapps? I did also try flashing the most recent base 4.4.4 gapps zip from what I could tell (gapps-444-base-20170209-1-signed.zip), but I'm not sure how to tell if it actually did anything? It said it flashed successfully, but (other than having to wait for all my apps to recalculate because I cleared all the caches), nothing noticeably seemed to change on the front-end as a result, and yes, Chrome still crashes. Should I be using a different gapps install than that for the Photon Q? Or anything else I should check/try? Thanks!
Yay! Answered my own question, with sufficient digging!
Answer seems to be basically: the newest version of Chrome (v55) exposed some sort of weird incompatibility with CM, so the easy fix is just not to use it, at least for now. I sideloaded Chrome v54, and it stopped crashing, yay! Source: https://forum.xda-developers.com/showpost.php?p=70762641&postcount=198
Just FYI, the latest version available for this device is CM13.
They are working on Lineage.
Edit - seems you found the CM13 thread already
Yep - I'm glad to see people other than (and smarter than) myself recognize the Photon Q's unique place as being the final and, sadly, best qwerty slider available for our use, and that it therefore needs to be actively maintained even if Motorola won't... I just figured it'd be better to use an OS closer to the one the device was intended to be used with. Once I'm done testing CM11 out on my old half-working phone (re-purposed to a test phone) and push it to my new fully-functional one, I will probably at some point upgrade that first phone to the latest to try it out (probably once a Lineage build comes out, so I can be on a build that's actively being maintained). For right now, though, I figured I'd stick with CM11. Any case, looks like CM13 exposed the same Chrome issue, anyway.

Categories

Resources