Add system prop to work around tether provisioning
Set net.tethering.noprovisioning to something non-empty to avoid the provisioning check. bug:5445277 Change-Id: I048bffe2c11d80d79e8065f7fbe6cfb6db87da85
This commit is contained in:
@@ -37,6 +37,7 @@ import android.net.wifi.WifiConfiguration;
|
||||
import android.net.wifi.WifiManager;
|
||||
import android.os.Bundle;
|
||||
import android.os.Environment;
|
||||
import android.os.SystemProperties;
|
||||
import android.preference.CheckBoxPreference;
|
||||
import android.preference.Preference;
|
||||
import android.preference.PreferenceScreen;
|
||||
@@ -476,6 +477,9 @@ public class TetherSettings extends SettingsPreferenceFragment
|
||||
}
|
||||
|
||||
boolean isProvisioningNeeded() {
|
||||
if (SystemProperties.getBoolean("net.tethering.noprovisioning", false)) {
|
||||
return false;
|
||||
}
|
||||
return mProvisionApp.length == 2;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user