public static Application currentApplication() {
        ActivityThread am = ActivityThread.currentActivityThread();
        if (am == null)
            return null;
        return am.getApplication();
    }
Returns the name of the current process. It's usually the same as the main package name.
android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/util/AppUtils.java