beyond1lte: Decommonize vaultkeeper
Change-Id: I569839143db8ed5f2c2acda9d73a4d6da1fc037a
diff --git a/Android.bp b/Android.bp
index 277d00c..d7f102d 100644
--- a/Android.bp
+++ b/Android.bp
@@ -3,6 +3,9 @@
// This file is generated by device/samsung/beyond1lte/setup-makefiles.sh
soong_namespace {
+ imports: [
+ "vendor/samsung/exynos9820-common",
+ ],
}
cc_prebuilt_library_shared {
@@ -214,6 +217,57 @@
}
cc_prebuilt_library_shared {
+ name: "libstork_shared",
+ owner: "samsung",
+ strip: {
+ none: true,
+ },
+ target: {
+ android_arm64: {
+ srcs: ["proprietary/vendor/lib64/libstork_shared.so"],
+ },
+ },
+ compile_multilib: "64",
+ check_elf_files: false,
+ prefer: true,
+ soc_specific: true,
+}
+
+cc_prebuilt_library_shared {
+ name: "libvkmanager_vendor",
+ owner: "samsung",
+ strip: {
+ none: true,
+ },
+ target: {
+ android_arm64: {
+ srcs: ["proprietary/vendor/lib64/libvkmanager_vendor.so"],
+ },
+ },
+ compile_multilib: "64",
+ check_elf_files: false,
+ prefer: true,
+ soc_specific: true,
+}
+
+cc_prebuilt_library_shared {
+ name: "libvkservice",
+ owner: "samsung",
+ strip: {
+ none: true,
+ },
+ target: {
+ android_arm64: {
+ srcs: ["proprietary/vendor/lib64/libvkservice.so"],
+ },
+ },
+ compile_multilib: "64",
+ check_elf_files: false,
+ prefer: true,
+ soc_specific: true,
+}
+
+cc_prebuilt_library_shared {
name: "libwrappergps",
owner: "samsung",
strip: {
@@ -233,7 +287,12 @@
cc_prebuilt_binary {
name: "gpsd",
owner: "samsung",
- srcs: ["proprietary/vendor/bin/hw/gpsd"],
+ target: {
+ android_arm64: {
+ srcs: ["proprietary/vendor/bin/hw/gpsd"],
+ },
+ },
+ compile_multilib: "64",
check_elf_files: false,
strip: {
none: true,
@@ -246,7 +305,12 @@
cc_prebuilt_binary {
name: "lhd",
owner: "samsung",
- srcs: ["proprietary/vendor/bin/hw/lhd"],
+ target: {
+ android_arm64: {
+ srcs: ["proprietary/vendor/bin/hw/lhd"],
+ },
+ },
+ compile_multilib: "64",
check_elf_files: false,
strip: {
none: true,
@@ -259,7 +323,12 @@
cc_prebuilt_binary {
name: "vendor.samsung.hardware.gnss@2.0-service",
owner: "samsung",
- srcs: ["proprietary/vendor/bin/hw/vendor.samsung.hardware.gnss@2.0-service"],
+ target: {
+ android_arm64: {
+ srcs: ["proprietary/vendor/bin/hw/vendor.samsung.hardware.gnss@2.0-service"],
+ },
+ },
+ compile_multilib: "64",
check_elf_files: false,
strip: {
none: true,
@@ -269,3 +338,20 @@
soc_specific: true,
}
+cc_prebuilt_binary {
+ name: "vaultkeeperd",
+ owner: "samsung",
+ target: {
+ android_arm64: {
+ srcs: ["proprietary/vendor/bin/vaultkeeperd"],
+ },
+ },
+ compile_multilib: "64",
+ check_elf_files: false,
+ strip: {
+ none: true,
+ },
+ prefer: true,
+ soc_specific: true,
+}
+
diff --git a/BoardConfigVendor.mk b/BoardConfigVendor.mk
index 0fdf52a..5218ce8 100644
--- a/BoardConfigVendor.mk
+++ b/BoardConfigVendor.mk
@@ -2,4 +2,3 @@
#
# This file is generated by device/samsung/beyond1lte/setup-makefiles.sh
-AB_OTA_PARTITIONS += \
diff --git a/beyond1lte-vendor.mk b/beyond1lte-vendor.mk
index 3aa4169..2f0d3b8 100644
--- a/beyond1lte-vendor.mk
+++ b/beyond1lte-vendor.mk
@@ -11,6 +11,7 @@
vendor/samsung/beyond1lte/proprietary/vendor/etc/gnss/gps.xml:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/gps.xml \
vendor/samsung/beyond1lte/proprietary/vendor/etc/init/init.baseband.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.baseband.rc \
vendor/samsung/beyond1lte/proprietary/vendor/etc/init/init.gps.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.gps.rc \
+ vendor/samsung/beyond1lte/proprietary/vendor/etc/init/vaultkeeper_common.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/vaultkeeper_common.rc \
vendor/samsung/beyond1lte/proprietary/vendor/etc/init/vendor.samsung.hardware.gnss@2.0-service.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/vendor.samsung.hardware.gnss@2.0-service.rc \
vendor/samsung/beyond1lte/proprietary/vendor/etc/media_codecs_performance.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance.xml \
vendor/samsung/beyond1lte/proprietary/vendor/etc/plmn_se13.bin:$(TARGET_COPY_OUT_VENDOR)/etc/plmn_se13.bin \
@@ -70,6 +71,7 @@
vendor/samsung/beyond1lte/proprietary/vendor/tee/00000000-0000-0000-0000-46494e474502:$(TARGET_COPY_OUT_VENDOR)/tee/00000000-0000-0000-0000-46494e474502 \
vendor/samsung/beyond1lte/proprietary/vendor/tee/00000000-0000-0000-0000-4b45594d5354:$(TARGET_COPY_OUT_VENDOR)/tee/00000000-0000-0000-0000-4b45594d5354 \
vendor/samsung/beyond1lte/proprietary/vendor/tee/00000000-0000-0000-0000-505256544545:$(TARGET_COPY_OUT_VENDOR)/tee/00000000-0000-0000-0000-505256544545 \
+ vendor/samsung/beyond1lte/proprietary/vendor/tee/00000000-0000-0000-0000-564c544b5052:$(TARGET_COPY_OUT_VENDOR)/tee/00000000-0000-0000-0000-564c544b5052 \
vendor/samsung/beyond1lte/proprietary/vendor/tee/00000000-0000-0000-0000-657365447276:$(TARGET_COPY_OUT_VENDOR)/tee/00000000-0000-0000-0000-657365447276 \
vendor/samsung/beyond1lte/proprietary/vendor/tee/driver/00000000-0000-0000-0000-53626f786476:$(TARGET_COPY_OUT_VENDOR)/tee/driver/00000000-0000-0000-0000-53626f786476
@@ -85,7 +87,11 @@
gps.default \
vendor.samsung.hardware.gnss@2.0-impl \
libexynoscamera3 \
+ libstork_shared \
+ libvkmanager_vendor \
+ libvkservice \
libwrappergps \
gpsd \
lhd \
- vendor.samsung.hardware.gnss@2.0-service
+ vendor.samsung.hardware.gnss@2.0-service \
+ vaultkeeperd
diff --git a/proprietary/vendor/bin/vaultkeeperd b/proprietary/vendor/bin/vaultkeeperd
new file mode 100755
index 0000000..9a5ff2a
--- /dev/null
+++ b/proprietary/vendor/bin/vaultkeeperd
Binary files differ
diff --git a/proprietary/vendor/etc/init/vaultkeeper_common.rc b/proprietary/vendor/etc/init/vaultkeeper_common.rc
new file mode 100644
index 0000000..0807130
--- /dev/null
+++ b/proprietary/vendor/etc/init/vaultkeeper_common.rc
@@ -0,0 +1,18 @@
+# VaultKeeper
+service vaultkeeper /vendor/bin/vaultkeeperd
+ class core
+ user system
+ group system
+ disabled
+
+service vaultkeeper_hal /vendor/bin/vendor.samsung.hardware.security.vaultkeeper@2.0-service
+ class early_hal
+ user system
+ group system
+ disabled
+
+on late-fs
+ # vaultkeeper
+ mkdir /dev/socket/vaultkeeper 0770 system system
+ start vaultkeeper
+ start vaultkeeper_hal
diff --git a/proprietary/vendor/lib64/libstork_shared.so b/proprietary/vendor/lib64/libstork_shared.so
new file mode 100644
index 0000000..5c72215
--- /dev/null
+++ b/proprietary/vendor/lib64/libstork_shared.so
Binary files differ
diff --git a/proprietary/vendor/lib64/libvkmanager_vendor.so b/proprietary/vendor/lib64/libvkmanager_vendor.so
new file mode 100644
index 0000000..8a4ea93
--- /dev/null
+++ b/proprietary/vendor/lib64/libvkmanager_vendor.so
Binary files differ
diff --git a/proprietary/vendor/lib64/libvkservice.so b/proprietary/vendor/lib64/libvkservice.so
new file mode 100644
index 0000000..9d786df
--- /dev/null
+++ b/proprietary/vendor/lib64/libvkservice.so
Binary files differ
diff --git a/proprietary/vendor/tee/00000000-0000-0000-0000-564c544b5052 b/proprietary/vendor/tee/00000000-0000-0000-0000-564c544b5052
new file mode 100644
index 0000000..b14bcbf
--- /dev/null
+++ b/proprietary/vendor/tee/00000000-0000-0000-0000-564c544b5052
Binary files differ