public Context getAppContext() {
        Context context = getContext();
        if (context == null) {
            Log.e(LOG_TAG, "Context is null!!!");
            return null;
        }
        try {
            return context.createPackageContext(appPackageName, CONTEXT_IGNORE_SECURITY);
        } catch (Throwable e) {
            Log.e(LOG_TAG, "Fail createPackageContext: " + Log.getStackTraceString(e));
        }
        return null;
    }
Created by Tornaco on 2018/4/4 10:56.
God bless no bug!
android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/app/AppResources.java