Daniel Norman | b57b5e0 | 2021-09-03 09:37:18 -0700 | [diff] [blame] | 1 | package { |
| 2 | default_applicable_licenses: ["hardware_interfaces_license"], |
| 3 | } |
| 4 | |
| 5 | apex_key { |
| 6 | name: "com.android.hardware.sensors.key", |
| 7 | public_key: "com.android.hardware.sensors.avbpubkey", |
| 8 | private_key: "com.android.hardware.sensors.pem", |
| 9 | } |
| 10 | |
| 11 | android_app_certificate { |
| 12 | name: "com.android.hardware.sensors.certificate", |
| 13 | certificate: "com.android.hardware.sensors", |
| 14 | } |
| 15 | |
deyaoren@google.com | bde01c6 | 2022-04-05 22:16:49 +0000 | [diff] [blame] | 16 | genrule { |
| 17 | name: "com.android.hardware.sensors.rc-gen", |
| 18 | srcs: [":sensors-default.rc"], |
| 19 | out: ["com.android.hardware.sensors.rc"], |
| 20 | cmd: "sed -E 's/\\/vendor/\\/apex\\/com.android.hardware.sensors/' $(in) > $(out)", |
| 21 | } |
| 22 | |
Daniel Norman | b57b5e0 | 2021-09-03 09:37:18 -0700 | [diff] [blame] | 23 | prebuilt_etc { |
| 24 | name: "com.android.hardware.sensors.rc", |
deyaoren@google.com | bde01c6 | 2022-04-05 22:16:49 +0000 | [diff] [blame] | 25 | src: ":com.android.hardware.sensors.rc-gen", |
Daniel Norman | b57b5e0 | 2021-09-03 09:37:18 -0700 | [diff] [blame] | 26 | installable: false, |
| 27 | } |
| 28 | |
| 29 | // Default vendor APEX for android.hardware.sensors. |
| 30 | // Custom implementations may use override_apex based on this APEX. |
| 31 | apex { |
| 32 | name: "com.android.hardware.sensors", |
| 33 | manifest: "apex_manifest.json", |
| 34 | key: "com.android.hardware.sensors.key", |
| 35 | certificate: ":com.android.hardware.sensors.certificate", |
| 36 | file_contexts: "file_contexts", |
| 37 | use_vndk_as_stable: true, |
| 38 | updatable: false, |
| 39 | // Install the apex in /vendor/apex |
| 40 | soc_specific: true, |
deyaoren@google.com | bde01c6 | 2022-04-05 22:16:49 +0000 | [diff] [blame] | 41 | binaries: ["android.hardware.sensors-service.example"], |
Daniel Norman | b57b5e0 | 2021-09-03 09:37:18 -0700 | [diff] [blame] | 42 | prebuilts: [ |
| 43 | "com.android.hardware.sensors.rc", |
| 44 | "android.hardware.sensor.ambient_temperature.prebuilt.xml", |
| 45 | "android.hardware.sensor.barometer.prebuilt.xml", |
| 46 | "android.hardware.sensor.gyroscope.prebuilt.xml", |
| 47 | "android.hardware.sensor.hinge_angle.prebuilt.xml", |
| 48 | "android.hardware.sensor.light.prebuilt.xml", |
| 49 | "android.hardware.sensor.proximity.prebuilt.xml", |
| 50 | "android.hardware.sensor.relative_humidity.prebuilt.xml", |
| 51 | ], |
deyaoren@google.com | bde01c6 | 2022-04-05 22:16:49 +0000 | [diff] [blame] | 52 | vintf_fragments: [":sensors-default.xml"], |
Daniel Norman | b57b5e0 | 2021-09-03 09:37:18 -0700 | [diff] [blame] | 53 | } |