That's why it's fun complications!
Perhaps it's what you are writting, but what would be great is a way to create some java files, inject these java file in an android task, and run these java files.
Let's say you just copy some java or .class files to
/sdcard/gameguartian/com.mydomain.myfile/mytest1/
When I start an application called com.mydomain.myfile, these files/class are added to the application and a "main" method is runned in the same space than the application
Tip: you can modify this lib: core.jar
Similar to
https://gameguardian.net/forum/topic/1886-proposal-for-a-hack-call-a-java-method/
- I can use it to monitor and test my own application as a developper! (legit way) -> could answer "why is this application crashing on this specific phone!", run test cases (Linked to https://gameguardian.net/forum/topic/1713-auto-click/ ). Even if we have some tools provided by google like Monkey ( http://developer.android.com/tools/help/monkey.html ), it's still quite limited!
- I can use it to change stuff, add monitoring stuff on other applications...... Example get list of Threads, stop a thread, get list of objects, change a value in an object!