Fix NOT_RESTRICTED network capability and enforce it.
authorPaul Jensen <pauljensen@google.com>
Fri, 31 Jul 2015 15:00:26 +0000 (11:00 -0400)
committerPaul Jensen <pauljensen@google.com>
Fri, 31 Jul 2015 15:09:58 +0000 (11:09 -0400)
commitaf171aa4dcf294bf2d1b9bed54ef9a6b0ec76361
tree01036f51526f9b9bd4b550c74ed355e38745fcd0
parent73159fe819030161412702eec8ad4ada29667c7d
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
src/java/com/android/internal/telephony/dataconnection/DataConnection.java
src/java/com/android/internal/telephony/dataconnection/DctController.java