[MS26.1] Remove Process.NETWORK_STACK_UID dependency

Check NetworkStack permission instead.

Test: NetworkStatsAccessTest
Bug: 204830222
Change-Id: I052a1422d145af533b036b0f017ace485b67cbfe
This commit is contained in:
Junyu Lai
2021-12-28 09:03:07 +00:00
parent 1d3ce85882
commit 8b46180814
2 changed files with 8 additions and 3 deletions

View File

@@ -811,7 +811,7 @@ public class NetworkStatsService extends INetworkStatsService.Stub {
private @NetworkStatsAccess.Level int checkAccessLevel(String callingPackage) {
return NetworkStatsAccess.checkAccessLevel(
mContext, Binder.getCallingUid(), callingPackage);
mContext, Binder.getCallingPid(), Binder.getCallingUid(), callingPackage);
}
/**