Skip to main content

Posts

Showing posts with the label java

Android game automation - part 2

In the previous post I touched upon the fact that simulating hardware input events was very slow and not really suited for fast, repeated actions. The second approach is based on MonkeyRunner, a free library included with the Android SDK. It is able to talk to the Android device using a Python-like language. Part 1:  http://hackcorellation.blogspot.de/2013/07/android-game-automation-part-1.html

txtr Beagle - card parser

I started playing around with the SD card contents to see how I can parse it and verify the functionality. The result is a small Java program that is able to read the contents page by page and display it on a little panel. You can type the page number and press <Enter>, you can use arrow keys or mouse wheel to scroll.

txtr Beagle - Part two - software

Bluetooth Thanks to Moritz I was able to connect to txtr via the Bluetooth SPP profile. To do this you need to disable the txtr app that is installed on your phone and install any app that does Bluetooth serial debugging. I used "Bluetooth SPP", available freely on the Play Store. UPDATE : Andreas Schier has written an open-source java toolchain for Beagle:  https://github.com/schierla/jbeagle My own version:  https://github.com/ligius-/jbeagle UPDATE : Florian Echtler has built two Python scripts, one emulating the server and another one for the client. The server allows you to send images to your reader: http://floe.butterbrot.org/matrix/hacking/txtr/ Part 1:  http://hackcorrelation.blogspot.de/2013/07/txtr-beagle-teardown-part-1.html Part 2:  http://hackcorrelation.blogspot.de/2013/07/txtr-beagle-part-two-software.html Part 3:  http://hackcorrelation.blogspot.de/2013/07/txtr-beagle-part-3-storage-and-transfer.html Part 4:  http://hack...

Android game automation - part 1

First: this is borderline immoral so don't ask for any source code or help. My friend got me into a repetitive Android game that I will not name here. Basically it's a different kind of Farmville (I assume) that requires you to mindlessly click 'animals' to 'farm' money from them. On top of that you have to also activate two type of farms in order to feed the animals and evolve them. Feeding is not a requirement, so it will only be done in the second iteration of this automation. As a rule of thumb any task that takes you at least 5 minutes every day for a year should be automated if it could be done in less than 20 hours.