zenfone9: Update to A13 58 beta

Change-Id: I4de1625d83200001a078cc1532005474981c25e2
diff --git a/BoardConfig.mk b/BoardConfig.mk
index df0697e..088ea8c 100755
--- a/BoardConfig.mk
+++ b/BoardConfig.mk
@@ -228,7 +228,7 @@
 BOARD_VENDOR_RAMDISK_KERNEL_MODULES_LOAD := $(strip $(shell cat $(KERNEL_MODULE_DIR)/vendor_boot.modules.load))
 
 # Security patch level
-BOOT_SECURITY_PATCH := 2022-10-01
+BOOT_SECURITY_PATCH := 2022-12-05
 VENDOR_SECURITY_PATCH := $(BOOT_SECURITY_PATCH)
 
 # Sepolicy
diff --git a/device.mk b/device.mk
index e64175a..72e67db 100755
--- a/device.mk
+++ b/device.mk
@@ -107,23 +107,6 @@
     $(LOCAL_PATH)/audio/audio_effects_AI2202.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml \
     $(LOCAL_PATH)/audio/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml
 
-# Authsecret
-PRODUCT_PACKAGES += \
-    android.hardware.authsecret@1.0.vendor
-
-# Bluetooth
-PRODUCT_PACKAGES += \
-    android.hardware.bluetooth@1.0.vendor
-
-#PRODUCT_SOONG_NAMESPACES += vendor/qcom/opensource/commonsys/packages/apps/Bluetooth
-#PRODUCT_SOONG_NAMESPACES += vendor/qcom/opensource/commonsys/system/bt/conf
-
-#PRODUCT_PACKAGE_OVERLAYS += vendor/qcom/opensource/commonsys-intf/bluetooth/overlay/qva
-
-#PRODUCT_PACKAGES += BluetoothExt
-#PRODUCT_PACKAGES += libbluetooth_qti
-#PRODUCT_PACKAGES += vendor.qti.hardware.bluetooth_dun-V1.0-java
-
 # Boot control
 PRODUCT_PACKAGES += \
     android.hardware.boot@1.2-impl-qti \
@@ -148,7 +131,7 @@
 
 # Display
 PRODUCT_PACKAGES += \
-    android.hardware.graphics.common-V1-ndk_platform.vendor \
+    android.hardware.graphics.common-V2-ndk_platform.vendor \
     android.hardware.memtrack@1.0-impl \
     android.hardware.memtrack@1.0-service \
     libion \
@@ -165,7 +148,6 @@
 
 # DRM
 PRODUCT_PACKAGES += \
-    android.hardware.drm@1.3.vendor \
     android.hardware.drm@1.4-service.clearkey
 
 # fastbootd
@@ -181,15 +163,9 @@
 
 PRODUCT_BOOT_JARS += qcom.fmradio
 
-# Gatekeeper
-PRODUCT_PACKAGES += \
-    android.hardware.gatekeeper@1.0.vendor
-
 # GPS
 PRODUCT_PACKAGES += \
-    android.hardware.gnss.measurement_corrections@1.1.vendor \
-    android.hardware.gnss.visibility_control@1.0.vendor \
-    android.hardware.gnss@2.1.vendor
+    android.hardware.gnss-V1-ndk_platform.vendor
 
 # Health
 PRODUCT_PACKAGES += \
@@ -202,6 +178,10 @@
     android.hidl.base@1.0.vendor \
     libhwbinder.vendor
 
+# Identity
+PRODUCT_PACKAGES += \
+    android.hardware.identity-V3-ndk_platform.vendor
+
 # Input
 PRODUCT_COPY_FILES += \
     $(LOCAL_PATH)/keylayout/fts_ts.idc:system/usr/idc/fts_ts.idc \
@@ -210,13 +190,14 @@
     $(LOCAL_PATH)/keylayout/goodixfp.kl:system/usr/keylayout/goodixfp.kl \
     $(LOCAL_PATH)/keylayout/i-rocks_Bluetooth_Keyboard.kl:system/usr/keylayout/i-rocks_Bluetooth_Keyboard.kl
 
-# Keymaster
+# Keymint
 PRODUCT_PACKAGES += \
-    android.hardware.keymaster@4.1.vendor
+    android.hardware.security.keymint-V1-ndk_platform.vendor
 
 # Lights
 PRODUCT_PACKAGES += \
-    android.hardware.lights-service.qti
+    android.hardware.lights-service.qti \
+    android.hardware.light-V1-ndk_platform.vendor
 
 # Live Wallpapers
 PRODUCT_PACKAGES += \
