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

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

		return (ApplicationInfo) 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.
loader/src/main/java/android/app/AndroidAppHelper.java