Skip to content

Commit

Permalink
Fix UserServices are not killed after permission is revoked
Browse files Browse the repository at this point in the history
  • Loading branch information
RikkaW committed Oct 5, 2022
1 parent 96cefd6 commit daf3af9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions module/src/main/java/rikka/sui/server/SuiService.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}
Expand Down

0 comments on commit daf3af9

Please sign in to comment.