diff options
author | Yifan Hong <elsk@google.com> | 2018-04-04 14:08:04 -0700 |
---|---|---|
committer | Yifan Hong <elsk@google.com> | 2018-04-04 14:08:04 -0700 |
commit | fd1aa70a0f05578fb7ac1502255aa62178e7f0ce (patch) | |
tree | f2a3f9f91eaba4e54bd4ca47614443da9c44d709 /healthd | |
parent | 0a5bc29353e17fd0c2561c6dceccaf9787e10e61 (diff) | |
download | system_core-fd1aa70a0f05578fb7ac1502255aa62178e7f0ce.tar.gz system_core-fd1aa70a0f05578fb7ac1502255aa62178e7f0ce.tar.bz2 system_core-fd1aa70a0f05578fb7ac1502255aa62178e7f0ce.zip |
healthd: add healthd.rc
Split healthd section from init.rc into its own. This allows
healthd.rc to be excluded from the build when healthd is excluded.
Test: builds
Test: exclude healthd from build, healthd.rc is not installed
Bug: 77541952
Change-Id: I1c055f14c5862631f359fd0029289da8f43af063
Diffstat (limited to 'healthd')
-rw-r--r-- | healthd/Android.bp | 1 | ||||
-rw-r--r-- | healthd/healthd.rc | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/healthd/Android.bp b/healthd/Android.bp index c70278af3..a28544e6c 100644 --- a/healthd/Android.bp +++ b/healthd/Android.bp @@ -56,6 +56,7 @@ cc_binary { cc_binary { name: "healthd", + init_rc: ["healthd.rc"], srcs: [ "HealthServiceHealthd.cpp", ], diff --git a/healthd/healthd.rc b/healthd/healthd.rc new file mode 100644 index 000000000..8e2ebb609 --- /dev/null +++ b/healthd/healthd.rc @@ -0,0 +1,4 @@ +service healthd /system/bin/healthd + class hal + critical + group root system wakelock |