yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] Brut.all:
There are some apps that can cache maps - AndNav for example.

I intend to add maps caching feature to Google Maps, cause there was a several requests for it. It was one of the reasons why I had left dirty-hacking and have started to search for a better way to fixing apps.
[G1 Android Development] Brut.all:
But this is the same as WWW browser cache vs downloading/mirroring WWW site on hard disk. There should be on option to mass download (on a WiFi) all tiles at some area and zoom level and use them on a go.
[G1 Android Development] nurre:
could the first post be updated with a changelog? I have no idea what changed in -3.
[G1 Android Development] Wysie:
nurre: If you're on version 2 with no problems you can stick with it. version 3 fixes some ogg not found exception that occurred to some people.
[G1 Android Development] mailbinoy:
This is not working for me. 3.2.1 worked for me. But after i updated to latest Cyanogen 4.2.8.1 today, I uninstalled maps and tried installing maps 3.3.1.

It says "Maps could not be installed on this phone"

I tried 3.2.1 apk and it also fails with the same message now

tried the official google maps from market, and it also gives a error.

I have used the terminal to uninstall maps. I always get a failure message after running

pm uninstall com.google.android.apps.maps

Is anybody experiencing this problem? Any solutions?
[G1 Android Development] canadiancow:
I haven't noticed an issue with the "lower" volume. I think that's just how it works. As for the voice coming too late (or not at all)...that's because it's a dirty hack.

1) Everyone is getting that

2) Correct

3) Because it's a dirty hack
[G1 Android Development] scootley:
Optus fix

I had the same problem on Optus in Australia (prepaid, using "yesinternet" APN). I noticed that the Maps app makes connections to mobilemaps.clients.google.com.

On Optus, using DNS 4.2.2.5 from Optus, mobilemaps.clients.google.com resolves to 66.102.11.101 (which is syd01s01-in-f101.1e100.net), but from (for example) a DNS query in the USA, mobilemaps.clients.google.com resolves to 66.249.81.100.

I also noticed using tcpdump that requests to that host are not accompanied by responses.

So I modified my /system/etc/hosts file to add an entry for it as such:

66.249.81.100 mobilemaps.clients.google.com

This fixed my problem. It obviously isn't optimal because now the requests go to a server that is not in Australia, but it does work.

Let me know if you need further help
[G1 Android Development] Brut.all:
@scootley

Thanks a lot for your research :-) Could you check, how it is possible that directions works, although it uses the same server?
[G1 Android Development] palexr:
No joy here. Downloaded and installed fine. It tries to do the navigation thing, thinks about it for a bit but ends up telling me navigation is not available in my area. I can see 3d roads behind the error message?
[G1 Android Development] Brut.all:
Where do you live? Do maps directions work for you? Could you attach adb logcat output?
[G1 Android Development] hackitall:
+1, same issue here. Am I really going to have to completely wipe?
[G1 Android Development] maarten82:
I hate to repeat myself, but ill make an exception in this case...

BRILLIANT!! Thanks so much guys!
[G1 Android Development] maarten82:
Well, after a completely textbook installation on my ADP1 the 32B gave me problems;

pm uninstall com.google.android.apps.maps

Failure!

Then i remembered i tried to uninstall it before from the market and stilil had that stuff open.... I closed it all, ran the command again and guess what? Success!

So now i have navigation working on both my phones over here in the Netherlands! im so happy :D
[G1 Android Development] canadiancow:
Brut.all, any progress with the other issues? Or do you know which source files contain features like the arrows or street names?
[G1 Android Development] Sleeepy2:
I screwed up some where...

I followed the directions and all was good.

Then I added a theme and it was kind of buggy so I restored my last back up and when I click on maps it says not installed... So I thought what ever and followed the directions again uninstall... but when I go to the install part I get Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE]

I am guessing that I no longer have the original maps app so I can't update to the 3.3.1. How can I get it back?

Thanks
[G1 Android Development] canadiancow:
That sounds more like you don't have 1.6 or higher. If you follow the instructions in the first post, then it should work.
[G1 Android Development] Brut.all:
I think you should start by reading about Google Protocol Buffers. Then you could check file that I attached - it is a schema of some of request/response data. All names are empirically invented by me and na/TNA are just not named/known. ResponseRoute is what we are interested in: it could have several Route subobjects and each route has several sections (RouteSection).

