# EasyProtector **Repository Path**: android_ios_test/EasyProtector ## Basic Information - **Project Name**: EasyProtector - **Description**: 一行代码检测XP/调试/多开/模拟器/root - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 2 - **Created**: 2020-12-01 - **Last Updated**: 2024-11-12 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # EasyProtector [ ![Download](https://api.bintray.com/packages/lamster2018/maven/easy-protector-release/images/download.svg) ](https://bintray.com/lamster2018/maven/easy-protector-release/_latestVersion) EasyProtector,a simple way to check root/virtual app/emulator/xposed framework/tracer/debugger. 很多朋友是通过[郭霖老师的公众号推送](https://mp.weixin.qq.com/s/XvqUc3drJhdJ9hOuCcfdkg) 或者[陈宇明老师的公众号推送](https://mp.weixin.qq.com/s/7I_vGV77TWqhQR9Myc5FQg)了解到这个库的。 既然来都来了,欢迎大家star/fork,哪怕提个issue都好,我希望这是一个好用的库(省去application的初始化操作,避免更多的权限要求,尽可能的懒加载) 1.0.5与1.1.0的更新细节点[这里](https://github.com/lamster2018/EasyProtector/releases) 终于找到工作了,最近怕是没时间维护了,又要鸽了。 嘻嘻,我看到腾讯乐固的XposedCheck代码,是有copy SecurityCheckUtil里的部分代码的,挺开心的,反正开源就是给大家用~ # Document - [中国人猛戳这里](https://www.jianshu.com/p/c37b1bdb4757) - English (not yet) # Download You can download a jar from GitHub's [releases page](https://github.com/lamster2018/EasyProtector/releases). Or use Gradle: ``` repositories { jcenter() maven() google() } dependencies { implementation 'com.lahm.library:easy-protector-release:latest.release' } ``` Or maven ``` com.lahm.library easy-protector-release 1.1.0 pom ``` # How do I use it? EasyProtectorLib.checkIsRoot(); EasyProtectorLib.checkIsDebug(); EasyProtectorLib.checkIsPortUsing(); EasyProtectorLib.checkXposedExistAndDisableIt(); EasyProtectorLib.checkIsBeingTracedByC(); EasyProtectorLib.checkIsRunningInVirtualApk(); EasyProtectorLib.checkIsRunningInEmulator(); ...... More function see SecurityCheckUtil.class EmulatorCheckUtil.class VirtualApkCheckUtil.class AccessibilityServicesCheckUtil.class # Proguard no need # Compatibility - Minimum Android SDK: requires a minimum API level of 16. - CPU: support x86 & arm # Test | Phone | SDK | ROM | | ---------- | ----------- | --------------- | | RedMi 3s | Android 6.0 | google eng | | Huawei P9 | Android 7.0 | EMUI 5.1 root | | Mix 2 | Android 8.0 | MIUI 9 stable | | OnePlus 5T | Android 8.1 | H2OS 5.1 stable | # License Apache 2.0. See the [LICENSE](https://github.com/lamster2018/EasyProtector/blob/master/LICENSE) file for details. # About Emulator Detecting | 机器/测试方案 | 检测结果 | | :---------------: | -------- | | AS自带模拟器 9.0 | 模拟器 | | Genymotion2.12.1 | 模拟器 | | 逍遥模拟器6.0.0 | 模拟器 | | Appetize | 模拟器 | | 夜神模拟器6.2.5.3010 | 模拟器 | | 腾讯手游助手2.0.6.8 | 模拟器 | | 雷电模拟器3.41 | 模拟器 | | 木木模拟器2.0.25 | 模拟器 | | 一加5T | 真机 | | 华为P9 | 真机 | 自2018/6/13集成并上线自己的项目里,至10/24已经收集了11w+疑似模拟器的检测数据, 如果各位需要在业务里做非常细致的模拟器鉴别,可以在自行增加判断条件。 各位老铁提有关xx模拟器检测不出的issue的时候,请尽量附上emulatorInfo信息哈,我的demo里专门给你们打印了,这样方便调试。 ![demo capture](https://upload-images.jianshu.io/upload_images/2554175-0bc24eb8a302c766.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)