Skip to content

konobi/node-adbhost

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-adbhost

Android Debug Bridge host protocol client for node.js Currently only tcp transport is supported (usb transport in TODO). You don't need to have local adb server running on your computer.

NPM

Install

npm install adbhost

Enable tcp transport in adb on your device

Example

simple shell (pass your device IP address as a command line parameter):

var adbhost = require('adbhost');
var adb   = adbhost.createConnection({host: process.argv[2]});
var shell = adb.createStream('shell:');
process.stdin.pipe(shell);
shell.pipe(process.stdout);

API

  conn = adbhost.createConnection(opts);
  • create connection to device. ops.port, opts.host, opts.stream
  s = conn.createStream(path);
  • returns duplex stream. Path is a string with service name.

LINKS

Bitdeli Badge

About

node.js adb (android debug bridge) client

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 90.6%
  • C++ 8.2%
  • Python 1.2%