yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] canadiancow:
I've modified the instructions to work the same way as yours, except not just searching /system (because Maps could be installed in /data too).

Now I have a question for everyone: I'm updating Nav Launcher to detect if you have Navigation installed, and if not, it will help you install it. However, with 3.2.1 in the Market, pretty much everyone is going to have Navigation, but not the modified version that's needed to work outside the USA. Does anyone know how I might detect if they have the modified version or not?
[G1 Android Development] ashr:
I'm in Melbourne Australia and just got this working on a G1 running Cyanogenmod 4.2.5 and it's picked up the navigation directions etc.

going to go for a drive at lunch to test it out, but looks to be good so far :) thanks heaps for your work guys.
[G1 Android Development] frma71:
I downloaded, patched and tested Maps 3.2.0 from market. It seems to work fine on CyanogenMod 4.2.5

http://www.mediafire.com/download.php?tmyeyttmjyz

Respect to the author(s) of the patch.

/Fredrik
[G1 Android Development] frma71:
Patched Maps 3.2.0 working on CyanogenMod 4.2.5

I downloaded, patched and tested Maps 3.2.0 from market. It seems to work fine on CyanogenMod 4.2.5

Download it here:

http://www.mediafire.com/download.php?tmyeyttmjyz

Respect to the author(s) of the patch.

/Fredrik
[G1 Android Development] jezzaaaa:
Duh :o Thanks for pointing that out. So to find in both places you can do this (as per my edited post):

find /system /data ...

If you find from the root, you get errors when find tries to traverse /proc, which might worry some people. Also, I don't want files called *maps* to be deleted from /sdcard (eg back-ups of the older maps data).
[G1 Android Development] ThrashWolf:
Working perfectly here in Scotland.

Much thanks to all the devs who worked on this :D
[G1 Android Development] jezzaaaa:
Isn't 3.2.1 the latest on the market?
[G1 Android Development] Wysie:
Yup it's 3.2.1 but the version posted by frma71 is stated as 3.2.0 (due to the patch?). Thanks guys! :D
[G1 Android Development] jezzaaaa:
Check the MD5 sum of the installed package?

# [B]md5sum `pm path com.google.android.apps.maps | cut -d: -f2`[/B]
aa1872642a8fcb5b59c8c0af3255254d /data/app/com.google.android.apps.maps.apk

Or maybe check the "key" value for the <package> entry in packages.xml?

Can you tell I'm guessing?

Can you tell that was rhetorical?
[G1 Android Development] canadiancow:
MD5 won't work, because Google can keep releasing new versions, and we can keep patching new versions.

And I don't think you can access packages.xml on non-rooted phones.
[G1 Android Development] Wysie:
canadiancow: I think you can read packages.xml, but not write to them.
[G1 Android Development] geova87:
how do i install through terminal :s... not used to doing that..
[G1 Android Development] TAPP:
Patch Is Still Needed For Navigation Button.

Use These

com/google/android/googlelogin/GoogleAppsVerifier.smali

u/b.smali

z/z.smali

Non-Rooted Will Not Work Without Edited AndroidManifest.xml.

"maps" Edited To "m4ps" For Conflicting Providers And Package Name, And NoRoot Patch Applied.
[G1 Android Development] httpftp123:
can somebody please upload "SpeechSynthesis Data Installer", I can't find it in the market nor do I have Cyanogen's ROM.

Thanks in advance!
[G1 Android Development] rac2030:
@jezzaaaa: Implemented your enhancement ticket => Revision r86 in repo

NavStarter 0.6.4 is online http://www.2030.tk/link/navstarter
[G1 Android Development] jhermans:
Something goes wrong?

$ su
# mount -o remount,rw /system
# pm uninstall com.google.android.apps.maps
FAILURE

all commands run after a su

what can cause the failure?

I am running CM 4.2.5
[G1 Android Development] raven2000:
I haven't been keeping up with this thread. Few quick questions:

1) Is the official Market release patched to work outside US?

2) With the new patched Navigation is the NavStarter/NavLauncher widget still needed or does it work inside the Navigarion app.

Thanks.
[G1 Android Development] jezzaaaa:
Already upgraded. :-) Nice! Thanks.
[G1 Android Development] jezzaaaa:
Try uninstalling from settings->applications. Try installing maps over the top and try again. Try running the "find" command without first running the uninstall command.
[G1 Android Development] smarti13:
WHERE IS the MAP Application

mistake

working fine

