yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] canadiancow:
I first saw ads in 4.2.0 I think.

In your latest mod of 4.3.0, I have ads and sponsored links.

I'm not sure exactly what changed (if anything) from a user perspective, but they might have had all the code in its own classes before, and decided to use the standard AdSense library now.

Short answer: yes, there are ads, but I haven't seen any behaviour that's different from 4.3.0 in terms of when or how they're displayed.

Earlier, when henriquesp asked about differences, I got my friend's N1 with 4.4.0, and sat it beside my N1 with 4.3.0-brut14 to compare everything. I did not notice anything different with the ads.
[G1 Android Development] DirtyRasa:
For some reason, transferring these files over to my phone takes a LONG time...

Not sure why, probably just my phone..

Anyways, I did notice that the maps do not match up. The ones I download from the website and from directly caching from the phone... I know this was mentioned before just confirming.
[G1 Android Development] HardCorePawn:
Yeah... depending on the zoom level you selected you probably have (tens or hundreds of?) thousands of tiles to transfer over... and I don't think the USB transfer is really all that optimised... I think it prefers a lower number of larger files? :confused: Also, is the phone plugged into a USB2.0 port?? it's not running through a hub or something that might be slowing it down?

I just took my SD Card out and put it in a memory card reader and transferred it that way... was A LOT faster! :cool:

And yeah, that mismatch between "desktop" and "mobile" tiles is annoying... hence why I know you need "root" access to get into the /data/data/brut.googlemaps/files to remove all the tiles there... as it seems to take these tiles first... before looking up tiles cached on SDCard.

But it's nice to know that is a common "feature"... and not just something perculiar to my phone ;)
[G1 Android Development] DirtyRasa:
Oh so you can put these files anywhere on the sd card? I have them all in the brut.googlemaps/files folder along with the rest of the cached maps haha
[G1 Android Development] HardCorePawn:
Oh... wait... my bad...

No, it was another GPS app I was fiddling with that I just took the SDCard out... brut is running from the "internal" sdcard...

Apologies for leading you astray... they MUST be stored in /sdcard/brut.googlemaps

as when you tick the "save to" and "read from" SDCard options, that is where it is looking.
[G1 Android Development] DirtyRasa:
Okay thanks for the clarification !
[G1 Android Development] Zoide_:
Hey, it's working now! I think I just toggled the settings on/off and that did the trick :)

Thanks
[G1 Android Development] canadiancow:
...what is an "internal sdcard"?

/sdcard/brut.googlemaps is just the brut.googlemaps folder in the root of the SD card.
[G1 Android Development] HardCorePawn:
EDIT: I should point out I'm using a Samsung Galaxy S... it has 2 "sdcards"

Well /sdcard is the 'internal' mem... Ie. The 16 gigs of built in memory...

/sdcard/sd is the 'external' or removable card... And is obviously dependant on what card you actually put in it...

Personally, I blame 'sammy' for all the confusion ;-)
[G1 Android Development] canadiancow:
Ah I see. I wonder if that's one of the cases where Environment.getExternalStorageDirectory() doesn't return "/sdcard/"
[G1 Android Development] HardCorePawn:
No idea... but I'll be able to find out soon... I'm in the middle of downloading JDK/Eclipse/ADT + Android SDK... ;)

I've decided to have a bit of a play... see if I can remember any of my java programming (haven't done anything for a couple of years!)

The whole /sdcard & /sdcard/sd thing causes soooo much confusion... and it is complicated by the fact that the phone says things like "internal sdcard" and "external sdcard"...

Then peeps on forums will give instructions like "put update.zip file on your sdcard" etc... so people take their sdcard out of the Galaxy S, put it in a memcard reader, load the file on and try to make it work... then ***** and moan that it doesn't work, or update.zip can't be found etc...

Maybe Samsung did it this way, so that there is always an /sdcard... regardless of whether or not you have put a card in... I don't know...

But I've discovered (yes, the HARD way! :P) it certainly pays to double check exactly where and what you're playing with... especially when dealing with "format" type utils ;)
[G1 Android Development] Brut.all:
I just got Starcraft 2. brut15 will be in about 6 months ;-)
[G1 Android Development] domparry:
Both disturbing and funny! Let us know if it's any good. Perhaps it can distract us all while we wait. :-)
[G1 Android Development] henriquesp:
Thanks, buddy!

