Skip to content

Commit

Permalink
ver1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
huage2580 committed Feb 7, 2023
1 parent 5fb11ae commit 960bf02
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.hua.permissionmonitor.method;

import android.annotation.SuppressLint;
import android.app.ActivityManager;
import android.app.PendingIntent;
import android.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothDevice;
Expand All @@ -10,6 +11,7 @@
import android.content.ClipData;
import android.content.ClipboardManager;
import android.content.ContentResolver;
import android.content.pm.PackageManager;
import android.graphics.Rect;
import android.hardware.Camera;
import android.hardware.camera2.CameraDevice;
Expand Down Expand Up @@ -60,6 +62,7 @@ public LinkedList<ClassMethodGroup> getAbsMethodList() {
//PackageManager
ClassMethodGroup pkgManagerHook = new ClassMethodGroup("android.app.ApplicationPackageManager");
pkgManagerHook.addMethod("getInstalledPackagesAsUser");
pkgManagerHook.addMethod("getPackageInfoAsUser");
list.add(pkgManagerHook);
//SmsManager 短信
ClassMethodGroup smsManagerHook = new ClassMethodGroup("android.telephony.SmsManager");
Expand Down Expand Up @@ -144,6 +147,8 @@ protected LinkedList<MethodWrapper> addList(LinkedList<MethodWrapper> list) {
list.add(MethodWrapper.newPrint(ClipboardManager.class,"setPrimaryClip", ClipData.class));
list.add(new MethodWrapper(ClipData.class,"getItemAt",int.class));

//---为了奇怪的处理---
list.add(new MethodWrapper(ActivityManager.class,"getRunningAppProcesses"));

//-----------

Expand Down

0 comments on commit 960bf02

Please sign in to comment.