Library provides all available device information without asking for permissions
- Gradle
Add it in your root
build.gradle
at the end of repositories:add the dependencyallprojects { repositories { ... maven { url 'https://jitpack.io' } } }
dependencies { implementation 'com.github.kavapps:phone_info:v1.0.0' }
- More ways to add it
PhoneInfo phoneInfo = new PhoneInfo(this);
- getBrand()
- getAndroidVersion()
- getIncrementalVersion()
- getManufacturer()
- getModel()
- getSdkVersion()
- getTotalRam()
- getFreeRam()
- getDensityDpi()
- getHeightPixels()
- getWidthPixelsPixels()
- getScaledDensity()
- getXdpi()
- getYdpi()
- getCapacity()
- getChargingInPercent()
- getHealth()
- getStatus()
- getTechnology()
- getTemperature()
- getVoltage()
- getCapacity()
- getCallState()
- getDataActivity()
- getDataState()
- getNetworkCountryIso()
- getNetworkOperatorName()
- getPhoneType()
- getSimOperator()
- getSimOperatorName()
- isNetworkRoaming()
- getCallState()
- getSimState()
- getName()
- getCountKernel()
getBaseInfo()
getRamInfo()
getDisplayInfo()
getBatteryInfo()
getSimInfo()
getProcessorInfo()