public class MobileHardWareHelper
extends java.lang.Object
| 构造器和说明 |
|---|
MobileHardWareHelper() |
| 限定符和类型 | 方法和说明 |
|---|---|
static org.json.JSONObject |
getAudioInfo()
获取手机音量的信息
|
static org.json.JSONObject |
getBandInfo()
手机版本信息
|
static org.json.JSONObject |
getBatteryInfo()
手机电池信息
|
static org.json.JSONObject |
getBluetoothInfo()
蓝牙信息 bluetooth
|
static org.json.JSONObject |
getBuildInfo()
手机基本信息 build
|
static org.json.JSONObject |
getCameraInfo()
手机摄像头信息
|
static org.json.JSONObject |
getCompleteData()
APP完整性校验
|
static android.content.Context |
getContext()
获取全局上下文
|
static org.json.JSONObject |
getCpuInfo()
手机CPU信息
|
static org.json.JSONObject |
getDebugInfo()
判断debug的信息
|
static org.json.JSONObject |
getEmulatorInfo()
手机基本信息 emulator
|
static org.json.JSONObject |
getHookInfo()
判断是否包含Hook工具
|
static java.lang.String |
getHostAddressInfo(java.lang.String host)
获取指定ip的host,只能在子线程中进行。
|
static org.json.JSONObject |
getKeyAttestation()
获取证书链认证
|
static java.util.List<org.json.JSONObject> |
getListAppInfo()
获取收集所有app的信息,很耗时,需要在子线程中执行
|
static org.json.JSONObject |
getLocalInfo()
手机基本信息 local
|
static org.json.JSONObject |
getMemoryInfo()
手机内存信息
|
static org.json.JSONObject |
getMoreOpenInfo()
判断多开软件的信息
|
static org.json.JSONObject |
getNetWorkInfo()
手机基本信息 netWork
|
static org.json.JSONObject |
getPackageInfo()
app包信息
|
static org.json.JSONObject |
getRandomInfo()
Random文件信息
|
static org.json.JSONObject |
getScreenInfo(android.view.Window window)
手机基本信息 screen
|
static org.json.JSONObject |
getSDCardInfo()
获取SDCard信息
|
static org.json.JSONObject |
getSettingsInfo()
手机设置信息
|
static org.json.JSONObject |
getSignalInfo()
手机信号信息
|
static org.json.JSONObject |
getSimInfo()
拿到手机卡的详细信息
|
static java.lang.String |
getThreadStackInfo(java.lang.Thread thread)
判断当前线程的堆栈信息
|
static java.lang.String |
getUniqueIDInfo()
利用硬件标示来产生设备的唯一id
|
static java.lang.String |
getUserAgentInfo()
返回默认的UA
|
static void |
getWifiListInfo(WifiScanListener wifiScanListener)
获取WIFI列表清单文件
|
static org.json.JSONObject |
getXposedInfo()
判断Hook的信息
|
static void |
init(android.content.Context context)
设置全局上下文 默认使用MobInitializer来进行初始化
可以自行修改
|
static boolean |
isRoot()
手机是否root
|
public static void init(android.content.Context context)
context - 上下文public static android.content.Context getContext()
public static org.json.JSONObject getRandomInfo()
public static org.json.JSONObject getPackageInfo()
public static java.util.List<org.json.JSONObject> getListAppInfo()
public static org.json.JSONObject getAudioInfo()
public static org.json.JSONObject getBandInfo()
public static org.json.JSONObject getBatteryInfo()
public static org.json.JSONObject getBluetoothInfo()
public static org.json.JSONObject getBuildInfo()
public static org.json.JSONObject getCameraInfo()
public static org.json.JSONObject getCpuInfo()
public static org.json.JSONObject getDebugInfo()
public static java.lang.String getHostAddressInfo(java.lang.String host)
host - ip地址public static org.json.JSONObject getEmulatorInfo()
public static org.json.JSONObject getHookInfo()
public static org.json.JSONObject getLocalInfo()
public static org.json.JSONObject getMemoryInfo()
public static org.json.JSONObject getMoreOpenInfo()
public static org.json.JSONObject getNetWorkInfo()
public static boolean isRoot()
public static org.json.JSONObject getCompleteData()
public static org.json.JSONObject getScreenInfo(android.view.Window window)
public static org.json.JSONObject getSDCardInfo()
public static org.json.JSONObject getSettingsInfo()
public static org.json.JSONObject getSignalInfo()
public static org.json.JSONObject getXposedInfo()
public static java.lang.String getUserAgentInfo()
public static java.lang.String getUniqueIDInfo()
public static java.lang.String getThreadStackInfo(java.lang.Thread thread)
thread - 所要获取的线程public static org.json.JSONObject getSimInfo()
public static void getWifiListInfo(WifiScanListener wifiScanListener)
https://github.com/guxiaonian/MobileInfo/wiki/WifiListpublic static org.json.JSONObject getKeyAttestation()