device_info_x 0.0.1%2B5

SDKflutter
Platformandroid

A Device Info plugin with some extra functionality.With this plugin you can get android info,battery,camera,CPU,Display,DRM,Memory,Network,System.

device_info_X

System ,CPU ,ANDROID ,DRM ,MEMEORY ,CAMERA ,BATTERY ,DISPLAY ,THERMAL ,NETWORK ,SIMINFO ,SYSTEMFILES

Platform Support

AndroidiOSMacOSWebLinuxWindows
✔️:x::x::x::x::x:

Features

  • [:white_check_mark:] - Stable
     
  • [:exclamation:] - Not fully Stable(Some information cannot be retrived. Use with caution)  
  • [:x:] - Experimental ( Cannot guarantee,still not added to plugin yet)      

Supported Retriving Information about

  • [:exclamation:] Android

  • [:white_check_mark:] System

  • [:exclamation:] Battery

  • [:white_check_mark:] Camera

  • [:exclamation:] CPU

  • [:white_check_mark:] Display

  • [:white_check_mark:] DRM

  • [:white_check_mark:] Memory

  • [:exclamation:] Network

  • [:x:] SIM

  • [:x:] System Files

  • [:x:] Thermal Info

Screenshots of example app

Android InfoBatteryCameraCPU
DisplayDRMMemoryNetworkSystem

Installation

  • Add dependencies as
device_info:
  git:
    url:  https://github.com/Lucidplus-IT-Solution/device_info_plugin.git
    ref:  main

Usage

  • Add required pemission to AndroidManifest.xml

<!-- Include only if you need to access camera & storage info. -->
<uses-permission  android:name="android.permission.CAMERA"/>

<uses-permission  android:name="android.permission.RECORD_AUDIO"/>
<uses-permission

android:name="android.permission.WRITE_EXTERNAL_STORAGE"

tools:ignore="ScopedStorage" />

<uses-permission  android:name="android.permission.READ_EXTERNAL_STORAGE" />

<uses-feature  android:name="android.hardware.camera" />

<uses-feature  android:name="android.hardware.camera.autofocus" />

<!--End Include only if you need to access camera. -->


<!-- Include only if you need to access phone info. -->
<uses-permission

android:name="android.permission.WRITE_SETTINGS"

tools:ignore="ProtectedPermissions" />

<uses-permission  android:name="android.permission.READ_PHONE_STATE" />


<uses-permission  android:name="android.permission.READ_SMS" />

<uses-permission  android:name="android.permission.READ_PHONE_NUMBERS" />

<!-- End.Include only if you need to access phone info. -->


<!-- Include only if you need to access network info. -->
<uses-permission  android:name="android.permission.ACCESS_WIFI_STATE" />

<uses-permission  android:name="android.permission.CHANGE_WIFI_STATE" />

<!-- Always include this permission -->

<uses-permission  android:name="android.permission.ACCESS_COARSE_LOCATION" />

  

<!-- Include only if your app benefits from precise location access. -->

<uses-permission  android:name="android.permission.ACCESS_FINE_LOCATION" />

<uses-permission  android:name="android.permission.CHANGE_NETWORK_STATE" />

<uses-permission  android:name="android.permission.INTERNET" />
  • import the library

import  'package:device_info_x/device_info_x.dart';

  • Get a DeviceInfoX Instance

DeviceInfoX deviceInfox = DeviceInfoX();

Usage


final result =  await deviceInfo.getAndroid();
if (result !=  null) {
	final map = result.toMap(); ///Convert to Map is Possible
}

Methods Available


getAndroidDeviceInfo() - Get all info
 ( System,CPU,ANDROID,DRM,MEMEORY,CAMERA,BATTERY,DISPLAY,THERMAL,NETWORK,SIMINFO,SYSTEMFILES)
 

Features that will be added

  • Added basic device info only supports android for now
  • Will add support for iOS
  • Remove depreceated library