am aae04e43
: Prevent monkeys from USB tethering. It disconnects the test host. DO NOT MERGE.
* commit 'aae04e43ec277c095e181933976dfa7bfd044288': Prevent monkeys from USB tethering. It disconnects the test host. DO NOT MERGE.
This commit is contained in:
@@ -82,7 +82,7 @@ public class TetherSettings extends PreferenceActivity {
|
||||
(ConnectivityManager)getSystemService(Context.CONNECTIVITY_SERVICE);
|
||||
|
||||
mUsbRegexs = cm.getTetherableUsbRegexs();
|
||||
if (mUsbRegexs.length == 0) {
|
||||
if (mUsbRegexs.length == 0 || Utils.isMonkeyRunning()) {
|
||||
getPreferenceScreen().removePreference(mUsbTether);
|
||||
|
||||
setTitle(R.string.tether_settings_title_wifi);
|
||||
|
Reference in New Issue
Block a user