Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1d714a76 authored by Paul Jensen's avatar Paul Jensen Committed by Zach Jang
Browse files

Fix NOT_RESTRICTED network capability and enforce it.

With this change:
1. NOT_RESTRICTED should be removed from NetworkRequests that bring up
   special restricted carrier networks (e.g. IMS, FOTA).
2. NetworkRequests without NOT_RESTRICTED require CONNECTIVITY_INTERNAL
   permission to register
3. Binding sockets to networks without NOT_RESTRICTED requires
   CONNECTIVITY_INTERNAL permission

Bug:21637535
Change-Id: I5991d39facaa6b690e969fe15dcbeec52e918321
(cherry picked from commit af171aa4)

Resolved conflicts from cherry-picking ag/758371 into the lmp-mr1-release branch.
parent df31d37d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -944,7 +944,7 @@ public final class DataConnection extends StateMachine {
                    default:
                }
            }
            ConnectivityManager.maybeMarkCapabilitiesRestricted(result);
            result.maybeMarkCapabilitiesRestricted();
        }
        int up = 14;
        int down = 14;