sorry
[G1 Android Development] Venzent:
In the Netherlands.

Get the Navigate option by the shortcut-trick, but when it's calculating it's route, it returns a message saying that there is no navigation to the choosen destination. Seems that the start- and endpoints are checked at several stages....

Tryed several destinations, all which work within the normal route-option of Maps....
[G1 Android Development] dopee:
The non-root is not available anymore @ mediafire :(

Anyone got an alternative?
[G1 Android Development] xsp:
Looks like files are not available anymore in those locations, any other link where we can grab them?
[G1 Android Development] Brut.all:
Ok, you're right, sorry :-)

I think we should add some postfix to GM's version. Or, better, some methods accessible from outside of app like hasNavigationOutsideUSA(). "Guessing" in your app makes no sense - there's too many cases and could be much more in future.
[G1 Android Development] Kurius:
since the free hosts seem to like deleting my uploads i have put them on my own webspace :P

http://files.legendofbong.co.uk/download.php?file=487595928-Maps-root-aligned_1.apk

http://files.legendofbong.co.uk/download.php?file=920486272-Maps-no-root-aligned.apk
[G1 Android Development] rac2030:
Why not taking md5?

To don't distribute full patched packages (for legal reasons in your app) an idea would be to just provide binary patches.

Like having a list of original maps MD5 (list can be extended fro every patch thats available and in your app just check if the md5 of the installed app is in your list, if not redirect to download from Market the latest maps and if yes, just apply the patch.

Patching can be done with bspatch, I tested this last night and it works (just I don't know how legal these binary patches are because they have a lot of differencies due to different zip algorithms when packing the patched version again.

I did take a look at Courgette that would make the patch files lot smaller and contains less propietary code but I using it would mean that on the client (Android) a decompilling, compilling and signin must happen and this is ressource intensiv and harder to implement.

On android, with NDK you could compile bspatch and the patching algorithm would just be copy original maps.apk to temp, apply patch, install patched version.

To make the patches you would always have to baksmali original, patch it, smali, signing, packing, bsdiff it and generate a patch file. and adding it to a download location online and updating the list in your app (the list yould be online as well so you don't have to update your package again.

EDIT: One problem with binary patches and Android apk's... zipalign a package makes a big patch file, almost the same size like the original (1.9 MB patch file for 2.1 non-root-aligned maps)
[G1 Android Development] DJ_Steve:
doesnt work here, i get following error

1218 KB/s (2183992 bytes in 1.750s)

pkg: /data/local/tmp/maps-root-aligned.apk

Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE]

using cyanogenmod 4.2.5 clean install in uk on tmobile.

any ideas as id love to get this working
[G1 Android Development] hartyshow:
Hello,

This solution works for my 32A from Sunrise (CH) on Cyanogen 4.2.5.

Thx
[G1 Android Development] Wysie:
Is anyone going to patch the Market version and release it here? :D I tried patching but it keeps FC-ing ;(.
[G1 Android Development] DJ_Steve:
that worked a charm, cheers

navigation comfirmed working up here in northeast uk also
[G1 Android Development] c-dric:
Doesn't work on on my rooted 32B SFR/Vodaphone.

Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE]

but i'm not sur to have the right package. Can anybody send it again ?

Thanks in advance...
[G1 Android Development] DJ_Steve:
uploading it as i type
[G1 Android Development] jezzaaaa:
You probably have the right version, because it's NOT signed by the Google key, which is causing this error message. You need to uninstall the old version which removes the associated (Google) key and allows the new version to install without the conflict.

I think this means the current version and the new version are signed by different keys. You need to remove the current version with "adb uninstall" or similar, from the updated first post. You are following those instructions, aren't you?
[G1 Android Development] stooby:
Seems to be working well for me in UK.

Many thanks to the devs involved!
[G1 Android Development] lozzd:
Works amazingly well on my T-mobile G1, non rooted in the UK. Didn't even have to uninstall the old version, just installed it over the top and it works fine. Thanks guys!

(I have a copy hosted on my server if anyone needs it, let me know)
[G1 Android Development] partypas:
OMG! I've got it working in the netherlands!!! HTC Magic 1.6 + Vodafone.

No rooting, uninstalling, modding just some easy steps that everybody can do!

1. Just download this file http://files.legendofbong.co.uk/download.php?file=920486272-Maps-no-root-aligned.apk (it's a modded google maps app)

2. Connect your phone with your pc and transfer the file to your storage

3. Download an apk installer from the market and install the file (search for apk)

4. On your phone, open the menu and select the 2nd maps app.

5. in google m4ps press menu and choose directions, make a route and press start

6. You'll get asked to choose the nav app, choose the second (...m4ps....)

7. That's it, happy navving!
[G1 Android Development] Sissors:
Not working for me! VodafoneNL Cyanogenmod 4.2.5 Rooted.

Don't have the option route in both the apps.
[G1 Android Development] meneerlex:
I'v tried the unrooted version on my stock HTC magic vodafone (dutch). It all works but the application got an error. It forces to close the navigation and then restarts and forces to close again adn again...

What to do?
[G1 Android Development] partypas:
Just start the app, press the menu button and choose directions....
[G1 Android Development] Becksman:
Hmmm... Doesn't work for me.

I downloaded the file for root users, followed the steps but can't install the file. I always get an error message, that the file could not be installed.

Can somebody please post the exact commands for the Terminal Emulator?

Would be greatly appreciated.

Best regards,

Becksman
[G1 Android Development] c-dric:
It works perfectly for me !!! Thank you !

(Rooted Magic 32B Vodaphone/SFR France)
[G1 Android Development] AthlonBoy:
A quick Google has found me another upload of the rooted maps app.

http://www.megaupload.com/?d=2TO3QLAG

Works for me. I also had the issue where the app wouldn't install. If you do, just repeat the adp commands again, to make sure everything is truly wiped out. Then the modified APK will install.
[G1 Android Development] Sissors:
No sorry, Did a reboot but still not working

If i press menu, im just getting the same as in the original maps

Search

Directions

Layers

My Location

Join Latitude

and

More.. (Clear Map, Help, Terms, About)
[G1 Android Development] Sissors:
Guess it just isn't working that simple for Cyanogenmod 4.2.5
[G1 Android Development] canadiancow:
3.2.1 is causing me major issues with Nav Launcher lol...I need to release an update so that non-rooted phones can use it.
[G1 Android Development] Becksman:
Thanks AtlonBoy, I just repeated the shell commands which seemed to have helped - though i repeated them twice earlier. After that I could install the version from this thread. However, though I installed the TTS libraries Google Maps still asks me to install those. Maybe somehow related to the German Version of m phone.

@sissors: Ever tried to use "directions" and see what happens?

Regards,

Becksman
[G1 Android Development] partypas:
Then press directions :-)
[G1 Android Development] gaspx:
Just installed this on my non-rooted G1 and I now have two icons (versions) of Google Maps. Just choose the one that gives you the option to 'Navigate', once you've searched for directions... :)

Haven't actually gone out driving to test it, but it figured out where I was, where i'm going and how to get there.. and the speech synthesis is android to a T.

Thanks to the devs and hosters for making this possible!
[G1 Android Development] Wysie:
Can you post the patched 3.2.1 somewhere? Thank you.
[G1 Android Development] canadiancow:
There is no patched 3.2.1 yet, is there? I thought we had only patched 3.2.0.

I'm saying that having an unpatched app that EVERYONE seems to have is causing issues with Nav Launcher, because Nav Launcher detects that you have Navigation installed.
[G1 Android Development] rac2030:
What kind of issues do you have with the Market version of Maps?

EDIT: just seen your post, before starting the intent, check which version is installed and if it is 3.2.1, give the error message that it isn't patched.
[G1 Android Development] Wysie:
Ah ok my bad :)
[G1 Android Development] Brut.all:
I had it patched about 15 minutes after Google released it :-) I didn't uploaded it just because of no major changes - it isn't worth further problems with installation and all that chaos ;-)