I wouldn't know about the navigation view, since navi doesn't work for Brazil. :(

I'll have to wait for brut15 for that, it sounds neat.

LOL! Keep up the good work.
[G1 Android Development] billquinn1:
Just wondering why is it named:

maps4.3.0.4305-brut14.apk.apk

What is the second .apk for. It matched the MD5 fine.
[G1 Android Development] BryanChung:
Omg! 6 months?! :eek:
[G1 Android Development] :No-Frost::
Don't worry, he's just kidding...

Would be around 8 to 12 month actually ^^...
[G1 Android Development] frantacech:
I ty, Brutusie?

:)
[G1 Android Development] billquinn1:
I tried this on Chromersmiths Froyo 4.1. I had a few issues. Probably Froyo related.

If you check "in USA" under Brut Mod, you are in Seattle. Period. (I have not tried this program before and maybe "in USA" is supposed to make me be in Seattle)

Brut maps will not unload from memory and keeps GPS running. After a while the phone rebooted a few times then just shut off.

I am going back to eclair for a while anyway but just wanted to post my experiences.
[G1 Android Development] canadiancow:
I am fairly well versed with all functions of Brut's mod, but I have no idea what that option does.

I would say that unless someone knowledgeable here (i.e. Brut) tells you to check it, then leave it unchecked.
[G1 Android Development] mayamo:
okay i've been reading through almost all the posts on this thread but i can't find an answer to my question :(

i have google map files from zoom level 10 to 16 for Toronto/etc. but it's in this format [285_372.mgm]

I used gmapmaker and mapcacher site, which was mentioned in previous posts; however, I don't know why my file's would be different from the ones brutmap saved in folders like [G:\brut.googlemaps\tiles\map-en_GB\15\5965]

Is there any way to convert the files I have and get the brut map to read it?

i can't use 3g, and i can't really download any more map files either cuz stupid rogers has a bandwidth and i'm already well over it.. (still 6 more days left *tears*)

so it'd be great if i could just somehow convert the maps i already have into brut map usable ones...

thank you!
[G1 Android Development] temp304:
excellent app, how I cache all maps in my regions for using offline :D
[G1 Android Development] chasepack:
you either

1) didnt edit the .map file to BrutMaps

or

2) didnt select BrutMaps Mode for .map files (and ended up using MGMap mode...)

original instructions here:

http://xdaforums.com/showpost.php?p=7189735&postcount=1137
[G1 Android Development] jpaq:
Does this mean that the map tiles produced via your app will not be able to work properly on "unrooted" devices? If we wanna use 'em, we have to root our devices, no two ways about it?
[G1 Android Development] BryanChung:
-faint faint- :eek:
[G1 Android Development] Brut.all:
This is exactly what it does :-) Note that it's in "debug" section, it makes me possible to run full native navigation for debugging purposes.

But this is normal for any app on Android?

Someone reported this earlier. For some reason I can't reproduce this, but yeah: I think I may have screwed up this.
[G1 Android Development] caspar.chan:
waiting for Brut15 :p
[G1 Android Development] billquinn1:
I tried it on my current rom (Eclair Superbad 1.7)and did not have the same trouble. It may be a froyo thing or something that Chromer Dev left floating around. Just posted all that for your info.

The Seattle thing was cool. Just wish I could have had some coffee while I was there.
[G1 Android Development] canadiancow:
So I was looking through the vector stuff in 4.4.0.

From a user perspective, I can't seem to get it to do anything more than before (i.e. other than panning around and zooming).

However, there do seem to be a few code changes (additions), so it's possible we could see native offline navigation in a couple versions.
[G1 Android Development] lohtse:
Nice work on BRUT maps...

Looking forward to a 4.4.0 version
[G1 Android Development] allmoney.ws:
Oh... We VERY wait feature when we can download cache from mobilemaps.clients.google.com ...
[G1 Android Development] QKer:
Look forward to your 4.4.0 version of the update to come.
[G1 Android Development] chasepack:
it is doable... but very tedious....

eg.

MGMapsCache\GoogleMap_18\78\206474_130051.mgm

corresponds to

MGMapsCache\19\78\130051\206474

"GoogleMap_18" correstponds to "19" in Brut maps

"78" to "78"

filename "206474_130051.mgm" chops into folder "130051" and file "206474"

hope you get what i mean.... need a script to do it realistically. errr. my skills are rotten.. so dont count on me being successful anytime soon. lmao!
[G1 Android Development] HardCorePawn:
Not necessarily...

