Negatus/README.md

1009 B

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.