Android原生开发--模拟器检测工具包
·
Android原生开发–模拟器检测工具包
模拟器检测工具包使用例子
//使用方法
Context context=getBaseContext();
boolean isEmn= EasyProtectorLib.checkIsRunningInEmulator(context,null);
boolean isDebugger= EasyProtectorLib.checkIsDebug(context);
boolean isRoot= EasyProtectorLib.checkIsRoot();
if(isDebugger||isEmn||isRoot){//反debugger和反模拟器和ROOT
Toast.makeText(getBaseContext(),"检查到您的设备违规,将限制您的所有功能使用",Toast.LENGTH_LONG).show();
}
工具包
更多推荐
所有评论(0)