Fix hasUseBackgroundNetworksPermission issue.
PermissionMonitor#hasUseBackgroundNetworksPermission only uses the first package name of the uid for checking permission. This is incorrect since each package declared different permissions. So using the mApps which already checked both network and using restricted network permissions. If uid is in the mApps list that means uid has one of permission at least. Bug: 135897744 Test: atest FrameworksNetTests Change-Id: I3500a03ce06b5b822311ad0c67b606ce4039216a
Loading
Please register or sign in to comment