Latest product reviews
ARCHOS 50 Diamond
ARCHOS GamePad2
ARCHOS
Smartphones
ARCHOS
TV Connect
ARCHOS 101 XS

A A A
Avatar

Please consider registering
Guest

Search

— Forum Scope —






— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

Register Lost password?

ClockworkMod (CWM) Recovery easy install for RK3066 and RK3188 -- TWRP/CWM Flash-Tool and root for RK3288

 Please donate to support OMA and CrewRKTablets firmware work, thank you !

sp_Feed sp_TopicIcon
Making network location services work correctly on the 7c G2
Avatar
jameslewisuk
Regular Member
Forum Posts: 79
Member Since:
2012/01/20
sp_UserOfflineSmall Offline
1
2012/01/29 - 12:08
sp_Permalink sp_Print sp_EditHistory

I posted about this in the nano firmware thread but think it deserves discussion in it's own topic.

 

Network location services via 3g or wifi doesn't seem to work correctly, applications that call for location such as news/weather or beautiful widgets can't access location.  

 

I did think this could be the fix… (I think it's part of the fix)

If you look inside
/system/framework/framework-res.apk
If you decompile that you can see
/res/values/strings.xml

There are these lines in that xml file:

<string name="config_networkLocationProvider">@null</string>
<string name="config_geocodeProvider">@null</string>

I believe they should be:
<string name="config_networkLocationProvider">com.google.android.location.NetworkLocationProvider</string>
<string name="config_geocodeProvider">com.google.android.location.GeocodeProvider</string>

 

I de-compiled framework-res.apk, edited the strings.xml then recomplied and zip aligned it.  The location services still didn't work with the edit.

 

I believe the network location services provided to apps works via NetworkLocation.apk a google apk in the systemapp directory

 

I am using my ZTE skate android phone to make comparisons. 

 

If I look in /data/system/packages.list on my ZTE skate I see this line:

com.google.android.location 10018 0 /data/data/com.google.android.location
Which shows that NetworkLocation.apk is installed 

 

If I look in /data/system/packages.list on my 7g G2 tablet, the line is missing, even though NetworkLocation.apk is in the /system/app directory.

It leads me to believe that the 7c G2 tablet does not like the version of NetworkLocation.apk

Further to this, if I try to manually install NetworkLocation.apk from the systemapp directory on the 7c G2, I get the message "application not installed" when I run the APK to install it.

 

Therefore, I believe that the version of NetworkLocation.apk that Arctools puts on the devices is not compatible with the device, and isn't actually installing but just sits in the /system/app folder.  (A bit like compass and phone which don't do anything either)

 

I wonder if we can get a NetworkLocation.apk that will work ?

Avatar
jameslewisuk
Regular Member
Forum Posts: 79
Member Since:
2012/01/20
sp_UserOfflineSmall Offline
2
2012/01/29 - 12:38
sp_Permalink sp_Print sp_EditHistory

AndroidManifest.xml from inside NetworkLocation.apk, you can see it references to the strings in values.xml in framework-res.apk 

 

<?xml version="1.0" encoding="UTF-8"?>
-<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.google.android.location"
android:versionName="2.2" android:versionCode="8" android:sharedUserId="android.uid.system"> <uses-sdk android:targetSdkVersion="8" android:minSdkVersion="8"/>
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMP LETED"/>
<uses-permission android:name="android.permission.INSTALL_LOCATION_ PROVIDER"/>
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE "/>
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE "/>
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>
<uses-permission android:name="android.permission.ACCESS_COARSE_LOC ATION"/>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.WAKE_LOCK"/>
<uses-permission android:name="android.permission.WRITE_SECURE_SETT INGS"/>
<uses-permission android:name="com.google.android.providers.setting s.permission.READ_GSETTINGS"/>
<uses-permission android:name="com.google.android.providers.setting s.permission.WRITE_GSETTINGS"/>

