From e94eb5b275f747cdb0499a332eae4da2e5bae94e Mon Sep 17 00:00:00 2001 From: Danny Lin Date: Sat, 26 Jun 2021 18:55:13 -0700 Subject: [PATCH] service: Restart Keystore v2 on Android 12 --- service.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 service.sh diff --git a/service.sh b/service.sh new file mode 100755 index 0000000..3cf87dc --- /dev/null +++ b/service.sh @@ -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