yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] tutech:
Does anyone else have this problem:

I have successfully installed the new Maps.apk many times. Navigation works flawlessly, etc. Its all good. Until I run userinit.sh -s to look at my compcache stats and I suppose this script re-odexes files and what not. It never actually states that it is reodexing the Maps apk, but after running userinit.sh, the Navigation portion of the new Maps stops working. I then have to reinstall Maps.apk with the new build.prop and the whole bit.

Somewhat annoying. I was wondering if anyone else was experiencing this and could shed some light on why this was happening.

I've since started using BART, and it greatly simplifies getting it working again due to being able to run BART -b -r

regular nandroid restore does not get it running with nav again.
[G1 Android Development] User7007:
Installed new Maps with Nav & Lost Google Voice???

Everything works fine, but Google Voice is not populating the Visual Voicemail messages as it did before...I Uninstalled Google Voice and Re-installed & still having the same issues...

Has anyone else experienced any probles with Google Voice after install the newer Nav?

I would love to know....or hear any suggestions...

Thanks!

Great Forum!
[G1 Android Development] parkee99:
Cool, I played with my coworkers Droid today and you just say "navigate taco bell" and it takes you to navigation in maps using the voice search on the home screen. It saves a step from going into maps first.
[G1 Android Development] xtony12:
wont work at all for me
[G1 Android Development] Skatturbrain:
Hey all I made the change to packages.xml and followed these instructions and no longer get the error and followed the directions and navigate still doesnt show up. Im running a MT3G

Anyone know where I went wrong?
[G1 Android Development] smasraum:
I upgraded from 4.2.3.1 to 4.2.4 and that fixed my handcent. I didn't have to reinstall nav. It still works great. You might try reinstalling 4.2.4 and/or handcent.
[G1 Android Development] jklong03:
Then try reading a few pages of this thread, or, God Forbid, do a search!!
[G1 Android Development] JAguirre1231:
Nav will be gone SOON. It will check the build.props, see it's not the droid and remove nav
[G1 Android Development] jspy_G1:
Navi was working on CyanogenMod 4.2.3.1 then stopped working after I flashed 4.2.4.

Followed these steps and got my Navi back. :D
[G1 Android Development] obe1:
When I installed nav 2 days ago when I woke up it was gone with less then 8 hrs but then I installed it again with cyan 4.2.4 and voila I had for a little more then 18 hrs and it works flawlessly.
[G1 Android Development] mvv_hyd:
build.prop is totally stock. Haven't touched it.. I just follwed the instructions. But, looks like couple of others got it worked... will give it a shot again
[G1 Android Development] tee aiy emm:
Since you're running on a MT3G, did you change the build.sapphire.prop?
[G1 Android Development] g1g:
Will this method work for 4.2.4 also and agin do i need to do the last steps ( section E ) or does it matter because i dont want it to stop in a few hours???
[G1 Android Development] Skatturbrain:
No I must have missed that

*facepalm
[G1 Android Development] parkee99:
I upgraded to Cyan 4.2.4 first. I then entered the nav commands through terminal. My nav has been running for over 24 hours on 2 G1's.
[G1 Android Development] JAguirre1231:
Hmmm, that is certainly an odd case, unless cyan updated his build.prop's. I remember him saying that it was a simple build.prop edit on his twitter
[G1 Android Development] g1g:
which comands thru term did you use ?? :confused:
[G1 Android Development] parkee99:
The same ones posted here:

A) Place 3 files on sdcard (build.prop, build.trout.prop, Maps.apk)

B) Terminal (on phone):

su

ash

mount -o remount,rw /system

cp /system/build.prop /sdcard/build.prop.backup

cp /system/build.trout.prop /sdcard/build.trout.prop.backup

cp /sdcard/build.prop /system

cp /sdcard/build.trout.prop /system

cd /system/app

rm *Maps*

rm *maps*

cd /system/sd/app

rm *maps*

rm *Maps*

cd /system/sd/dalvik-cache

rm *maps*

rm *Maps*

reboot

C) Terminal:

su

ash

mount -o remount,rw /system

install /sdcard/Maps.apk /system/app/

D) Run "Maps"

Directions -> Put end point -> Go -> "Navigate" under "Show on Map" -> Install voice etc

(Must have GPS on and data connection active)

