Requirement :
- Have Android debugging tools
- Downloaded the compressed files for emulator image and any of the monitor (we will call it <monitor_1>)
- Also downloaded another (different) monitor (we will call it <monitor_2>)
- Extracted these files to a directory <path>
Sample instructions to start the emulator and installing test suite apps :
-
cd <path>
-
./run.sh
Use this command to run the emulator. This shell script is just an example with predefined options, but you can change it according to specification. Type "./emulator --help" without quotation marks to see available options.
-
adb install funApp.apk
Use this command to install the test suite apps on the device.
-
adb install funService.apk
-
adb install TrustGroupManager.apk
Instructions on playing around with the monitor module. This sample attach a module once, then replace it with another one (can be repeated to keep on changing the monitor module) :
-
adb push <monitor_1>.ko data/Monitor_module.ko
Use this command to copy the kernel module from the computer to the device (to "data/Monitor_module.ko"). The path here is arbitrary, you can change it to anywhere in the device as long as it is writable
-
adb shell insmod data/Monitor_module.ko
Use this command to attach the monitor module to the kernel.
-
adb shell rmmod Monitor_module
Use this command to detach the monitor module from the kernel.
-
adb push <monitor_2>.ko data/Monitor_module.ko
-
adb shell insmod data/Monitor_module.ko
*) Note that you need to
set the static variables using "Trust Manager" app before the module can function properly
Home >
LogicDroid