We are most interested in that RouteSection.na19 thing. It is optional and directions doesn't have it (navi does). If you diff orignal maps3.3.1 and the hacked version, you would see I added code that creates TNA19 object, then its na6 subobject and then set na6.na1 to 1 :-) This is exactly what navi needs to not FC when using directions data.

As you can see, RouteSection has only "desc" field and TNA19 has some details: abbr_name, street_image, direction, full_name. There are even more needed data in TNA19.na6 object - it is some kind of next level of route divisibility, cause each section is divided into many na6 objects.

And talking about code... all I know is:

- TNA19 is a Lq/j; (or is somehow associated with it)

- TNA6 - Lq/d;

- LQ/b; is something like protobuf's generator/resolver/decoder/main class - it is used to generate protobuf objects, fetch their subobjects and so on

- LB/l; - it looks like container for raw data of an protobuf object. From it and with LQ/b;'s help, there are created protobuf objects like Lq/j; and Lq/d;

Of course you could take completely different approach - for example you could start from UI elements which are fairly easy to find. It is up to you.

Ohh, and there is some simple, but very useful for debugging, method: brut.Static.log. You could write:

invoke-static {v5}, Lbrut/Static;->log(Ljava/lang/Object;)V

anywhere in the code and you will get some debugging info in logcat.

I don't wanna go mad because of all these La/q/R/T/c/j;, invokes, registers, gotos... I want to have some assistance from a computer - this is, what it was made for, isn't it? ;-)

I have successfully run real debugging (in IDE) of smali code, but it was a one-case prototype, so I am working on a tool, that can do it automatically. I have named it apktool, it will have some other useful features and will be somewhat akin to omnipatcher.

Just be patient :-)
[G1 Android Development] canadiancow:
Awesome. I'm moving on Saturday, so things are a little hectic right now, but I'm going to really dive into this early next week.

Unfortunately, I won't have an Android phone as of end of business on Friday, which could complicate matters.
[G1 Android Development] Brut.all:
I develop on an emulator and use device for testing rels only :-) I just feel more comfortable with it.
[G1 Android Development] Sleeepy2:
I have a Rogers Dream, with CyanogenMod v4.2.8.1.

I think I might have completely removed the maps app. is that possible?

I had it working fine, I just didn't like my theme and restored my back up...
[G1 Android Development] canadiancow:
It's definitely possible to completely remove Maps. That's the recommend course of action for rooted phones.
[G1 Android Development] urb7:
While the new patch works and allows to me run Navigation, it's really not much of a help when driving on the road as the features have been limited, ie the next turn. Turned into a few wrongs while using it HAHAH

Thanks nevertheless.
[G1 Android Development] luthepa1:
Ok there are a lot of posts here so please forgive me if I missed it.

I have installed the modded maps 3.3.1 for root by brut on my Acer Liquid. The navigation seems to work fine and I tested it in car yesterday. The only problem I have is there is no speech! I have tried reinstall numerous times and cleaning up and previous installs and dalvik cache. I have tried reinstalling the speech data again. But nothing seems to work. There is just no speech for navigation. Otherwise everything else works.

Can anyone help me why I have no voice/speech directions?

Thanks.
[G1 Android Development] paperheart:
alternative download link, brut's google maps nav 3.3.1 http://bit.ly/5AOuMv
[G1 Android Development] scootley:
@Brut.all

The problems on Optus were for the regular Maps application (your version of it). It was unable to load map imagery, perform searches, get directions, etc. Since none of that worked, I didn't even attempt Navigation.

Now both work.

Does that answer your question?
[G1 Android Development] canadiancow:
Because it's a dirty hack.
[G1 Android Development] Brut.all:
Yep, but... I didn't even touch these addresses in this version... :-/ So now question is: how is it possible that original Google Maps works, although it uses the same server? Or it doesn't? Could you check it out? :-)
[G1 Android Development] palexr:
Thanks for responding. I live in the UK (not in the sticks at that).
[G1 Android Development] bbutlerau:
Optus Fix

Thanks scootley that worked great for me. I thought hat it was weird that not evn regular maps would work.

