Go Back   xda-developers > Dream > Dream android development

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 11th November 2009, 03:07 PM
lp894 lp894 is offline
Member
 
Join Date: Nov 2007
Posts: 34
Default Installing Maps w/ Navigation

Thanks to FollowingInsanity for editing the build.prop file to get it working corectly, and thanks to Maxisma for the Droid dump. Thanks to everyone else who pitched in on this whole thing. Really all I did was realize the exact line that needed to be changed....everyone else did the rest

Here are instructions on how I got the new maps w/ Navigation to work via adb. I'm running the official rooted 1.6 build, but this should work for anyone.

(if you don't know how you use adb, go to the here

Next, you need to uninstall the old maps.apk file and here's how I personally did it since you can't just go to "uninstall" from the Application Settings(these instructions start already in the ADB shell):
Quote:
# mount -o rw,remount /dev/block/mtdblock3 /system
# cd system
# cd app
# rm xxxxxxx (this is whatever your maps.apk is titled. sometimes is just maps.apk, but it could also be com.android.google.maps.apk or somethin like that)
# exit
Now you've uninstalled the google maps. You can then do these next steps outside of adb.(for instructions purposes i'm using my own Android location):
Quote:
C:\android\tools> adb pull /system/build.prop C:\Android
C:\android\tools> adb pull /system/build.sapphire.prop C:\Android
The 2nd may not be may be build.trout.prop or something to that effect...build.xxxx.prop
Next, change those 2 file names on your PC from build.prop to build-backup.prop and build.xxxx-backup.prop(if you have one) so that you don't lose those files in case anything stupid happens in the mean time lol.

Make a 2nd copy of build.xxxx-backup.prop and rename it is build.xxxx.prop. So now you should have a build.xxxx.prop AND a build.xxxx-backup.prop

Now you'll need the build.prop file to use

build.prop
(IF you are running a sapphire build, you can also use the build.sapphire.prop file located there and skip down to "re-loading prop files")

I saved that file to the same location that I saved my original files.

open build.xxxx.prop in notepad. look for where it says:
Quote:
ro.build.description=kila-user 1.6 DRC83 14721 ota-rel-keys,release-keys
ro.build.fingerprint=xxxxxxxxxx:user/ota-rel-keys,release-keys
# end build properties
you'll need to delete the line that says ro.build.fingerprint=xxxxxxxxxx:user/ota-rel-keys,release-keys but DO NOT delete the line that says #end build properties

replace the line you deleted with the following:

ro.build.fingerprint=verizon/voles/sholes/sholes:2.0/ESD20/17572:user/ota-rel-keys,release-keys

Reloading Prop Files

next, back in your command line window do the following:
Quote:
c:\android\tools> adb push c:\android\build.prop /system/
c:\android\tools> adb push c:\android\build.xxxx.prop /system/
then restart your phone

while the phone is restarting, go back and rename your build.prop and build.xxxx.prop files to build-update.prop and build.xxxx-update.prop, then change your build-backup.prop and build.xxxx-backup.prop to build.prop and build.xxxx.prop

After it restarts you'll want to locate your maps.apk file(the new one) and go back into your command line and type:
Quote:
c:\android\tools> adb shell
# mount -o rw,remount /dev/block/mtdblock3 /system
# exit
c:\android\tools> adb install c:\android\maps.apk
(install crap...if it doesn't install correctly then don't do whats below)
Go check your google maps, type in two locations and click "go" and on the next screen you should see a button that says "Navigate"

go back to your command line screen and type:

Sorry if this is confusing, anyone who could make it more simple, please feel free to give it a try, but this is the best I could offer so people wouldn't have to go looking though the whole think tank thread to get everything they need to get it working



