Merge "Add gnss HAL APEX" into main

This commit is contained in:
Treehugger Robot 2023-11-06 03:41:38 +00:00 committed by Gerrit Code Review
commit 6a4d763060
4 changed files with 41 additions and 7 deletions

View file

@ -26,12 +26,7 @@ package {
cc_binary {
name: "android.hardware.gnss-service.example",
relative_install_path: "hw",
init_rc: [
"gnss-default.rc",
],
vintf_fragments: [
"gnss-default.xml",
],
installable: false, // install APEX instead
vendor: true,
cflags: [
"-Wall",
@ -73,3 +68,35 @@ cc_binary {
"android.hardware.gnss@common-default-lib",
],
}
prebuilt_etc {
name: "gnss-default.rc",
src: "gnss-default.rc",
installable: false,
}
prebuilt_etc {
name: "gnss-default.xml",
src: "gnss-default.xml",
sub_dir: "vintf",
installable: false,
}
apex {
name: "com.android.hardware.gnss",
manifest: "apex_manifest.json",
file_contexts: "apex_file_contexts",
key: "com.android.hardware.key",
certificate: ":com.android.hardware.certificate",
updatable: false,
vendor: true,
binaries: [
"android.hardware.gnss-service.example",
],
prebuilts: [
"gnss-default.rc",
"gnss-default.xml",
"android.hardware.location.gps.prebuilt.xml", // permission
],
}

View file

@ -0,0 +1,3 @@
(/.*)? u:object_r:vendor_file:s0
/etc(/.*)? u:object_r:vendor_configs_file:s0
/bin/hw/android\.hardware\.gnss-service\.example u:object_r:hal_gnss_default_exec:s0

View file

@ -0,0 +1,4 @@
{
"name": "com.android.hardware.gnss",
"version": 1
}

View file

@ -1,4 +1,4 @@
service vendor.gnss-default /vendor/bin/hw/android.hardware.gnss-service.example
service vendor.gnss-default /apex/com.android.hardware.gnss/bin/hw/android.hardware.gnss-service.example
class hal
user nobody
group nobody