Now if only optus would actually open up paid apps i would love my Dream even more
[G1 Android Development] Brut.all:
Did you try Market Enabler app? Thanks to rac2030 we could install paid apps on every device and telecom operator.
[G1 Android Development] Joost39:
Thx to all for the effort, it works okay......
[G1 Android Development] saleum:
Which application is "Market Enabler" or where can I find it?
[G1 Android Development] canadiancow:
http://code.google.com/p/market-enabler/
[G1 Android Development] saleum:
Thanks a lot !! :-)
[G1 Android Development] canadiancow:
Three days with no replies...wow...

Brut.all, figure anything out? I've been moving/unpacking, so I haven't really looked at anything yet.
[G1 Android Development] sstacey93:
Argghhhhhh

:(, i did all the steps and everything, but when i type in a location and click navigate, it just comes up with a message saying 'navigation to your destination is not available' PLEASE HELP :confused:
[G1 Android Development] canadiancow:
Do normal directions work where you are?

If not, then Navigation won't work either.

If so, then you didn't install the modified version.
[G1 Android Development] Saiuz:
Newbie question

I managed to root my htc magic and install usb drivers and managed to run adb commands, but now when i try to install maps i get :

Failure [INSTALL_FAILED_OLDER_SDK]

Could you help me with this please?

Thanks and regards,

Vali
[G1 Android Development] OzJD:
The hacked version WAS working for me til a few days ago... Using Google ION firmware.

Something has changed server side

(HTC Magic 32B - Sydney, Australia)

Directions still working
[G1 Android Development] AverageCanadian:
Still works in Canada you Dwang's rom.
[G1 Android Development] Brut.all:
Works for me too.
[G1 Android Development] saleum:
Also in Spain although not so well as before.
[G1 Android Development] Brut.all:
What do you mean by "not so well"?
[G1 Android Development] canadiancow:
You need a ROM with Android 1.6 or higher.

It works fine here. You might want to check your facts before making unfounded statements such as "Something has changed server side".
[G1 Android Development] saleum:
I mean exactly the same as you:

"The reduced functionality is as follows:

*No street name at the top (same)

*No arrow indicating next turn direction (this works now o.k. inside the maps. Not at top)

*Voice guidance is delayed, if at all present (same)

Please do not waste space posting these issues. They are known."

I didn't wanted to waste space ;)

Nevertheless it is very usable and a great step. Congratulations!!
[G1 Android Development] CLLC:
Great job Brut.all :D

Just wondering if any fix for the Street names etc are on the Horizon? :)
[G1 Android Development] Joeroe:
Is it me or are their others having problems downloading Nav launcher from market? Every time I try, I get the message: "There are no matches in Android market for the search : Nav launcher"

Is there a place other then market where i can download it?
[G1 Android Development] nleung:
Did you try searching for navlauncher (no space)? I just downloaded it from market.
[G1 Android Development] Joeroe:
Nope, same massage. It's kinda awkward
[G1 Android Development] kingchris:
try this

http://www.androidpit.de/android/de/de/market/apps/app/com.madcowsolutions.NavLauncher/Nav-Launcher

and scan the QR-Code on the right site

or use this link from your phone

market://search?q=pname:com.madcowsolutions.NavLauncher
[G1 Android Development] Joeroe:
Even with the QR code it still gives me the same message. I don't understand why, but i really want that program :(
[G1 Android Development] gdbjoe:
Where are you?

Is there a chance you need the Market Enabler?
[G1 Android Development] StephanV:
^ I had this problem once too, with a free app I used to have. Couldn't find it for a week or so, and tried again after cyan released a new rom and all of a sudden it was there again, so I suggest to just reinstall your rom (or however that is called in android language :) ).

I don't know if that's what did the trick, but hey, you can try!
[G1 Android Development] Joeroe:
I already installed the latest rom from t-mobile. Is there no other place then market to download it? And what do you mean by market enabler?
[G1 Android Development] StephanV:
It's not about the upgrading, I think it might help just to reinstall your ROM. I don't know why that would do anything, but it worked for me (or maybe it was just the timing, again, no idea).

