Kindle Fire Network location

atomiclama

Member
Feb 6, 2011
12
0
0
Yeah total bummer... still not working...

I wonder.. when I hit the find location icon on gmaps a white box appears but has no text. it's been like that since i installed g maps. I would have expected the box to say something like ' can't find location' or something.

Perhaps it's my gmaps? What version do yo have installed mine is 6.0.2
 

rpw128

Member
Dec 15, 2010
12
0
0
New York
Atomiclama I would suggest checking your logcat when location is requested. It didn't work very well in Google Maps, but Beautiful Widgets provides a nice load of data easily able to be parsed. For me I finally put two-and-two together when I saw that Location was being returned as "null" and I saw the location and geocode set to return "@null".

The only other files I added that I recall are covered in this link, everything else should be stock 6.2.1 (http://forum.xda-developers.com/showthread.php?t=1382925)
 

Scaevola

Senior Member
Jan 5, 2012
73
13
0
Yeah total bummer... still not working...

I wonder.. when I hit the find location icon on gmaps a white box appears but has no text. it's been like that since i installed g maps. I would have expected the box to say something like ' can't find location' or something.

Perhaps it's my gmaps? What version do yo have installed mine is 6.0.2
I have rooted 6.2.1 rom.

I did everything to its last word, all files, all permissions, everything is ok.
However, neither Beautiful Widgets nor Google Maps (both 6.0.3 and 6.1) is unable to determine my location. I get the same white box in Google Maps.

In Beautiful Widgets, it says that it has support for network based location but it indicates that it is not enabled and directs me to the settings page and of course, settings page does not have such an option.
 

andTab

Senior Member
Nov 20, 2011
691
89
28
Yes. This does not work.
Bummer. Did everything as per the instructions:
- downloaded hacked the framework-res.apk
- installed it
- did proper permissions
- rebooted

White box in Google Maps with no location.
WTF?

PS: This also wiped ALL accounts from the KF, forcing me to re-add my google, amazon and email accounts. WTF?
 
Last edited:

b63

Senior Member
Dec 8, 2011
1,660
487
0
for me it does not work eighter

recognised also that the hacked apk is 2mb smaller and makes a ugly stripe in the middle of the screen when switching display off instead of smooth fading
 

cruel91

Senior Member
Jan 8, 2012
347
54
0
Does anybody notice that Gr6 Docomo (based on stock ROM 6.2.2) can work out for Location Service ??? I tried to copy /system/framework/framework-res.apk and /system/app/NetworkLocation.apk into my Gr5, but it doesnt work. But I looked into the code of framework-res.apk, I can see the author of Docomo has edited the same as the instruction of rpw128 in page 2. I dont want to get mess to update Gr6 because I have many tweaks installed in my Gr5. Anybody can confirm that Location Service working on Gr6 ??

Update: Gr6 has Location Service working fine. Its a confirmation from the guy on Docomo thread. I don't know what is the tweak behind to enable that
 
Last edited:

rpw128

Member
Dec 15, 2010
12
0
0
New York
I can't say I am too familiar with Gr5, Gr6 or MoDaCo (perhaps I will try to familiarize myself now that I am aware), but I guess I was so busy last week I didn't even realize that Amazon (so thoughtfully) upgraded me to 6.2.2 and broke root along with everything else.

At first Location wasn't working. I did the changes I originally wrote to include the geolocation information (instead of @null). I noticed in logcat it was still returning null and realized that the NetworkLocation.apk (or in my case "com.google.android.location-2.apk") was sitting in the "data/app". Once I moved this, set chmod 644 and did a reboot my Beautiful Widget snapped out of the last location (home city) to my work city.

The odd thing about this is that even with out any changes at all Google Maps appeared to work regardless of any tweaks (post 6.2.2) - I am curious about the disconnect there. I don't know enough about the framework to make any conclusions on this.
 

kbiz01

Member
Dec 21, 2011
14
0
0
Palo Alto
Hi @rpw128,
so I was pretty excited about your approach and tried it last night on my 6.2.2 Fire and after manually building my framework-res file apktool it somewhat bricked my Fire. First a bunch of FCs then wouldn't even get past the fire logo startup. Had to use TWRP to get back to my original framework-res file. Then I tried using the framework-res file you posted, and no issues this time but still can't get location to work. I don't have Beautiful Widgets but my other location specific apps including gMaps don't find anything. I know the framework-res is in there since am getting the CRT display mod. I've double-checked the NetworkLocation.apk (got it off CM7 gapps) including permission. And aLogcat doesn't show much. This is pretty frustrating since I've even gotten Currents and other maps dependent apps to work with the other maps files. Just no dang location.

Did you rebuild your framework-res after the 6.2.2? Do you mind sharing it again so I can give it another shot?

Thanks.
 

rpw128

Member
Dec 15, 2010
12
0
0
New York
Kbiz,

I uploaded it, I'm not sure if the others had the luck I had though, didn't seem that way:
https://rapidshare.com/files/1948712148/framework-res.apk
MD5: FEC1E3CED007E05EEA1020B7E0804C7C

I hear your frustration, I was hoping this would be an easy solution once I figured it out, but I guess its never that easy. I highly suggest doing this via ADB as mine did the same as yours (FC's, boot loop, etc.) after renaming. Don't let it faze you just 'chmod 644 /system/framework/framework-res.apk' as soon as you have the rename and copied the modified APK. The next bootloop should get you back in.

Give it a whirl. The one thing that definitely seems to work is that you should get the CRT. If you do then it def took, but best shot to see location is to use Beautiful Widgets and refresh the weather in logcat you should see it grab the weather. If it still says "Null" check the NetworkLocation.APK (or the other named file I had) and make sure its in System/App folder with chmod 644.

Hope that helps!
 

kbiz01

Member
Dec 21, 2011
14
0
0
Palo Alto
rpw128,

Sadly, no dice. Went through the process again with your new framework-res.apk, went much smoother this time since I simply did it through TWRP including double checking permissions on both it and NetworkLocation.apk. CRT mode works so I know it took the framework file. I even got Beautiful Widgets and ran aLogcat while refreshing the weather and it still shows "Geocoding the location... GetMyLocation: location is null, using latest city". Even after multiple restarts.

Interesting fun fact though, the Mapguest app from Amazon app store which seems to have been designed with the Fire in mind is able to determine location from wifi. Seems to have a "LocationListener" that is calling a "SkyhookLocationService" which I'd never heard of but a quick google search found this article http://www.readwriteweb.com/archives/skyhook_brings_location-based_services_to_the_kind.php anyway, its late, am not technical enough and it shows since am getting distracted. I'll make another run at this in the future, perhaps after the next update or if I have the energy and am bored to restore to stock and go through the entire process again. Thanks for yours and all the others help though. Definitely glad I picked the fire, the active community makes all the difference.
 

rpw128

Member
Dec 15, 2010
12
0
0
New York
Kbiz,

Sorry I haven't been around in a while and sorry to hear that it didn't work. Since the CRT took It's safe to assume the pointers are in there. If you feel like it you can fiddle with the location framework files now which it seems that the KF is being "fussy" since by all means it should work. My suggestion is to look, check filenames, and check permissions (chmod 644) on these files:

-/system/framework/com.android.location.provider.jar (maker sure name is as so, and chmod 644)

-/system/framework/com.google.android.maps.jar (never know if this could mess with anything....same as above)

-/system/app/com.google.android.location-2.apk (I got frustrated with this a while ago and was a change I made based on a random post I read while trying to get this to work....give it a whirl...can't hurt, worst case you change back or uninstall)

I realize your frustration and hope you get a chance to run through and check these over in case they might happen to be the silver bullet to your issue. I really hope you can get this to work. I did notice that MapQuest included SkyHook, it is a great service but because it is per Application it is a HUGE weakness over using Google's API. Thanks for the appreciation, I hate a problem I can't solve and the fact the platform is flexible enough to do so makes me a happy camper with my Fire and Android as a whole as opposed to other fruit-based platforms....
 

Hashbang173

Inactive Recognized Developer / Inactive Recognize
May 6, 2012
2,447
3,891
0
I just downloaded a modaco custom rom. It has network location built in and it does not require wipe.