This is based on https://github.com/yang-neu/rpi3gpio
This is a complete android treble architecture sample,including:
- HIDL, control a LED and switch connected to gpio port.
- AIDL-CPP service / client
- AIDL-CPP JNI client (Ref: https://github.com/yang-neu/gpio_led_jni)
- AIDL java client activity (Ref: https://github.com/yang-neu/gpio_led)
- SELinux configuration (Ref: https://github.com/yang-neu/pie-device-rpi3)
This experiment achieved:
- Toggle LED by a physical push button.
- Count up the button push on the UI screen.
- Turn on/off LED by the LED switch on the UI screen.
Some necessary modification
project build/make/
diff --git a/target/product/vndk/28.txt b/target/product/vndk/28.txt
index 712e91c58..7104adb6c 100644
--- a/target/product/vndk/28.txt
+++ b/target/product/vndk/28.txt
@@ -119,6 +119,9 @@ VNDK-core: [email protected]
VNDK-core: [email protected]
VNDK-core: [email protected]
VNDK-core: [email protected]
+VNDK-core: [email protected]
VNDK-core: [email protected]
VNDK-core: [email protected]
VNDK-core: [email protected]
- https://www.brobwind.com/
- https://www.jianshu.com/p/ca6823b897b5
- https://blog.csdn.net/zhuyong006/article/details/102488616
- https://blog.csdn.net/kuang_tian_you/article/details/86599869
- https://www.cnblogs.com/Anker/p/3263780.html
- https://www.cnblogs.com/aaronLinux/p/6684260.html
- https://github.com/gburca/BinderDemo/
- https://github.com/YancyGitHub/native-service With SELinux configuration
- https://github.com/yuanhuihui/BinderSample
- https://qiita.com/okhiroyuki/items/50ce22099eb5ac9b862b
- https://github.com/qianjigui/android_system_service_example
- https://www.sitepoint.com/aidl-for-sharing-functionality-between-android-apps/