If the map tiles are not already in the brutGM cache that lives in the /data/data/brut.googlemaps/files dir... it will read ones that you put on your sdcard (ie. ones you've downloaded via gMapMakerHCP tool)...

The even BETTER news, is that I've found that uninstalling brutGM removes everything from /data/data/... (I had kind of hoped that you could do it by going into Settings->Applications->Manage Applications and doing a "clear cache" on brutGM, but the button was not enabled :(

The big problem is that you need a data connection to open brutGM the first time after install (After that it doesn't care)... so without root, you might end up with 1 or 2 stray tiles that get cached from the first time it starts up (I suggest starting up with only wifi enabled (GPS OFF!) and as soon as the "Loading" message disappears, kill the wifi connection (yay for wifi toggle on Samsung Galaxy S notification bar!)... this way it should hopefully only download 1 or 2 tiles at a high level.

Then you can go into the setup, set brutGM to read from sdcard... and you can browse around your downloaded maps to your hearts content...

To summarise:

NOTE: the following is only required if you DO NOT have root... and you have lot's of mismatched tiles...

- uninstall brutGM

- copy all your downloaded maps to the brutGM tiles dir on your sdcard

- re-install brutGM

- start up brutGM, once "loading" message disappears, kill your network connection as soon as possible (don't browse or zoom around map)

- go into the brutGM settings and set it up to read from sdcard

Hopefully, you'll only get a couple of high-level tiles downloaded... which you'll probably never see anyway ;)
[G1 Android Development] HardCorePawn:
Which copy of gmapmaker did you use? The correct one is this one:

http://www.multiupload.com/2N819C5O4R

it should have been in the file gMapMakerHCP_v0.1.zip... and when you click the "About" button it should say "gMapMakerHCP v0.1.0.0"

You also need to make sure that you edit the .map file you generate using mapcacher.com.

You must change the first line so that it says BrutMap.... not BrutMaps, not GoogleMap... ie. it should look something like:

BrutMap
10-16: -46.014336634827444, 165.234375 : -44.956830586450984, 172.265625
10-16: -46.27871314692156, 165.5859375 : -46.014336634827444, 171.9140625

obviously your co-ords will be different, and you'll probably have more lines starting 10-16... but you get the idea.

Run gMapMakerHCP and make sure you have set the following:

Operating Mode: "BrutMaps mode, download tiles using a .map file"

Hash size: 1

Tiles per file: 1

Cache folder: wherever you want the files downloaded to on your comp

Max Parallel Downloads: whatever you like, I suggest 3.

Group by zoom: CHECKED

Wait between request: CHECKED

Delay (ms): 1000

Everything else should be greyed out or unchecked.

Then click go, it should ask for the location of your .map file, select it... and then it should start downloading the maps

good luck!

HCP
[G1 Android Development] tangsooyuk:
Feature Request:

I have multiple google accounts that I use and would like to choose which one I sign in with, for things like My Maps layers, etc.. as of now, it is only allowing me to sign in w/ the default google account that the phone is configured to (the one I use to login to the android market).

(stock google maps in Froyo allows for you to choose which google account you use to sign in).

Thanks for the great work!
[G1 Android Development] ultra99:
Very nice.

But I'm trying to get directions from My Location to Pointing on map, i get Route not Found all the time. How come?
[G1 Android Development] wackob:
Awesome, thanks pawn bro that worked a charm!
[G1 Android Development] HardCorePawn:
Glad to hear you got it running ok...

Maybe I should ask brut.all for details on the binary protocol that is used to retrieve tiles from mobilemaps.clients.google.com... Might be able to hack it into that gMapMaker as well... Then it wouldn't matter if you downloaded tiles on or off line... They'd all match up ;)
[G1 Android Development] chasepack:
:P yea you should...

just a question... do you get severe memoryleak from running gMapMaker? mine drinks my ram with every tile it downloads (or (down)loads) until i'm out of them... end up i have to chop the .map file into small pieces just to complete a a download....
[G1 Android Development] HardCorePawn:
Nope... Just did a quick test now... And RAM usage didn't go much over 16,500K... ???

I'm running Win 7 pro 64 bit... What OS are you using?
[G1 Android Development] chasepack:
mmmmmmmmmmm.... odd... really odd...

tried it out on these 2 computers so far: Thinkpad laptop -- Windows XP Pro 32bit 2GB ram

DIY desktop -- Windows 7 Pro 32bit 4GB ram

- loading lvl18 .map file, the program size increases with every (Down)loading of a tile.

- loading lvl19.map file, the program size increases with every Downloading of a new tile.

- Pause and Cancel to go back to original screen does not recover the memory, any new .map file loaded will just increase it even more.

- regardless of number of instance running

- regardless of number of number of parallel threads

so the only way i can release the memory is to close the whole program and reload it.

original gMapMaker also have the same issue.

unfortunately i don't have any 64bit computer for me to check it out on though...
[G1 Android Development] cocchiararo:
question!

since google navigation is now available in spanish, is there any chance/way to add spanish audio to this mod ? (i live in argentina, we speak in spanish, but we have no navigation :P).

I have NO problem with english, but the english voice has NO idea how to read street names from my country, and it reads "Av" (short for avenue) like "a v", its kinda ugly :P Also, when i get to destinantion, instead of saying "you have arrived", it says "has llegado" (thats spanish), but it reads it with english pronunciation, just like with street names :(

thx in advance
[G1 Android Development] canadiancow:
I can't comment on getting it to "speak Spanish", but the "Av" is going to be a problem. The directions from the normal Maps server (i.e. what the international hack requires) are written like "Turn left at Main St", whereas from the Navigation server, they are written like "Turn left at Main Street". The app just does its best to pronounce the data it has received.
[G1 Android Development] sum_guy55:
Love this app can't wait for the next version with the newest google maps.
[G1 Android Development] HardCorePawn:
Yeah, nevermind the spanish, it struggles with English too!

I live near a few "Places"... only they're listed as Pl... so it's "Turn left at Snave Pee Ell"...

It also struggles with the Southern Motorway listed as "Southern Mwy"... "Take the Southern Emmm Why for 13 kilometres"

bwhahaah at least it cheers me up when stuck in traffic :D
[G1 Android Development] meric04:
It's an endless source of amusement for the kids in the back seat.

My favourite is the "Traffic Circles", complete with arrows in the wrong direction.

Thanks to Brut for making it work at all.
[G1 Android Development] techspy:
Is there an alternative to gmapmaker? I have tried every combination I can think of and all I get are very small "files" in my cache folder. Maybe my IP is blacklisted but I can still use google maps in a broswer with no issue. Anyway, I tested on the phone by having "Save map to cache", browsed a bit and was able to view maps with flight mode turned on and "Read map from cache" checked. So, is there another way to get the map tiles downloaded beside browsing or using gMapMaker? (or any idea why I am just getting small 6-20kb, no extension files in the cache folder with gMapmaker?)

Thanks
[G1 Android Development] HardCorePawn:
It would appear that it is working fine

BrutGM literally stores them in Z/Y/X format... that caught me out initially... I was appending a file extension

If your zoom level is 18, and the tile is "Y co-ord" 6243 and "X co-ord" 3532, it will be looking in for: /sdcard/brut.googlemaps/tiles/<LANGUAGE>/18/6243/3532

ie. there is no file extension on the tile...

Note that the files ARE small, as they are only 256x256 pixels... and are only the google roadmaps (NOT satellite images!) so don't have a lot of detail...

You can test that they are in fact pics by adding a .jpg or .png extension to one of them and opening it in a pic viewer.

cheers,

HCP
[G1 Android Development] techspy:
You are correct sir! Added .jpg and it opened fine. Thanks!

Move along, nothing to see here...
[G1 Android Development] HardCorePawn:
Wait until you try to transfer several thousand of those files to your phone... I suggest you get a season box set of your favourite tv show, lot's of popcorn, a decent sized novel (like War and Peace ;)) and don't plan on using your phone for anything for about 1/2 a day

:(
[G1 Android Development] techspy:
I hear ya...probably just put the sd card in my pc and start the transfer overnight. I already have about a gig of offline maps for MapDroyd and will have about 3.5 when I am done. Between that and Brut, I will have a lot of space dedicated to offline maps. Its worth it to be able to use these offline though.

Thanks again.
[G1 Android Development] tuxStyle:
I feel your pain.

I live in Montreal where most of the street names are in French and the english voice is crap :)
[G1 Android Development] tvslob:
still waiting for brut 15 to come out...
[G1 Android Development] canadiancow:
And I'm sure making an account just to post that message is going to encourage him to work faster.
[G1 Android Development] HaloTechnology:
yeap thtas too
[G1 Android Development] tvslob:
yeah hope so:p
[G1 Android Development] chasepack:
not to mention the SD card must be big enough... lets see... 400+MB of those small files take up multiple GB on storage... or more... darn cluster limits...

anyway to compress the tiles together or such to be much more space efficient?

lol...
[G1 Android Development] HardCorePawn:
NOTE: The actual point of this post is all the way at the bottom ;)

I was actually mucking around in Android Market (doing something unGPS related) and discovered a couple of other map apps...

"Maps (-)" and "Locus"

They both offer downloading/caching of maps...

Maps (-)

======

- It will let you cache whatever "area" is on the screen, down to a certain zoom level... so you can start high and say "go" and it will cache whatever area is on screen, down to whatever level you ask it too... it also displays 'mobile ads' if you are downloading a 'large' area... this seems to be anything more than about 100 tiles at once ;)

