I have been looking into the reason why WIFI location doesn't work on ICS.
I worked out that it was seemingly blocked on Chinese leaked builds of ICS.
So I looked into this further, and stumbled across a thread over at XDA.
Inside framework-res.apk /res/values/strings.xml there are two lines that control WIFI location.
These are;
- Code: Select all
<string name="config_networkLocationProvider">@null</string>
<string name="config_geocodeProvider">@null</string>
which is of course incorrect. It should read this;
- Code: Select all
<string name="config_networkLocationProvider">com.google.android.location.NetworkLocationProvider</string>
<string name="config_geocodeProvider">com.google.android.location.GeocodeProvider</string>
But here is where my problems start.
I have managed to decompile framework-res.apk, and change the code.
But, when re-compiling I get errors.
It seems as if apktool is having difficulties with some ICS files. This file being one of them.
One version will compile, but not decompile etc.
So, can someone else have a go at de-compiling & re-compiling this apk?
As yet, I have not found a version of apktool that will re-compile this file.
For ease of use I have been using this. http://apkmultitool.com/node/16
This gives you an easy well=written batch file in windows. Just run this, and select what you want to do from the menus.
Just simply drop your apk into the correct folder.
Or of course we could try a different framework-res.apk that hasn't got these two lines of code set to NUL.
What do you think?




