ADB Parrot Asteroid via Mobile (Bluetooth) and Computer/Laptop (Wifi)

 

On phone (I used rooted HTC Desire, CM7), install:

SSHDroid – free from market

Port Forwarder by Bernard Herbst – free from market

Open Garden WiFi Tether – free from market

Connect phone via Bluetooth to Parrot

On Phone start Open Garden Wireless Tether.  Go to Settings, check Bluetooth is enabled

On Parrot go to Settings –> Network –> Bluetooth –> Connect –> Select Phone

Parrot should now connect to Bluetooth PAN.  Check IP of the Parrot in Open Garden WiFi Tether.

Ensure WIFI is enabled and phone and computer are joined to the same WLAN.

Start SSHDroid on phone, connect via SSH from computer to phone.  On rooted phone username is root and password is admin.  Confirm successful ping to 192.168.2.100 (default IP given to the Parrot from Open Garden WiFi Tether). More »

02. July 2010 · Write a comment · Categories: Android · Tags: ,

Still with my trusty G1 and large battery I have recently been getting annoyed by ads in programs. I know, shouldn’t complain, have to fund free software somehow – but I’d rather pay a small fee for an ad free version, but there isn’t always one available.

Using ADB I monitored DNS requests (using a Cyanogen rom so tcpdump is standard):
tcpdump udp dst port 53 or udp src port 53

Run some apps up on the phone, look for the A record request:

12:32:05.253387 IP 10.3.230.141.25368 > 10.x.x.x.domain: 22568+ A? img.qwapi.com. (31)
12:32:05.336425 IP 10.206.65.68.domain > 10.x.x.x.25368: 22568 1/0/0 A 216.236.237.201 (47)

And add the request to /etc/hosts (use adb to push/pull the file then edit in your favourite editor):

127.0.0.1 img.qwapi.com

Or from adb shell/the terminal:

echo "127.0.0.1 img.qwapie.com">>hosts

NB Use 3 tabs for spacing.

Repeat for all other ad looking domains, such as:

mm.admob.com
r.admob.com
googleads.g.doubleclick.net
ads.fring.com
ad.qwapi.com
img.qwapi.com

pagead2.googlesyndication.com


There is a very comprehensive list here which seems to be frequently updated, but it is large – at ~600kb

There will of course be thousands of new ad servers and services, so the list you need to block will keep updating – I just went for ones that affected me.