diff --git a/sensors/miscdevice/vibrator/BUILD.gn b/sensors/miscdevice/vibrator/BUILD.gn index d843b2d080399168c78c88735938a42ce24bc662..e73f0d6b6559c65017dbc84d70ec72880e602181 100644 --- a/sensors/miscdevice/vibrator/BUILD.gn +++ b/sensors/miscdevice/vibrator/BUILD.gn @@ -25,4 +25,9 @@ ohos_ndk_library("lib_vibrator_ndk") { output_name = "ohvibrator" ndk_description_file = "./lib_vibrator.ndk.json" min_compact_version = "11" + system_capability = "SystemCapability.Sensors.MiscDevice" + system_capability_headers = [ + "sensors/vibrator_type.h", + "sensors/vibrator.h", + ] } diff --git a/sensors/sensor/BUILD.gn b/sensors/sensor/BUILD.gn index 8a12ddf2ac2de2f6337ff8a8620c63858837b280..594835f9d48717311f7561d105c20359f4c39291 100644 --- a/sensors/sensor/BUILD.gn +++ b/sensors/sensor/BUILD.gn @@ -27,4 +27,9 @@ ohos_ndk_library("libsensor_ndk") { output_name = "ohsensor" output_extension = "so" min_compact_version = "11" + system_capability = "SystemCapability.Sensors.Sensor" + system_capability_headers = [ + "sensors/oh_sensor_type.h", + "sensors/oh_sensor.h", + ] }