-<application android process="system" android:label="@string/app_label"> -
<service android:name="NetworkLocationService"> -
<intent-filter>
<action android:name="com.google.android.location.NetworkL ocationProvider"/> 
<action android:name="com.google.android.location.GeocodeP rovider"/>
</intent-filter> 
</service> 
<activity android:name="ConfirmAlertActivity" android:excludeFromRecents="true" android:theme="@android:style/Theme.Dialog.Alert"/>
</application>
</manifest>

Avatar
setialpha
Nürnberg, Germany

Firmware Guru
Forum Posts: 209
Member Since:
2012/01/15
sp_UserOfflineSmall Offline

Thanks Received: 8
3
2012/01/29 - 19:07
sp_Permalink sp_Print

framework-res' string.xml is just for translation, changing here won't do anything different.

 

You would need a NL.apk that runs on the 7c g2

Avatar
setialpha
Nürnberg, Germany

Firmware Guru
Forum Posts: 209
Member Since:
2012/01/15
sp_UserOfflineSmall Offline

Thanks Received: 8

Avatar
jameslewisuk
Regular Member
Forum Posts: 79
Member Since:
2012/01/20
sp_UserOfflineSmall Offline
5
2012/01/30 - 21:49
sp_Permalink sp_Print

Thanks setialpha, 

 

That version shows as installed on settings > "all applications" list but does not seem to work

 

Wonder if there is one that willl work... any ideas what it's based on? CPU or something else?

Avatar
jameslewisuk
Regular Member
Forum Posts: 79
Member Since:
2012/01/20
sp_UserOfflineSmall Offline
6
2012/01/30 - 22:57
sp_Permalink sp_Print sp_EditHistory

Setialpha, I think this is the right version of the NetworkLocation.apk as its 113 KB (116,627 bytes) and is the same as the one I got from a Samsung Galaxy Ace phone, and the same file also on my ZTE skate phone which both use the same MSM7227 CPU

 

Not sure why it doesn't work though? I can see that it's running as I can force close it, but it's not doing anything, theres no data (in the clear cache/data page) for the application, whereas on my ZTE skate theres 16kb of data from the app running.....

 

Help!

Avatar
finless
Stanton, Ca

Contributor
Forum Posts: 604
Member Since:
2011/12/10
sp_UserOfflineSmall Offline

Thanks Received: 2
7
2012/01/31 - 03:11
sp_Permalink sp_Print

Same here, after spending a lot of time with Jim on this, I think something is disabled allowing apps to use the networklocation service.  Why I do not know.  But that APK did not work for me either.  I think we are barking up the wrong tree and when I get some time I am going to work on this more.

 

Bob

Avatar
jameslewisuk
Regular Member
Forum Posts: 79
Member Since:
2012/01/20
sp_UserOfflineSmall Offline
8
2012/01/31 - 22:50
sp_Permalink sp_Print

finless said

Same here, after spending a lot of time with Jim on this, I think something is disabled allowing apps to use the networklocation service.  Why I do not know.  But that APK did not work for me either.  I think we are barking up the wrong tree and when I get some time I am going to work on this more.

 

Bob

Bob, I'd really like to get this working too.  Let me know if you need me to do any testing.

My ZTE skate phone is the same CPU etc as well and it's rooted so might be helpful for making comparisons between working and non-working location devices 🙂

Forum Timezone: Europe/Paris

Most Users Ever Online: 749

Currently Online: kizzar07
127 Guest(s)

Currently Browsing this Page:
1 Guest(s)


Devices in use: Desktop (100), Phone (26), Tablet (2)

Top Posters:

Oma7144: 5790

globula_neagra: 2424

finless: 604

DarthJabba: 551

exelletor: 450

JochenKauz: 450

cracktech: 432

maikal: 394

Newest Members:

gilesrm

CrunCher

Topgun777

almanori76

testdrive999

woodywood1986

Forum Stats:

Groups: 10

Forums: 185

Topics: 5916

Posts: 58876

 

Member Stats:

Guest Posters: 43

Members: 256582

Moderators: 5

Admins: 1

Administrators: admin

Moderators: globula_neagra, exelletor, JochenKauz, Oma7144, cracktech


CrewRKTablets moderators: JochenKauz and Astralix