adbkit
Advanced tools
Comparing version 2.9.2 to 2.10.0
@@ -1,2 +0,2 @@ | ||
var ClearCommand, Client, Connection, ForwardCommand, FrameBufferCommand, GetDevicePathCommand, GetFeaturesCommand, GetPackagesCommand, GetPropertiesCommand, GetSerialNoCommand, GetStateCommand, HostConnectCommand, HostDevicesCommand, HostDevicesWithPathsCommand, HostDisconnectCommand, HostKillCommand, HostTrackDevicesCommand, HostTransportCommand, HostVersionCommand, InstallCommand, IsInstalledCommand, ListForwardsCommand, ListReversesCommand, LocalCommand, LogCommand, Logcat, LogcatCommand, Monkey, MonkeyCommand, Parser, ProcStat, Promise, RebootCommand, RemountCommand, ReverseCommand, ScreencapCommand, ShellCommand, StartActivityCommand, StartServiceCommand, Sync, SyncCommand, TcpCommand, TcpIpCommand, TcpUsbServer, TrackJdwpCommand, UninstallCommand, UsbCommand, WaitBootCompleteCommand, WaitForDeviceCommand, debug; | ||
var ClearCommand, Client, Connection, ForwardCommand, FrameBufferCommand, GetDevicePathCommand, GetFeaturesCommand, GetPackagesCommand, GetPropertiesCommand, GetSerialNoCommand, GetStateCommand, HostConnectCommand, HostDevicesCommand, HostDevicesWithPathsCommand, HostDisconnectCommand, HostKillCommand, HostTrackDevicesCommand, HostTransportCommand, HostVersionCommand, InstallCommand, IsInstalledCommand, ListForwardsCommand, ListReversesCommand, LocalCommand, LogCommand, Logcat, LogcatCommand, Monkey, MonkeyCommand, Parser, ProcStat, Promise, RebootCommand, RemountCommand, ReverseCommand, RootCommand, ScreencapCommand, ShellCommand, StartActivityCommand, StartServiceCommand, Sync, SyncCommand, TcpCommand, TcpIpCommand, TcpUsbServer, TrackJdwpCommand, UninstallCommand, UsbCommand, WaitBootCompleteCommand, WaitForDeviceCommand, debug; | ||
@@ -63,2 +63,4 @@ Monkey = require('adbkit-monkey'); | ||
RootCommand = require('./command/host-transport/root'); | ||
ReverseCommand = require('./command/host-transport/reverse'); | ||
@@ -295,2 +297,8 @@ | ||
Client.prototype.root = function(serial, callback) { | ||
return this.transport(serial).then(function(transport) { | ||
return new RootCommand(transport).execute(); | ||
}).nodeify(callback); | ||
}; | ||
Client.prototype.trackJdwp = function(serial, callback) { | ||
@@ -297,0 +305,0 @@ return this.transport(serial).then(function(transport) { |
{ | ||
"name": "adbkit", | ||
"version": "2.9.2", | ||
"version": "2.10.0", | ||
"description": "A pure Node.js client for the Android Debug Bridge.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -725,2 +725,12 @@ # adbkit | ||
#### client.root(serial[, callback]) | ||
Puts the device into root mode which may be needed by certain shell commands. A remount is generally required after a successful root call. **Note that this will only work if your device supports this feature. Production devices almost never do.** | ||
* **serial** The serial number of the device. Corresponds to the device ID in `client.listDevices()`. | ||
* **callback(err)** Optional. Use this or the returned `Promise`. | ||
- **err** `null` when successful, `Error` otherwise. | ||
* Returns: `Promise` | ||
* Resolves with: `true` | ||
#### client.screencap(serial[, callback]) | ||
@@ -727,0 +737,0 @@ |
224297
73
4484
1132