binder_example

This is an example of how to use Android IPC binders from native C++ code. It is modified with reference to Gabriel Burca's article and source code. The links are as follows.

Reference

How to build

Step 1

git clone https://github.com/jcdkuo/binder_example.git to android/externel folder

Step 2

Go to your android root folder, then run

source build/envsetup.sh

Step 3

lunch ${PRODUCT_NAME}

Step 4

Go to binder example folder (binder_demo_server/binder_demo_client), and run

make clean
make

Step 5

push exec file to rootfs system/bin folder, then you can exec it.

use logcat | grep "binder" to see the log