public static String currentProcessName() {
        String processName = ActivityThread.currentPackageName();
        if (processName == null)
            return "android";
        return processName;
    }
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