safetynet-fix/service.sh

10 lines
284 B
Bash
Raw Normal View History

#!/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