@@ -240,18 +221,8 @@
 
 $(call inherit-product, hardware/qcom-caf/sm8450/media/product.mk)
 
-# Net
-PRODUCT_PACKAGES += \
-    android.system.net.netd@1.1.vendor
-
-# Neural Network
-PRODUCT_PACKAGES += \
-    android.hardware.neuralnetworks@1.3.vendor
-
 # NFC
 PRODUCT_PACKAGES += \
-    android.hardware.nfc@1.2.vendor \
-    android.hardware.secure_element@1.2.vendor \
     NfcNci \
     Tag \
     SecureElement \
@@ -294,12 +265,6 @@
     $(LOCAL_PATH)/ramdisk/fstab.qcom:$(TARGET_COPY_OUT_VENDOR_RAMDISK)/first_stage_ramdisk/fstab.qcom \
     $(LOCAL_PATH)/ramdisk/fstab.qcom:$(TARGET_COPY_OUT_VENDOR)/etc/fstab.qcom
 
-# RIL
-PRODUCT_PACKAGES += \
-    android.hardware.radio@1.6.vendor \
-    android.hardware.radio.config@1.3.vendor \
-    android.hardware.radio.deprecated@1.0.vendor
-
 # Soong namespaces
 PRODUCT_SOONG_NAMESPACES += \
     $(LOCAL_PATH) \
@@ -321,19 +286,6 @@
     qti_telephony_utils.xml \
     tcmiface
 
-# Tether offload
-PRODUCT_PACKAGES += \
-    android.hardware.tetheroffload.config@1.0.vendor \
-    android.hardware.tetheroffload.control@1.1.vendor
-
-# Thermal
-PRODUCT_PACKAGES += \
-    android.hardware.thermal@2.0.vendor
-
-# TrustedUI
-PRODUCT_PACKAGES += \
-    android.hidl.memory.block@1.0.vendor
-
 # Update engine
 PRODUCT_PACKAGES += \
     otapreopt_script \
@@ -347,10 +299,6 @@
 PRODUCT_PACKAGES_DEBUG += \
     update_engine_client
 
-# USB
-PRODUCT_PACKAGES += \
-    android.hardware.usb@1.2.vendor
-
 # Vendor service manager
 PRODUCT_PACKAGES += \
     vndservicemanager
diff --git a/omni_zenfone9.mk b/omni_zenfone9.mk
index 31744e5..ddec14b 100644
--- a/omni_zenfone9.mk
+++ b/omni_zenfone9.mk
@@ -66,4 +66,4 @@
 BUILD_FINGERPRINT := asus/WW_AI2202/ASUS_AI2202:$(VENDOR_RELEASE)
 OMNI_BUILD_FINGERPRINT := asus/WW_AI2202/ASUS_AI2202:$(VENDOR_RELEASE)
 
-PLATFORM_SECURITY_PATCH_OVERRIDE := 2022-10-01
+PLATFORM_SECURITY_PATCH_OVERRIDE := 2022-12-05
diff --git a/proprietary-files-product.txt b/proprietary-files-product.txt
index 76dde6a..62f1e09 100644
--- a/proprietary-files-product.txt
+++ b/proprietary-files-product.txt
@@ -116,7 +116,6 @@
 
 # IOP
 system_ext/lib64/vendor.qti.hardware.iop@2.0.so
-system_ext/lib64/vendor.qti.hardware.perf@2.0.so
 
 system_ext/lib64/vendor.qti.hardware.qteeconnector@1.0.so
 
@@ -125,4 +124,4 @@
 
 # System Helper
 system_ext/lib64/vendor.qti.hardware.embmssl@1.0.so
-system_ext/lib64/vendor.qti.hardware.embmssl@1.0-adapter-helper.so
+system_ext/lib64/vendor.qti.hardware.embmssl@1.1.so
diff --git a/proprietary-files.txt b/proprietary-files.txt
index 6d08b00..5d7c026 100644
--- a/proprietary-files.txt
+++ b/proprietary-files.txt
@@ -125,18 +125,29 @@
 -system_ext/framework/com.quicinc.cne.constants-V2.1-java.jar
 -system_ext/framework/vendor.qti.hardware.data.cne.internal.api-V1.0-java.jar
 -system_ext/framework/vendor.qti.hardware.data.cne.internal.constants-V1.0-java.jar
