[SdkSetup] Disable Offload Tethering

Unbreak emulator system crash when WiFi tethering switch is turned
on in Settings app.

BUG: 150408099

Signed-off-by: Weilun Du <wdu@google.com>
Change-Id: I893258171c9a6aa4659c8a636f410414c0216d41
This commit is contained in:
Weilun Du
2020-03-30 14:06:03 -07:00
parent e95677343a
commit c734c3fc01

View File

@@ -67,6 +67,10 @@ public class DefaultActivity extends Activity {
Settings.Secure.putInt(getContentResolver(), Settings.Secure.INSTALL_NON_MARKET_APPS, 1);
Settings.Global.putInt(getContentResolver(), Settings.Global.ADB_ENABLED, 1);
// Disable offload wifi tethering
Settings.Global.putInt(getContentResolver(), Settings.Global.TETHER_OFFLOAD_DISABLED, 1);
}
// remove this activity from the package manager.