- It downloads to /sdcard/coderminus.maps/google/<ZOOM>/<X co-ord>/<Y co-ord>.png.tile

I assume the ".tile" is an effort to prevent the gallery app from indexing all the map tiles ;)

Pros:

- If you browse outside of pre-cached area, it will add the tiles to the pre-exisiting cache... so it will slowly build up the map for you if you want...

- Allows use of all google maps (ie. satellite, road + terrain)

Cons:

- Still suffers from lot's of little files sucking up space

- Mobile Ads... but fair enough I guess... google get their ad money, you get maps :P

Locus

====

- Lets you draw a 'rectangular' area on the screen and will cache the tiles in this area down to the zoom you choose, it gives a rough guide of how many tiles and how large...

- It actually downloads the tiles at a particular zoom level, then compresses them into a .tar file...

Pros:

- Storing in tar seems to reduce the 'cluster size' issues... ie. lots of little <1k files sucking up space...

- Allows use of all google maps (ie. satellite, road + terrain)

Cons:

- If looking at downloaded maps, if you scroll outside the downloaded area... you just get a blank tile that says "not exist"... it will not retrieve the missing tile

Anyway, the point of all this is that:

A. It looks like there are other ways to download map tiles (although you'd need to do some fancy scripting/renaming to get the files into the right folder structure and name format for BrutGM (given that both these apps are storing in Z/X/Y... as opposed to Z/Y/X for BrutGM... personally, I think Z/X/Y is better

and

B. it appears there are options for compressing the files into some form of "bulk storage" other than simple tiles... although I have no idea how this is achieved and what the performance hit is having to retrieve from/write to a .tar file...
[G1 Android Development] canadiancow:
You used the word "cluster", so I'm going to assume that my post isn't helpful to you, but maybe it will be for someone else.

1. Back up the SD card.

2. Format it with the smallest possible cluster size. In Windows, this would be the "Allocation unit size" in the Windows format utility.

3. Restore your files.

The rationale is that with a cluster size of, say, 4KB, the space taken up by a file is rounded up to the nearest 4KB.

So when you're dealing with 256 byte images (I don't know exactly how big they are, but that's a nice number to work with), 93.75% of your SD card is the overhead for storing the files (versus 75% overhead with 1KB clusters...still bad, but you'll fit almost four times as many files).

