public class Daemon
extends java.lang.Object
| Constructor and Description |
|---|
Daemon(android.content.Context context,
java.lang.String addr,
android.graphics.Point screenDimensions)
Create a new Daemon instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
spawn_adb()
Start ADBService, which will call fakeinputlib on commandline.
|
void |
writeFakeInputToFilesystem()
Copy fakeinputlib binary from APK to local directory.
|
public Daemon(android.content.Context context,
java.lang.String addr,
android.graphics.Point screenDimensions)
context - Application context. Used to get application binary.addr - Server address. This will be passed as a commandline argument to the fakeinputlib binary.screenDimensions - Screen size including status bar and navbar.public void writeFakeInputToFilesystem()
throws java.io.IOException
java.io.IOExceptionpublic void spawn_adb()
java.lang.Exception