(If "Navigate" doesn't show up, something went wrong.)

reinstall google voice.
[G1 Android Development] Nihilism:
Would you be so kind as to post your build.prop and build.trout.prop files here?
[G1 Android Development] followinginsanity:
yes from the droid_gsm_milestone dump

ALSO

If you run a build other than the one listed in my sig... then please edit your build props. do not use mine.

-------------------------------------------------

I'll let you all fiddle with it some. note.. you have to remove all files and reboot after editing your build prop... then reinstall or it won't make a difference as far as I know.
[G1 Android Development] xidominicanoix:
should we delete system@app@Maps.apk@classes.dex as well? i did it just to be safe
[G1 Android Development] staulkor:
CONFIRMATION!

It works!
[G1 Android Development] canadiancow:
I'm not sure I like the idea of:

ro.build.version.sdk=5

ro.build.version.release=2.0

I could see where this might cause issues with other applications. And since Navigation works in the 1.6 emulator, is it really necessary?
[G1 Android Development] followinginsanity:
yes....

i used SU file explorer and did a search for maps in /system and deleted all reference files for maps. except the files in the frameworks folder or the one in dalvik cache that referenced frameworks jar file
[G1 Android Development] hjlow:
very well done, kudos to you :)
[G1 Android Development] followinginsanity:
this does cause problems with other apps. which is why I want to figure out the specific lines that are needed. I just edited anything I could think of to make it work. I'm still testing it line by line. but thought it would be faster if you guys wanted to pitch in :D
[G1 Android Development] coolbho3000:
Nice work man! And to think I was digging through the logcat and the dex of Maps, tediously trying to find which line of code checked for the device. :)
[G1 Android Development] followinginsanity:
Thanks. Been at it since i found the dump posted by maxisma
[G1 Android Development] xidominicanoix:
hmm not sure how to get it to work .. followed all the steps n just took a quick drive around the block but no navigating happening .. i load Maps and then go to Directions .. is that the right thing?

btw checked the About screen:

