[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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user