adbkit
Advanced tools
Comparing version 1.1.1 to 1.1.2
(function() { | ||
var ClearCommand, Client, Connection, ForwardCommand, FrameBufferCommand, GetDevicePathCommand, GetFeaturesCommand, GetPackagesCommand, GetPropertiesCommand, GetSerialNoCommand, GetStateCommand, HostDevicesCommand, HostDevicesWithPathsCommand, HostKillCommand, HostTrackDevicesCommand, HostTransportCommand, HostVersionCommand, InstallCommand, IsInstalledCommand, ListForwardsCommand, LogCommand, Logcat, LogcatCommand, Monkey, MonkeyCommand, ProcStat, RemountCommand, ScreencapCommand, ShellCommand, StartActivityCommand, Sync, SyncCommand, TcpCommand, UninstallCommand, debug; | ||
var ClearCommand, Client, Connection, ForwardCommand, FrameBufferCommand, GetDevicePathCommand, GetFeaturesCommand, GetPackagesCommand, GetPropertiesCommand, GetSerialNoCommand, GetStateCommand, HostDevicesCommand, HostDevicesWithPathsCommand, HostKillCommand, HostTrackDevicesCommand, HostTransportCommand, HostVersionCommand, InstallCommand, IsInstalledCommand, ListForwardsCommand, LogCommand, Logcat, LogcatCommand, Monkey, MonkeyCommand, ProcStat, RemountCommand, ScreencapCommand, ShellCommand, StartActivityCommand, Sync, SyncCommand, TcpCommand, UninstallCommand, WaitBootCompleteCommand, debug; | ||
@@ -62,2 +62,4 @@ Monkey = require('adbkit-monkey'); | ||
WaitBootCompleteCommand = require('./command/host-transport/waitbootcomplete'); | ||
ForwardCommand = require('./command/host-serial/forward'); | ||
@@ -462,2 +464,11 @@ | ||
Client.prototype.waitBootComplete = function(serial, callback) { | ||
return this.transport(serial, function(err, transport) { | ||
if (err) { | ||
return callback(err); | ||
} | ||
return new WaitBootCompleteCommand(transport).execute(callback); | ||
}); | ||
}; | ||
return Client; | ||
@@ -464,0 +475,0 @@ |
{ | ||
"name": "adbkit", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "A pure Node.js client for the Android Debug Bridge.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -544,2 +544,11 @@ # adbkit | ||
#### client.waitBootComplete(serial, callback) | ||
Waits until the device has finished booting. Note that the device must already be seen by ADB. This is roughly analogous to periodically checking `adb shell getprop sys.boot_completed`. | ||
* **serial** The serial number of the device. Corresponds to the device ID in `client.listDevices()`. | ||
* **callback(err)** | ||
- **err** `null` if the device has completed booting, `Error` otherwise (can occur if the connection dies while checking). | ||
* Returns: The client instance. | ||
### Sync | ||
@@ -546,0 +555,0 @@ |
142658
49
2795
714