Giter Site home page Giter Site logo

xtheec0 / android-device-hardware-specs-database Goto Github PK

View Code? Open in Web Editor NEW
14.0 0.0 3.0 165 KB

A .json database of Android device CPU specs by board/procinfo

License: MIT License

cpu-specs hardware exynos android board snapdragon database processor cpu adb

android-device-hardware-specs-database's Introduction

Android Device Hardware Specs (CPU SoC) Database

Database containing information about Android 4.1+ device CPU and SoC specs

Disclaimer: This is probably very incomplete and very wrong in a lot of places as I assume consistency (which Android usually doesn't have...) in board names.
For example Exynos: all new(-ish, S6+?) boards are 'universalXXXX'.
But connecting old devices I found that board could be named 'smdk4x12' ¯\_(ツ)_/¯

So if you find any mistakes or want to add information PLEASE DO. (But please try keeping alphabetical order for keys : ))

Checking logic:

adb shell getprop ro.product.board  
// then
adb shell cat /proc/cpuinfo //with regex: Hardware.+ ([\w\-]+)

// if cpuinfo contains board => use Hardware,
// else use board

Because different devices give different results etc
Ex: board => MSM8996, but Hardware => MSM8996pro, which is a (little bit) different CPU, in which case we should use Hardware.
And don't get me started on google 'boards'.. Tuna? WHAT?! sigh..

Using that as key we can get CPU specs Ex:

Samsung Galaxy S9 (Europe)

adb shell getprop ro.product.board => universal9810
adb shell cat /proc/cpuinfo => universal9810
// we can safely use cpuinfo.  
database.json[universal9810] => 

"CPU":"4x Cortex-A55 @ 1.7GHz 4x Samsung Exynos M3 @ 2.8GHz",	
"SoC":"Exynos 9 Series 9810"

Google Pixel 2 (non XL)

adb shell getprop ro.product.board => walleye
adb shell cat /proc/cpuinfo => MSM8998
// cpuinfo does not contain board, but this device has a unique entry  
// in the database, so we can use the board as key  
database.json[walleye] => 

"CPU":"2x Kryo HP @ 2.15GHz 2x Kryo @ 1.6GHz",
"SoC":"Snapdragon 821 MSM8996 Pro"

Information sourced from:

TEGRA: https://en.wikipedia.org/wiki/Tegra
EXYNOS: https://en.wikipedia.org/wiki/Exynos
SNAPDRAGON: https://en.wikipedia.org/wiki/List_of_Qualcomm_Snapdragon_systems-on-chip

And then trial and error

android-device-hardware-specs-database's People

Contributors

lukasandr avatar xtheec0 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.