WifiServiceImpl: Use updateInterfaceIpStateInternal for broadcast

updateInterfaceIpState is a privileged WifiManager API that only the
system_server (holding signature NETWORK_STACK permission is allowed to
invoke). We don't need to perform the permission checks when calling the
method for internally handling the AP_STATE_CHANGED broadcast.
Note: updateInterfaceIpStateInternal is already being invoked from other parts
of the handleWifiApStateChanged method.

Also, modified enforceNetworkStackPermission &
enforceNetworkSettingsPermission helper methods to not use
mContext.enforeCallingOrSelfPermission. Since these permissions are
signature permissions, the wifi stack will never get these permissions
since we're no longer a platform signature component.
So, switch to mContext.enforceCallingPermission to be more explicit
about checking for the caller's permission (not for self == wifi stack).

Bug: 135683539
Test: Manual (changed tethering band selection)
Test: Will send back for regression testing.
Change-Id: Iafae2867b47eb9d17b5fb969acc9d69555a66ca7
2 files changed
tree: 94be122d439d26bd0e46e6a7b7faf05e8a7c29b6
  1. service/
  2. PREUPLOAD.cfg