+-system_ext/framework/vendor.qti.hardware.data.cne.internal.server-V1.0-java.jar
+-system_ext/framework/vendor.qti.hardware.data.cne.internal.server-V1.1-java.jar
+-system_ext/framework/vendor.qti.hardware.data.cne.internal.server-V1.2-java.jar
+-system_ext/framework/vendor.qti.hardware.data.cne.internal.server-V1.3-java.jar
 system_ext/lib64/com.quicinc.cne.api@1.0.so
 system_ext/lib64/com.quicinc.cne.api@1.1.so
 system_ext/lib64/com.quicinc.cne.constants@1.0.so
 system_ext/lib64/com.quicinc.cne.constants@2.0.so
 system_ext/lib64/com.quicinc.cne.constants@2.1.so
+system_ext/lib64/com.quicinc.cne.server@1.0.so
+system_ext/lib64/com.quicinc.cne.server@2.0.so
+system_ext/lib64/com.quicinc.cne.server@2.1.so
+system_ext/lib64/com.quicinc.cne.server@2.2.so
 system_ext/lib64/vendor.qti.hardware.data.cne.internal.api@1.0.so
 system_ext/lib64/vendor.qti.hardware.data.cne.internal.constants@1.0.so
 system_ext/lib64/vendor.qti.hardware.data.cne.internal.server@1.0.so
+system_ext/lib64/vendor.qti.hardware.data.cne.internal.server@1.1.so
+system_ext/lib64/vendor.qti.hardware.data.cne.internal.server@1.2.so
+system_ext/lib64/vendor.qti.hardware.data.cne.internal.server@1.3.so
 
 # Device
 -system_ext/app/DeviceInfo/DeviceInfo.apk
--product/app/DeviceStatisticsService/DeviceStatisticsService.apk
+-system_ext/app/DeviceStatisticsService/DeviceStatisticsService.apk
 
 # Display
 product/etc/permissions/com.qti.snapdragon.sdk.display.xml
@@ -169,36 +180,9 @@
 
 # Gallery
 -priv-app/AsusGallery/AsusGallery.apk
-priv-app/AsusGallery/lib/arm64/libarcsoft_beautyshot.so
-priv-app/AsusGallery/lib/arm64/libarcsoft_undistort.so
-priv-app/AsusGallery/lib/arm64/libblur.so
-priv-app/AsusGallery/lib/arm64/libc++_shared.so
-priv-app/AsusGallery/lib/arm64/libcvface_api.so
-priv-app/AsusGallery/lib/arm64/libgif.so
-priv-app/AsusGallery/lib/arm64/libgvr.so
-priv-app/AsusGallery/lib/arm64/libjni_cvface_api.so
-priv-app/AsusGallery/lib/arm64/libjni_face_effect.so
-priv-app/AsusGallery/lib/arm64/libjni_filter_show.so
-priv-app/AsusGallery/lib/arm64/libjni_wide_angle_undistort.so
-priv-app/AsusGallery/lib/arm64/libmpbase.so
-priv-app/AsusGallery/lib/arm64/libopencv_java4.so
-priv-app/AsusGallery/lib/arm64/libpanorenderer.so
-priv-app/AsusGallery/lib/arm64/libpano_video_renderer.so
-priv-app/AsusGallery/lib/arm64/librs.blur.so
-priv-app/AsusGallery/lib/arm64/librs.convolve3x3.so
-priv-app/AsusGallery/lib/arm64/librs.grad.so
-priv-app/AsusGallery/lib/arm64/librs.grey.so
-priv-app/AsusGallery/lib/arm64/librs.saturation.so
-priv-app/AsusGallery/lib/arm64/librs.vignette.so
-priv-app/AsusGallery/lib/arm64/librsjni.so
-priv-app/AsusGallery/lib/arm64/librsjni_androidx.so
-priv-app/AsusGallery/lib/arm64/libRSSupport.so
-priv-app/AsusGallery/lib/arm64/libtensorflowlite_jni.so
-priv-app/AsusGallery/lib/arm64/libtensorflow_inference.so
 
 # GalleryBurst
 -priv-app/AsusGalleryBurst/AsusGalleryBurst.apk
-priv-app/AsusGalleryBurst/lib/arm64/libgifencoder.so
 
 # GalleryBurst Video Editor
 etc/videoeditor/Charming.mfim
@@ -256,4 +240,6 @@
 
 # Wlan
 -system_ext/framework/vendor.qti.hardware.data.iwlan-V1.0-java.jar
+-system_ext/framework/vendor.qti.hardware.data.iwlan-V1.1-java.jar
 system_ext/lib64/vendor.qti.hardware.data.iwlan@1.0.so
+system_ext/lib64/vendor.qti.hardware.data.iwlan@1.1.so