Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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 1.0.6 to 1.0.7

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

13

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

@@ -28,2 +28,4 @@ Monkey = require('adbkit-monkey');

ClearCommand = require('./command/host-transport/clear');
FrameBufferCommand = require('./command/host-transport/framebuffer');

@@ -313,2 +315,11 @@

Client.prototype.clear = function(serial, pkg, callback) {
return this.transport(serial, function(err, transport) {
if (err) {
return callback(err);
}
return new ClearCommand(transport).execute(pkg, callback);
});
};
Client.prototype.install = function(serial, apk, callback) {

@@ -315,0 +326,0 @@ var temp,

2

package.json
{
"name": "adbkit",
"version": "1.0.6",
"version": "1.0.7",
"description": "A pure Node.js client for the Android Debug Bridge.",

@@ -5,0 +5,0 @@ "keywords": [

@@ -160,2 +160,12 @@ # adbkit

#### client.clear(serial, pkg, callback)
Deletes all data associated with a package from the device. This is roughly analogous to `adb shell pm clear <pkg>`.
* **serial** The serial number of the device. Corresponds to the device ID in `client.listDevices()`.
* **pkg** The package name. This is NOT the APK.
* **callback(err)**
- **err** `null` when successful, `Error` otherwise.
* Returns: The client instance.
#### client.forward(serial, local, remote, callback)

@@ -162,0 +172,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc