Skip to content

Strace with enhancements to understand some Android 'binder' IPC calls

Notifications You must be signed in to change notification settings

stoletheminerals/strace-android

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Strace with enhancements to understand some Android 'binder' IPC calls

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 96.7%
  • Roff 1.3%
  • Shell 1.2%
  • Perl 0.6%
  • Emacs Lisp 0.2%
  • Other 0.0%