IF THE INSTALL GAVE YOU AND INVALID_UPGRADE ERROR THEN TRY THIS:
(again these instructions are using my own android sdk location, replace the
Quote:
c:\android\tools with YOUR sdk location
from the command line type the following:
c:\android\tools> adb shell
# mount -o rw,remount /dev/block/mtdblock3 /system
# exit
c:\android\tools> adb pull /data/system/packages.xml c:\android\
BACK UP THIS FILE BEFORE EDITING IT

Once that's done, open that xml file in a text editor hit ctrl+f and search for maps, the first one will probably say auth.sitemaps, ignore that, keep searching untile you get to something to the effect of com.android.google.maps.apk or something like that. when you see that, you'll want to delete everything from "<packagename=" to "</package>" for the google maps app. BE VERY CAREFUL!!!! you don't want to accidentally delete something else, thus the reason for the back up.

after you've done that, go back to your command prompt and type:
Quote:
c:\android\tools> adb push c:\android\ /data/system/packages.xml
c:\android\tools> adb install c:\android\maps.apk
it should then install perfectly fine. thats what I had to do to get it to work for me

Last edited by lp894; 11th November 2009 at 04:02 PM.. Reason: I deleted a few steps, and the build.prop file works with sapphire builds only
Reply With Quote
Sponsored Links

  #2  
Old 11th November 2009, 03:13 PM
Carloswithac's Avatar
Carloswithac Carloswithac is offline
Senior Member
 
Join Date: Jan 2009
Location: Pacific Beach
Posts: 108
Default

I love you guys! will try this when I get home from work!
Reply With Quote

  #3  
Old 11th November 2009, 03:19 PM
jikei jikei is offline
Member
 
Join Date: Mar 2009
Posts: 31
Default

it does not appear to be 100% working....yet...

as posted by dwang, http://forum.xda-developers.com/show...&postcount=275

Quote:
Originally Posted by dwang View Post
If you push the old build.prop files back, after a while, the nav option disappears.
which I can confirm. About midnight last night it was working okay, and this morning it was gone.

followinginsanity says he will work on it today. http://forum.xda-developers.com/show...&postcount=278

Quote:
Originally Posted by followinginsanity View Post
Confirmed... will work on it tomorrow.....
may not want to rush to get it working only for it to not work a few hours later...but ..like most people here...that probably won't stop many
Reply With Quote

  #4  
Old 11th November 2009, 03:47 PM
lp894 lp894 is offline
Member
 
Join Date: Nov 2007
Posts: 34
Default

I edited the build.prop file...and now it will only work with Sapphire builds. For CM builds, build.prop file that FollowingInsanity created
Reply With Quote

  #5  
Old 11th November 2009, 03:50 PM
Takenover83's Avatar
Takenover83 Takenover83 is offline
Member
 
Join Date: Nov 2009
Posts: 70
Default

Code:
c:\android\tools> abd push c:\android\build.prop /system/
c:\android\tools> abd push c:\android\build.xxxx.prop /system/
Should be

Code:
c:\android\tools> adb push c:\android\build.prop /system/
c:\android\tools> adb push c:\android\build.xxxx.prop /system/
Reply With Quote

  #6  
Old 11th November 2009, 04:03 PM
lp894 lp894 is offline
Member
 
Join Date: Nov 2007
Posts: 34
Default

Quote:
Originally Posted by Takenover83 View Post
Code:
c:\android\tools> abd push c:\android\build.prop /system/
c:\android\tools> abd push c:\android\build.xxxx.prop /system/
Should be

Code:
c:\android\tools> adb push c:\android\build.prop /system/
c:\android\tools> adb push c:\android\build.xxxx.prop /system/
Changed lol. thanks
Reply With Quote

  #7  
Old 11th November 2009, 04:13 PM
ahronzombi's Avatar
ahronzombi ahronzombi is offline
Senior Member
 
Join Date: Jul 2007
Location: buffalo
Posts: 116
Default

where can i get the new maps apk? the old one fails to install
__________________
Phone: Black TMobile G1
Rom: Cyanogen 4.1(latest point release)
Recovery: Recovery 1.4
SPL: HardSPL 1.33.2005
Radio: 62.50S.20.17H_2.22.19.26I
@AhronZombi
website: http://tcotu.net
Reply With Quote

  #8  
Old 11th November 2009, 04:16 PM
ahronzombi's Avatar
ahronzombi ahronzombi is offline
Senior Member
 
Join Date: Jul 2007
Location: buffalo
Posts: 116
Default

i get error
Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE]
__________________
Phone: Black TMobile G1
Rom: Cyanogen 4.1(latest point release)
Recovery: Recovery 1.4
SPL: HardSPL 1.33.2005
Radio: 62.50S.20.17H_2.22.19.26I
@AhronZombi
website: http://tcotu.net
Reply With Quote

  #9  
Old 11th November 2009, 04:17 PM
JAguirre1231 JAguirre1231 is offline
Senior Member
 
Join Date: Jun 2009
Location: I'm Guessing your mom isn't a valid city
Posts: 581
Default

Quote:
Originally Posted by ahronzombi View Post
where can i get the new maps apk? the old one fails to install
http://forum.xda-developers.com/show...&postcount=196

That's the one I did, it also has all the needed files just grab the files from there and you should be able to use them for these instructions
__________________
Hero-Sense Mutant Rom

Think I helped? Donate
Reply With Quote

  #10  
Old 11th November 2009, 04:19 PM
JAguirre1231 JAguirre1231 is offline
Senior Member
 
Join Date: Jun 2009
Location: I'm Guessing your mom isn't a valid city
Posts: 581
Default

Quote:
Originally Posted by ahronzombi View Post
i get error
Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE]
When that happens you need to:
adb push <path to>/Maps.apk /system/app
adb shell
# install /system/app/Maps.apk
# exit
__________________
Hero-Sense Mutant Rom

Think I helped? Donate
Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 10:10 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.