Merge "DISALLOW_USB_FILE_TRANSFER update user restrictions" into sc-dev

This commit is contained in:
Alex Johnston
2021-04-30 09:50:05 +00:00
committed by Android (Google) Code Review

View File

@@ -200,7 +200,7 @@ public class UsbService extends IUsbManager.Stub {
final IntentFilter filter = new IntentFilter();
filter.setPriority(IntentFilter.SYSTEM_HIGH_PRIORITY);
filter.addAction(DevicePolicyManager.ACTION_DEVICE_POLICY_MANAGER_STATE_CHANGED);
mContext.registerReceiver(receiver, filter, null, null);
mContext.registerReceiverAsUser(receiver, UserHandle.ALL, filter, null, null);
}
/**