diff --git a/README.md b/README.md index d608101..f5875b6 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,7 @@ | android.provider.Settings.Secure | getString(AndroidId) | | LocationManager | getLastKnownLocatio,requestLocationUpdates | | PackageManager | getInstalledPackages,getInstalledApplications,getInstallerPackageName,getPackageInfo | +| ClipboardManager | hasPrimaryClip,getPrimaryClip | | 待新增 | | ## 导入依赖 @@ -23,10 +24,10 @@ maven { url 'https://jitpack.io' } ``` ```groovy -def checkerV = "v1.0.2" +def checkerV = "v1.0.3" ``` -### pine版本-推荐 +### pine版本 基于[pine](https://github.com/canyie/pine),适配`4.4-12.1`版本,感谢大佬的无私奉献。 @@ -62,7 +63,7 @@ HeGuiChecker.allow(true) ## 版本 -* v1.0.3: 新增`ClipBoardManager`,hook方法 +* v1.0.3: 新增`ClipboardManager`,hook方法 * hasPrimaryClip * getPrimaryClip * v1.0.2:新增`PackageManagerHooker`,hook方法 diff --git a/checker-pine/src/main/java/me/simple/checker/HeGuiChecker.java b/checker-pine/src/main/java/me/simple/checker/HeGuiChecker.java index a231a74..8e3c226 100644 --- a/checker-pine/src/main/java/me/simple/checker/HeGuiChecker.java +++ b/checker-pine/src/main/java/me/simple/checker/HeGuiChecker.java @@ -2,7 +2,7 @@ import android.content.Context; -import me.simple.checker.hookers.ClipBoardManagerHooker; +import me.simple.checker.hookers.ClipboardManagerHooker; import me.simple.checker.hookers.LocationHooker; import me.simple.checker.hookers.NetWorkHooker; import me.simple.checker.hookers.PackageManagerHooker; @@ -38,7 +38,7 @@ private static void startHook() { WifiInfoHooker.hook(); LocationHooker.hook(); PackageManagerHooker.hook(); - ClipBoardManagerHooker.hook(); + ClipboardManagerHooker.hook(); } catch (Throwable e) { e.printStackTrace(); } diff --git a/checker-pine/src/main/java/me/simple/checker/hookers/ClipBoardManagerHooker.java b/checker-pine/src/main/java/me/simple/checker/hookers/ClipboardManagerHooker.java similarity index 90% rename from checker-pine/src/main/java/me/simple/checker/hookers/ClipBoardManagerHooker.java rename to checker-pine/src/main/java/me/simple/checker/hookers/ClipboardManagerHooker.java index eeb4f9f..49fd9c0 100644 --- a/checker-pine/src/main/java/me/simple/checker/hookers/ClipBoardManagerHooker.java +++ b/checker-pine/src/main/java/me/simple/checker/hookers/ClipboardManagerHooker.java @@ -1,14 +1,12 @@ package me.simple.checker.hookers; import android.content.ClipboardManager; -import android.location.LocationListener; -import android.location.LocationManager; import me.simple.checker.CheckerHelper; import top.canyie.pine.Pine; import top.canyie.pine.callback.MethodHook; -public class ClipBoardManagerHooker { +public class ClipboardManagerHooker { public static void hook() throws NoSuchMethodException { hookHasPrimaryClip();