From daf3af9202e8d8f37adf9786ad897acd504c1949 Mon Sep 17 00:00:00 2001 From: RikkaW Date: Wed, 5 Oct 2022 13:56:00 +0800 Subject: [PATCH] Fix UserServices are not killed after permission is revoked --- module/src/main/java/rikka/sui/server/SuiService.java | 1 + 1 file changed, 1 insertion(+) diff --git a/module/src/main/java/rikka/sui/server/SuiService.java b/module/src/main/java/rikka/sui/server/SuiService.java index c8f1cff..cb79ed7 100644 --- a/module/src/main/java/rikka/sui/server/SuiService.java +++ b/module/src/main/java/rikka/sui/server/SuiService.java @@ -367,6 +367,7 @@ public void updateFlagsForUid(int uid, int mask, int value) { if (!allowed || wasHidden) { ActivityManagerApis.forceStopPackageNoThrow(record.packageName, UserHandleCompat.getUserId(record.uid)); + getUserServiceManager().removeUserServicesForPackage(record.packageName); } } }