Skip to content

Commit

Permalink
Merge branch 'zjyzip:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
wfvw126 authored Jun 2, 2024
2 parents 13bac12 + ef2944e commit 37728cc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public static void handle() {
param.setResult(1);
});

HookUtil.hookAllMethods(PackageManager.class, "hasSystemFeature", "before", param -> {
HookUtil.hookAllMethods("android.app.ApplicationPackageManager", "hasSystemFeature", "before", param -> {
if ("android.hardware.telephony".equals(param.args[0])) {
param.setResult(true);
}
Expand Down

0 comments on commit 37728cc

Please sign in to comment.