Skip to content

Latest commit

 

History

History
46 lines (39 loc) · 1.88 KB

README.md

File metadata and controls

46 lines (39 loc) · 1.88 KB

rpi3gpio

This is a complete android treble architecture sample worked on Raspberry pi 3b+ ,including:

  1. HIDL, control a LED and switch connected to gpio port.
  2. AIDL-CPP service / client
  3. AIDL-CPP JNI client (Ref: https://github.com/yang-neu/gpio_led_jni)
  4. AIDL java client activity (Ref: https://github.com/yang-neu/gpio_led)
  5. SELinux configuration (Ref: https://github.com/yang-neu/pie-device-rpi3)

This experiment achieved:

  1. Toggle LED by a physical push button.
  2. Count up the button push on the UI screen.
  3. 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: android.hardware.radio.deprecated@1.0.so
VNDK-core: android.hardware.radio@1.0.so
VNDK-core: android.hardware.radio@1.1.so
VNDK-core: android.hardware.radio@1.2.so
+VNDK-core: android.hardware.rpi3gpio@2.0.so
VNDK-core: android.hardware.secure_element@1.0.so
VNDK-core: android.hardware.sensors@1.0.so
VNDK-core: android.hardware.soundtrigger@2.0.so

Specially appreciate: