File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed
app/src/main/java/com/thermatk/android/xf/fakegapps Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -32,14 +32,8 @@ protected void afterHookedMethod(MethodHookParam param) {
3232 }
3333 };
3434
35- String classToHook ;
36- if (Build .VERSION .SDK_INT >= Build .VERSION_CODES .S ) {
37- classToHook = "com.android.server.pm.PackageManagerService.ComputerEngine" ;
38- } else if (Build .VERSION .SDK_INT >= Build .VERSION_CODES .Q ) {
39- classToHook = "com.android.server.pm.PackageManagerService" ;
40- } else {
41- classToHook = "android.app.ApplicationPackageManager" ;
42- }
35+ String classToHook = Build .VERSION .SDK_INT >= Build .VERSION_CODES .S ?
36+ "com.android.server.pm.PackageManagerService.ComputerEngine" : "com.android.server.pm.PackageManagerService" ;
4337 final Class <?> hookedClass = XposedHelpers .findClass (classToHook , loadedPackage .classLoader );
4438 XposedBridge .hookAllMethods (hookedClass , "generatePackageInfo" , hook );
4539 }
You can’t perform that action at this time.
0 commit comments