yashsingh1/xdaforums huggingface dataset:
[Click General] cherry314159:
Just got a Tattoo (1st android phone) and I'm trying to listen to some MP3 files. They sound horrible: the start of a song (1st few seconds) sound horrible then there are many glitches. Is this specific to the Tattoo or do all Androids behave this way? I can't believe HTC would not have tested various mp3 files.
[Click General] BTaylor927:
Hasn't happened on any of the android phones I've owned. Take it back for a replacement :)
[Click General] cherry314159:
The phone is OK and works fine if it's not attached to a PC. The problem seems to happen if it's connected to the PC via USB and running a shell. I'd just gotten the phone and was trying it out. I wonder if it happens with other models.
[G1 Android Development] TrOjAnUK:
Ill be watching this thread with interest ;)

TrOjAn
[G1 Android Development] skyred:
I installed the Nav, then Google Voice stopped working, no matter how many times I uninstalled GV and re-installed it. Also, I rm -r /cache/*.apk. but GV keeps saying Downloading.... Then I flushed the old build.prop and build.trout.prop back, and reboot. and both Nav and GV are working.
[G1 Android Development] AlexandrUa:
Interesting

It's interesting. I couldn't start navigation at all - I think it because of my location (Ukraine) - but some Motorola Droid apps was installed without any problems.
[G1 Android Development] canadiancow:
If you've installed it properly, and you enter two US locations as the endpoints, you should get the Navigate option.

If you use "My Location" as the start point, you won't get the navigate option unless you're in the USA.
[G1 Android Development] xdowner18:
i think it depends on the map licence. e.g. in germany google maps use another provider for the map data. thats the reason why google just allow navigation in us. i think it must be possible to change that.
[G1 Android Development] crypticc:
Couple of weeks ago google terminated their licence with european maps provider teleatlas because or related to that licence not allowing turn-by-turn. Is that relevant? Was on financial mkt news.
[G1 Android Development] canadiancow:
The licensing issues are why Google won't let us use Navigation, but this thread is about finding a technical way around the limitations.
[G1 Android Development] theomajigga:
Just an idea

what I would do, is get a map route in the US with WiFi, use wireshark to see where/who it's talking to to see if its getting the directions from an online server...

If not, it would be internal then

Like i said, just an idea.
[G1 Android Development] canadiancow:
I've already used Wireshark, and it's talking to a Google server. However, the exchange looks a lot like normal driving directions, except with the identifier "DriveAbout" instead of "GMM".

I'm working on routing all connections to this server through a proxy so that I can replace "DriveAbout" with "GMM", to see if that will make it work.
[G1 Android Development] jezzaaaa:
Nice work Mr Cow. :)

I get the same behaviour here in Oz where it gives me a nav map of where I am before pasting over it with a "nuh-ah, can't do that" message.

Something else to get it to start navigating without having to pick two locations in the US is to create a desktop shortcut to "Directions", select a location/contact, and ensure that "turn-by-turn navigation" is selected. Then when the shortcut is launched, a navigation splash screen loads, it says "getting driving directions" while showing my local map in the background, and then says "Navigation to your destination is not available."

In flight mode it tries to get directions for about 10 seconds, then speaks to me for the first time ever, saying "data connection lost".
[G1 Android Development] jezzaaaa:
Has anyone used the "mock location" setting? It might help with testing, if we can quickly switch into and out of US locations. I've done no dev, so I don't know how it works, but I read that it's possible to use XML files to specify a virtual location path. Might be a waste of time.

CCow: just for my interest, what do you think you might find with your proxy protocol hacks?
[G1 Android Development] canadiancow:
I'm doing most of my testing with an emulator, so I can send GPS "fixes" very easily.

When Google Maps Mobile contacts the Google server for directions, it reports itself as "GMM". The server returns a full set of directions, and it displays them.

When Google Maps Navigation contacts the Google server for directions, it reports itself as "DriveAbout". The server sends some data back, but not nearly as much when you're outside the USA.

I'm setting up a proxy so that whenever it contacts the server as "DriveAbout", the proxy will replace that with "GMM", so that the server will return the full set of directions.

If this works, it will still be a bit of a challenge to do this on the phone, but if I can get the emulator navigating in Canada, it's a great start.
[G1 Android Development] jezzaaaa:
Lots of others have complained that the new nav option goes away after up to 8 hours. Mine has stayed with me for just over 8 hours now. Any non-US users lost the nav option? Perhaps it's got something to do with using it.
[G1 Android Development] canadiancow:
From what I read, that only happens to people who restore their original build.prop files.
[G1 Android Development] jezzaaaa:
Yeah, like me. :(
[G1 Android Development] canadiancow:
I'm having issues getting Maps to work at all through a proxy with the emulator. The browser is going through my proxy alright, but Maps sends one request, and then hangs.
[G1 Android Development] jezzaaaa:
Is it a transparent proxy, or are you somehow configuring Android to use a proxy?

As you can probably guess, I don't have a lot of dev experience with Android, but I do have lots of experience with proxies.
[G1 Android Development] Skythe:
Well, I'm in Australia. I haven't been able to see the navigate option at all, although i did restore the original build.prop files and reboot. I have a dev phone; tried setting the locale to US with no joy. I'll be paying a close eye to this thread, and of course if anybody wants me to try anything i am more than willing.

Part of me suspects that Navigate might not even be technically possible outside of the US, until google changes something. There could be some navigate-specific data that is only currently available for US that is preventing it from even being able to work elsewhere.

.. I hope not though. I want navigate :)!

Edit: Some Research:\

http://googlemobile.blogspot.com/2009/10/announcing-google-maps-navigation-for.html

The first phone to have Google Maps Navigation and Android 2.0 is the Droid from Verizon. Google Maps Navigation is initially available in the United States. And like other Google Maps features, Navigation is free.

(This does offer me some relief, i've had a bad feeling that it might be droid-only. I want it for my Dev Phone!)
[G1 Android Development] rac2030:
I hope that it is the same data and I think it possibly is...

Navigation works outside of US but with the Limitation that you have to click manually but in fact they are turn by turn instructions.

Because of that, it should somehow be possible to make it work and the point with modifying the packets seems interesting.

I don't know iptables that much but it has the option "-t mangle"... can this be used somehow?
[G1 Android Development] canadiancow:
When the Navigation app opens, it uses your current location as a start point.

The Maps app will only give you a Navigate option if both endpoints are in the USA, which is why we have to make a shortcut for now. When I get home, I'm going to work on a better way to Navigate somewhere.
[G1 Android Development] bkmo:
I get the navigate option with 2 US endpoints. As soon as it goes to navigate and hits the GPS it comes up with route not found. I assume it is because of the start point it sees via GPS. I only asked because all I get in Costa Rica is route not found, even if it recognizes the endpoint (using the shortcut). I think I may have to get to a recognized "Start" location for it to Nav. I guess my house is not on the map. :) Thanks.
[G1 Android Development] Boonyard:
It's alive!!!!!!!:D

Finally got it working!

Massive thanks to Brut. and to canadiancow!

Well happy!:)
[G1 Android Development] cqms13:
wat do i edit

Bit confused over build.trout settings - havent changed anything yet and i am getting FCs (it is working tho)

mine shows

ro.build.description=kila-user 1.6 DRC83 14721 ota-rel-keys,release-keys

ro.build.fingerprint=verizon/voles/sholes/sholes:2.0/ESD20/17572:user/ota-rel-keys,release-keys

# end build properties

what do i need to edit this to read??
[G1 Android Development] Boonyard:
I didn't edit mine at all and it worked.:)
[G1 Android Development] ipalaus:
No way to get it... anyother comprovation that I can make? I'm with Cyanogen 4.2.5, in the other thread said that 4.2.3.1 is needed. What can I do next?

Thank you in advance!

Isern
[G1 Android Development] canadiancow:
Hmm...I thought it was necessary. Maybe not?

If it is required, you only need to do the first three strings: verizon/voles/sholes
[G1 Android Development] bkmo:
If you didn't edit it, then someone or something sure did. If it is true you are on cyanogen 4.1.11.1 then this should be the stock line:

ro.build.fingerprint=tmobile/kila/dream/trout:1.5/CRC1/150275:user/ota-rel-keys,release-keys

And this is what you need it to be:

ro.build.fingerprint=verizon/voles/sholes/trout:1.5/CRC1/150275:user/ota-rel-keys,release-keys

And now that I look at it 4.1.11.1 is a "cupcake 1.5 release" and I would think you need a "donut android 1.6" version for this to work.
[G1 Android Development] j2kquest:
Super user file browser system (SUFBS)

If your having problems with ADB commands you can use the latest superuser file browser to remove/install the files according to the first post.

It will even let you edit the build.trout.prop using the built in page editor (accessed by pressing the menu key once in the SUFBS viewer) as long as you set it write/read system/data

i just got Maps working and im in the UK
[G1 Android Development] cqms13:
Sorry guys :rolleyes:

my bad:(

am on 4.2.5 but havent updated my sig:rolleyes:

got it working by changing line to

ro.build.fingerprint=verizon/voles/sholes/trout:1.6/DRC83/14721:user/ota-rel-keys,release-keys

no more FCs

all working fine (BTW - i'm in Ireland):):)

will update my sig

j.
[G1 Android Development] gdbjoe:
It works a treat here in Ireland!!! :)

brut.all you're the man!!! :D:D

Just a small add, just in case: I already had speech synthesis installed, and first time didn't work. Went through the market and reinstalled, then started to work.

Happy days ;)
[G1 Android Development] Zappletoo:
I didn't edit mine, it still has the line you mentioned, yet it worked flawlessly when I tried it. No FC or anything..

I didn't install it like instructed in the first post however, I replaced /system/app/Maps.apk in recovery.
[G1 Android Development] Boonyard:
Have a look here... http://xdaforums.com/showthread.php?t=502010
[G1 Android Development] shid007:
When I get enough GPS lock and it wants to start navigating I get force close :( I'm in Czech Republic...
[G1 Android Development] Daneshm90:
Neone get this to work on 32a magic ?
[G1 Android Development] ninjai:
Works for me:

Dream

Softbank Japan.

All I had to do for the installation was remove the old maps (with navigation), clear the cash and map files, and reinstall the new one kindly provide to us from Brut.all.

Thanks to Brut.all, and all who had constructive input. I am very pleased with how quickly this was done, considering this was done on your free time.
[G1 Android Development] antonelli182:
you guys are the best!

it's working fine here in Brazil!

cheers!
[G1 Android Development] Gazzz:
I'm now turn by turn navigating in australia thankyou so so much.
[G1 Android Development] canadiancow:
I just made a little launcher app for Navigation. You can download it at http://www.madcowsolutions.com/NavLauncher.apk

It's pretty simple. It has a textbox that lets you enter an address, and you can launch Navigation with it. It also lets you select a contact and navigate that way.
[G1 Android Development] elzee:
It Works It Works It Works ... it just works!!

Like Gazzz, it works fine in Australia, New South Wales.

Props to Brute.all and everyone involved in the project. Instructions also, were simple to follow and worked a treat .. or is that, a trout? .. lol! ;)
[G1 Android Development] Daneshm90:
Doesnt work for me. im on rogers 32a magic. Tried EVERYTHING :(
[G1 Android Development] canadiancow:
Do you get the Navigate option when you enter two US addresses?

If not, try reinstalling the SpeechSynthesis Data and ensuring that your build.sapphire.prop file has the verizon/voles/sholes on the fingerprint line. If that doesn't work, try the other thread.
[G1 Android Development] rac2030:
;-) I'm too slow but anyway... here is my Navigation Starter: http://ul.to/2q8qfu

Does not more than start Navigation from a searchbox.

Contact suggestions are not implemented.

TODOs:

- save search history and show them in suggest box

- include contacts as suggest source and if a contact gets picked, take the adrees for Navigation

EDIT: The source can be found on http://code.google.com/p/andrac/source/browse/trunk/NavWidget

And to answer one question right away: Yes, it is the Platform Example but a little bit modified
[G1 Android Development] Daneshm90:
This is my build.sapphire.prop and build.trout.prop
[G1 Android Development] seaweeduk:
I get a parse error when I try to install
[G1 Android Development] rac2030:
Strange, can you post a logcat of this process?

I just downloaded from uploaded.to and compared md5 hash, it's same: ca0511f45fe8e241b7ab7275f6897603

I use it on latest CyanogenMod rom
[G1 Android Development] lalalala1:
works here in uk... everything works its amazing! i think i need to find somewhere to go now!

thank you!
[G1 Android Development] canadiancow:
Do you have a permanent download link for this? I want to include it in the first post, but I don't want to change it every time you make a new version :p
[G1 Android Development] Daneshm90:
So nething wrong with my prop files ?
[G1 Android Development] jezzaaaa:
Nav is working for me, thanks guys.

This works great! It even handles ambiguous addresses - pops up a selection window where you pick the right address.

Great work CC and Brut.all. You each go have a virtual beer on me! :)
[G1 Android Development] rac2030:
You can take this link: http://www.2030.tk/link/navstarter

I will update the url on this Link post every time I update NavStarter.
[G1 Android Development] jezzaaaa:
Working for pretty much everyone who can follow instructions, and has the right ROM.

So now, a few questions:

1) Should we start a new thread to work on the navigation button?

2) Will this also get nav working from a contact, or is that a separate problem?

3) Brut.all, can you tell us how you managed to patch the Maps code? This might help one of us to work out the rest of the puzzle.
[G1 Android Development] canadiancow:
I couldn't see anything. Make sure you deleted the Maps apk and dex files before reinstalling, and also make sure you have the Speech Synthesis Data installed.

The popup window for ambiguous addresses is part of Navigation, the same way it works in Google Maps.

I just updated my launcher to have a better icon, I added autocomplete to the text input, and I gave credit to Brut.all for the Navigation mod.

http://www.madcowsolutions.com/NavLauncher.apk version 1.2
[G1 Android Development] moshikko:
thnx

:D did everything and it works like a charm in Israel

thnx a lot for the tut...

i have google navigation on my G1 YAYYYYYYY :D
[G1 Android Development] canadiancow:
1) Google Maps removes the button because you're not in the USA, so I'd say it's still too closely related to this thread.

2) I'm not sure what you mean. Is there normally an option in the Contacts app to navigate to the contact? Or do you just mean that once you display the address on the map, there's a navigate option? If it's the latter, then we just need to tweak Google Maps a bit more (as with (1)).
[G1 Android Development] canadiancow:
Alright I've added that to the first post. Hopefully these apps become obsolete soon...we just need to trick Google Maps into letting us navigate to any destination.
[G1 Android Development] rac2030:
Yes I hope that too but after the newest debattes here in CH about StreetView (and this is where they have the StreetData from) I'm not shure when this will happen...

Anyway, I added Voice Search to v.0.3 ;-)
[G1 Android Development] jezzaaaa:
Fair enough. I was thinking more about the noise.

The first. But never mind. :o I assumed (or perhaps mistakenly remembered) that a contact's details would get an extra "nav" option. The enhancement request at http://code.google.com/p/android/issues/detail?id=4583 shows that this is obviously NOT available even on the Droid.

So all that's left to do is to get the nav button on a map location. How can I help?
[G1 Android Development] raven2000:
Wow! Brut.all very impressive work :)))
[G1 Android Development] jezzaaaa:
Nice. Very seamless. +1 for Android.

It would be a finishing touch to somehow have a contacts search, like when you're doing a map location search (where you can enter a contact name). Clicking on "Select Contact" brings up the crappy Android contact list that is so hard to search on (:mad: -1 for Android), and shows contacts that don't have addresses. I know it's far from a high priority, so feel free to forget the idea, but it might be easy to implement. In fact, it's probably better to focus energy on getting this working from within maps.
[G1 Android Development] Higgins12:
Greeaaaaaat work @ all who are involved and made that possible. Works great in Indonesia , can't wait to "navigate" somewhere :-D but still tied up in Office :-(
[G1 Android Development] canadiancow:
I just updated mine to include a voice search. One thing I like is that you can say something like in the Navigation demo video, "museum with king tut exhibit in san francisco", and it will find it for you.

I'm not that great at hacking applications, so I'm better off sticking with NavLauncher. I can work on the contact list idea. However, one thing you may not realize is that if you push the search button (physical button) when the contact list is up, you can search your contact list.

But for now, I'm going to bed.
[G1 Android Development] jezzaaaa:
Awesome.

Yeah I'm aware of that, and like I said, the contacts search is crappy. Actually, I just tried it again now, and it's not as bad on CM4.x as I remember it being on stock 1.5. But still, it shows you all matching contacts, not just ones that have an address. And for contacts that do have addresses, it doesn't show it under the name (like maps does when you're doing a search). I figured that when maps does a calls to get matching contacts, it might provide parameters like "only with an address", and it might be possible to do the same in your app. But I'm complaining about little things, so I'm going to stop now, and be thankful for what I've got.

Well-earned. Thanks again.
[G1 Android Development] alou2:
This is just awesome. Works perfect from France on my 1.6 G1

Congratulations for this great work !! :D
[G1 Android Development] shid007:
It still doesn't work for me ...

Here is crashreport from logcat

http://pastebin.com/m4910e89b

it is complaining about res/raw/da_act.ogg ... please help

Edit: Got it working by setting locale to english(usa)
[G1 Android Development] gollum1052:
ok in spain with Htc g1. One question, is only for g1 o

work in Htc magic o Mytouch 3g too? thanks
[G1 Android Development] Silence66:
works absolutly perfect on my magic here in germany:) thanks for your work:)
[G1 Android Development] Skythe:
Had no "Navigate" option between US addresses following the instructions in the other thread. Tried all of this again, still no Navigate. Installed google voice, no Navigate. Rebooted, nothing.

Anyone have any other suggestions?
[G1 Android Development] Brut.all:
I have found in the maps asm code that forbid_outside_usa flag, which I had been altering in requests by my proxy earlier. So this is just-one-byte patch, but it couldn't be made without several days spent on research and thousands lines of proxy code :-)

To apply it you should:

1. Disassemble Maps.apk with baksmali (http://code.google.com/p/smali/).

2. Apply patch.

3. Assemble with smali.

4. Unpack Maps.apk.

5. Overwrite classes.dex file by your newly assembled dex.

6. Remove META-INF directory.

7. Pack maps directory to a zip file with name ending with .apk .

8. Sign it (http://developer.android.com/guide/publishing/app-signing.html).

9. zipalign it (optional, but good to do).

I'm still working on a Navigate button.
[G1 Android Development] Boonyard:
Hmmm... not working again now, just keeps saying 'Searching for GPS...' even though it is showing the route, no voice directions are given.

Maybe something to do with my theme...
[G1 Android Development] fulei1979:
it works on my vodafone magic. thanks.
[G1 Android Development] fulei1979:
is it possible to predownload the map along a route? I'd like to pre cache the map etc along a route in home via wifi then using 3G along the road. is it possible by some hacking? thanks.
[G1 Android Development] Boonyard:
Ok, its not my theme. Whats weird is, it was working last night!

Suddenly my phone can't find any GPS signal at all. really confused. :confused:
[G1 Android Development] kroetenlecker:
Great!

It works on my G1 with 'TheOfficial DONUT TMO EU' here in Germany...the 'Navigation Starter' also...!!!!

Thanks a lot!!!
[G1 Android Development] mrcrb:
Thank you for the instructions. It's working perfect here in Germany (with shortcuts and with NavLauncher on CM 4.2.5/G1).

I got this, too. Then I started Google Maps (without navigation thing), waited for GPS signal, quit Google Maps and started navigation. It worked. It seems like GPS signal has to get a signal within Google Maps first.
[G1 Android Development] rac2030:
I just updated my NavStarter to include a widget.

The idea was, that it looks and behave like the google search widget but I need some more experience in Widget design.

Anyway, the download is as usual and 2 screenshots for the widget part have been added on the main entry => http://www.2030.tk/navstarter-starting-google-navigation-easy-way

Have phun with it ;-)
[G1 Android Development] Boonyard:
Wish i'd tried that before re doing all the steps! Now I've lost navigation entirely again!:(

Thanks though!
[G1 Android Development] Boonyard:
Didn't work for me.

I can't get a GPS signal on maps either.:(

has anyone else had GPS problems after doing this?
[G1 Android Development] jorobochi:
10x canadiancow :)

Following the steps from post #1,

And i got it working in Europe.
[G1 Android Development] Boonyard:
Ok, the pnly thing I haven't done is edit the .trout file (had it working wothout doing this last night and didn't think I needed to as I am on Magic).

How the hell do you edit the thing?!
[G1 Android Development] canadiancow:
On the Magic, you should only need to modify build.sapphire.prop, but if you change the fingerprint in both, it should work.

The basic steps are: change build.*.prop fingerprint, uninstall Maps, remove dex files, reboot, and install Maps.
[G1 Android Development] Boonyard:
Ah ok, how do you change the build prop fingerprint though? It won't open in any editor I have!
[G1 Android Development] jorobochi:
adb remount

adb pull /system/build.trout.prop .

it will be on your PC in tools dir

edit it with some editor (i use ultraedit on win or vi on ubunto) change the line ro.build.fingerprint with this and save it

ro.build.fingerprint=verizon/voles/sholes/trout:1.6/DRC83/14721:user/ota-rel-keys,release-keys

adb push build.trout.prop /system/

and reboot the phone
[G1 Android Development] raven2000:
I am using Dwang's 1.12 ROM and followed the instructions on the first post but when start Maps it just displays Loading animation forever :(

Has anyone else had this problem?