1 To use this APK do something like: 2 3 1) Build your favorite AOSP flavor. 4 2) Start an emulator: 5 $ emulator 6 3) Push over hellod binary: 7 $ adb remount && adb sync 8 4) Install the Java client: 9 $ adb install -r <path-to-APK-in-out-directory> 10 5) Put selinux in permissive mode. 11 6) Start hellod: 12 $ adb shell "(hellod ) </dev/null >/dev/null 2>&1 &" 13 7) Start Java client: 14 $ adb shell am start -S -a android.intent.action.MAIN \ 15 -n "android.aidl.tests/.TestServiceClient" 16 8) Watch output on logcat: 17 $ adb logcat -s TestServiceClient hellod 18