Gathering detailed insights and metrics for android-api
Gathering detailed insights and metrics for android-api
Gathering detailed insights and metrics for android-api
Gathering detailed insights and metrics for android-api
android-versions
Get the name, API level, version level, or version code from any version of Android.
@napi-rs/nice-android-arm64
https://linux.die.net/man/2/nice binding for Node.js
@napi-rs/nice-android-arm-eabi
https://linux.die.net/man/2/nice binding for Node.js
@node-rs/jieba-android-arm64
Fastest Chinese word segmentation in Node.js
npm install android-api
Typescript
Module System
NPM Version
70.9
Supply Chain
97.9
Quality
72.3
Maintenance
100
Vulnerability
99.1
License
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
28 Commits
2 Watchers
3 Branches
1 Contributors
Updated on Dec 12, 2014
Latest Version
0.0.1
Package Id
android-api@0.0.1
Size
6.83 kB
NPM Version
1.4.28
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
##Overview
Android API is a Node package that lets you connect to the adb
and android
command lines with a simple interface.
It is meant to be promise based, and let you do common tasks available to the Android command lines, such as:
apk
.apk
or push any file to any of your devices.##Promise based - almost
The library uses promises to make almost every calls.
There is one single exception. Since promises are meant to be started and ended relatively fast, logcat (a long running process) gets new logs from your applications through a callback. You can see more on the examples.js
file.
##Examples
There's a file which contains a lot of chained examples of app usage. It's also a quick example on how to chain calls to get the best results.
##Procedure to follow
Note: Make sure you have adb
and android
commands accessible from your command line.
android_api.init()
. With this call, you ensure the adb
command is accessible and the server is started.then
response to this, and call inside the next process, for instance, android.logcat
. Don't forget to return the promise to the calling function.{ output : 'json' }
and a callback, which returns the logcat new logs. "1" notes you want the first device, but it could be a device id in the form of an array: [device_id]
. The output marked in json returns each logcat entry as a json entry, instead of plain text.catch
method afterwards, so it gets any previous error.done
.Here it is, also available in the examples.js
file.
android.init()
.then(function() {
return android.logcat(
"1",
{ output : 'json' },
function(logcat_data) {
console.log(logcat_data);
});
}
)
.catch(function(err) {
console.error(err);
})
.done();
##What's working, already?
The library currently lets you:
adb
server.ant
based project.##Documentation
The whole library is JSdoc compliant. If you clone the package, you can run:
npm run-script docs
Inside the package folder, and it will create all the documentation structure
into ./docs/
. You can change the path to where it is stored by modifying the
package.json
file.
##Collaboration
The library is still in alpha, and multiple methods are defined but empty. If you wish to collaborate and make them, don't hesitate to make a pull request!
##Testing
Awwwww! I started coding blindlessly. I've been testing with my devices but I have not deeply tested it, unfortunately. If you wish to start testing it, I'm actually free to suggestions in terms of libraries and procedures.
##License
Copyright (c) 2014, Sergi Juanola korcholis@gmail.com
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/28 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
security policy file not detected
Details
Reason
license file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2025-07-14
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More