Fixup athene

- Disable default encryption on athene, doesn't work
- Remove QC telephony extensions, causes Dialer to crash

Signed-off-by: Tad <tad@spotco.us>
This commit is contained in:
Tad 2023-08-29 22:58:52 -04:00
parent e067f59555
commit f7d0ff4af2
No known key found for this signature in database
GPG Key ID: B286E9F57A07424B
3 changed files with 5 additions and 2 deletions

View File

@ -553,11 +553,13 @@ echo "Deblobbing...";
blobs=$blobs"|SecProtect.apk";
#SecureUI [Qualcomm]
blobs=$blobs"|lib-sec-disp.so|libSecureUILib.so|libsecureui.so|libsecureuisvc_jni.so|libsecureui_svcsock.so"; #XXX: Maybe reaks radio
blobs=$blobs"|lib-sec-disp.so|libSecureUILib.so|libsecureui.so|libsecureuisvc_jni.so|libsecureui_svcsock.so"; #XXX: Can break qseecomd
blobs=$blobs"|com.qualcomm.qti.services.secureui.*";
blobs=$blobs"|libHealthAuthClient.so|libHealthAuthJNI.so|libSecureExtAuthJNI.so";
blobs=$blobs"|libSampleAuthJNI.so|libSampleAuthJNIv1.so|libSampleExtAuthJNI.so|libSecureSampleAuthClient.so";
#blobs=$blobs"|libsdedrm.so"; #Direct Rendering Manager not evil DRM? #XXX: potential breakage
#TrustedUI [Qualcomm]
blobs=$blobs"|vendor.qti.hardware.tui.*";
manifests=$manifests"|tui_comm|trustedui";

View File

@ -620,7 +620,7 @@ hardenUserdata() {
#TODO: Ensure: noatime,nosuid,nodev
sed -i '/\/data/{/discard/!s|nosuid|discard,nosuid|}' *fstab* */*fstab* */*/*fstab* &>/dev/null || true;
if [ "$1" != "device/samsung/tuna" ] && [ "$1" != "device/amazon/hdx-common" ]; then #tuna needs first boot to init, hdx-c has broken encryption
if [ "$1" != "device/samsung/tuna" ] && [ "$1" != "device/amazon/hdx-common" ] && [ "$1" != "device/motorola/athene" ]; then #tuna needs first boot to init, hdx-c has broken encryption
sed -i 's|encryptable=/|forceencrypt=/|' *fstab* */*fstab* */*/*fstab* &>/dev/null || true;
fi;
echo "Hardened /data for $1";

View File

@ -580,6 +580,7 @@ fi;
if enterAndClear "device/motorola/athene"; then
sed -i 's/camera.msm8952.so/camera.vendor.msm8952.so/' proprietary-files.txt; #Fixups
sed -i 's/libchromatix_ov13850_polaris_default_video_bu64297/libchromatix_ov13850_polaris_default_video_bu64297.so/' proprietary-files.txt;
awk -i inplace '!/qti-telephony-common/' proprietary-files.txt; #Fix Phone crashing
fi;
if enterAndClear "device/samsung/exynos5420-common"; then