From 47ab64bbde32a734e261913110410ebac391f4dc Mon Sep 17 00:00:00 2001 From: Pierre-Hugues Husson Date: Sat, 26 May 2018 11:26:33 +0200 Subject: [PATCH] Replace more softkeymaster, some 8.1 devicesrequires this --- rw-system.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rw-system.sh b/rw-system.sh index ecf1d55..b9d6c77 100644 --- a/rw-system.sh +++ b/rw-system.sh @@ -16,10 +16,10 @@ 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 /system/lib64/vndk-26/libsoftkeymasterdevice.so /vendor/bin/teed;do + for f in /vendor/lib64/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;do [ ! -f $f ] && continue ctxt="$(ls -lZ $f |grep -oE 'u:object_r:[^:]*:s0')" - b="$(basename "$f")" + b="$(echo "$f"|tr / _)" mkdir -p /mnt/phh/ cp -a $f /mnt/phh/$b