From bbe8d93fb9230f7b04babaf1c4a11642110f55a6 Mon Sep 17 00:00:00 2001 From: LoveSy Date: Wed, 13 Dec 2023 12:54:48 +0800 Subject: [PATCH] Fix typo (#282) Fix #281 --- .../lsposed/lspatch/metaloader/LSPAppComponentFactoryStub.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta-loader/src/main/java/org/lsposed/lspatch/metaloader/LSPAppComponentFactoryStub.java b/meta-loader/src/main/java/org/lsposed/lspatch/metaloader/LSPAppComponentFactoryStub.java index 39ec47c5..024d792c 100644 --- a/meta-loader/src/main/java/org/lsposed/lspatch/metaloader/LSPAppComponentFactoryStub.java +++ b/meta-loader/src/main/java/org/lsposed/lspatch/metaloader/LSPAppComponentFactoryStub.java @@ -71,7 +71,7 @@ public class LSPAppComponentFactoryStub extends AppComponentFactory { var ipm = IPackageManager.Stub.asInterface(ServiceManager.getService("package")); ApplicationInfo manager; if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) { - manager = (ApplicationInfo) HiddenApiBypass.invoke(IPackageManager.class, ipm, "getApplicationInfo", Constants.MANAGER_PACKAGE_NAME, 0L, Process.myPid() / 100000); + manager = (ApplicationInfo) HiddenApiBypass.invoke(IPackageManager.class, ipm, "getApplicationInfo", Constants.MANAGER_PACKAGE_NAME, 0L, Process.myUid() / 100000); } else { manager = ipm.getApplicationInfo(Constants.MANAGER_PACKAGE_NAME, 0, Process.myUid() / 100000); }