Market Enabler (http://code.google.com/p/market-enabler/) enables you to download paid apps if normally your country doesn't offer paid apps, but since NavLauncher is a free app I don't see it making any difference, but maybe..
[G1 Android Development] StephanV:
Edit: double post, sorry.
[G1 Android Development] canadiancow:
There shouldn't be any issues downloading Nav Launcher. It's free, and published to every Market (that is, I haven't limited it to specific countries).
[G1 Android Development] Joeroe:
Strange, strage. But there is no other place then market?
[G1 Android Development] rac2030:
That has to be answered by CanadianCow but if it's just for the part with starting Navigation you can also try NavStarter => http://ul.to/p872hm

If you need it for installing hacked maps... @CanadianCow don't you have an alternate link?
[G1 Android Development] jeroen1801:
Failure [install parse failed inconsistent certificates]
[G1 Android Development] canadiancow:
There is not. I can put up the current version somewhere for you, but I'm moving around a lot right now, so I can't do it for a few days.
[G1 Android Development] StephanV:
When I emailed the dev of the app I mentioned, he didn't restrict anything either. It sometimes just happens..
[G1 Android Development] Joeroe:
If you wouldl, I'd be very happy :)
[G1 Android Development] canadiancow:
http://navlauncher.madcowsolutions.com/NavLauncher213.apk

If you can use the Market, don't use that link, because I don't think you'll get the update notifications.
[G1 Android Development] melih43:
I can use nav launcher and google maps navigation on a hero rom

firmware ver : 1.5
[G1 Android Development] rac2030:
Is this a question or a sucess report?

If it's a question: No, Navigation works just on 1.6

If you got it running on 1.5: How did you do it?
[G1 Android Development] melih43:
I just installed " KiNgxKxROM Sense Hybrid Version 2.3 "Back to Work We Go" " hero rom 1 hour ago. Now it tells at about phone screen

Model Number : HTC Hero ( my phone is G1 )

Firmware ver : 1.5

Kernel : 2.6.505.20.17H

Build nr : 3.03.751.4

is there any chance to upgrade firmware to 1.6
[G1 Android Development] rac2030:
Actually all the Hero Rom's with Sense UI that I know are on 1.5, but I heard that HTC is working on a 2.1 Version with Sense UI and it could be ready in Q1 of 2010 but I don't know exactly when nor do I have official Information
[G1 Android Development] canadiancow:
NavLauncher would technically work on 1.5, but I set the API level to 4 in the manifest just to keep it in line with Google Maps Navigation, which won't work on 1.5.
[G1 Android Development] bjtheone:
Pogress on fixes?

Any progress/possibilities on fixing the un-named road issue? Did a bunch of road tripping over the Christmas break plus did the arena tour for the Bell Capital Cup and found Google Nav most helpful. Is this being worked on or is it a deadend at this point?

Would be wonderful if the name issue could get fixed. I don't care about the voice delay and I usually have it muted anyways.
[G1 Android Development] canadiancow:
As far as I know, nothing's been done yet. I'm not sure if it's really worth it though. Google could, tomorrow, release it anywhere else in the world.

As nice as it would be to have fully working Navigation in Canada (and elsewhere), I think there's a limit to the time anyone is going to devote to this.
[G1 Android Development] bjtheone:
Google could, however if the issue is licensing then it could take a long time to sort out.

If it is a focus issue, Google seems to be really focused in on deploying new services to the US, and meshing them all together. Given the legal/political issues with deploying these in other countries (especially Canada with the CRTC and other restrictive Canadian content controls) and the teeny/tiny market in Canada, I can't see us being very high on the list.

Thus my plead for the fix.
[G1 Android Development] canadiancow:
I think Canada is actually positioned fairly well for Google Maps Navigation, based on the copyright displayed when viewing Google Maps in Canada, compared to other countries. The CRTC doesn't have any say when it comes to phone applications either :P

Again, I'd like to get this fixed, as I'm sure Brut.all and TAPP do, but modifying obfuscated bytecode is extremely annoying. Some of the class names are intact, but most are not, so reading the code is a lot like using a language where you don't understand the meaning of any of the nouns.

"***** went to ***** ***** to see ***** but there were *****"

You can only spend so much time reading a story like that before you get bored.
[G1 Android Development] bjtheone:
Not sure if you are entirely correct. Google is trying to unify everything and become the one stop shop for mobile data (they want your browser, voip, voice, ads, voicemail, email, music, books). I am sure the CRTC will get their grubbie little paws in there somehow.

Plus the Telecom regulators in this country are a joke. Look at the Wind launch debacle. After watching that I can't imagine any one thinking about which new market to expand into, wanting to come to Canada.

Plus there is the whole everything in French issue.

I hope that I am wrong.

Ah well, what you fine folks have accomplished is very functional and VERY appreciated!
[G1 Android Development] rosshire:
fixes

Is there any chance that the streat names and other stuff will get a fix?
[G1 Android Development] playingdoh:
no.

http://xdaforums.com/showpost.php?p=5288554&postcount=971
[G1 Android Development] sleepymatt:
Edit ... see next message
[G1 Android Development] sleepymatt:
nvm ... not running a 1.6 rom :(
[G1 Android Development] Buennie:
Working just was described in the UK!
[G1 Android Development] QTeknology:
With the last Eclair/Flan Rom 2.1 I get this:

Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE]

Any tips ? Thanks !!!
[G1 Android Development] olearyp:
Usually indicates a signature mismatch with the record for the package in your /data/system/packages.xml. Easiest fix is to remove the record by editing the file and deleting the <package></package> tag set for Maps. Search my post history for more info.

This can occur if you're replacing Maps included with a ROM. It shouldn't happen with a Market installation of Maps, as long as you've uninstalled first.
[G1 Android Development] danvvc:
this is the boat im in, 2.1 doesnt seem to have maps listed in the application manager :S

i dont think we can uninstall it :'(

unless somebody knows otherwise??

*edit*

nevermind, just read the some more of the thread, should do that before i jump in.
[G1 Android Development] QTeknology:
No Root version can be installed but when launching, it crashes "android.process.core."

I've edited packages.xml, but not luck with it.

Thanks
[G1 Android Development] Brut.all:
@philicibine, @Daneshm90: it is not intended for end-users - it is for devs, that will help making it easy to set up.

No, batch file is not an option for installing Apache, Python, configuring vhosts and so on ;-) On current phase it couldn't be simpler. Maybe in a few days :-)
[G1 Android Development] emms007:
Nice job,was easy to install, had some python dependencies to add but went fine with easy_install. Well now I should be ready but it seems that you're not using the same python binary as mine, I can't launch the file, it reports :

me@myserver:/var/www/vhosts/domain.fr/conf$ python2.4 /home/me/andro/wsgi.pyTraceback (most recent call last):
File "/home/me/andro/wsgi.py", line 1, in ?
from net_brut.android.navi.wsgi import Application, LOG_ANY, LOG_ROUTE, LOG_ERR
File "/usr/lib/python2.4/site-packages/net_brut.android.navi-0.1dev-py2.4.egg/net_brut/android/navi/wsgi.py", line 60
except Exception as e:
^
SyntaxError: invalid syntax

Anyway that was just a try... it looks very very promising!! congrats
[G1 Android Development] Brut.all:
"except ... as" is a new syntax in Python 2.6 and 3.0:

http://docs.python.org/whatsnew/2.6.html#pep-3110-exception-handling-changes

You could fix it very easy by regexes: 'except ([^\s]+) as' -> 'except $1,', but with old Python 2.4 on a board you would probably get more problems ;-)
[G1 Android Development] canadiancow:
I can't seem to get wsgi-proxy installed on Ubuntu. easy_install isn't finding it.
[G1 Android Development] Brut.all:
But Google does ;-)

