OSDN Git Service

Don't unnecessarily reevaluate tethering provisioning
authorErik Kline <ek@google.com>
Wed, 28 Feb 2018 06:01:35 +0000 (15:01 +0900)
committerErik Kline <ek@google.com>
Wed, 11 Apr 2018 19:03:47 +0000 (12:03 -0700)
commit1b450e3eb9106a9cc73dfc144d275141dd5017ef
tree23dee6a5f88af4d0ed4eb238ed14af92b302ba1a
parentc97d768b6bfd8c348f26224f8947204c2082903c
Don't unnecessarily reevaluate tethering provisioning

Registering for carrier config changes can deliver a sticky broadcast
and can cause Tethering to think something has changed and reevaluate
provisioning status, even though this has been checked before it
entered tethering mode alive state.

Additionally, move the provisioning_app{,no_ui} resources into the
TetheringConfiguration, if for no other reason than now we can log
it in .toString().

Test: as follows
    - built
    - flashed
    - booted
    - runtest frameworks-net passes
    - manual USB tethering toward WiFi works
Bug: 69565814
Merged-In: If254326e892b78ef9daf620f829c1def136d695c
Merged-In: I288093a1d76566e72d4889d92c7aedafc318c8b6

Change-Id: I01c71fd971a4683bb2b6d14825d36f24a04d88a8
services/core/java/com/android/server/connectivity/Tethering.java
services/core/java/com/android/server/connectivity/tethering/TetheringConfiguration.java
tests/net/java/com/android/server/connectivity/TetheringTest.java