diff options
author | Nathan Harold <nharold@google.com> | 2019-05-21 15:33:04 -0700 |
---|---|---|
committer | Nathan Harold <nharold@google.com> | 2019-05-22 13:44:24 -0700 |
commit | 744b57e12264bbf7724dc824ec3a1c74b64fb168 (patch) | |
tree | 5491bdca6f25d7fa3260e43e377d0f965d7df1e4 /startop/scripts/lib/cmd_utils.py | |
parent | 41537638f0efee8ccfe575471914824f173a248d (diff) |
Add permissions check for getNetworkType
-Add a function in TelephonyPermissions to check
READ_PHONE_STATE or return NETWORK_TYPE_UNKNOWN (soft denial).
-Honor the subId in TM or use the default DATA sub when
returning the network type.
Bug: 132466954
Test: cts - atest TelephonyManagerPermissionTest
Merged-In: I4e1767c9dc10acbadec286512752d4bb52059b74
Change-Id: I4e1767c9dc10acbadec286512752d4bb52059b74
(cherry picked from commit 39444b39ba9ff9ecb44c97b1f9f62544a316cd2b)
Diffstat (limited to 'startop/scripts/lib/cmd_utils.py')
0 files changed, 0 insertions, 0 deletions