camera: switch external to apex

* Copy service definition from hardware/interfaces/camera/provider/default/.
This commit is contained in:
Konsta
2025-10-30 10:45:40 +02:00
parent 88e5be9bc3
commit 44d50650d5
8 changed files with 61 additions and 10 deletions

34
camera/external/Android.bp vendored Normal file
View File

@@ -0,0 +1,34 @@
// Copyright (C) 2025 KonstaKANG
//
// SPDX-License-Identifier: Apache-2.0
prebuilt_etc {
name: "android.hardware.camera.provider-V1-external-service.rc",
src: "android.hardware.camera.provider-V1-external-service.rc",
installable: false,
}
prebuilt_etc {
name: "android.hardware.camera.provider-V1-external-service.xml",
src: "android.hardware.camera.provider-V1-external-service.xml",
sub_dir: "vintf",
installable: false,
}
apex {
name: "com.android.hardware.camera.external.rpi5",
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.camera.provider-V1-external-service",
],
prebuilts: [
"android.hardware.camera.provider-V1-external-service.rc",
"android.hardware.camera.provider-V1-external-service.xml",
],
}