adbkit
Advanced tools
Comparing version 1.0.2 to 1.0.3
(function() { | ||
var Client, Connection, ForwardCommand, FrameBufferCommand, GetDevicePathCommand, GetFeaturesCommand, 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 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; | ||
@@ -32,2 +32,4 @@ Monkey = require('adbkit-monkey'); | ||
GetPackagesCommand = require('./command/host-transport/getpackages'); | ||
GetPropertiesCommand = require('./command/host-transport/getproperties'); | ||
@@ -155,2 +157,11 @@ | ||
Client.prototype.getPackages = function(serial, callback) { | ||
return this.transport(serial, function(err, transport) { | ||
if (err) { | ||
return callback(err); | ||
} | ||
return new GetPackagesCommand(transport).execute(callback); | ||
}); | ||
}; | ||
Client.prototype.forward = function(serial, local, remote, callback) { | ||
@@ -157,0 +168,0 @@ this.connection().on('connect', function() { |
{ | ||
"name": "adbkit", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "A pure Node.js client for the Android Debug Bridge.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -226,2 +226,12 @@ # adbkit | ||
### client.getPackages(serial, callback) | ||
Retrieves the list of packages present on the device. This is analogous to `adb shell pm list packages`. If you just want to see if something's installed, consider using `client.isInstalled()` instead. | ||
* **serial** The serial number of the device. Corresponds to the device ID in `client.listDevices()`. | ||
* **callback(err, packages)** | ||
- **err** `null` when successful, `Error` otherwise. | ||
- **packages** An array of package names. | ||
* Returns: The client instance. | ||
#### client.getProperties(serial, callback) | ||
@@ -228,0 +238,0 @@ |
SPDX disjunction
LicenseSPDX disjunction for an artifact's license information
Found 1 instance in 1 package
SPDX disjunction
LicenseSPDX disjunction for an artifact's license information
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license
Found 1 instance in 1 package
134665
47
1
100
2639
693