From 986fa4cd0b1ae483371d6dccfd3fa46d322487c8 Mon Sep 17 00:00:00 2001 From: Pierre-Hugues Husson Date: Thu, 16 Aug 2018 14:59:26 +0200 Subject: [PATCH] Set usb aio compat for everyone Too many different devices have this problem: - Galaxy S9 - Razer phone - Amlogic --- rw-system.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/rw-system.sh b/rw-system.sh index 85a4b65..2fcd200 100644 --- a/rw-system.sh +++ b/rw-system.sh @@ -4,9 +4,7 @@ mount -o bind /system/phh/empty /vendor/lib64/hw/keystore.exynos9810.so mount -o bind /system/phh/empty /vendor/lib64/hw/keystore.mdfpp.so set -e -if getprop ro.vendor.build.fingerprint |grep -qi samsung;then - setprop sys.usb.ffs.aio_compat true -fi +setprop sys.usb.ffs.aio_compat true fixSPL() { if [ "$(getprop ro.product.cpu.abi)" == "armeabi-v7a" ];then @@ -22,7 +20,7 @@ fixSPL() { setprop ro.keymaster.xxx.release "$Arelease" setprop ro.keymaster.xxx.security_patch "$(getSPL $img spl)" - for f in /vendor/lib64/hw/android.hardware.keymaster@3.0-impl-qti.so /vendor/lib/hw/android.hardware.keymaster@3.0-impl-qti.so /system/lib64/vndk-26/libsoftkeymasterdevice.so /vendor/bin/teed /system/lib64/vndk/libsoftkeymasterdevice.so /system/lib/vndk/libsoftkeymasterdevice.so /system/lib/vndk-26/libsoftkeymasterdevice.so;do + for f in /vendor/lib64/hw/android.hardware.keymaster@3.0-impl-qti.so /vendor/lib/hw/android.hardware.keymaster@3.0-impl-qti.so /system/lib64/vndk-26/libsoftkeymasterdevice.so /vendor/bin/teed /system/lib64/vndk/libsoftkeymasterdevice.so /system/lib/vndk/libsoftkeymasterdevice.so /system/lib/vndk-26/libsoftkeymasterdevice.so /vendor/lib64/libkeymaster_helper.so;do [ ! -f $f ] && continue ctxt="$(ls -lZ $f |grep -oE 'u:object_r:[^:]*:s0')" b="$(echo "$f"|tr / _)"