Sudheer Shanka 0ca63ddebd Fix an issue in NPMS blockedReasons computation logic.
If an app does not have the permission to access network
in Restricted mode, we should be removing
ALLOWED_REASON_RESTRICTED_MODE_PERMISSIONS from the uid's
allowedReasons but right now, we end up removing all the
allowedReasons except ALLOWED_REASON_RESTRICTED_MODE_PERMISSIONS
and this could result in sending wrong network state to apps.

Bug: 202213533
Test: atest tests/cts/hostside/src/com/android/cts/net/HostsideRestrictBackgroundNetworkTests.java
Change-Id: Ibcae147bf4ba84ff91ef7038ffef8c33082b82ca
Merged-In: Ibcae147bf4ba84ff91ef7038ffef8c33082b82ca
(cherry picked from commit 259414efbc)
2021-10-15 14:03:06 -07:00
2021-10-07 23:50:15 +00:00
2021-05-13 08:24:32 +00:00
2021-08-04 21:46:57 +00:00
2021-10-13 15:39:02 -07:00
2021-10-07 23:50:15 +00:00
…
2020-07-15 13:02:35 +01:00
2021-01-27 12:09:16 -08:00
…
2021-04-14 22:48:32 +00:00
Description
No description provided
21 GiB
Languages
Java 73.7%
Kotlin 14%
PowerBuilder 5.8%
C++ 5.2%
AIDL 1%