摘要:
【Android】Android 代码判断当前设备是否为模拟器方法比较简单,直接粘贴代码 //判断当前设备是否是模拟器。如果返回TRUE,则当前是模拟器,不是返回FALSE public static boolean isEmulator(Context context){ try{ TelephonyManager tm = (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE); String imei = tm.getDeviceId()... 阅读全文
posted @ 2013-08-01 15:23
Rex..
阅读(9085)
评论(3)
推荐(0)
摘要:
【Android】Android 代码判断是否获取ROOT权限方法比较简单,直接粘贴代码 /** * 判断当前手机是否有ROOT权限 * @return */ public boolean isRoot(){ boolean bool = false; try{ if ((!new File("/system/bin/su").exists()) && (!new File("/system/xbin/su").exists())){ bool = false; ... 阅读全文
posted @ 2013-08-01 09:06
Rex..
阅读(9968)
评论(0)
推荐(0)

浙公网安备 33010602011771号