Skip to content

Commit

Permalink
a52sxq: switch to Android 14 firmware
Browse files Browse the repository at this point in the history
Change-Id: I69febf31738a8aefec2b22b69617f99dc582f0f5
  • Loading branch information
salvogiangri committed Dec 5, 2023
1 parent aef1a5a commit 42ef28b
Show file tree
Hide file tree
Showing 11 changed files with 32 additions and 2,692 deletions.
4 changes: 2 additions & 2 deletions target/a52sxq/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@

# Device configuration file for Galaxy A52s 5G (a52sxq)
TARGET_CODENAME="a52sxq"
TARGET_FIRMWARE="SM-A528B/INS"
TARGET_FIRMWARE="SM-A528B/BTU"
TARGET_EXTRA_FIRMWARES=()
TARGET_API_LEVEL=33
TARGET_API_LEVEL=34
TARGET_VNDK_VERSION=30
TARGET_SINGLE_SYSTEM_IMAGE="qssi"
TARGET_OS_FILE_SYSTEM="ext4"
Expand Down
12 changes: 0 additions & 12 deletions target/a52sxq/debloat.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,6 @@ overlay/SoftapOverlay6GHz
overlay/SoftapOverlayOWE
"

# fabric_crypto
SYSTEM_DEBLOAT+="
system/bin/fabric_crypto
system/etc/init/fabric_crypto.rc
system/etc/permissions/FabricCryptoLib.xml
system/etc/vintf/manifest/fabric_crypto_manifest.xml
system/framework/FabricCryptoLib.jar
system/lib64/com.samsung.security.fabric.cryptod-V1-cpp.so
system/lib64/vendor.samsung.hardware.security.fkeymaster-V1-cpp.so
system/lib64/vendor.samsung.hardware.security.fkeymaster-V1-ndk.so
"

# HDCP
SYSTEM_DEBLOAT+="
system/bin/dhkprov
Expand Down
19 changes: 4 additions & 15 deletions target/a52sxq/patches/camera.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#====================================================
# FILE: camera.sh
# AUTHOR: BlackMesa123, DavidArsene
# DESCRIPTION: Various camera-related patches
# AUTHOR: DavidArsene
# DESCRIPTION: Fix camera lock for devices with a
# rear SLSI sensor
#====================================================

set -e
Expand All @@ -12,8 +13,8 @@ OUT_DIR="$SRC_DIR/out"
WORK_DIR="$OUT_DIR/work_dir"
# ]

# Fix camera lock for devices with a rear SLSI sensor
echo "Patching camera HAL"

HAL_LIBS="
$WORK_DIR/vendor/lib/hw/camera.qcom.so
$WORK_DIR/vendor/lib/hw/com.qti.chi.override.so
Expand All @@ -24,16 +25,4 @@ for f in $HAL_LIBS; do
sed -i "s/ro.boot.flash.locked/ro.camera.notify_nfc/g" "$f"
done

# Fix SELinux denials
echo "Fix camera SELinux denials"
if ! grep -q "Camera End" "$WORK_DIR/vendor/ueventd.rc"; then
echo "" >> "$WORK_DIR/vendor/ueventd.rc"
cat "$SRC_DIR/target/a52sxq/patches/camera/ueventd" >> "$WORK_DIR/vendor/ueventd.rc"
fi

# One UI 6-compatible camera-feature.xml
echo "Replacing camera-feature.xml"
cp -a --preserve=all "$SRC_DIR/target/a52sxq/patches/camera/camera-feature.xml" \
"$WORK_DIR/system/system/cameradata/camera-feature.xml"

exit 0
237 changes: 0 additions & 237 deletions target/a52sxq/patches/camera/camera-feature.xml

This file was deleted.

217 changes: 0 additions & 217 deletions target/a52sxq/patches/camera/ueventd

This file was deleted.

7 changes: 0 additions & 7 deletions target/a52sxq/patches/miscs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,6 @@ if [ ! -f "$WORK_DIR/odm/ueventd.rc" ]; then
echo "odm/ueventd.rc 0 0 644 capabilities=0x0" >> "$WORK_DIR/configs/fs_config-odm"
fi

echo "Add /spu in rootfs"
if [ ! -d "$WORK_DIR/system/spu" ]; then
mkdir -p "$WORK_DIR/system/spu"
echo "/spu u:object_r:spu_file:s0" >> "$WORK_DIR/configs/file_context-system"
echo "spu 0 0 755 capabilities=0x0" >> "$WORK_DIR/configs/fs_config-system"
fi

echo "Fix up /product/etc/build.prop"
sed -i "/# Removed by /d" "$WORK_DIR/product/etc/build.prop" \
&& sed -i "s/#bluetooth./bluetooth./g" "$WORK_DIR/product/etc/build.prop" \
Expand Down
Loading

0 comments on commit 42ef28b

Please sign in to comment.