mirror of
https://github.com/kdrag0n/safetynet-fix.git
synced 2024-11-19 11:11:22 +00:00
18 lines
418 B
Bash
Executable File
18 lines
418 B
Bash
Executable File
#!/sbin/sh
|
|
|
|
sdk="$(getprop ro.build.version.sdk)"
|
|
version="$(getprop ro.vendor.build.version.release)"
|
|
|
|
if mv "$MODPATH/system_sdk$sdk" $MODPATH/system; then
|
|
ui_print "Installing for Android $version"
|
|
else
|
|
ui_print "Android $version (SDK $sdk) is not supported!"
|
|
exit 1
|
|
fi
|
|
|
|
# Remove unused SDKs
|
|
rm -fr $MODPATH/system_sdk*
|
|
|
|
# Set executable permissions
|
|
set_perm_recursive $MODPATH/system/bin 0 0 0755 0755
|