Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit aae04e43 authored by Amith Yamasani's avatar Amith Yamasani
Browse files

Prevent monkeys from USB tethering. It disconnects the test host. DO NOT MERGE.

Bug: 3443747
Change-Id: Ied9c842e306e299fec7cd201415e0cfad0d29630
parent 47d2ecd0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -86,7 +86,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);