🚀 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.0.3

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

13

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

2

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