d2x: Decommonize vaultkeeper
Change-Id: Ia1c45a593e4d86f8970b5e2e77dcefc9993d336e
diff --git a/Android.bp b/Android.bp
index 5f5f2cf..0b1cd60 100644
--- a/Android.bp
+++ b/Android.bp
@@ -3,6 +3,9 @@
// This file is generated by device/samsung/d2x/setup-makefiles.sh
soong_namespace {
+ imports: [
+ "vendor/samsung/exynos9820-common",
+ ],
}
cc_prebuilt_library_shared {
@@ -274,6 +277,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: {
@@ -310,7 +364,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,
@@ -323,7 +382,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,
@@ -336,7 +400,12 @@
cc_prebuilt_binary {
name: "vendor.samsung.hardware.gnss@2.1-service",
owner: "samsung",
- srcs: ["proprietary/vendor/bin/hw/vendor.samsung.hardware.gnss@2.1-service"],
+ target: {
+ android_arm64: {
+ srcs: ["proprietary/vendor/bin/hw/vendor.samsung.hardware.gnss@2.1-service"],
+ },
+ },
+ compile_multilib: "64",
check_elf_files: false,
strip: {
none: true,
@@ -346,3 +415,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 db252b8..d579bd5 100644
--- a/BoardConfigVendor.mk
+++ b/BoardConfigVendor.mk
@@ -2,4 +2,3 @@
#
# This file is generated by device/samsung/d2x/setup-makefiles.sh
-AB_OTA_PARTITIONS += \
diff --git a/d2x-vendor.mk b/d2x-vendor.mk
index c21da8a..28d5933 100644
--- a/d2x-vendor.mk
+++ b/d2x-vendor.mk
@@ -11,6 +11,7 @@
vendor/samsung/d2x/proprietary/vendor/etc/gnss/gps.xml:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/gps.xml \
vendor/samsung/d2x/proprietary/vendor/etc/init/init.baseband.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.baseband.rc \
vendor/samsung/d2x/proprietary/vendor/etc/init/init.gps.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.gps.rc \
+ vendor/samsung/d2x/proprietary/vendor/etc/init/vaultkeeper_common.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/vaultkeeper_common.rc \
vendor/samsung/d2x/proprietary/vendor/etc/init/vendor.samsung.hardware.gnss@2.1-service.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/vendor.samsung.hardware.gnss@2.1-service.rc \
vendor/samsung/d2x/proprietary/vendor/etc/media_codecs_performance.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance.xml \
vendor/samsung/d2x/proprietary/vendor/etc/plmn_se13.bin:$(TARGET_COPY_OUT_VENDOR)/etc/plmn_se13.bin \
@@ -82,6 +83,7 @@
vendor/samsung/d2x/proprietary/vendor/tee/00000000-0000-0000-0000-46494e474502:$(TARGET_COPY_OUT_VENDOR)/tee/00000000-0000-0000-0000-46494e474502 \
vendor/samsung/d2x/proprietary/vendor/tee/00000000-0000-0000-0000-4b45594d5354:$(TARGET_COPY_OUT_VENDOR)/tee/00000000-0000-0000-0000-4b45594d5354 \
vendor/samsung/d2x/proprietary/vendor/tee/00000000-0000-0000-0000-505256544545:$(TARGET_COPY_OUT_VENDOR)/tee/00000000-0000-0000-0000-505256544545 \
+ vendor/samsung/d2x/proprietary/vendor/tee/00000000-0000-0000-0000-564c544b5052:$(TARGET_COPY_OUT_VENDOR)/tee/00000000-0000-0000-0000-564c544b5052 \
vendor/samsung/d2x/proprietary/vendor/tee/00000000-0000-0000-0000-657365447276:$(TARGET_COPY_OUT_VENDOR)/tee/00000000-0000-0000-0000-657365447276 \
vendor/samsung/d2x/proprietary/vendor/tee/driver/00000000-0000-0000-0000-53626f786476:$(TARGET_COPY_OUT_VENDOR)/tee/driver/00000000-0000-0000-0000-53626f786476
@@ -100,8 +102,12 @@
gps.default \
vendor.samsung.hardware.gnss@2.1-impl \
libexynoscamera3 \
+ libstork_shared \
+ libvkmanager_vendor \
+ libvkservice \
libwrappergps \
vendor.samsung.hardware.gnss@2.1 \
gpsd \
lhd \
- vendor.samsung.hardware.gnss@2.1-service
+ vendor.samsung.hardware.gnss@2.1-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