Requirement :
- Nexus phone (obviously) and rooted
- Have Android debugging tools
- Have fastboot tools
- Downloaded the compressed files for Nexus 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 flash the image and installing test suite apps (WARNING : that this will wipe all the data on your device) :
-
cd <path>
-
boot the Nexus device into bootloader and connect it to computer
You can do this by pressing the volume up, volume down, and power buttons altogether when the device is turned off. Alternatively you can use "adb reboot-bootloader" command.
-
fastboot flash boot myBoot.img
-
fastboot flash system system.img
-
fastboot flash userdata userdata.img
-
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 sdcard/Download/Monitor_module.ko
Use this command to copy the kernel module from the computer to the device (to "sdcard/Download/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 sdcard/Download/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 sdcard/Download/Monitor_module.ko
-
adb shell insmod sdcard/Download/Monitor_module.ko
*) Note that you need to
set the static variables using "Trust Manager" app before the module can function properly
Home >
LogicDroid