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>
Mon, 9 Apr 2018 01:28:15 +0000 (18:28 -0700)
commit8067d78c32f545db6d35c660279ab3f2326ba41d
treed1fed8f067d2774fb4b55922611cbf1f39f4d295
parentd61e87ad0899c8a737aa8f3f43b263bcee24325f
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
Change-Id: Ib8b2620ce44c55e5eb0afd3f00f3f5aa4fc8a593
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