Merge "Clean up sensors hal apex" into main am: 2ffe33ea43

Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2867915

Change-Id: I9c15b82c7c22f66c9c59200b4b71877fcb5f31ff
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Jooyung Han 2023-12-12 02:42:11 +00:00 committed by Automerger Merge Worker
commit 2fc564e962
9 changed files with 50 additions and 147 deletions

View file

@ -23,18 +23,6 @@ package {
default_applicable_licenses: ["hardware_interfaces_license"],
}
filegroup {
name: "sensors-default.rc",
srcs: ["sensors-default.rc"],
}
prebuilt_etc {
name: "sensors-default.xml",
src: "sensors-default.xml",
sub_dir: "vintf",
installable: false,
}
cc_library_static {
name: "libsensorsexampleimpl",
vendor: true,
@ -59,21 +47,62 @@ cc_library_static {
cc_binary {
name: "android.hardware.sensors-service.example",
relative_install_path: "hw",
init_rc: [":sensors-default.rc"],
vintf_fragments: [":sensors-default.xml"],
installable: false, // install APEX below
vendor: true,
shared_libs: [
"libbase",
"libbinder_ndk",
"libfmq",
"libpower",
"libcutils",
"liblog",
"libutils",
"android.hardware.sensors-V2-ndk",
],
static_libs: [
"android.hardware.common-V2-ndk",
"android.hardware.common.fmq-V1-ndk",
"android.hardware.sensors-V2-ndk",
"android.system.suspend-V1-ndk",
"libbase",
"libcutils",
"libfmq",
"libpower",
"libsensorsexampleimpl",
"libutils",
],
srcs: ["main.cpp"],
}
prebuilt_etc {
name: "sensors-default.rc",
src: "sensors-default.rc",
installable: false,
}
prebuilt_etc {
name: "sensors-default.xml",
src: "sensors-default.xml",
sub_dir: "vintf",
installable: false,
}
// Default vendor APEX for android.hardware.sensors.
// Custom implementations may use override_apex based on this APEX.
apex {
name: "com.android.hardware.sensors",
manifest: "apex_manifest.json",
key: "com.android.hardware.key",
certificate: ":com.android.hardware.certificate",
file_contexts: "file_contexts",
updatable: false,
vendor: true,
binaries: ["android.hardware.sensors-service.example"],
prebuilts: [
"sensors-default.rc", // init rc
"sensors-default.xml", // vintf fragment
"android.hardware.sensor.ambient_temperature.prebuilt.xml",
"android.hardware.sensor.barometer.prebuilt.xml",
"android.hardware.sensor.gyroscope.prebuilt.xml",
"android.hardware.sensor.hinge_angle.prebuilt.xml",
"android.hardware.sensor.light.prebuilt.xml",
"android.hardware.sensor.proximity.prebuilt.xml",
"android.hardware.sensor.relative_humidity.prebuilt.xml",
],
}

View file

@ -1,41 +0,0 @@
package {
default_applicable_licenses: ["hardware_interfaces_license"],
}
genrule {
name: "com.android.hardware.sensors.rc-gen",
srcs: [":sensors-default.rc"],
out: ["com.android.hardware.sensors.rc"],
cmd: "sed -E 's/\\/vendor/\\/apex\\/com.android.hardware.sensors/' $(in) > $(out)",
}
prebuilt_etc {
name: "com.android.hardware.sensors.rc",
src: ":com.android.hardware.sensors.rc-gen",
installable: false,
}
// Default vendor APEX for android.hardware.sensors.
// Custom implementations may use override_apex based on this APEX.
apex {
name: "com.android.hardware.sensors",
manifest: "apex_manifest.json",
key: "com.android.hardware.key",
certificate: ":com.android.hardware.certificate",
file_contexts: "file_contexts",
updatable: false,
vendor: true,
binaries: ["android.hardware.sensors-service.example"],
prebuilts: [
"com.android.hardware.sensors.rc", // init rc
"sensors-default.xml", // vintf fragment
"android.hardware.sensor.ambient_temperature.prebuilt.xml",
"android.hardware.sensor.barometer.prebuilt.xml",
"android.hardware.sensor.gyroscope.prebuilt.xml",
"android.hardware.sensor.hinge_angle.prebuilt.xml",
"android.hardware.sensor.light.prebuilt.xml",
"android.hardware.sensor.proximity.prebuilt.xml",
"android.hardware.sensor.relative_humidity.prebuilt.xml",
],
}

View file

@ -1,51 +0,0 @@
-----BEGIN RSA PRIVATE KEY-----
MIIJKAIBAAKCAgEArUwl9rjXtNrSqJ2rfEryTnVEte7uhZlsn42rXRHFZtuV8N03
AKAFDDkhJIT+FqmVJLW1Whrno+goaKzA23BodZcSo/xOJuTopgQ/TVqIO2QZ2WUS
1NiYT3+kydZgtBHhfS+ek9h6aTLgJUn/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3C85d3gPj
NcGjT7SSuUir7n+LI9pZsotedd9+rGhiiyT8CM4sVWiYJFnA2UX/bsnkZyAOq9Po
jz1aMdHc4wUCAwEAATANBgkqhkiG9w0BAQsFAAOCAgEATEPN2SZk8pJc4DaWmhyR
MUklzVeuN0J0Mij1mHuVmID7Q5IhBBXxtVmwRIo208rHSvFLAo7Z4FnuZCV3A/c9
TlXT3S2t+iYG5eOyXSsoSc/uerJ7kIBcOe27qIrO9GwcK5CQlTaXP+CG1gbLp1nl
IaqKAT+eb/ji5wmFxMI77wo3uKLPTCfpaptFNaYlRqvxiXdJsCZwCPgmCtXJUeeZ
R/HKOA4PcS2QB+HwhYePY5kUJPwt6MwJEyno72oenfl49FrGHj0BzVmQ7KMfiYjZ
eRSB2Wbo50xfiICkPlUcvWD8rRNg7N9CM/Q5O0MW3ivAe42aGap/8qfXUa+L5vu4
9vaxgQvBVcPXE/pyeCYM8beB84Us+FOYPC7gIUhcctBqGYAQmHzp3sXvIg0DVxz7
0aqolFGpjRFqbgheS9WRkDHFpYrhR1XMVOQjussHqWEyRcvliqeFlZr8+JNkJNi+
lmGMdnEAWZs8PL0/AEf+8y0Nr/w0k3Y6IZCDcwpxbpJQOU5pAbkfUzEJHkxMfuvW
ZshvqIMOaLWCGxZaxlbLRxWGuarWYzfmDY3n9TwJmAIUdMLiswv3UsCmLBJO1XGX
SUWfgi4fyG1/phfzhdU3efMvmN+XT16/ykMrY8P5S+ghwK12IZ3DgTl0ooLFABUj
zYeQ8LLz3SP9LNgeLnPP/po=
-----END CERTIFICATE-----

View file

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