safetynet-fix/customize.sh

18 lines
418 B
Bash
Raw Normal View History

2021-01-13 09:58:45 +00:00
#!/sbin/sh
2021-01-14 00:22:00 +00:00
sdk="$(getprop ro.build.version.sdk)"
version="$(getprop ro.vendor.build.version.release)"
2021-01-14 00:22:00 +00:00
if mv "$MODPATH/system_sdk$sdk" $MODPATH/system; then
ui_print "Installing for Android $version"
2021-01-14 00:22:00 +00:00
else
ui_print "Android $version (SDK $sdk) is not supported!"
2021-01-14 00:22:00 +00:00
exit 1
fi
# Remove unused SDKs
rm -fr $MODPATH/system_sdk*
2021-01-13 09:58:45 +00:00
# Set executable permissions
set_perm_recursive $MODPATH/system/bin 0 0 0755 0755