Merge "Allow NetworkRequest release from the system process." into lmp-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
e1dbb17d41
@@ -2160,7 +2160,7 @@ public class ConnectivityService extends IConnectivityManager.Stub {
|
||||
private void handleReleaseNetworkRequest(NetworkRequest request, int callingUid) {
|
||||
NetworkRequestInfo nri = mNetworkRequests.get(request);
|
||||
if (nri != null) {
|
||||
if (nri.mUid != callingUid) {
|
||||
if (Process.SYSTEM_UID != callingUid && nri.mUid != callingUid) {
|
||||
if (DBG) log("Attempt to release unowned NetworkRequest " + request);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user