public static ApplicationInfo currentApplicationInfo() {
        ActivityThread am = ActivityThread.currentActivityThread();
        if (am == null)
            return null;

        Object boundApplication = XposedHelpers.getObjectField(am, "mBoundApplication");
        if (boundApplication == null)
            return null;

        return (ApplicationInfo) XposedHelpers.getObjectField(boundApplication, "appInfo");
    }
Returns information about the main application in the current process.

<p>In a few cases, multiple apps might run in the same process, e.g. the SystemUI and the
Keyguard which both have {@code android:process="com.android.systemui"} set in their
manifest. In those cases, the first application that was initialized will be returned.
android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/util/AppUtils.java