hacking android class libraries

Monkey Targets Forums/Android/hacking android class libraries

skid(Posted 2011) [#1]
I have been working on a small project to expose entire Android API in a monkey module. To do this I wrote a small Java class loader (in monkey) and have managed to produce a working module based on nearly 3000 classes found in the Android.jar SDK file.



my first test program:

' testandroid

Import mojo

Import android.app.progressdialog
Import android.app.activity

Extern

Class MonkeyGame
	Global activity:Activity
End

Public

Class MojoApp Extends App
	Method OnCreate()	
	End
End


Function Main()
	New MojoApp

	Local dialog:ProgressDialog
	dialog = ProgressDialog.show(MonkeyGame.activity, "Hullo", "Loading. Please wait...", True);
End



Samah(Posted 2011) [#2]
Well, well, we have our own little Brucey here!
Lookin' good. ;)


matty(Posted 2011) [#3]
Great...there's a lot of functionality in the Android sdk...


MikeHart(Posted 2011) [#4]
Looks intersting.


wiebow(Posted 2011) [#5]
Awesome, Skid! Keep it up. If you need testers, just yell.


DruggedBunny(Posted 2011) [#6]
Oh, cool. Android is probably the target that interests me most right now. This could encourage me to actually buy a phone!


slenkar(Posted 2011) [#7]
This is what monkey needs in my opinion
you can do all kinds of stuff while images are loading (i guess)
keep up the good work


Richard Betson(Posted 2011) [#8]
Way cool!


skid(Posted 2011) [#9]
It will be more useful once I manage to new child classes, catch exceptions and override native interfaces. fingers crossed...