Fix processName (#2420)

This commit is contained in:
LoveSy 2023-03-06 12:26:48 +08:00 committed by GitHub
parent 516a4aa99d
commit 3f8ee48e14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ public class LoadedApkGetCLHooker extends XC_MethodHook {
try { try {
Hookers.logD("LoadedApk#getClassLoader starts"); Hookers.logD("LoadedApk#getClassLoader starts");
final String processName = AndroidAppHelper.currentProcessName(); final String processName = ActivityThread.currentProcessName();
final String packageName = isFirstPackage && "android".equals(ActivityThread.currentPackageName()) ? "system" : loadedApk.getPackageName(); final String packageName = isFirstPackage && "android".equals(ActivityThread.currentPackageName()) ? "system" : loadedApk.getPackageName();
Object mAppDir = XposedHelpers.getObjectField(loadedApk, "mAppDir"); Object mAppDir = XposedHelpers.getObjectField(loadedApk, "mAppDir");