New Location services (possibly related to framework-res.apk's strings)


Oct 7, 2012
53
3
18
#1
Using MIUI v5 4.12, on Xiaomi Mi-1s.

Ok, I already point this issue in one of the changleogs and in a thread I created (http://miuiandroid.com/community/threads/location-services-point-to-china-fix.20077). Basically, location services don't work. Half the time, the device points to China, half the time it says "unavailable location".

I already tried re-flashing gapps, pushing Google's services apks into /system/app, pushing just the location ones, faster fix, GPStest... But the new came when I delete BaiduNetworkLocation.apk, since then Android insists that has location services deactivated. So, I assumed MIUI is pointing somewhere somehow to BaiduLocation...apk.

I decompile the framework-res.apk and in the strings.xml I found:

Code:
<string name="config_networkLocationProvider2">com.baidu.bms.location.BaiduNetworkLocationProvider</string>
    <string name="config_geocodeProvider">com.baidu.bms.location.BaiduGeocodeProvider</string>
Please, somebody does can take a look? It doesn't seem right, and I'm looking that it happens here and there to some users.

I'm trying to recompile with the Google provider, but I'm having issues with apktool, if somebody can recompile using V5 4.12 for Mi-1s and post it, would be great to know if that solves it.
 
Aug 5, 2013
5
1
13
#17
Just put into firmware archive and flash it. But AFAIK this is not necessary for latest firmwares. Only obsoleted firmware is needed to be fixed.
 
Oct 28, 2013
6
0
21
#18
Just put into firmware archive and flash it. But AFAIK this is not necessary for latest firmwares. Only obsoleted firmware is needed to be fixed.
I use ported ROM 3.10.25 for Newman K1 (Freelander i30) and localisation doesnt work.I deleted baidu lacalisation from system/app,replased networklocation.apk with latest from gapps,but still doesnt work.framework-res is my last hope :(
 
Oct 28, 2013
6
0
21
#19
I use ported ROM 3.10.25 for Newman K1 (Freelander i30) and localisation doesnt work.I deleted baidu lacalisation from system/app,replased networklocation.apk with latest from gapps,but still doesnt work.framework-res is my last hope :(
PS.Tryed ,phone freeze @ MI logo... :( So still searching for decision....