public class TuSdkDeviceInfo
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
static java.lang.String |
MODEL_HUAWEI_NXTAL10
HUAWEI NXT-AL10
|
static java.lang.String |
MODEL_OPPO_A3
OPPO A3
|
static java.lang.String |
MODEL_XIAOMI_MI_NOTE_LTE
XiaoMi MI NOTE LTE
|
static java.lang.String |
VENDER_HUAWEI
HUAWEI
|
static java.lang.String |
VENDER_MEITU
Meitu
|
static java.lang.String |
VENDER_OPPO
OPPO
|
static java.lang.String |
VENDER_XIAOMI
XiaoMi
|
构造器和说明 |
---|
TuSdkDeviceInfo() |
限定符和类型 | 方法和说明 |
---|---|
static java.lang.String |
byte2hex(byte[] b) |
static java.lang.String |
getAdvertisingIdInfo(android.content.Context context)
获取AndroidID (注意 需要再异步线程获取)
|
static java.lang.String |
getAndroidID()
获取ANDROID_ID
|
static java.lang.String |
getIMEI()
获取手机IMEI号
|
static java.lang.String |
getIMSI()
获取手机IMSI号
|
static java.util.List<android.content.pm.PackageInfo> |
getInstallAppInfoList()
获取安装的APP信息
|
static java.lang.String |
getIP()
获取本地IP
|
static java.lang.String |
getLocation()
获取经纬度
|
static java.lang.String |
getMac()
根据IP获取本地Mac
|
static java.lang.String |
getMac2()
获取设备HardwareAddress地址
|
static java.lang.String |
getModel()
获取手机型号
|
static java.lang.String |
getOSVersion()
获取手机系统版本号
|
protected static java.lang.String[] |
getRequiredPermissions()
组件运行需要的权限列表
|
static java.lang.String |
getVender()
获取手机厂商
|
static boolean |
hasRequiredPermissions(android.content.Context context,
java.lang.String[] permissions)
要求的权限是否已被授予
|
static boolean |
isSupportPbo()
判断是否支持PBO
|
protected static java.lang.String |
readPhoneInfo(android.content.Context context,
int serviceCode)
读取手机通讯数据
|
public static final java.lang.String VENDER_HUAWEI
public static final java.lang.String MODEL_HUAWEI_NXTAL10
public static final java.lang.String VENDER_OPPO
public static final java.lang.String MODEL_OPPO_A3
public static final java.lang.String VENDER_MEITU
public static final java.lang.String VENDER_XIAOMI
public static final java.lang.String MODEL_XIAOMI_MI_NOTE_LTE
public static boolean hasRequiredPermissions(android.content.Context context, java.lang.String[] permissions)
public static java.lang.String getIMEI()
protected static java.lang.String readPhoneInfo(android.content.Context context, int serviceCode)
context
- public static java.lang.String getIMSI()
protected static java.lang.String[] getRequiredPermissions()
public static java.lang.String getMac()
public static java.lang.String getMac2()
public static java.lang.String byte2hex(byte[] b)
public static java.lang.String getIP()
public static java.lang.String getOSVersion()
public static java.lang.String getModel()
public static java.lang.String getVender()
public static java.lang.String getAndroidID()
public static java.lang.String getLocation()
public static boolean isSupportPbo()
public static java.util.List<android.content.pm.PackageInfo> getInstallAppInfoList()
public static java.lang.String getAdvertisingIdInfo(android.content.Context context) throws java.lang.Exception
java.lang.Exception