# android

> various android utils & commands for node

Latest version **0.0.8** (published 2015-05-22) · BSD license · 0 weekly downloads

## Install

```sh
npm install android
pnpm add android
yarn add android
bun add android
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.8 |
| Published | 2015-05-22 |
| First published | 2013-03-19 |
| Weekly downloads | 0 |
| License | BSD |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 20 |
| Author | Ben Monro |
| Maintainers | benmonro |
| Keywords | android, adb |

## Links

- npm: https://www.npmjs.com/package/android
- Repository: https://github.com/benmonro/android
- Issues: https://github.com/benmonro/android/issues
- npm.io page: https://npm.io/package/android

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 0.0.8 (latest) — 2015-05-22
- 0.0.7 — 2014-05-01
- 0.0.6 — 2013-03-29
- 0.0.5-cd — 2013-03-29
- 0.0.1 — 2013-03-25
- 0.0.0 — 2013-03-19

## README

android
=======

a node module for adb &amp; android

Examples:

```javascript
var adb = require("android");
```

Get attached device id
----------------------
```javascript
adb.firstDevice(function(deviceId){
	if(deviceId) {
		//there's a device attached, do cool stuff
	} else {
		//no device attached
	}
});
```

Checking to see if a package is installed (wildcards allowed)
-------------------------------------------------------------
```javascript
adb.isInstalled("com.example.*", function(isInstalled) {
	if(isInstalled) {
		//do cool stuff
	}
});
```

Installing an APK
-----------------

```javascript
adb.install("/path/to/my.apk", function() {
	//do cool stuff
});
```

Pushing a file
--------------
```javascript
adb.push("/path/to/src", "/path/to/target", function (err) {
	if(!err) {
		//do cool stuff
	}
});
```

Sending a broadcast
-------------------
```javascript
var options = {action:"com.example.ACTION_JACKSON", extras:{key:"lime", pie: "good"};

adb.sendBroadcast(options, function(response){
	console.log("response data: " + response.data);
	console.log("response message: " + response.message);
});
```

---
_Source: https://npm.io/package/android · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
