在看CTS report時,右上角會有sensor的features項目
這些項目需要配置些文件:
PRODUCT_COPY_FILES += \ frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:system/etc/permissions/android.hardware.sensor.accelerometer.xml frameworks/native/data/etc/android.hardware.sensor.compass.xml:system/etc/permissions/android.hardware.sensor.compass.xml \ frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.xml \
它不僅是Android CTS feature,同時也決定運行在此平台上的App有沒有相關的權限
<!-- Feature for devices with an accelerometer sensor. -->
<permissions>
<feature name="android.hardware.sensor.accelerometer" />
沒有留言:
張貼留言