Kosher Google Maps

Google Maps go uses Chrome as a browser It’s not a standalone browser like Google maps

1 Like

No idea.

I decompiled the maps apk (normal one) and damaged the links, tried a few different ways.

App compiles and signed with no errors, but failed install no matter what I do.

Let’s say not for a APK what about for a custom ROM do you know what text would work for the regular Google Maps app pictures and street view?

I have a list of links from a traffic dump that I took. I’ll let ya know

Progress, just got all images blocked on the normal apk:

fonts probably not necessary

127.0.0.1 fonts.gstatic.com
127.0.0.1 gz0.googleusercontent.com
127.0.0.1 karto.static.usercontent.goog
127.0.0.1 lh3.googleusercontent.com
127.0.0.1 streetviewpixels-pa.googleapis.com
127.0.0.1 126.174.150.34.bc.googleusercontent.com

found this 126.174.150.34.bc.googleusercontent.com, but I can’t enter wildcard domains in the host file and it’s probably device specific.

This specific url works on my phone, for now.

All images, streetview and immersive view blocked.

@FlipAdmin Can eGate dns blocking support wildcard domains, like *.bc.googleusercontent.com?

@TripleU I wonder if we can use dnsmasq reliably on android, and create an auto start boot script. Maybe I’m overcomplicating things, I dunno.

1 Like

what i do is i remove the block DNS settings in the settings app and set the dns on first boot after factory reset…

I’m not sure what your referring to exactly.

My only issue is that I need *.bc.googleusercontent.com, a wildcard domain, blocked. Wildcard domains are not supported by the host file.

ps: added screenshots, check them out

I can set any custom dns and lock it - on my kosher ROMs… that helps?

Can you use wildcard domains?

*.bc.googleusercontent.com

You do that, and you got yourself a kosher maps APK (well, not the APK, you know what I mean).

Tried using dnsmasq instead of hosts and it’s more like dnsmess on Android.

Found this magisk module:

AdGuardHomeForRoot

I know it’s not integrated into system, but it’s a start.

Theoretically, you can backup the preconfigured module for flashing on other devices. Haven’t tried it yet.

Works perfectly with this custom filter list below, (including wildcard domain, to block StreetView and ImmersiveView), not to mention you can use this for all apps where you want to block urls.

once installed, head to http://localhost:3000

User - root
Password - root

Go to Filters → Custom Filtering Rules

Enter the below:

||cbks4.googleapis.com^
||cbks3.googleapis.com^
||cbks2.googleapis.com^
||cbks1.googleapis.com^
||cbks0.googleapis.com^
||cbk0.googleapis.com^
||gz0.googleusercontent.com^
||karto.static.usercontent.goog^
||lh3.googleusercontent.com^
||streetviewpixels-pa.googleapis.com^
||bc.googleusercontent.com^
||arvr.google.com^

Clear maps data after entering list. If it’s still not working, reboot.

How to change the password:

Install termux (you can revive after)

Enter these commands (minus the “<” and “>”)

pkg install apache2
htpasswd -B -n -b <username> <new_password>

Copy the hash output

Then, open /data/adb/agh/bin/AdGuardHome.yaml for editing.

Paste the hash in the current ones place. Reboot.

The password is now changed.

Screenshot is exactly what I was trying to accomplish, blocking wildcard domains, which the hosts file does not support:

4 Likes

Please create a guide in Android guides. I’m speechless…

4 Likes

Good stuff, eh :slight_smile:

I had off from work today lol

Will write a general guide tonight.

Any ideas on how to implement this into system and skip magisk?

Yes, but I’ll have to take a look at a normal guide…

1 Like

Technically magisk is just running a service on boot, so should be possible to create a service, especially if you have experience with it, which you do.

Can you please?

Did anyone ever actually try modding Google Maps?

I tried with apktool. Damaged all the links. Compiled and signed with no issues.

Would not install. Tried compiling in a few different ways, no dice.

I’m not expert APK modder though

Also would have to keep updating the app

Not all apps expire when there’s an update

Thats what I’m looking for