In the healthcare industry, operating systems in human-machine interfaces often adjust the brightness and color of different LED light bars based on the patient’s condition. This section will share a complete LightBar solution based on the Android system. It covers the implementation of functionalities from the low-level stage driver porting to application layer, followed by the development of the JNI library and the integration with the APK. Through this, we aim to provide insights into how to implement special peripheral devices in the Android Open Source Project (AOSP).