
Product
Introducing Tier 1 Reachability: Precision CVE Triage for Enterprise Teams
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
android-device-list
Advanced tools
A JSON list created from Google Play Supported devices CVS.
Source: https://support.google.com/googleplay/android-developer/answer/6154891?hl=en
$ npm install android-device-list
.deviceList()
: ArrayReturns the full device list
.brandList()
: ArrayReturns the full brand list
.getDevicesByBrand(brand, [options])
: ArrayReturns a device list with matching retail brand.
options
is an Object
.
caseInsensitive
: boolean (default false) - do not care of case typecontains
: boolean (default false) - return partial (substring) results too.getDevicesByName(name, [options])
: ArrayReturns a device list with matching marketing name.
.getDevicesByDeviceId(deviceId, [options])
: ArrayReturns a device list with matching build.os.DEVICE.
.getDevicesByModel(model, [options])
: ArrayReturns a device list with matching build.os.MODEL.
var androidDevices = require('android-device-list');
var devices = androidDevices.deviceList();
var brands = androidDevices.brandList();
console.log(devices.length);
// 11174
console.log(brands.length);
// 485
console.log(brands[209]);
// 'LGE'
var LGDevices;
LGDevices = androidDevices.getDevicesByBrand('lg');
console.log(LGDevices.length);
// 0
LGDevices = androidDevices.getDevicesByBrand('LG');
console.log(LGDevices.length);
// 0
LGDevices = androidDevices.getDevicesByBrand('lg', { contains: true, caseInsensitive: true });
console.log(LGDevices.length);
// 902
LGDevices = androidDevices.getDevicesByBrand('LG', { contains: true });
console.log(LGDevices.length);
// 901
LGDevices = androidDevices.getDevicesByBrand('LGE');
console.log(LGDevices.length);
// 896
console.log(LGDevices[403]);
// { brand: 'LGE', name: 'LG G4', device: 'p1', model: 'LG-H815' }
android-device-list is licensed under the MIT Open Source license. For more information, see the LICENSE file in this repository.
FAQs
List of Android Supported Devices
The npm package android-device-list receives a total of 6,635 weekly downloads. As such, android-device-list popularity was classified as popular.
We found that android-device-list 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
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.