@SuppressWarnings("deprecation")
    public static String getUntrustedCreatorPackageName(Intent intent) {
        PendingIntent pendingIntent = intent.getParcelableExtra(BrowserActionsIntent.EXTRA_APP_ID);
        if (pendingIntent != null) {
            if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1) {
                return pendingIntent.getCreatorPackage();
            } else {
                return pendingIntent.getTargetPackage();
            }
        }
        return null;
    }
Get the package name of the creator application.
<p>
<strong> Note:</strong> This is self-reported and could be untrusted. Intent sender can
modify it to return the package name from a different application.

@param intent The {@link BrowserActionsIntent}.
@return The creator package name.
customtabs/src/android/support/customtabs/browseractions/BrowserActionsIntent.java