GoogleSupportedDevices
A library for Android to get the market name of the device.
Getting Started
Include the library in your build.gradle
.
implementation 'io.github.dagonco:gsd:{version}'
Usage
To use this library you will need to build an instance of GoogleSupportedDevices and invoke getDevice().
This method is suspended. Remember to call it inside a coroutine scope.
val gsd = GoogleSupportedDevices(context)
gsd.getDevice()
If the device is not yet registered by Google, a model with the following default values will be returned.
codename = Build.DEVICE
manufacturer = Build.MANUFACTURER
marketName = Build.MODEL
model = Build.MODEL
Otherwise, the values that Google has registered will be taken.