🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

adbkit

Package Overview
Dependencies
Maintainers
1
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

adbkit - npm Package Compare versions

Comparing version

to
1.1.2

lib/adb/command/host-transport/waitbootcomplete.js

13

lib/adb/client.js
(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 @@

2

package.json
{
"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 @@