Skip to content

Latest commit

 

History

History
48 lines (31 loc) · 1.64 KB

README.md

File metadata and controls

48 lines (31 loc) · 1.64 KB

strace-android

strace-android is a customized version of strace, originally modified by @adetaylor to read and interpret ioctl() calls made on binder handles. Binder, formerly known as Open Binder, is an interprocess communication API used in Android systems. This repository includes some minor fixes to work around compile issues I (@divergentdave) ran into. There is a statically built ARM binary of strace on the "build" branch, for convenience.

Downloading

Download the compiled ARM binary from https://github.com/divergentdave/strace-android/raw/build/strace or scan this QR code.

Building

I built strace-android in Ubuntu, though other Linux distributions should work just as well.

  1. Install an ARM cross-compiler.
sudo apt-get install gcc-4.7-arm-linux-gnueabi
  1. Set environment variables in the current shell. You may need to change the values of CC and STRIP if you install a different version of GCC or install it to a different path.
export CC=/usr/bin/arm-linux-gnueabi-gcc-4.7
export STRIP=/usr/bin/arm-linux-gnueabi-strip
export CFLAGS="-O2 -static -DHAVE_LINUX_BINDER_H"
  1. Set up and run automake. You may need to install the automake package if it isn't already installed.
automake --add-missing
autoreconf
  1. Run configure.
./configure --host=arm-linux
  1. Build.
make
  1. Copy strace to a writable, executable partition on your phone and run it as root.