diff options
Diffstat (limited to 'wifi/apex/Android.bp')
-rw-r--r-- | wifi/apex/Android.bp | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/wifi/apex/Android.bp b/wifi/apex/Android.bp new file mode 100644 index 0000000000..f8ba5c472b --- /dev/null +++ b/wifi/apex/Android.bp @@ -0,0 +1,55 @@ +package { + default_applicable_licenses: ["hardware_interfaces_license"], +} + +apex_key { + name: "com.android.hardware.wifi.key", + public_key: "com.android.hardware.wifi.avbpubkey", + private_key: "com.android.hardware.wifi.pem", +} + +android_app_certificate { + name: "com.android.hardware.wifi.certificate", + certificate: "com.android.hardware.wifi", +} + +genrule { + name: "gen-android.hardware.wifi.rc", + srcs: [":default-android.hardware.wifi-service.rc"], + out: ["com.android.hardware.wifi-service.rc"], + cmd: "sed -e 's@/vendor/bin/@/apex/com.android.hardware.wifi/bin/@' $(in) > $(out)", +} + +prebuilt_etc { + name: "com.android.hardware.wifi.rc", + src: ":gen-android.hardware.wifi.rc", + installable: false, +} + +prebuilt_etc { + name: "com.android.hardware.wifi.xml", + src: ":default-android.hardware.wifi-service.xml", + installable: false, + sub_dir: "vintf", +} + +apex { + name: "com.android.hardware.wifi", + manifest: "apex_manifest.json", + key: "com.android.hardware.wifi.key", + certificate: ":com.android.hardware.wifi.certificate", + file_contexts: "file_contexts", + use_vndk_as_stable: true, + updatable: false, + soc_specific: true, + binaries: [ + "android.hardware.wifi-service", + ], + prebuilts: [ + "com.android.hardware.wifi.rc", + "com.android.hardware.wifi.xml", + ], + overrides: [ + "android.hardware.wifi-service", + ], +} |