Merge "Add a source parameter for resrictions logging" into main
This commit is contained in:
committed by
Android (Google) Code Review
commit
5953a3386c
@@ -559,7 +559,8 @@ public class AppButtonsPreferenceController extends BasePreferenceController imp
|
||||
if (android.app.Flags.appRestrictionsApi()) {
|
||||
am.noteAppRestrictionEnabled(pkgName, mAppEntry.info.uid,
|
||||
ActivityManager.RESTRICTION_LEVEL_FORCE_STOPPED, true,
|
||||
ActivityManager.RESTRICTION_REASON_USER, "settings", 0L);
|
||||
ActivityManager.RESTRICTION_REASON_USER,
|
||||
"settings", ActivityManager.RESTRICTION_SOURCE_USER, 0L);
|
||||
}
|
||||
am.forceStopPackage(pkgName);
|
||||
int userId = UserHandle.getUserId(mAppEntry.info.uid);
|
||||
|
||||
Reference in New Issue
Block a user