赞
踩
- //这里其实没什么用,目前在测试
- String myMac = PhoneUUID.getAdresseMAC(this);
- L.d("MacID:" + myMac);
- //检测是否root,是否xposed,是否模拟器,禁用xposed
- // EasyProtectorLib.checkXposedExistAndDisableIt()
- //是否root
- boolean isRoot= EasyProtectorLib.checkIsRoot();
- //是否debug(没啥用)
- boolean isDebug= EasyProtectorLib.checkIsDebug(this);
- //EasyProtectorLib.checkIsPortUsing(this);
- //是否存在Xposed框架
- boolean xposed= EasyProtectorLib.checkIsXposedExist();
- //是否java被跟踪
- boolean isTraced= EasyProtectorLib.checkIsBeingTracedByJava();
- //是否多开(不太准,一个名为多开分身工具测试失败)
- boolean isMultiVirtual= EasyProtectorLib.checkIsUsingMultiVirtualApp();
- //是否模拟器
- boolean isEmulator= EasyProtectorLib.checkIsRunningInEmulator();
- boolean gpsSimulation = SimulatorDetectionUtils.isGPSSimulation(this);
- //是否运行在虚拟设备中
- boolean isVa = AntiVA.isRunInVa(this);
- //是否运行在多开
- boolean isMutliOpen = AntiVA.isMultiOpen(this);
- String telCompany= PhoneUtils.getSimOperatorByMnc();
-
- //MANUFACTURER 生产厂家
- String phoneInfo="";
- phoneInfo += "MANUFACTURER: " + android.os.Build.MANUFACTURER;
- //MODEL 机型
- phoneInfo += "\nMODEL: " + android.os.Build.MODEL;
- phoneInfo += "\nPRODUCT: " + android.os.Build.PRODUCT;
- String sb= "\n是否root:"+isRoot+"\n是否Debug"+isDebug+"\n是否存在Xposed框架:"+xposed
- +"\n是否java被追踪:"+isTraced+"\n是否多开"+isMultiVirtual+"\n是否模拟器:"+isEmulator+
- "\n是否开启位置模拟:" + gpsSimulation+"\n"+phoneInfo+"\nMacID:"+myMac+
- "\n包名:"+AppUtil.getPackageName(this)+"\n"+"是否在虚拟:"+isVa+"\n多开?:"+isMutliOpen+"\n通信:"+telCompany
- +"\nCPU信息:"+SimulatorDetectionUtils.readCpuInfo();
- //Log.d("检测",sb);
- // ToastUtils.showLong(sb);
- List<PackageInfo> installedPackages = AppUtil.getInstalledPackages(this);
- for (PackageInfo p:installedPackages){
- // Log.d("AllPackage",p.packageName+"\n") ;
- }
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。