Set usb aio compat for everyone

Too many different devices have this problem:
- Galaxy S9
- Razer phone
- Amlogic
This commit is contained in:
Pierre-Hugues Husson 2018-08-16 14:59:26 +02:00
parent b2586b17f6
commit 986fa4cd0b

View File

@ -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 mount -o bind /system/phh/empty /vendor/lib64/hw/keystore.mdfpp.so
set -e set -e
if getprop ro.vendor.build.fingerprint |grep -qi samsung;then setprop sys.usb.ffs.aio_compat true
setprop sys.usb.ffs.aio_compat true
fi
fixSPL() { fixSPL() {
if [ "$(getprop ro.product.cpu.abi)" == "armeabi-v7a" ];then if [ "$(getprop ro.product.cpu.abi)" == "armeabi-v7a" ];then
@ -22,7 +20,7 @@ fixSPL() {
setprop ro.keymaster.xxx.release "$Arelease" setprop ro.keymaster.xxx.release "$Arelease"
setprop ro.keymaster.xxx.security_patch "$(getSPL $img spl)" 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 [ ! -f $f ] && continue
ctxt="$(ls -lZ $f |grep -oE 'u:object_r:[^:]*:s0')" ctxt="$(ls -lZ $f |grep -oE 'u:object_r:[^:]*:s0')"
b="$(echo "$f"|tr / _)" b="$(echo "$f"|tr / _)"