http://code.google.com/p/wsgi-proxy/source/checkout

My mistake, I've installed it from there and after that, when fill in deps, checked PyPI for it. I've found it, but I didn't notice that it is for Python 2.5 only :-/

I hope that anyone other than me will finally manage to run it ;-)
[G1 Android Development] canadiancow:
That worked, thanks.

Now I'm getting "ImporError: No module named ez_setup" when it's getting protobuf. I'll try manually compiling and installing that one too.
[G1 Android Development] jezzaaaa:
Eventually, someone will have to port this to another language that can run on a phone (although Python under ASE is an interesting idea, but socket programming might be unsupported). So let me see if I understand what's going on here. (I'm not very experienced with python, so bear with me.):

* the host header gets translated from "www.google.com" to "mobilemaps.clients.google.com"

* the request gets translated from "/glm/mmap/a" to "/glm/mmap"

* the request body has "DriveAbout" replaced by "GMM"

* part of the request body is gunzipped

* that part of the request body has a "forbid_outside_usa" flag changed from "1" to "0"

* that part of the request body is gzipped again

* the target remote host gets changed from www.google.com to mobilemaps.clients.google.com (as per the host header)

As far as I can tell from your code, you're not having to do any processing on the responses.

(I'm not in a position just now to run up your proxy, sorry.)