当前位置:网站首页>【Android安全】ActivityManager.isUserAMonkey API
【Android安全】ActivityManager.isUserAMonkey API
2022-08-08 06:27:00 【Jouzzy】
ActivityManager.isUserAMonkey API
【JISA20】A Large-Scale Study on the Adoption of Anti-Debugging and Anti-Tampering Protections in Android Apps 中提到:
Anti-Debugging手段中,有一种手段是Emulator Detection
Emulator Detection中,可能用到的一个api是ActivityManager.isUserAMonkey
从字面上来看,是OS提供的,用于检查当前app是否在被monkey测试的api
API 方法:
ActivityManager.isUserAMonkey()
It will tell you if the user is the Test Monkey or the monkey runner. “The Monkey is a command-line tool that that you can run on any emulator instance or on a device. It sends a pseudo-random stream of user events into the system, which acts as a stress test on the application software you are developing.”
API 用法:
public boolean wasItTheMonkey(){
ActivityManager activityManager = (ActivityManager)getSystemService(Context.ACTIVITY_SERVICE);
if(activityManager.isUserAMonkey()) {
Log.d(TAG,"it was the monkey");
return true;
}
Log.d(TAG,"it was an user");
return false;
}
边栏推荐
- C语言判断大小端存储问题
- Problems when signed and unsigned numbers are involved in operations
- Unity HDRP中代码动态修改天空盒以及其他环境参数
- leetcode daily question 8.6 (continuously updated)
- 在ENSP中配置DHCP服务器
- ExecutionEngineException: String conversion error: Illegal byte sequence encounted in the input.
- Chained queue push and pop related operations
- Mysql一分钟定位 Next-Key Lock,你需要几分钟
- 带头双向循环链表的增删查改
- vlan路由配置
猜你喜欢
Kubernetes | 02.搭建Kubernetes集群
Problem solving about Unity's button event response error triggering UI events
【图形学】02 数学部分(二、向量和坐标系)
大型直播平台应用架构浅谈
Unity object color gradient effect (judgment logic implementation)
计算机网络 | 03.[HTTP篇] HTTP缓存技术
带头双向循环链表的增删查改
关于Unity 按键事件响应错误触发UI事件的问题解决
中序表达式转为后序表达式
acwing 第63场周赛【2022.08.06】
随机推荐
【图形学】 06 四元数(一)
MySQL获取指定日期为所在月份的第几周
Unity_扇形图(饼状图)+ UI动画
关于单例模式
kubeadm init cannot find network namespace 错误
Lettcode链表OJ题分享以及讲解
CSDN21天学习挑战赛之选择排序
【图形学】16 光照模型(一、理论与公式)
背包问题小结
Unity_圆环滑动条(圆形、弧形滑动条)
二叉树的创建及遍历方法
Next主题美化
NVIDIA CUDA Highly Parallel Processor Programming (VII): Parallel Mode: Prefix and
Lettcode linked list OJ question sharing and explanation
ExecutionEngineException: String conversion error: Illegal byte sequence encounted in the input.
类与对象之动静态方法,继承,名字的查找顺序,经典类和新式类,派生方法
NVIDIA CUDA 高度并行处理器编程(四):性能优化习题
acwing 63rd weekly match【2022.08.06】
Unity_雷达图(属性图)+ UI动画
网络开发相关