Version: 3.2.0 (#3232) gmm-android-tmobile .. this is supposed to be gmm-android-verizon aint it? .... will try again
[G1 Android Development] JAguirre1231:
Well I updated my very first post in the thread in big letters, hopefully people read the front page
[G1 Android Development] staulkor:
Mine says:

Version: 3.2.0 (#3232) gmm-google

Platform: android:Motorola-sholes-Droid
[G1 Android Development] followinginsanity:
Alright. here is an important fact. Its ALLLLLLL about the install. I installed the maps.apk with my modded build props and then put my original ones back in place. rebooted. and navigation still works. voice and all.
[G1 Android Development] xidominicanoix:
i think its cuz i copied my orig build.prop and build.trout.prop as build.prop.bak and build.trout.prop.bak .. deleted them to try again

EDIT: still getting gsm-android-tmobile ... :( .. i was getting the 'Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE]' message so i adb pushed it into system/app but it wouldnt show up in my applications so i went to it with a file explorer and installed it that way and when i opened it up the version still said tmobile

EDIT: checked it with getprop:

# getprop ro.com.google.clientidbase
getprop ro.com.google.clientidbase
android-verizon
#

what could it be?

EDIT: could this affect it:

[ro.carrier]: [TMUS]
[G1 Android Development] staulkor:
Confirmed again :D

Now to find out where gmaps is storing the information so we can modify it after the installation has taken place to make for an easier install.
[G1 Android Development] olearyp:
No love on TheOfficial TMO on mT3G with the attached build.sapphire.prop (enom has all the props in the device-specific files). Getting INSTALL_FAILED_UPDATE_INCOMPATIBLE.
[G1 Android Development] jjjackson56:
so let me get this right we push your build.prop in install the map.apk then we could push our old one in so that we dont have problems with other apps working.
[G1 Android Development] JAguirre1231:
That's the idea yep
[G1 Android Development] staulkor:
Yup. I pushed the props, rebooted, installed maps and confirmed navigation worked, pushed old props, rebooted. Everything still works.
[G1 Android Development] followinginsanity:
yes.. but like I said only push my build.prop if you are using the same rom as me. if not. backup yours.. edit. delete all the maps files i mentioned before. reboot. install. then put your old build.props back.
[G1 Android Development] YoungOP:
problem.........

remount succeeded

rm: cannot remove '/system/sd/app/*Maps*': No such file or directory

rm: cannot remove '/system/sd/app/*maps*': No such file or directory

rm: cannot remove '/system/sd/dalvik-cache/*Maps*': No such file or directory

rm: cannot remove '/system/sd/dalvik-cache/*maps*': No such file or directory

rm: cannot remove '/system/app/*Maps*': No such file or directory

rm: cannot remove '/system/app/*maps*': No such file or directory

891 KB/s (2624470 bytes in 2.875s)

pkg: /data/local/tmp/Maps.apk

Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE]

Press any key to continue . . .
[G1 Android Development] control1110:
I ran this while using cyanogenmod v4.2.3.1 and it worked, then upgraded to v4.2.4 and then it stopped working so I did it again, works fine again. uninstalled and reinstalled google voice and that seems to work fine now too. My problem comes with pop up sms, it doesn't show the persons name from my contacts just the number number. Anyone find a way to fix this yet?

Edit: figured it out, found it a few pages back
[G1 Android Development] cb7tuner93:
Deleted my map app and when trying to install message says "this app cannot install on this phone"
[G1 Android Development] JAguirre1231:
Push it to /system/app

adb-

adb remount

adb push <path to>/Maps.apk /system/app

terminal-

su

rwsystem

cp /sdcard/Maps.apk /system/app
[G1 Android Development] theomajigga:
CHECK MY SIG FOR THE UPDATE.ZIP FOR Sap/Dream NAVIGATION!!
[G1 Android Development] KodieG:
idk if anybody noticed this but after i installed nav on cm v4.2.4 and then went to the about screen, it said i was running v4.2.3.1. So i flashed v4.2.4 again and it says i'm running v4.2.4 and nav works fine.
[G1 Android Development] mrnv45:
easiest way for anyone..

http://xdaforums.com/showthread.php?t=583684
[G1 Android Development] dcplaya:
Your nav will disappears when the clock on your phone gets to 12:01 AM since your build.trout.prop and/or build.sapphire.prop has been replaced. The about screen pulls that info from those two files I believe. To keep nav, replace the .prop files with the correct ones or look back a few pages and make the necessary changes which amounts to 1 line
[G1 Android Development] followinginsanity:
Simplest way to do this. http://xdaforums.com/showthread.php?t=583684
[G1 Android Development] dwang:
I tried this but protected apps aren't showing up for me.

Can anybody see MyBackup Pro and Accudial? Those are both protected apps.
[G1 Android Development] cb7tuner93:
Can't install: "[INSTALL_FAILED_UPDATE_INCOMPATIBLE]" And now my maps app is gone HELP!!!!
[G1 Android Development] clide8:
I can see both
[G1 Android Development] dandv:
Google Navigation on the Galaxy?

Holy moe, 1000 messages in one thread and two days!

I've installed the app on my Galaxy, not really expecting it to work, and indeed it force closes with

D/dalvikvm( 2753): DexOpt: couldn't find field Landroid/util/DisplayMetrics;.densityDpi
...
I/dalvikvm( 2753): Wrote stack trace to '/data/anr/traces.txt'

Perhaps Samsung Galaxy users need different versions of the .prop files? Or is it that the latest Android ROM for Galaxy is 1.5?
[G1 Android Development] mrnv45:
http://xdaforums.com/showthread.php?t=583684
[G1 Android Development] harpreet1988:
Now that there seems to be many ways in which we can install and use google maps, can we start on porting the browser?
[G1 Android Development] r0ck0:
Does this work on a rooted sprint hero?
[G1 Android Development] KodieG:
Thank you for that. I went ahead and edited the last line in build.prop to say

ro.modversion=CyanogenMod-4.2.4

and had to do the whole thing over again. After that nav wasn't working so i installed Google Voice and now nav works!
[G1 Android Development] coolbho3000:
Better just wait for 2.0 ;) The browser uses 2.0 frameworks. Better chance we port Sense UI to stock Android. :rolleyes:
[G1 Android Development] harpreet1988:
:( hurry it up google XD
[G1 Android Development] SpiggidyBob:
I just got this working on Cyanogen 4.2.4. Used this link to install the Maps.apk, then cleared the Market cache and set the time to 2359. At 1201 I verified I could see protected apps by searching on Accudial and NESoid (both showed up). Then edited the .prop files from 4.2.4 release to reflect the changes mentioned previously and rebooted. So far so good, I'll check back in tomorrow.
[G1 Android Development] lossfabulous:
Google Voice issues solved?

I followed Chahk's suggestion in post 874, changed the SDK version on the first line of /system/build.prop from =5 to =4, using vi under CommandBot to edit the prop file directly on the phone. (I am new to the G1 and not so smart with adb at this point.)

Rebooted after the change, GV works flawlessly now, and nav is still there / working. No other changes necessary. Thank you, Chahk.
[G1 Android Development] the_angel_moroni:
So after much trial and error I have got Google Voice app and Navigation working on Cyanogen 4.2.4. I wiped my phone and created a backup after signing in through google, so that I could try different installing methods on a fresh install of Cyanogen 4.2.4. Here's the thing though, after trying about 6 times and staying up till 6AM playing TF2/working on my phone (mainly TF2) I can't remember which method finally worked. At first I thought that I followed the instructions here:

minus steps 12-14 (especially 14) and then installed google voice which allowed me to achieve steps 12-14, and then reverted to the build.prop and build.trout.prop found in the original CyanogenMod 4.2.4 zip file. However, when I looked at my computer after calming down from being so excited that Google voice and navigation were working together in harmony I was in the folder that contained the build.prop and build.trout.prop from the mediafire link listed above. So my question: is there any way to check and see which build.prop and build.trout.prop file I currently have on my phone? Well obviously there is, but how do I do it? I am a noobs and I'm sorry...But if I have the modded build.prop and build.trout.prop and google voice is working that is a miracle from god, because the only way I could get it working before was to revert back to the original prop files.

For other noobs out there who have CyanogenMod 4.2.4 and can't get Google voice to work after using the suggestions found on the first page let me help you out.

1. Download the mediafire link listed above.

2. Extract it.

3. Download this: http://n0rp.chemlab.org/android/update-cm-4.2.4-signed.zip

4. Extract it.

5. Find the build.prop and build.trout.prop files in the system folder and replace the files with the same name from the first folder (the mediafire link) with the files from this folder (the chemlab link/official cyanogenmod release).

6. Run Part 1 from the first folder (mediafire link). DO NOT run part 2.

Navigation might not work anymore, but at least google voice will. Sorry if these instructions are too simple and not necessary for most people on this forum. I could have used them so I thought I would try and help others since I was asking for help. Also, sorry about the book length post.
[G1 Android Development] camarriott:
You probably got that because you flashed someone else's prop files (someone that was using that version of CyanogenMod).

Just change this line in your build.trout/sapphire.prop:

ro.build.fingerprint=verizon/voles/sholes/sholes:2.0/ESD20/17572:user/ota-rel-keys,release-keys
[G1 Android Development] Dirtyfrank26:
Maps.apk

I was an idiot and didn't back up my maps.apk, before I went and installed the new maps.apk.

I was wondering if anybody has the old maps.apk they could post so that I could get it.

Thanks.
[G1 Android Development] clintz:
Just open up the cm-4.2.4 zip (or whichever build you need) file, its in there.
[G1 Android Development] Dirtyfrank26:
Maps.apk

Its not in there because "cyanogen" leaves it out.

Maybe im wrong but when I open the zip file go to /system/app it is not there.
[G1 Android Development] ChrisDos:
Installation Script

I wanted to automate some of this. I'm a Linux user since 1993 so I so very much enjoy having android for a phone. Maybe my script this will help others. I also copy other programs that I want such as MyFaves.apk, etc. and you can modify the script to copy the extra apks that you want.

Make a directory called apks on the root of your sd card. Copy Map.apk and any other apps you want to install in /system/app. In the apks directory make a file called copy_apks_to_system.sh (or call anything else that you want)

#### Begin Script ####

echo "Mounting /system read write..."

mount -o rw,remount -t yaffs2 /dev/block/mtdblock3

echo "Cleaning out old Map software from /system for"

echo "installation of Google Navigation"

find /system -iname "*maps.apk*" -exec rm -vf {} \;

echo "Copying MyFaves and new Google Maps to /system/app"

cd /sdcard/apks

cp MyFaves.apk Maps.apk /system/app/

echo "Modifying /system/build.trout.prop for Google Navigation"

sed -i 's/tmobile\/kila\/dream/=verizon\/voles\/sholes/g' /system/build.trout.prop

echo "Mounting /system back to read only..."

mount -o ro,remount -t yaffs2 /dev/block/mtdblock3

#### End Script ####

Typical steps to run this:

Open up Better Terminal and run the following commands:

su -

ash

cd /sdcard/apks

bash ./copy_apks_to_system.sh

Now reboot the phone and Nav should work. If not, uninstall and reinstall Google Voice.

I upgraded to Cyanogenmod 4.2.4 and then just ran this script and rebooted. Everything appears to be working at this point in time. I also performed this script for the first time on my Wife's phone and it worked perfectly.
[G1 Android Development] clintz:
Oh yeah, you are right, my apologies.

Go here: http://developer.htc.com/adp.html#s3

And get the Recovery Image for 1.6

It will be in there under /system/app.
[G1 Android Development] Six6Sicks:
Thanks! I got this working 100% with Cyanogen's 4.2.4.

I uninstalled my other Nav programs because I like this one much better.

Thanks for the great step by step too. I just used SU Browser to install this. It took a little longer, but without having adb access from work, this method worked flawlessly.
[G1 Android Development] Eduardo911:
so has anyone been able to get the tts speech voice synthesis part working in the maps? i installed the app from the market, it made the folder full of wavs on my sdcard, and my navigation is working and updating turn by turn like its supposed to

just...no speech, no matter what i do. have reinstalled all the map and .props and google voice and the voice data multiple times and its just not having it on my G1

i can test it from the homescreen settings and hear it there, and change the language and all that. is there some setting somewhere else that needs to be changed to 'enable' it? like an accessibility setting or something?
[G1 Android Development] Proxin:
What's a protected app that I can search for in the Market to see if mine works to view protected apps?

For some reason my ChompSMS is hiding from view, too. I can't uninstall it, use it, re-install it, or find it on the Market. This happened after I tried the build.trout.prop and build.prop stuff.
[G1 Android Development] smasraum:
So if you had NAV installed and working and it stopped, you only need to re-alter the build.trout.prop file, right?

If that's correct, then would the shortened script above do the trick?

Or am I missing some details.
[G1 Android Development] smasraum:
It worked perfectly for me when NAV was working. It apparently stopped last night.
[G1 Android Development] ChrisDos:
For the most part, this script resets the Maps. It cleans out the other map.apk and it's other entries in /system, copies the new Maps.apk and any other apk files you wanted into /system/app, then modifies the build.trout.prop if needed. The sed part of the script searches and replaces any instances of "tmobile/kila/dream" with "=verizon/voles/sholes" in /system/build.trout.prop (Though there is only one instance so only that line is modified). I don't know why the droid version has 2 "=" in it's line, but I duplicated it just in case.

The only issue as other have mentioned, that you might have to remove and install Google Voice.
[G1 Android Development] Eduardo911:
hm starting to wonder if its just me then. anyone know any other apps off the top of their head that will try using it i can test with to see if it works at all?
[G1 Android Development] Garner:
maps navigation problem

hi i have run part 1 and part 2 with success but when i use maps it does not work, there is no navigate option below show on map option im just wondering if this works on my uk model g1 can any please help me thanks in advance, chris
[G1 Android Development] RAQemUP:
Since the Navigation at the moment is still in beta it only works in the US atm.
[G1 Android Development] Zeltaz:
Ive got the same problem. I've got an UK G1 model and ive gone through all the steps properly, maps work bit there is no navigate.. just show on map. Guess I'll have to wait till this works in the UK
[G1 Android Development] artismyrevolt:
i'm having a similar issue to what several people have said, but can't find any answers. i might just be too lazy to look harder though.

i'm running cm4.2.4 on my tmobile g1. everything worked properly (installed build.prop, build.trout.prop, and maps.apk via the terminal emulator). google voice app started acting screwy so i re installed the original prop files, navigation still worked with the new maps app, everything was peachy and i did a nandroid backup.

woke up this morning and the "navigate" option dissappeared. reloaded my nandroid backup and it's still not there. did i do something wrong, or is there a newer set of prop files that works in conjunction with the separate apps like google voice?

this is my first post, and it's a lame one. sorry all. noobing it up over here.
[G1 Android Development] smasraum:
This is a known issue. The NAV seems to die every night (at midnight, I think). I'm hoping that it's not too long before one of the fellas here manages to get it to keep working for more than 36 hours or so. Or, I'd like to know if the fix is just to edit the single line in the build.trout.prop. If that's the case, then it should be possible to build a script to fix it daily.

I think it may require reinstallation every day.
[G1 Android Development] smasraum:
No, just changing the line in the build.trout.prop is insufficient to get nav working again. I guess it requires reinstallation. What a pain. Hopefully the many folks more knowledgeable about this stuff than me will get a good fix soon.
[G1 Android Development] Kush.Kush™:
Will this guide work on mytouch32B and if soo need help trying 100% installation from phone have nav.zip on phone where/what files go to root of sd and what do I type FOR SURE in terminal. Lol I know it says how to but member only on phone
[G1 Android Development] m4ff3w:
This worked for me. Thanks ChrisDos!
[G1 Android Development] Chahk:
Let us know if it still works tomorrow.