Skip to content

Instantly share code, notes, and snippets.

@EragonJ
Created December 30, 2014 03:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EragonJ/568a94e39c0f2961dfdb to your computer and use it in GitHub Desktop.
Save EragonJ/568a94e39c0f2961dfdb to your computer and use it in GitHub Desktop.
if (wifiManager) {
this._suspend('wifi');
// make sure ril.ignore.mutex is set before turning off wifi-tethering
var req = SettingsListener.getSettingsLock().set({
'ril.ignore.mutex': true
});
req.onsuccess = function() {
SettingsListener.getSettingsLock().set({
'tethering.wifi.enabled': false
});
};
req.onerror = function() {
console.log('Something went wrong');
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment