File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -67,3 +67,9 @@ cat << EOF > $MODDIR/system.prop
6767ro.build.version.security_patch=$SECURITY_PATCH
6868ro.vendor.build.security_patch=$SECURITY_PATCH
6969EOF
70+
71+ if resetprop --help | grep " compact" > /dev/null; then
72+ resetprop -n ro.build.version.security_patch " $SECURITY_PATCH "
73+ resetprop -n ro.vendor.build.security_patch " $SECURITY_PATCH "
74+ resetprop -c
75+ fi
Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ function applyButtonEventListeners() {
101101 }
102102
103103 securityPatchBtn . onclick = async ( ) => {
104- await exec ( `sh ${ moddir } /security_patch.sh --${ securityPatchBtn . selected ? 'enable' : 'disable' } ` ) ;
104+ await exec ( `sh ${ moddir } /security_patch.sh --${ securityPatchBtn . selected ? 'enable' : 'disable' } ` , { env : { PATH : "/data/adb/magisk:/data/adb/ksu/bin:/data/adb/ap/bin:$PATH" } } ) ;
105105 await loadAutoSecurityPatchConfig ( ) ;
106106 appendToOutput ( `[+] ${ securityPatchBtn . selected ? translations . output_enabled : translations . output_disabled } auto security patch.` ) ;
107107 }
You can’t perform that action at this time.
0 commit comments