miuicamera: Adapt for sweet

Change-Id: Iacdc37db9bca48fdba8272d231a1ac484baed827
This commit is contained in:
basamaryan 2024-04-20 01:29:54 +02:00
parent c9605a52ed
commit d284d16ebc
No known key found for this signature in database
GPG Key ID: 707BA6C82329E8F9
8 changed files with 14 additions and 14 deletions

View File

@ -1,6 +1,6 @@
// Automatically generated file. DO NOT MODIFY // Automatically generated file. DO NOT MODIFY
// //
// This file is generated by vendor/xiaomi/garnet-miuicamera/setup-makefiles.sh // This file is generated by vendor/xiaomi/sweet-miuicamera/setup-makefiles.sh
soong_namespace { soong_namespace {
imports: [ imports: [

View File

@ -1,6 +1,6 @@
# Automatically generated file. DO NOT MODIFY # Automatically generated file. DO NOT MODIFY
# #
# This file is generated by vendor/xiaomi/garnet-miuicamera/setup-makefiles.sh # This file is generated by vendor/xiaomi/sweet-miuicamera/setup-makefiles.sh
LOCAL_PATH := $(call my-dir) LOCAL_PATH := $(call my-dir)

View File

@ -1,4 +1,4 @@
# Automatically generated file. DO NOT MODIFY # Automatically generated file. DO NOT MODIFY
# #
# This file is generated by vendor/xiaomi/garnet-miuicamera/setup-makefiles.sh # This file is generated by vendor/xiaomi/sweet-miuicamera/setup-makefiles.sh

View File

@ -1,7 +1,7 @@
# Automatically generated file. DO NOT MODIFY # Automatically generated file. DO NOT MODIFY
# #
# This file is generated by vendor/xiaomi/garnet-miuicamera/setup-makefiles.sh # This file is generated by vendor/xiaomi/sweet-miuicamera/setup-makefiles.sh
PRODUCT_SOONG_NAMESPACES += \ PRODUCT_SOONG_NAMESPACES += \
vendor/xiaomi/garnet-miuicamera/common vendor/xiaomi/sweet-miuicamera/common

View File

@ -9,7 +9,7 @@
set -e set -e
DEVICE=common DEVICE=common
VENDOR=xiaomi/garnet-miuicamera VENDOR=xiaomi/sweet-miuicamera
# Load extract_utils and do some sanity checks # Load extract_utils and do some sanity checks
MY_DIR="${BASH_SOURCE%/*}" MY_DIR="${BASH_SOURCE%/*}"

View File

@ -14,4 +14,4 @@
# limitations under the License. # limitations under the License.
# #
include vendor/xiaomi/garnet-miuicamera/common/BoardConfigVendor.mk include vendor/xiaomi/sweet-miuicamera/common/BoardConfigVendor.mk

View File

@ -16,11 +16,11 @@
# Permissions # Permissions
PRODUCT_COPY_FILES += \ PRODUCT_COPY_FILES += \
vendor/xiaomi/garnet-miuicamera/configs/permissions/privapp-permissions-miuicamera.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/privapp-permissions-miuicamera.xml vendor/xiaomi/sweet-miuicamera/configs/permissions/privapp-permissions-miuicamera.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/privapp-permissions-miuicamera.xml
# Sysconfig # Sysconfig
PRODUCT_COPY_FILES += \ PRODUCT_COPY_FILES += \
vendor/xiaomi/garnet-miuicamera/configs/sysconfig/miuicamera-hiddenapi-package-whitelist.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/sysconfig/miuicamera-hiddenapi-package-whitelist.xml vendor/xiaomi/sweet-miuicamera/configs/sysconfig/miuicamera-hiddenapi-package-whitelist.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/sysconfig/miuicamera-hiddenapi-package-whitelist.xml
# Props # Props
PRODUCT_SYSTEM_PROPERTIES += \ PRODUCT_SYSTEM_PROPERTIES += \
@ -28,4 +28,4 @@ PRODUCT_SYSTEM_PROPERTIES += \
ro.com.google.lens.oem_camera_package=com.android.camera \ ro.com.google.lens.oem_camera_package=com.android.camera \
vendor.camera.aux.packagelist=com.android.camera vendor.camera.aux.packagelist=com.android.camera
$(call inherit-product, vendor/xiaomi/garnet-miuicamera/common/common-vendor.mk) $(call inherit-product, vendor/xiaomi/sweet-miuicamera/common/common-vendor.mk)

View File

@ -9,7 +9,7 @@
set -e set -e
DEVICE=common DEVICE=common
VENDOR=xiaomi/garnet-miuicamera VENDOR=xiaomi/sweet-miuicamera
# Load extract_utils and do some sanity checks # Load extract_utils and do some sanity checks
MY_DIR="${BASH_SOURCE%/*}" MY_DIR="${BASH_SOURCE%/*}"
@ -30,11 +30,11 @@ setup_vendor "${DEVICE}" "${VENDOR}" "${ANDROID_ROOT}" true
# Warning headers and guards # Warning headers and guards
write_headers "arm64" write_headers "arm64"
sed -i 's|TARGET_DEVICE|TARGET_ARCH|g' "${ANDROIDMK}" sed -i 's|TARGET_DEVICE|TARGET_ARCH|g' "${ANDROIDMK}"
sed -i 's|vendor/xiaomi/garnet-miuicamera/|vendor/xiaomi/garnet-miuicamera/common|g' "${PRODUCTMK}" sed -i 's|vendor/xiaomi/sweet-miuicamera/|vendor/xiaomi/sweet-miuicamera/common|g' "${PRODUCTMK}"
sed -i 's|device/xiaomi/garnet-miuicamera//setup-makefiles.sh|vendor/xiaomi/garnet-miuicamera/setup-makefiles.sh|g' "${ANDROIDBP}" "${ANDROIDMK}" "${BOARDMK}" "${PRODUCTMK}" sed -i 's|device/xiaomi/sweet-miuicamera//setup-makefiles.sh|vendor/xiaomi/sweet-miuicamera/setup-makefiles.sh|g' "${ANDROIDBP}" "${ANDROIDMK}" "${BOARDMK}" "${PRODUCTMK}"
write_makefiles "${MY_DIR}/proprietary-files.txt" true write_makefiles "${MY_DIR}/proprietary-files.txt" true
sed -i 's|"xiaomi/garnet-miuicamera"|"xiaomi"|g' "${ANDROIDBP}" sed -i 's|"xiaomi/sweet-miuicamera"|"xiaomi"|g' "${ANDROIDBP}"
# Finish # Finish
write_footers write_footers