I could upload it somewhere, just let someone suggest some good hosting.
[G1 Android Development] rac2030:
I mostly use uploaded.to

Maybe if you just make a binary patch, they won't kick it as illegal content...
[G1 Android Development] Wysie:
Brut.all: Mediafire? Ive a rs premium acc, can host it there too :)
[G1 Android Development] canadiancow:
Well up until 1.5.2, I was launching Navigation in com.google.android.apps.maps, and if it didn't exist, I popped up an error saying you needed to install Navigation. However, that has two issues:

1) If you have 3.2.1, you have Navigation, so the error doesn't show, and Navigation just gives you an error about your destination

2) If you have a non-rooted phone, it doesn't launch the modified version.

1.5.3 is in the Market now, and it tries .m4ps first, then .maps, so IF the user has followed the instructions (hah!), it will work. I eliminated (2) from above, but (1) is still an issue.

Again, I don't want to show an error if they have 3.2.1 installed, because 3.2.1 is patchable.

Brut.all, can you make the patch deployable from within an application? If it isn't the whole apk, I can host it on my site, and have Nav Launcher apply it. 3.2.1 includes a few bugfixes, but since 3.2.0 was never in the Market, it's hard to tell what was fixed in 3.2.0 and what was fixed in 3.2.1, since all the people commenting went from 3.1.2 to 3.2.1.
[G1 Android Development] trygveaa:
When I try to install it, I get the error "Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE]"

