Archive for November, 2009
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:
- Download http://mmayhew.com/4.2.5_build_files.zip
- Open a command prompt in the folder you unzipped the 4.2.5_build_files.zip files
- Run the following commands from command prompt:
- adb remount
- adb shell rm /system/app/*maps*
- adb shell rm /system/app/*Maps*
- adb shell rm /system/sd/app/*maps*
- adb shell rm /system/sd/app/*Maps*
- adb shell rm /system/sd/dalvik-cache/*Maps*
- adb shell rm /system/sd/dalvik-cache/*maps*
- adb shell rm /data/dalvik-cache/*maps*
- adb shell rm /data/dalvik-cache/*Maps*
- adb shell rm /data/app/*Maps*
- adb shell rm /data/app/*maps*
- adb push build.prop /system/
- adb push build.trout.prop /system/
- adb push build.sapphire.prop /system/
- adb shell reboot
- Go to the Market and install Google Maps.
- You’re Done!
Terminal Instructions:
- Download http://mmayhew.com/4.2.5_build_files.zip
- Unzip zip
- Copy build.prop, build.trout.prop, build.sapphire.prop and Maps.apk to /sdcard/
- Open Terminal on your G1/MT3G
- su
- mount -o remount,rw /system/
- cp /sdcard/build.prop /system/
- cp /sdcard/build.trout.prop /system/
- cp /sdcard/build.sapphire.prop /system/
- rm /system/sd/app/*Maps*
- rm /system/sd/app/*maps*
- rm /system/sd/dalvik-cache/*Maps*
- rm /system/sd/dalvik-cache/*maps*
- rm /system/app/*Maps*
- rm /system/app/*maps*
- rm /data/app/*maps*
- rm /data/app/*Maps*
- rm /data/dalvik-cache/*maps*
- rm /data/dalvik-cache/*Maps*
- reboot
- Install Google Maps from Market
- 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:
- Follow the above steps for ADB but after step 18 (reboot) do the following:
- Unzip files
- adb remount
- adb push Maps.apk /system/app/
- If you get an error that says the filesystem is read only do the following
- adb shell mount -o rw,remount /system/
- Then rerun the command
- Now go to the Market and try to re-install
Terminal Users:
- Follow the above steps for Terminal but after step 20 (reboot) do the following:
- Unzip files and copy to your SD card.
- In Terminal:
- su
- mount -o remount,rw /system
- cp /sdcard/ /system/app/
- mount -o remount,ro /system
- 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:
- Open a command prompt in the folder you unzipped the Navigation.zip files
- Run the following commands from command prompt:
- adb remount
- adb shell rm /system/app/*maps*
- adb shell rm /system/app/*Maps*
- adb shell rm /system/sd/app/*maps*
- adb shell rm /system/sd/app/*Maps*
- adb shell rm /system/sd/dalvik-cache/*Maps*
- adb shell rm /system/sd/dalvik-cache/*maps*
- adb shell rm /data/dalvik-cache/*maps*
- adb shell rm /data/dalvik-cache/*Maps*
- adb shell rm /data/app/*Maps*
- adb shell rm /data/app/*maps*
- adb push build.prop /system/
- adb push build.trout.prop /system/
- adb push build.sapphire.prop /system/
- adb shell reboot
- Wait for phone to boot back up
- adb remount
- adb install Maps.apk
- If that fails, try adb install -r Maps.apk
- If THAT fails, try adb push Maps.apk /system/app/
- Make sure GPS is enabled
- Open Maps and press OK
- Press Menu
- Press Directions
- Enter an end point
- Click Go
- Just under “Show on map”, click Navigate.
- When prompted to install the voice codec, do so.
- Enjoy.
Manual Instructions without a PC: If you do not have the SDK installed, do the following:
- Unzip zip
- Copy build.prop, build.trout.prop, build.sapphire.prop and Maps.apk to /sdcard/
- Open Terminal on your G1/MT3G
- su
- mount -o remount,rw /system/
- cp /sdcard/build.prop /system/
- cp /sdcard/build.trout.prop /system/
- cp /sdcard/build.sapphire.prop /system/
- rm /system/sd/app/*Maps*
- rm /system/sd/app/*maps*
- rm /system/sd/dalvik-cache/*Maps*
- rm /system/sd/dalvik-cache/*maps*
- rm /system/app/*Maps*
- rm /system/app/*maps*
- rm /data/app/*maps*
- rm /data/app/*Maps*
- rm /data/dalvik-cache/*maps*
- rm /data/dalvik-cache/*Maps*
- reboot
- After the phone boots, return to terminal
- su
- mount -o rw,remount /system
- cp /sdcard/Maps.apk /system/app/
- mount -o ro,remount /system/
- Close terminal
- Make sure GPS is enabled
- Open Maps and press OK
- Press Menu
- Press Directions
- Enter an end point
- Click Go
- Just under “Show on map”, click Navigate.
- When prompted to install the voice codec, do so.
- 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:


