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

Discussion in 'Bugs' started by AirieFenix, Apr 16, 2013.

  1. AirieFenix

    AirieFenixMembers

    Oct 7, 2012
    53
    3
    18
    Male
    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.
     
  2. ingbrzy

    ingbrzyXiaomi.eu Multilang leader
    Staff Member

    Great find..! we will look into it... Thank you...
     
    AirieFenix and dp4u4umi6ev like this.
  3. 1982Strand

    1982StrandMembers

    Apr 2, 2011
    204
    10
    40
  4. AirieFenix

    AirieFenixMembers

    Oct 7, 2012
    53
    3
    18
    Male
  5. 1982Strand

    1982StrandMembers

    Apr 2, 2011
    204
    10
    40
  6. AirieFenix

    AirieFenixMembers

    Oct 7, 2012
    53
    3
    18
    Male
  7. 1982Strand

    1982StrandMembers

    Apr 2, 2011
    204
    10
    40
    Great!
    Glad i could help ;-)

    Sendt fra min GT-I9300 med Tapatalk2
     
  8. iBotPeaches

    iBotPeachesScript Gatekeeper

    Oct 31, 2011
    3,811
    1,115
    335
    Kansas
    Its a part file, not xml :) You need an additional script which merges .part files into xml files.
     
  9. Medina

    MedinaMembers

    Dec 27, 2011
    245
    216
    65
    Is it possible I have the same problem on MI 2? Or is it something else?
    If so can you please make a fix for us as well?
    Thank you :)

    Sent from my MI 2 using Tapatalk 2
     
  10. ingbrzy

    ingbrzyXiaomi.eu Multilang leader
    Staff Member

    No.. On Mi2 its ok..
     
  11. hadron

    hadronMembers

    Sep 23, 2012
    640
    169
    82
    Male
    Please check this. It might be helpful en.miui.com/thread-2516-1-1.html

    Sent from my MI 2 using Tapatalk 4 Beta
     
  12. Rucha

    RuchaMembers

    Aug 5, 2013
    5
    1
    13
    Male
    Could you upload fixed framework-res.apk, please? Link above (dropbox) is not working anymore.
     
  13. ingbrzy

    ingbrzyXiaomi.eu Multilang leader
    Staff Member

    Just use one from our last release...

    ~Tapatalk 4~
     
  14. Vesko

    VeskoMembers

    Oct 28, 2013
    6
    0
    21
    Male
    Haskovo, Bulgaria
    I need it too :)
     
  15. Rucha

    RuchaMembers

    Aug 5, 2013
    5
    1
    13
    Male
    Vesko likes this.
  16. Vesko

    VeskoMembers

    Oct 28, 2013
    6
    0
    21
    Male
    Haskovo, Bulgaria
    How to replace it?Like normal system apk,or have to do something special?
     
  17. Rucha

    RuchaMembers

    Aug 5, 2013
    5
    1
    13
    Male
    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.
     
  18. Vesko

    VeskoMembers

    Oct 28, 2013
    6
    0
    21
    Male
    Haskovo, Bulgaria
    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 :(
     
  19. Vesko

    VeskoMembers

    Oct 28, 2013
    6
    0
    21
    Male
    Haskovo, Bulgaria
    PS.Tryed ,phone freeze @ MI logo... :( So still searching for decision....
     

Share Our Site