mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-03-12 08:55:14 +00:00
Update adb.js
This commit is contained in:
parent
36efb8bc07
commit
26bb5dd5e6
|
@ -1,5 +1,5 @@
|
||||||
////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////
|
||||||
// LDPlayer API
|
// Android Debug Bridge API
|
||||||
///////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
var SHELL = require("lib/shell");
|
var SHELL = require("lib/shell");
|
||||||
|
@ -29,7 +29,11 @@ function ADBObject() {
|
||||||
};
|
};
|
||||||
|
|
||||||
this.getHostname = function(id) {
|
this.getHostname = function(id) {
|
||||||
return SHELL.exec([this.binPath, "-s", id, "shell", "getprop", "net.hostname"]).trim();
|
return this.getProperty(id, "net.hostname").trim();
|
||||||
|
};
|
||||||
|
|
||||||
|
this.getProperty = function(id, name) {
|
||||||
|
return SHELL.exec([this.binPath, "-s", id, "shell", "getprop", name]);
|
||||||
};
|
};
|
||||||
|
|
||||||
this.disableService = function(id, name) {
|
this.disableService = function(id, name) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user