adb install -r Maps-root-aligned_1.apk
1122 KB/s (2183992 bytes in 1.899s)
pkg: /data/local/tmp/Maps-root-aligned_1.apk
Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE]

I have removed all copies of the original maps, and when I run this, it doesn't find anything.

adb shell find /system /data -name \*google\*maps.apk\* -o -name Maps.apk

Does someone know what's wrong?

Edit:

Nevermind. I uninstalled the update from Market and removed all the maps.apk files, but I didn't run "adb uninstall com.google.android.apps.maps". After I ran that, it worked.

Thanks for this fix. Great to have navigation too. Weird that Google only released it for USA.
[G1 Android Development] HaloTechnology:
i keep getting maps.apk could not installed in this phone

using cyn 4.2.5
[G1 Android Development] StephanV:
I had this problem once, and I used adb push instead of install and that did the trick. Not sure if it's gonna work with this patched Maps tho, I did it with another Maps.apk ...

EDIT: I'm not sure if I had the exact same error
[G1 Android Development] Rapax:
You guys are simply amazing! Great work!

Chalk another one up for the power of open source developement.

Working flawlessly (even with 'navigate' button in maps app) on my G1 on Orange Switzerland network.

Only thing I can wish for is german pronunciation guide for the speech output.

Btw, the market is now showing me an update available for google maps. I assume I'll undo everything if I allow that to install, right?
[G1 Android Development] rac2030:
Do it with the md5sum, if it's unpatched, it will have the original hash and if the hash is not the same but version says 3.2.1 then it is probably patched.
[G1 Android Development] trygveaa:
If you have CyanogenMod, you can go to Settings -> Speech synthesis, check "Always use my settings", and choose Language -> German. I'm sure there are solutions for other roms as well.
[G1 Android Development] canadiancow:
But then I need (for now) two hashes stored in the app (assuming there is only one version of 3.2.0 and one version of 3.2.1 that support Navigation), and I'll need to update the app every time a new version comes out. I'm going to see if I can just check the key for the installed version of maps.

If .m4ps is installed, I know it's been modified, but if only .maps is installed, it's harder.

In my packages.xml, in the Maps section, it shows <cert index="4" />. Does anyone know what that references?
[G1 Android Development] canadiancow:
Google owns their own map data in the USA, but they license it from other companies everywhere else in the world. Those licenses don't allow them to use the data for an application like Google Maps Navigation.
[G1 Android Development] seaweeduk:
Would appreciate a link, I need to reinstall the patched version anyway and i'd like to get rid of the android market update notification
[G1 Android Development] Brut.all:
http://ul.to/uwa3gp/Maps3.2.1-patched-root.apk

http://ul.to/18fckr/Maps3.2.1-patched-no-root.apk
[G1 Android Development] Brut.all:
$ bsdiff Maps3.2.1.apk Maps3.2.1-patched-root.apk a.bsdiff
$ du -h a.bsdiff
1.4M	a.bsdiff

Well... zipping, signing, zipaligning...
[G1 Android Development] Wysie:
Thanks Brut.all! :) Installed with no issues :D!
[G1 Android Development] canadiancow:
Updated the first post.
[G1 Android Development] trygveaa:
Thanks for the update!

I'm just curious, why is there one version for root and one for they without? What's the difference?
[G1 Android Development] Kurius:
Mirror just encase

http://files.legendofbong.co.uk/download.php?file=534750032-Maps3.2.1-patched-root.apk

http://files.legendofbong.co.uk/download.php?file=1240234753-Maps3.2.1-patched-no-root.apk
[G1 Android Development] dperezjr:
navigation for Dominican Republic

guys, will this work to navigate in the Dominican Republic?

...also, if i install this new maps, can i sill navigate in the US?

Thank you
[G1 Android Development] canadiancow:
The one for rooted devices assumes you can uninstall the existing application, so it uses the same package name.

The one for non-rooted devices assumes you can't uninstall the existing application, so it has the package renamed to com.google.android.apps.m4ps

If you can get directions in Maps in the Dominican Republic, then it should work. It will still work in the USA.
[G1 Android Development] seaweeduk:
Thanks Brut.all :) and thanks again for all your hard work on getting this working
[G1 Android Development] partypas:
To get around the crashes many people are getting, start a navigate to your current location and then quickly disable the speach option.
[G1 Android Development] Sage and Onion:
Navigation help

Hi, I know this sounds lame but i`m really having trouble getting this to work on my rooted uk g1. I`m running cyanogen 4.2.5 and i dont have adb installed on my xp pc as i do everything in the terminal emulator. Could someone please give me detaile directions (no pun intended) as what i`m doing wrong. Cheers all.
[G1 Android Development] rac2030:
Did you do the diff before zipaligning?

I have to play a little more with it but I hope I can get the bsdiff output somehow much smaller...

It has a lot to do how you zip it, if we use the same zip algo and the same parameters like google did on the original one, we should be able to get the size down.

Or do I miss some important variable in this process?
[G1 Android Development] Brut.all:
No, original app is zipaligned, so I compared it to zipaligned too.

But you may be right: signing is adding data in one place only, zipping same chunks of data should results in same output and zipaligning is 1:1 operation, so it should be possible to get little differences in apks.
[G1 Android Development] rac2030:
Are you good with reverse engineering zip algos ;-)

I just tested with some apk (was vending by the way) and just unzipped, deleted sig files, zipped again (with standard zip from ubuntu repo) and signed it and the result was 200 KB less, and this means the binary difference in the files are huge.

I'm not good (yet) in reverse engineering zip algo/options and haven't researched what tools for analysis exists, I just know zipinfo but this doesnt output that much usefull infos or I haven't seen them while shortly trying it out.
[G1 Android Development] jezzaaaa:
If you tell us what you're doing, and what the result is (eg "success", "error message 'xyz', "didn't know where to type 'abc'") then someone might be able to help you. For starters, tell us if you are following the "shell" instructions on the first post, and how far you are getting.
[G1 Android Development] Brut.all:
Maybe we could take a completely different approach to this. I have some idea and first tests presented promising results :-) I'll try it tomorrow.
[G1 Android Development] JDGfromMTL:
You guys are awesome - Thanks soo much for the patched version.

I renamed the file Maps.apk, put it on my SD and easily installed your patched version with terminal - right on the phone: (already had pushed the .apk - but like my fellow non-US android brethren... got that "..cannot navigate to" message.

open Terminal Emulator:

Works as advertised :-) Sweet.

Damn, a terminal emulator is handy!
[G1 Android Development] dperezjr:
thanks!

I will install this tomorrow and try it in Dominican republic this December during my vacation.
[G1 Android Development] goedh452:
I experience many crashes and found out that the application crashes when it wants to use the speech function. I have a T-Mobile G1 in the Netherlands. Navigation is working fine, but is the only solution to disable speech option? Of course I would prefer to have navigation with speech.
[G1 Android Development] deadite66:
why didn't they just use http://www.openstreetmap.org/
[G1 Android Development] Xpire:
Hey guys,

Running a Sapphire, and when I run the command:

adb uninstall com.google.android.apps.maps

I simply get:

Failure

I've set my phone to run on USB debugging mode, and it still doesn't work :(

Anyone know what i've done wrong?
[G1 Android Development] mattbrown:
got the same thing, make sure you have the tick in the box for Unknown sources, that solved it for me
[G1 Android Development] Xpire:
Yeah that's ticked. I don't think it has anything to do with uninstalling an app via adb.

Thanks anyway!

Anyone else know what I've done wrong?
[G1 Android Development] rac2030:
Because OSM doesn't have complete maps and is depending on users for content.

I just hope they will put theire streetmap data into the OSM project but I can just guess that they won't do it...

If you want to see how OSM Navigatian is, you can use AndNav2

What approach are you thinking on?

Getting (bak)smali on android doing it local on the devices itself?

Thinked about it but my concern is, can the signing apps be ported...
[G1 Android Development] deadite66:
its seems pretty complete in the UK, didn't like AndNav2 too slow and has problems with postcodes.
[G1 Android Development] spacestation:
I've got the same error, wondering if it's the name of the app that's wrong. Google maps as opposed to just maps maybe?