Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
adb-commander
Advanced tools
provide adb(Android Debug Bridge) command functions
const adbCommander = require('adb-commander')
adbCommander.deviceList().then((deviceList, err) => {
if (err) {
console.error('fail to execute adb devices')
return
}
if (deviceList.length > 0) {
console.info(`devices is ${deviceList.join(',')}`)
}
})
const adbCommander = require('adb-commander')
adbCommander.install(apkPath)
.then(({ result, err }) => {
if (err) {
console.error('install failed')
}
adbCommander.isInstalled(deviceSn, 'org.hapjs.debugger').then(({isInstalled, err }) => {
if(isInstalled === true){
console.log('org.hapjs.debugger is installed')
}
})
})
)
const adbCommander = require('adb-commander')
adbCommander.uninstall( deviceSn, 'org.hapjs.debugger')
.then(({ result, err }) => {
if (err) {
console.error('uninstall failed')
}
adbCommander.isInstalled(deviceSn, 'org.hapjs.debugger').then(({isInstalled, err }) => {
if(isInstalled === false){
console.log('org.hapjs.debugger is uninstalled')
}
})
})
)
string
string
optionalstring
optional[{key: string, type: string, value: <any>}, ...]
optional
const adbCommander = require('adb-commander')
adbCommander.startActivity(deviceSn,
action,
component,
extra
).then(({ result, err }) => {
if (err) {
console.error('startActivity failed')
return
}
console.log('start activity result', { result, err })
})
const adbCommander = require('adb-commander')
adbCommander.exeCommand('adb devices').then(({ result, err }) => {
if (err) {
console.error('exeCommand \'adb devices\' failed')
return
}
console.log('adb devices result', { result, err })
})
FAQs
A typescript project
The npm package adb-commander receives a total of 701 weekly downloads. As such, adb-commander popularity was classified as not popular.
We found that adb-commander demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.