This is a wrap of this https://github.com/facebook/device-year-class
Device Year Class is an Android library that implements a simple algorithm that maps a device's RAM, CPU cores, and clock speed to the year where those combination of specs were considered high end. This allows a developer to easily modify application behavior based on the capabilities of the phone's hardware.
I made a few additions and currently this library has two ways to detect the class of device either high/medium/low or a range in year. Some extra detection tools like get CPU speed, check the screen size, check RAM, check if phone is 64-Bit or not.
Device Year Class is an Android library that implements a simple algorithm that maps a device's RAM, CPU cores, and clock speed to the year where those combination of specs were considered high end. This allows a developer to easily modify application behavior based on the capabilities of the phone's hardware.
I made a few additions and currently this library has two ways to detect the class of device either high/medium/low or a range in year. Some extra detection tools like get CPU speed, check the screen size, check RAM, check if phone is 64-Bit or not.