
Security News
AGENTS.md Gains Traction as an Open Format for AI Coding Agents
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
android-model-names
Advanced tools
Convert Android device strings to human-readable manufacturer and model names
A tiny helper library to convert Android hardware strings ("GT-I9060") into human-readable model names ("Galaxy Grand Neo").
Supports all devices that are compatible with Google Play. See Translation Sources for more info.
First, install the library:
npm install --save android-model-names
Then, import and use:
import getModelName from 'android-model-names';
getModelName('GT-I9060'); // 'Galaxy Grand Neo'
getModelName('GT-I9060', { full: true }); // { manufacturer: 'Samsung', model: 'Galaxy Grand Neo', key: 'GT-I9060' }
// Examples with no matching result
getModelName('GT-I9999'); // 'GT-I9999'
getModelName('GT-I9999', { full: true }); // { key: 'GT-I9060' }
An options hash can be passed in as a second parameter to customize the return data. Here are the available options:
Option | Default Value | Description |
---|---|---|
full | false | Return an object with manufacturer, marketing name (model), and original string key. |
The translations are pulled straight from Google's support page on supported Google Play devices, which is an exhaustive enough list for this purpose.
View the full device list here in CSV format.
We welcome contributions! Feel free to open an issue (or a PR!) if you notice any missing models (new releases, etc.), or spot a bug. Thanks!
Copyright 2016 Twitter, Inc.
Licensed under the MIT License: https://opensource.org/licenses/MIT
FAQs
Convert Android device strings to human-readable manufacturer and model names
The npm package android-model-names receives a total of 5 weekly downloads. As such, android-model-names popularity was classified as not popular.
We found that android-model-names demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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.
Security News
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.