Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/simplepeng/HeGuiChecker
🔥🔥🔥 基于Hook方案的合规化检测器
https://github.com/simplepeng/HeGuiChecker
Last synced: 21 days ago
JSON representation
🔥🔥🔥 基于Hook方案的合规化检测器
- Host: GitHub
- URL: https://github.com/simplepeng/HeGuiChecker
- Owner: simplepeng
- License: mit
- Created: 2021-12-08T10:44:17.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-12-07T05:33:19.000Z (about 1 year ago)
- Last Synced: 2024-08-05T17:36:14.156Z (4 months ago)
- Language: Java
- Homepage:
- Size: 667 KB
- Stars: 194
- Watchers: 4
- Forks: 20
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-hacking-lists - simplepeng/HeGuiChecker - 🔥🔥🔥 基于Hook方案的合规化检测器 (Java)
README
# HeGuiChecker
合规检测器-基于工信部[最新标准](http://www.gov.cn/zhengce/zhengceku/2020-08/02/content_5531975.htm)
下面是我基于`工信部文件`整理出来已经`hook`了的方法,如有其他的可以提个`issue`。
| 包名 | 方法名 |
| ---------------------------------- | ------------------------------------------------------------ |
| android.telephony.TelephonyManager | getDeviceId,getImei,getSubscriberId |
| android.net.wifi.WifiInfo | getMacAddress |
| java.net.NetworkInterface | getHardwareAddress |
| android.provider.Settings.Secure | getString(AndroidId) |
| LocationManager | getLastKnownLocatio,requestLocationUpdates |
| PackageManager | getInstalledPackages,getInstalledApplications,getInstallerPackageName,getPackageInfo |
| ClipboardManager | hasPrimaryClip,getPrimaryClip |
| 待新增 | |## 导入依赖
[![](https://jitpack.io/v/simplepeng/HeGuiChecker.svg)](https://jitpack.io/#simplepeng/HeGuiChecker)
```groovy
maven { url 'https://jitpack.io' }
``````groovy
def checkerV = "1.0.5"
```### pine版本
基于[pine](https://github.com/canyie/pine),适配`4.4-12.1`版本,感谢大佬的无私奉献。
```groovy
debugImplementation "com.github.simplepeng.HeGuiChecker:checker-pine:$checkerV"
releaseImplementation "com.github.simplepeng.HeGuiChecker:checker-no-op:$checkerV"
```## 使用
基于`ContentProvider`自动初始化,无需引入初始化代码
输出:
![](imgs/img_log.png)
显示:
![](imgs/img_toast.png)
当然你也可以关闭`输出`或`显示`
```kotlin
HeGuiChecker.SHOW_LOG = false
HeGuiChecker.SHOW_TOAST = false
```或者在`同意授权后`不再显示任何信息
```kotlin
HeGuiChecker.allow(true)
```## 版本
* 1.0.4:新增`WifiInfoHooker`的hook方法
* getConnectionInfo
* hookGetSSID
* v1.0.3: 新增`ClipboardManager`,hook方法
* hasPrimaryClip
* getPrimaryClip
* v1.0.2:新增`PackageManagerHooker`,hook方法
* getInstalledPackages
* getInstalledApplications
* getInstallerPackageName
* getPackageInfo
* v1.0.1:基于`pine`重写
* v1.0.0:首次上传