INACTIVE - http://mzl.la/ghe-archive - C++ version of the Android Java SUTAgent
Перейти к файлу
Mihnea Dobrescu-Balaur 0de76baf69 log received command lines 2012-09-10 18:10:50 -07:00
libs move libs to their own folder 2012-08-08 17:20:29 -07:00
src log received command lines 2012-09-10 18:10:50 -07:00
.gitignore working on b2g 2012-08-02 14:40:03 -07:00
Android.mk build works 2012-08-22 15:39:21 -07:00
Makefile add NSPR logging support 2012-09-10 18:04:32 -07:00
Makefile.droid Merge nspr and Makefiles. 2012-08-20 16:43:26 -04:00
Makefile.linux A few fixes, and no longer need the -fpermissive flag. 2012-08-21 16:18:58 -04:00
README.md prettify the readme 2012-09-10 18:05:33 -07:00
bootstrap.sh do not reinstall toolchain everytime 2012-08-20 14:05:53 -07:00
run.sh Fixed run.sh. 2012-08-20 17:02:20 -04:00
setup-tools.sh don't download busybox everytime 2012-08-27 15:58:11 -07:00

README.md

Prerequisites

You need to:

  • have the Android NDK:

  • have the NSPR headers installed under /usr/include/nspr:

  • export these vars:

    • NDKPATH = path to the NDK folder
    • ADB = path to the adb binary
  • have a running B2G emulator/device with the ports 20700 and 20701 forwarded:

    • adb forward tcp:20700 tcp:20700
    • adb forward tcp:20701 tcp:20701
  • install busybox on the device:

    • ./setup-tools.sh
  • have the toolchain:

    • source bootstrap.sh

Building, running

Just ./run.sh.

Including this in B2G

Just clone this repo inside $B2G_REPO/system/. Build and flash B2G as usual and then you will be able to run the agent using sutagent. It will be in the $PATH.

Start the agent on boot

Add a sutagent & line after the exports in $B2G_REPO/gonk-misc/b2g.sh.

NSPR Logging

Before running the agent:

export NSPR_LOG_MODULES=NegatusLOG:5

export NSPR_LOG_FILE=/path/to/log/file