service: Restart Keystore v2 on Android 12

This commit is contained in:
Danny Lin 2021-06-26 18:55:13 -07:00
parent e04d5de503
commit e94eb5b275
No known key found for this signature in database
GPG Key ID: 1988FAA1797EE5AC

8
service.sh Executable file
View File

@ -0,0 +1,8 @@
#!/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.
if getprop ro.build.id | grep -q SPB2; then
stop keystore2
start keystore2
fi