-
Notifications
You must be signed in to change notification settings - Fork 36
Deploy to Device
ZongXian Shen edited this page Jul 12, 2016
·
2 revisions
Let's turn on the target device for experiment. After boot up, we need to migrate the ProbeDroid engine and the instrumentation tool to the device.
-
Recall that the launcher is installed at:
PROJECT_ROOT/launcher/libs/x86/launcher
PROJECT_ROOT/launcher/libs/armeabi-v7a/launcher
-
And the core library is installed at:
PROJECT_ROOT/engine/libs/x86/libProbeDroid.so
PROJECT_ROOT/engine/libs/armeabi-v7a/libProbeDroid.so
-
Additionally, we need to create a directory
PROJECT_ROOT/tools
and copy the tools we plan to deploy to here.PROJECT_ROOT/tools/StringInspector.apk
PROJECT_ROOT/tools/ComponentInspector.apk
- and etc ...
This python script can help us complete the migration process
$ python auto.py --deploy --arch=ARCH --path=PATH_IN_DEVICE
--arch ARCH (The target device architecture. Please specify arm or x86.)
--path PATH_IN_DEVICE (The working directory to store our binary. /data/local/tmp for example.)
python auto.py --deploy --arch=arm --path=/data/local/tmp