summaryrefslogtreecommitdiff
path: root/Tethering/common/TetheringLib/src/android/net/TetheringManager.java
diff options
context:
space:
mode:
authormarkchien <markchien@google.com>2020-06-03 12:27:37 +0800
committermarkchien <markchien@google.com>2020-06-20 10:19:25 +0800
commit4c9428a135c0b5a072c3ab3df8403e9a2cb438aa (patch)
tree7b7bb786d7e37c5d870e7af56146bac08eabc191 /Tethering/common/TetheringLib/src/android/net/TetheringManager.java
parent902043f5c374d529353386aa7724179f7abc1142 (diff)
Protect invalid entitlement app configuration
There is a protection in Settings that Settings would gray out if tethering requires entitlement check but the entitlement app is invalid. Tethering resource is moved from framework to tethering module, so Settings can not fetch entitlement app name anymore. In this change, tethering module would check whether entitltement app package name is exsited if entitlement check is needed. Tethering would be not supported (Settings tethering option would be hidded) if entitlement app is not installed. After moving the protection into tethering module, TetherUtil#isProvisioningNeeded is no longer needed. Because The only use case is Settings wants to gray out tethering setting when entitltement check is needed but entitlement app is invalid. Bug: 146918263 Test: atest TetheringCoverageTests Change-Id: I9a5ff5dbc1db3f3be7fcd7146862a16b373507e6 Merged-In: I9a5ff5dbc1db3f3be7fcd7146862a16b373507e6
Diffstat (limited to 'Tethering/common/TetheringLib/src/android/net/TetheringManager.java')
0 files changed, 0 insertions, 0 deletions