De-peado-ifying Japanese Google Market App

December 6, 2012 Leave a comment

I’m not a free-marketeer but the amount of protectionism on Google Play (Market) is bewildering, not to mention the child porn as well. Every time I open the Play app and see the “Books and Reference” section I just lose hope for the future of this country.

So here’s how to get rid of child porn and have access to all apps on your android device, hypothetically of course (but only if you’re running a userdebug or a rootable custom ROM):

adb root
adb remount
adb pull /system/etc/hw_config.sh
cp hw_config.sh hw_config.sh.orig
echo -e "while true ; do
  setprop gsm.sim.operator.numeric 23410
  setprop gsm.operator.numeric 23410
  setprop gsm.sim.operator.iso-country gb
  setprop gsm.operator.iso-country gb
  setprop gsm.sim.operator.alpha o2-UK
  setprop gsm.operator.alpha o2-UK
  sleep 60
done" >> hw_config.sh
adb push hw_config.sh /system/etc/hw_config.sh
adb reboot

Now open Play’s preferences and make sure content filtering is turned off by checking all the boxes.

This would drain the battery so once you’re done installing the apps you need:

adb root
adb remount
adb push hw_config.sh.orig /system/etc/hw_config.sh
adb reboot
Categories: Uncategorized

Adb over TCP/IP

July 8, 2012 1 comment

One thing I have had problems with my TF101 is that I can’t charge it while connected to the PC via USB – I have to charge it using the mains adapter thingie they provide. This means that I cannot adb into it whilst charging. This is a bit rubbish since I wanted to run scheduled Jenkins jobs to sync files automatically.

With a bit of searching on xda, I found that I can solve the problem by letting adbd listen to TCP/IP port instead of USB.

  1. Gain root-access – because everything requires root-access.
  2. Make sure your device is connected to the WiFi network.
  3. In root-shell, execute the following:
    setprop service.adb.tcp.port 5555
    stop adbd
    start adbd
  4. On your host PC/Mac, connect to the device via:
    adb connect 192.168.11.11:5555
  5. You can now use adb shell, etc, via WiFi

To disable it and return ADB to listening on USB:

setprop service.adb.tcp.port -1
stop adbd
start adbd

If you have USB access already, it is even easier to switch to using WiFi. From a command line on the computer that has the device connected via USB, issue the commands

adb tcpip 5555
adb connect 192.168.11.11:5555

To tell the ADB daemon return to listening over USB

adb usb
Categories: Android, Featured, Geeky Stuff

Saving many-to-many relations across multiple databases in Django

May 26, 2012 Leave a comment

>>> for o in explorer.models.MainBranch.objects.using('old').all():
...   l = list(o.tags.values_list('pk', flat=True))
...   o1 = explorer.models.MainBranch.objects.get(pk=o.pk)
...   for id in l:
...     o1.tags.add(explorer.models.IssueTag.objects.get(pk=id))
...   o1.save()
...
Categories: Geeky Stuff Tags: ,

Mass Effect

April 4, 2012 Leave a comment

Well, I finished it, but I have to say, the ending was brilliant right up to the last bit. It’s left me feeling quite disappointed.

Categories: Uncategorized Tags: ,

Ramblings January 2012

January 15, 2012 Leave a comment

Things that pissed me off recently

  • Old Japanese guys who stops right on the top of escalators, and, if you tut behind them, get angry and demand respect just because they are old.
  • People who stand right next to the train doors just after they get on
  • Mum drivers who go 1 ft over the centre line on narrow streets.

Tapas Lunch

January 14, 2012 Leave a comment

20120114-184056.jpg

Lunch at Mon Tercero on the ground floor on Front Building in Shinagawa. Comes with what they call tapas, but, really, you need a fork. They have things like grilled chicken and “hamburg”. A decent food for a reasonable price. +2

Categories: Uncategorized

Music Dump

January 7, 2012 Leave a comment

Most of my music can be found on my myspace page.

The Divine Right of Destruction is a spoof of the Symphony X tune “The Divine Wings of Tragedy”. I think ┬áit was in the first year of uni, when one of my mates challenged me to create something like a Symphony X tune, ’cause I just wouldn’t stop complaining about the over-use of sequencer and multi-tracking. Of course, this was before I actually saw their live performances.

Double-sided was created around a simple chromatically descending bassline with heavy distortion on it. At the time, I was ecstatic about my new GT-09B bass multi-effector pedal, like a small child with a new toy.

Tik-Tak Calypso-style jazz number

Categories: Music