Michael Mayhew

Google Maps with Turn by Turn Navigation for CyanogenMod

by mmayhew on Nov.11, 2009, under Android, Technology

Final Update: Google has released Google Maps 3.2.1 in the Market with native Navigation support.  These instructions are no longer needed.

Thanks for all the support and kind words.

If you have Google Maps installed with my instructions below, it would be a good idea to revert and re-install through the Market.

Do this to revert:

ADB Instructions:

  1. Download http://mmayhew.com/4.2.5_build_files.zip
  2. Open a command prompt in the folder you unzipped  the 4.2.5_build_files.zip files
  3. Run the following commands from command prompt:
  4. adb remount
  5. adb shell rm /system/app/*maps*
  6. adb shell rm /system/app/*Maps*
  7. adb shell rm /system/sd/app/*maps*
  8. adb shell rm /system/sd/app/*Maps*
  9. adb shell rm /system/sd/dalvik-cache/*Maps*
  10. adb shell rm /system/sd/dalvik-cache/*maps*
  11. adb shell rm /data/dalvik-cache/*maps*
  12. adb shell rm /data/dalvik-cache/*Maps*
  13. adb shell rm /data/app/*Maps*
  14. adb shell rm /data/app/*maps*
  15. adb push build.prop /system/
  16. adb push build.trout.prop /system/
  17. adb push build.sapphire.prop /system/
  18. adb shell reboot
  19. Go to the Market and install Google Maps.
  20. You’re Done!

Terminal Instructions:

  1. Download http://mmayhew.com/4.2.5_build_files.zip
  2. Unzip zip
  3. Copy build.prop, build.trout.prop, build.sapphire.prop and Maps.apk to /sdcard/
  4. Open Terminal on your G1/MT3G
  5. su
  6. mount -o remount,rw /system/
  7. cp /sdcard/build.prop /system/
  8. cp /sdcard/build.trout.prop /system/
  9. cp /sdcard/build.sapphire.prop /system/
  10. rm /system/sd/app/*Maps*
  11. rm /system/sd/app/*maps*
  12. rm /system/sd/dalvik-cache/*Maps*
  13. rm /system/sd/dalvik-cache/*maps*
  14. rm /system/app/*Maps*
  15. rm /system/app/*maps*
  16. rm /data/app/*maps*
  17. rm /data/app/*Maps*
  18. rm /data/dalvik-cache/*maps*
  19. rm /data/dalvik-cache/*Maps*
  20. reboot
  21. Install Google Maps from Market
  22. You’re Done!

Update (on the Final Update):

If you get “Incompatible Update” when updating Google Maps in the Market, try the following. It has worked for me and others.

Download these files again.

ADB Users:

  1. Follow the above steps for ADB but after step 18 (reboot) do the following:
  2. Unzip files
  3. adb remount
  4. adb push Maps.apk /system/app/
    1. If you get an error that says the filesystem is read only do the following
    2. adb shell mount -o rw,remount /system/
    3. Then rerun the command
  5. Now go to the Market and try to re-install

Terminal Users:

  1. Follow the above steps for Terminal but after step 20 (reboot) do the following:
  2. Unzip files and copy to your SD card.
  3. In Terminal:
  4. su
  5. mount -o remount,rw /system
  6. cp /sdcard/ /system/app/
  7. mount -o remount,ro /system
  8. Close Terminal and re-install through the market.

————————————————–

Thanks to the guys on XDA we now have Google Maps with Nav from Eclair working on Donut-based CyanogenMod 4.2.5

Download the files from: http://www.mmayhew.com/Navigation.zip

Linux Users Only: Feel free to use this script by foopirata to automate the adb process.  I have not tested this script but it looks like it would work.  You will need to do the following:

  • Run the script as root
  • Have the SDK installed and adb in your path
  • Have the phone connected via USB
  • Be familiar with running bash scripts

If the script doesn’t work for you or you are not a Linux user, try the manual processes below:

ADB Instructions for Windows, Mac and Linux users: If you have the SDK installed and are familiar with adb, do the following. If not, skip down:

  1. Open a command prompt in the folder you unzipped  the Navigation.zip files
  2. Run the following commands from command prompt:
  3. adb remount
  4. adb shell rm /system/app/*maps*
  5. adb shell rm /system/app/*Maps*
  6. adb shell rm /system/sd/app/*maps*
  7. adb shell rm /system/sd/app/*Maps*
  8. adb shell rm /system/sd/dalvik-cache/*Maps*
  9. adb shell rm /system/sd/dalvik-cache/*maps*
  10. adb shell rm /data/dalvik-cache/*maps*
  11. adb shell rm /data/dalvik-cache/*Maps*
  12. adb shell rm /data/app/*Maps*
  13. adb shell rm /data/app/*maps*
  14. adb push build.prop /system/
  15. adb push build.trout.prop /system/
  16. adb push build.sapphire.prop /system/
  17. adb shell reboot
  18. Wait for phone to boot back up
  19. adb remount
  20. adb install Maps.apk
    1. If that fails, try adb install -r Maps.apk
    2. If THAT fails, try adb push Maps.apk /system/app/
  21. Make sure GPS is enabled
  22. Open Maps and press OK
  23. Press Menu
  24. Press Directions
  25. Enter an end point
  26. Click Go
  27. Just under “Show on map”, click Navigate.
  28. When prompted to install the voice codec, do so.
  29. Enjoy.

Manual Instructions without a PC: If you do not have the SDK installed, do the following:

  1. Unzip zip
  2. Copy build.prop, build.trout.prop, build.sapphire.prop and Maps.apk to /sdcard/
  3. Open Terminal on your G1/MT3G
  4. su
  5. mount -o remount,rw /system/
  6. cp /sdcard/build.prop /system/
  7. cp /sdcard/build.trout.prop /system/
  8. cp /sdcard/build.sapphire.prop /system/
  9. rm /system/sd/app/*Maps*
  10. rm /system/sd/app/*maps*
  11. rm /system/sd/dalvik-cache/*Maps*
  12. rm /system/sd/dalvik-cache/*maps*
  13. rm /system/app/*Maps*
  14. rm /system/app/*maps*
  15. rm /data/app/*maps*
  16. rm /data/app/*Maps*
  17. rm /data/dalvik-cache/*maps*
  18. rm /data/dalvik-cache/*Maps*
  19. reboot
  20. After the phone boots, return to terminal
  21. su
  22. mount -o rw,remount /system
  23. cp /sdcard/Maps.apk /system/app/
  24. mount -o ro,remount /system/
  25. Close terminal
  26. Make sure GPS is enabled
  27. Open Maps and press OK
  28. Press Menu
  29. Press Directions
  30. Enter an end point
  31. Click Go
  32. Just under “Show on map”, click Navigate.
  33. When prompted to install the voice codec, do so.
  34. Enjoy.

UPDATE: If you have tried these instructions and can’t get it working, try the following as suggested by nhudson in the comment section. This worked for him and others:

1: Remove Google Voice
2: Replace the build.prop files (trout, sapphire, etc) back to the original ones.
3: Reboot
4: Reinstall the new build.prop files and remove any of the map stuff from the directories Michael listed.
5: Reboot
6: Install the new Maps.apk file
7: Launch Google Voice and re-set it up
8: Launch the new Maps and Navigation was there.

Let me know if this works for you. If you need help, leave a comment, holler at me on twitter or head over to this thread on XDA.

If you don’t see the Navigate option, try installing Google Voice. I know it sounds weird but it’s reported to work.

If you still don’t see the Navigate option, I’m not sure I can help other than re-do the steps above.  Here is what’s important:

  • Make sure you deleted all *Maps* and *maps* files from:
    • /system/app/
    • /system/sd/app/
    • /system/sd/dalvik-cache/
    • /data/app/
    • /data/dalvik-cache/
  • Make sure you rebooted after copying the build*prop files to /system/

If Navigation is working but certain apps aren’t acting right, you may need to revert back to the original build.prop files. They can be found at http://mmayhew.com/original_build_prop_files.zip

Here are some screenshots from my G1:

:, , , , , , , , ,

67 Comments for this entry

  • milaremi

    Like Bryan (@ josh),

    I ask also; With each Cyanogen Mod will we need to hack into the build.props to keep navigation running? As much as I upgrade Cyanogen Roms, this might become a tedious endeavor…

    That said, thank you for your hard work!

  • james

    hey i just rooted my phone to the latest cyanogen and i want to put the navigation on but i dont know where to start i can follow all the instructions just where do i start i tried downloading to pc and pluggin phone in did not work and tried to put on phone

  • abc

    !!!!!!!!!!!!!!!!THANK YOU!!!!!!!!!!!!!!!!!!!!!!!!

  • kevin

    hi, I am a newbie to rooting but after trying the non pc instructions without luck I browsed to the maps.apk on my sd card through astro and did software update through the app manager. it works flawlessly!! Little stoned, hope it makes sense,TmobileG1/Rooted/cyanogenmod 4.2.5

  • elevator guy

    hey yall…. im doing it without my comp im using terminal…. my phone is saying that there is no such file or directory as…. *maps*

  • Josh

    Followed manual instructions from fresh install of latest Cyanogenmod. didn’t work. Then installed GoogleVoice and set it up. Now Navigation works. WOO HOO.

    Thank you for your time and work. Awesome!!!

  • AndroidFan

    Are the manual instructions correct? No-where does it mention INSTALL of Maps.apk, just cp…

  • lxrose

    Isn’t it dangerous just deleting all maps-like apps?

    I checked mine directories and it contains some other map applicatons, so rm *maps* would delete them too. Is it really required?
    I heard that it only works in the US at the moment. Can anyone confirm outside of the US that the “navigate” item is available? Or perhaps it is about Google Voice mentioned here that it didn’t show the option for me?

  • Hackeradam

    Dude you guys are the shit. Seriously, I don’t give props very often simply because I’m too lazy to expend the energy needed for keystrokes or the other stuff out there is simply just shit. You fuckers take the cake. Hats off to you and your crew. Thanks for the hours yall’ve put into this. You should put a paypal link for donations cuz this is the type of shit worth giving offerings for – fuck the church.

    Now if you someone would make an app to do that FBI cell surveillance like in the movie “Eagle Eye” (…and no not like that mSpy garbage) I could die a happy man. Just as long as I don’t burn in hell for my church comment above…*sigh*

    Peace

  • Joe

    When I follow the ‘revert’ steps and download the Mail app from the market, I get an ‘Incompatible update’ pop when it tries to install. Is anyone else running into this? I’ve run through the steps about three times now, even tried using the ‘original’ prop files.

  • mmayhew

    Joe- Make sure you reboot before installing the new Maps app.

  • neusse

    I am having the same issue with “incompatible update”. Tried uninstalling google voice as well.

    Followed your revert instructions to a T. hmmm

    Is there a log some place that would show a little more detail?

  • Greg

    In Terminal Instructions it says to copy ‘Maps.apk’ to the sd card, but there is no ‘Maps.apk’ file in the zip file. Where do I get ‘Maps.apk’?

    Thanks,
    Greg

  • Marcin

    Hi.

    The unofficial way of installing Navigation is still required.
    The “market” way is valid only for U.S. users. Outside the States still you have to do the tricks – app is not visible in the Market.

  • Greg

    I followed all the instructions above and now I’m also getting the “incompatible update” error.

  • mmayhew

    I’ve updated the blog for the “incompatible update” error. Instructions are under the “Final Update” instructions.

  • Wes

    Too bad it’s US only for the navigation.

Leave a Reply

Get Adobe Flash playerPlugin by wpburn.com wordpress themes

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Archives

All entries, chronologically...