mirror of
https://github.com/kdrag0n/safetynet-fix.git
synced 2024-11-19 11:11:22 +00:00
7c27b7744b
Android 12's SDK is now versioned as 31, so it no longer needs to be special-cased.
10 lines
284 B
Bash
Executable File
10 lines
284 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# Keystore v2 starts before Magisk on Android 12, so it needs to be restarted.
|
|
# Do this in service.sh to make sure that files have been mounted already.
|
|
sdk="$(getprop ro.build.version.sdk)"
|
|
if [[ "$sdk" -ge 31 ]]; then
|
|
stop keystore2
|
|
start keystore2
|
|
fi
|