suspend_blocker: convert to apex

* Start the service later at 'class hal' to avoid making this into bootstrap
  APEX. 'class early_hal' is started on trigger 'on late-fs' which is too
  early for vendor APEX.
This commit is contained in:
Konsta
2025-03-19 12:59:47 +02:00
parent 080a9d7c3a
commit 4ffea81903
6 changed files with 32 additions and 7 deletions

View File

@@ -5,8 +5,29 @@
cc_binary {
name: "suspend_blocker_rpi",
init_rc: ["suspend_blocker_rpi.rc"],
vendor: true,
srcs: ["suspend_blocker_rpi.cpp"],
shared_libs: ["libpower"],
installable: false,
}
prebuilt_etc {
name: "suspend_blocker_rpi.rc",
src: "suspend_blocker_rpi.rc",
installable: false,
}
apex {
name: "com.android.hardware.suspend_blocker.rpi4",
manifest: "apex_manifest.json",
file_contexts: "apex_file_contexts",
key: "com.android.hardware.key",
certificate: ":com.android.hardware.certificate",
updatable: false,
vendor: true,
binaries: ["suspend_blocker_rpi"],
prebuilts: [
"suspend_blocker_rpi.rc",
],
}