Merge "Remove the restricted user enforcement in getAppExclusionList"

This commit is contained in:
Chiachang Wang
2022-09-21 09:41:45 +00:00
committed by Gerrit Code Review

View File

@@ -4185,8 +4185,6 @@ public class Vpn {
*/ */
@NonNull @NonNull
public synchronized List<String> getAppExclusionList(@NonNull String packageName) { public synchronized List<String> getAppExclusionList(@NonNull String packageName) {
enforceNotRestrictedUser();
final long oldId = Binder.clearCallingIdentity(); final long oldId = Binder.clearCallingIdentity();
try { try {
final byte[] bytes = getVpnProfileStore().get(getVpnAppExcludedForPackage(packageName)); final byte[] bytes = getVpnProfileStore().get(getVpnAppExcludedForPackage(packageName));