summaryrefslogtreecommitdiff
path: root/packages/SettingsLib/src/com/android/settingslib/TetherUtil.java
AgeCommit message (Collapse)Author
2020-06-16Protect invalid entitlement app configurationmarkchien
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
2018-08-30Factor some RestrictedLockUtils out of SettingLibPhilip P. Moltmann
Also make the new lib only use system-apis. This allows mainline module to use the new RestrictedLockUtilsSettingLib. Unfortunately the whole RestrictedLockUtils would have caused to much new system-api. Hence it was split into RestrictedLockUtils and RestrictedLockUtilsInternal. This caused a lot of trivial code changes. Bug: 110953302 Test: Built Change-Id: I693b3bf56f3be71f0790776e3aad5694717786ef
2018-08-28Sort importsFan Zhang
Having consistent import order will reduce chance of merge conflict between internal and external master Test: rebuild Change-Id: I9acb311ec05f72f0a37f08b0d26785841fe91de5
2018-05-09Add index for Hotspot settings page into searchChilun
Move repeated code into utility class. Add robotests for public API. Bug: 74777873 Test: make -j RunSettingsLibRoboTests Change-Id: I00d29799add28566fb20bf18d2e44d828952e8ad
2018-04-20Migrated SystemUI & SettingsLib to androidxAurimas Liutikas
Test: make SystemUI SettingsLib Bug:76692459 Change-Id: I248fdf4042a0a97bc6349091da21c936c2d37c95
2017-05-08Fix NPE when opening tether preference.Fan Zhang
Change-Id: I387d340859cef1adb190e9c763d78c167f0b298b Fix: 38105700 Test: make RunSettingsLibRoboTests
2016-07-18TetherUtil: Use ConnectivityManager for tetheringChristopher Wiley
In the past, enabling the SoftAP would cause tethering to happen because of some unfortunate side effects. This is no longer the case, and using WifiManager for this purpose is not a good idea. Bug: 30147602 Test: Can toggle tethering on/off via all of settings, quick settings, and quick quick settings. Change-Id: Iebbfc6c48b3e8e3fa52d235594ded3502f5801a3
2016-02-04Remove several TetherUtil functions which are no longer needed.Jeremy Klein
Slowly chipping away at TetherUtil to clean up this code. This CL also adds an admin check to ConnectivityService.isTetheringSupported to get parity with the TetherUtil function before removing it. Change-Id: Ibe7c5c9fb420d57e5458f77dad30e8a1e751a3e2
2016-01-25Expose a simple tethering API which includes provision checks.Jeremy Klein
This CL exposes startTethering and stopTethering functions which also encapsulate all provisioning check logic. Right now, only silent checks are implemented, but UI checks will come in a follow-up CL. GTS tests and Settings changes are under the same topic ID. BUG: 26247383 Change-Id: I65f61d899594cb3f9035d8496366af17a57a090f
2015-09-14am e8c98b77: am f40365f1: am ae0b7ca9: am c9180528: Merge "Add capability to ↵Chris Manton
ignore carrier entitlement checks" into mnc-dr-dev * commit 'e8c98b77854d39606960b0b6f5b5332c61e9a3d9': Add capability to ignore carrier entitlement checks
2015-09-11Add capability to ignore carrier entitlement checksChris Manton
Boolean to check to ignore carrier entitlement check. API to follow later. Carrier configuration manager has an option to override tethering entitlement checks. Ignore entitlement checks if overridden by the carrier configuration flag. bug:23712807 Change-Id: I6c9b3b9994279e592db304debef54809338fe9cf
2015-08-20am a578ac88: am 9fde6f2c: am edf93764: am b460cc88: Merge "Remove wifi ↵Mitchell Wills
enabled checking from settings TetherUtil" into mnc-dr-dev * commit 'a578ac888622a6b46bbaac78b04adebec9b9979b': Remove wifi enabled checking from settings TetherUtil
2015-08-17Remove wifi enabled checking from settings TetherUtilMitchell Wills
TetherUtil no longer needs to reenable wifi when leaving SAP mode as it is now done by WifiController. WifiController will also disable wifi if needed when enabling SAP. Bug: 22729316 Change-Id: I2ffe50e6468519ca964b27ba70a7e3019fd96eb1
2015-08-05Clean up USER_OWNER references in settingslib.Xiaohui Chen
Bug: 19913735 Change-Id: I0ccaed63c8fbc3bcbbd8d5cf8047e33c6e2edb5c
2015-02-12Some Tethering code to SettingsLib and use in QSJason Monk
Change-Id: I640c84d4e42d2f1955db8cd6e473b6acac64dd39