Modern file systems were simply not designed to store hundreds of thousands of tiny files.
[G1 Android Development] tragos:
Here in Helsinki, Finland, some of the street names are shown in Finnish and the others in Swedish. This is a Google Maps issue which seems to concern all the bilingual towns in Finland. It could be possible to adapt oneself to understand false (English) pronunciation of one language. But two languages is too much for me while driving so I usually keep the voice instructions muted.

Otherwise the navigation works great.
[G1 Android Development] tragos:
For this reason Maemo Mapper, a mapping tool for Nokia Internet Tablets, stores the map tiles in a SQLite database.

SQLite is supported natively by Android, isn't it?
[G1 Android Development] barch27:
Hi brut (or any other expert),

I see that your version of gmaps can be installed *alongside* the original installed version so that non-rooted users can install it. I'd like to do something similar with the youtube and gmail apps, and was wondering if you would be able to provide some instructions or pointers to how one can get a modded app to install alongside the original installed version (I use apktool for modding). Thanks a lot.
[G1 Android Development] mioqiu:
4.4please，cant waiting
[G1 Android Development] canadiancow:
Change the package name.
[G1 Android Development] Brut.all:
http://www.multiupload.com/G9M8Z7SAJ1

md5sum: dd53fff0c8d087a72a77c8bb2acf76f2
[G1 Android Development] wildgunman:
forced closes and broken icons (Nexus one with Froyo) :-(
[G1 Android Development] Brut.all:
Hmm.. could you look into a logcat? And what do you mean by "broken icons"?