Possible: Froyo Maps fixes

Discussion in 'Android Hacks and Help' started by mrZoSo, Jun 7, 2010.

  1. mrZoSo
    Offline

    mrZoSo Member

    Joined:
    Dec 9, 2009
    Messages:
    412
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    GA from Philly PA
    Ratings:
    +0
    Seems like it might be based on if you installed Froyo using CW or SP, but you can always try both fixes no matter how you installed.
    See if this works and let us know.

    Installed via CW:(credit-mrZoSo)
    Using Root Explorer I did a search for maps
    I deleted:
    /data/app/com.google.android.apps.maps-1.apk
    /data/data/com.google.android.apps.maps

    If you see it in /system/app/Maps.apk, move it out to your sdcard

    Rebooted phone
    Installed Maps using the apk just moved to sdcard
    I ran maps and played in it for a minute, joined Latitude also from within Maps, just to make sure it worked and closed it.
    Then went in to Settings>Applications>Manage applications>All, tap on Maps, tap Clear data, tap Uninstall
    Went to Market and re-installed from there.

    I did notice that after it installed through Market, Maps.apk does not show in /system/app or anywhere else, the only apk showing is /data/app/com.google.android.apps.maps-1.apk

    Hope this helps, might have to do it a couple times, not sure. Seems to me the maps that is installed in the Froyo ROM is scrambled a little? for lack of better words, who knows,,,heh

    Installed via SP:(credit-tanked)
    Now after my install of Froyo: Maps wasn't accessible, I couldn't install it from the market, and wasn't in the Settings->Applications->Manage applications menu.
    Once you mount your device with read-write access (with the adb) and give adb root privileges (once again, with the adb), you must edit the /data/system/packages.xml file. There is an entry that looks something like:
    Code:
    <shared-user name="com.google.android.apps.maps" userId="10028">
    <sigs count="1">
    <cert index="13" />
    </sigs>
    <perms>
    <item name="com.android.launcher.permission.INSTALL_SHORTCUT" />
    <item name="android.permission.USE_CREDENTIALS" />
    <item name="android.permission.GET_TASKS" />
    <item name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <item name="android.permission.ACCESS_WIFI_STATE" />
    <item name="android.permission.ACCESS_COARSE_LOCATION" />
    <item name="android.permission.GET_ACCOUNTS" />
    <item name="android.permission.READ_CONTACTS" />
    <item name="android.permission.CALL_PHONE" />
    <item name="com.google.android.apps.maps.permission.PUSH_MESSAGE" />
    <item name="android.permission.WRITE_CONTACTS" />
    <item name="com.google.android.googleapps.permission.GOOGLE_AUTH" />
    <item name="com.google.android.providers.gsf.permission.READ_GSERVICES" />
    <item name="android.permission.DISABLE_KEYGUARD" />
    <item name="android.permission.READ_PHONE_STATE" />
    <item name="com.google.android.googleapps.permission.GOOGLE_AUTH.local" />
    <item name="android.permission.INTERNET" />
    <item name="android.permission.ACCESS_FINE_LOCATION" />
    <item name="android.permission.MANAGE_ACCOUNTS" />
    <item name="android.permission.VIBRATE" />
    <item name="android.permission.RECORD_AUDIO" />
    <item name="android.permission.ACCESS_NETWORK_STATE" />
    <item name="android.permission.WAKE_LOCK" />
    </perms>
    </shared-user>
    Remove this entry. Put the packages.xml file back on to your Droid and then restart. Then you should be able to install Maps from the market.

    Here is rough step by step guide
    Note: I am using a linux machine, hence no .exe after 'adb'. The commands should be very similar in Windows.
    Code:
    adb remount
    adb root
    adb shell rm /data/app/Maps.apk
    adb pull /data/system/packages.xml packages.xml
    (now edit packages.xml with your favorite text editor and remove the maps entry)
    adb push packages.xml /data/system/packages.xml
    adb reboot
    Just remember that the packages.xml file will end up in whatever folder you are executing the adb command from.
     
  2. jrodizkool01
    Offline

    jrodizkool01 Member

    Joined:
    May 23, 2010
    Messages:
    89
    Likes Received:
    0
    Trophy Points:
    6
    Ratings:
    +0
    I used root explorer to remove Maps.apk from system and I deleted /data/data/com.google.android.apps.maps then copied over the packages.xml file and used my computer to delete the entry. Replaced the old packages.xml with the new one and rebooted and install from market was successful. Thank you very much for the steps!
     
  3. J*Bishop
    Offline

    J*Bishop Member

    Joined:
    Jan 23, 2010
    Messages:
    539
    Likes Received:
    0
    Trophy Points:
    16
    Ratings:
    +0

    question. was maps not working or loaded at all on your phone? also, where did you get the new packages.xml you said you replaced?

    tia
     
  4. jrodizkool01
    Offline

    jrodizkool01 Member

    Joined:
    May 23, 2010
    Messages:
    89
    Likes Received:
    0
    Trophy Points:
    6
    Ratings:
    +0
    Actually Maps was working perfectly for me but I couldn't update it in the market successfully. The packages.xml file was located in /data/system/packages.xml and using root explorer I just copied that file to my sd card then connected my phone to the computer and edited the file myself using word pad then saved it. I copied my new edited file to my sd card and used root explorer again to replace (overwrite) the old xml file with the new one.
     
  5. J*Bishop
    Offline

    J*Bishop Member

    Joined:
    Jan 23, 2010
    Messages:
    539
    Likes Received:
    0
    Trophy Points:
    16
    Ratings:
    +0
    ok thanks. i'l try that now.
     
  6. Shelooga
    Offline

    Shelooga Member

    Joined:
    Mar 26, 2010
    Messages:
    336
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Flyers Country
    Ratings:
    +0
     
  7. jrodizkool01
    Offline

    jrodizkool01 Member

    Joined:
    May 23, 2010
    Messages:
    89
    Likes Received:
    0
    Trophy Points:
    6
    Ratings:
    +0
     
  8. JhankG
    Offline

    JhankG Silver Member

    Joined:
    Nov 1, 2009
    Messages:
    3,090
    Likes Received:
    0
    Trophy Points:
    101
    Location:
    Summerfield, NC
    Ratings:
    +0
    Quoting the same thing multiple times is making this thread hard to read.


    OP, thanks for the tip!
     
  9. Shelooga
    Offline

    Shelooga Member

    Joined:
    Mar 26, 2010
    Messages:
    336
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Flyers Country
    Ratings:
    +0
    Try the method involving the packages.xml file. it was the only way for me to fix my maps issues.[/quote]


    thats way out of my league. thats like telling pat burrell to pitch like steven strausburg.
    well depsite my girlfriend complaining about me spending all of our lunch date on my phone, i did. and i flashed 2.2 yet again after a wipe and what do you know? maps is fixed. of course the flashlight still doesnt work, but thats hardly worth bothering. and when i come back to the forum to post that ive suceeded, i see petes got a 2.2 out... now what
     
  10. Martin030908
    Offline

    Martin030908 DF Super Moderator

    Joined:
    Nov 1, 2009
    Messages:
    8,773
    Likes Received:
    0
    Trophy Points:
    151
    Ratings:
    +0
    i edited the xml file but I still get that installation was unsuccessful....
     
  11. jrodizkool01
    Offline

    jrodizkool01 Member

    Joined:
    May 23, 2010
    Messages:
    89
    Likes Received:
    0
    Trophy Points:
    6
    Ratings:
    +0
    Did you also delete the maps.apk found in the system/apps folder?
     
  12. lunargecko
    Offline

    lunargecko Member

    Joined:
    Feb 5, 2010
    Messages:
    35
    Likes Received:
    0
    Trophy Points:
    6
    Ratings:
    +0
    Yes! I finally made it work!

    What I did was delete anything with "maps" in its name using Root Explorer. (There were like 5 or more things...)

    Then I restarted my phone.

    Next, I installed Google Maps 4.2 from an apk I downloaded online, but you can probably save your apk before you delete everything with maps off of your phone.

    After that, I uninstalled it from the Manage Apps thing under settings.

    Finally, I installed Google Maps from the market and it worked! :D Whoooo~!


    Perhaps a few of these steps are redundant, but I'm not sure.
     
  13. vitomins
    Offline

    vitomins New Member

    Joined:
    Nov 18, 2009
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    1
    Ratings:
    +0
    I can gain root access through the adb shell, so I know I am rooted, but when I am in C:\android\tools, I can only do pulls. When I try to push the file back after editing, I get 'Permission denied'.

    Any suggestions?
     
  14. vitomins
    Offline

    vitomins New Member

    Joined:
    Nov 18, 2009
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    1
    Ratings:
    +0

    Since I couldn't move it in the cmd prompt, I just moved it to my sd card and then moved it to the system folder using Root Explorer. Still no luck, I cannot get Maps installed on my phone :(
     
  15. Darthvong
    Offline

    Darthvong Member

    Joined:
    Mar 30, 2010
    Messages:
    41
    Likes Received:
    0
    Trophy Points:
    6
    Ratings:
    +0
    Tried them all. None worked. Seriously thinking about unrooting at this point.