Info Call to Inter-Process-Communication (IPC) API

Description

List of all calls to Android IPC API.

Recommendation

This entry is informative, no recommendations applicable.

Technical details

Method org.apache.cordova.CordovaWebViewImpl.showWebPage() calling method android.content.Intent.setData()


    public void showWebPage(String p10, boolean p11, boolean p12, java.util.Map p13)
    {
        String v5_2 = new Object[3];
        v5_2[0] = p10;
        v5_2[1] = Boolean.valueOf(p11);
        v5_2[2] = Boolean.valueOf(p12);
        org.apache.cordova.LOG.d("CordovaWebViewImpl", "showWebPage(%s, %b, %b, HashMap)", v5_2);
        if (p12) {
            this.engine.clearHistory();
        }
        if (!p11) {
            if (!this.pluginManager.shouldAllowNavigation(p10)) {
                org.apache.cordova.LOG.w("CordovaWebViewImpl", new StringBuilder().append("showWebPage: Refusing to load URL into webview since it is not in the <allow-navigation> whitelist. URL=").append(p10).toString());
            } else {
                this.loadUrlIntoView(p10, 1);
            }
        }
        if (this.pluginManager.shouldOpenExternalUrl(p10).booleanValue()) {
            try {
                android.content.Intent v1_1 = new android.content.Intent("android.intent.action.VIEW");
                v1_1.addCategory("android.intent.category.BROWSABLE");
                android.net.Uri v2 = android.net.Uri.parse(p10);
            } catch (android.content.ActivityNotFoundException v0) {
                org.apache.cordova.LOG.e("CordovaWebViewImpl", new StringBuilder().append("Error loading url ").append(p10).toString(), v0);
            }
            if (!"file".equals(v2.getScheme())) {
                v1_1.setData(v2);
            } else {
                v1_1.setDataAndType(v2, this.resourceApi.getMimeType(v2));
            }
            this.cordova.getActivity().startActivity(v1_1);
        } else {
            org.apache.cordova.LOG.w("CordovaWebViewImpl", new StringBuilder().append("showWebPage: Refusing to send intent for URL since it is not in the <allow-intent> whitelist. URL=").append(p10).toString());
        }
        return;
    }

Method org.apache.cordova.engine.SystemWebChromeClient.openFileChooser() calling method android.content.Intent.<init>()


    public void openFileChooser(android.webkit.ValueCallback p5, String p6, String p7)
    {
        android.content.Intent v0_1 = new android.content.Intent("android.intent.action.GET_CONTENT");
        v0_1.addCategory("android.intent.category.OPENABLE");
        v0_1.setType("*/*");
        this.parentEngine.cordova.startActivityForResult(new org.apache.cordova.engine.SystemWebChromeClient$4(this, p5), v0_1, 5173);
        return;
    }

Method org.apache.cordova.CordovaWebViewImpl.showWebPage() calling method android.content.Intent.<init>()


    public void showWebPage(String p10, boolean p11, boolean p12, java.util.Map p13)
    {
        String v5_2 = new Object[3];
        v5_2[0] = p10;
        v5_2[1] = Boolean.valueOf(p11);
        v5_2[2] = Boolean.valueOf(p12);
        org.apache.cordova.LOG.d("CordovaWebViewImpl", "showWebPage(%s, %b, %b, HashMap)", v5_2);
        if (p12) {
            this.engine.clearHistory();
        }
        if (!p11) {
            if (!this.pluginManager.shouldAllowNavigation(p10)) {
                org.apache.cordova.LOG.w("CordovaWebViewImpl", new StringBuilder().append("showWebPage: Refusing to load URL into webview since it is not in the <allow-navigation> whitelist. URL=").append(p10).toString());
            } else {
                this.loadUrlIntoView(p10, 1);
            }
        }
        if (this.pluginManager.shouldOpenExternalUrl(p10).booleanValue()) {
            try {
                android.content.Intent v1_1 = new android.content.Intent("android.intent.action.VIEW");
                v1_1.addCategory("android.intent.category.BROWSABLE");
                android.net.Uri v2 = android.net.Uri.parse(p10);
            } catch (android.content.ActivityNotFoundException v0) {
                org.apache.cordova.LOG.e("CordovaWebViewImpl", new StringBuilder().append("Error loading url ").append(p10).toString(), v0);
            }
            if (!"file".equals(v2.getScheme())) {
                v1_1.setData(v2);
            } else {
                v1_1.setDataAndType(v2, this.resourceApi.getMimeType(v2));
            }
            this.cordova.getActivity().startActivity(v1_1);
        } else {
            org.apache.cordova.LOG.w("CordovaWebViewImpl", new StringBuilder().append("showWebPage: Refusing to send intent for URL since it is not in the <allow-intent> whitelist. URL=").append(p10).toString());
        }
        return;
    }

Method org.apache.cordova.engine.SystemWebChromeClient.openFileChooser() calling method android.content.Intent.addCategory()


    public void openFileChooser(android.webkit.ValueCallback p5, String p6, String p7)
    {
        android.content.Intent v0_1 = new android.content.Intent("android.intent.action.GET_CONTENT");
        v0_1.addCategory("android.intent.category.OPENABLE");
        v0_1.setType("*/*");
        this.parentEngine.cordova.startActivityForResult(new org.apache.cordova.engine.SystemWebChromeClient$4(this, p5), v0_1, 5173);
        return;
    }

Method org.apache.cordova.CordovaWebViewImpl.showWebPage() calling method android.content.Intent.addCategory()


    public void showWebPage(String p10, boolean p11, boolean p12, java.util.Map p13)
    {
        String v5_2 = new Object[3];
        v5_2[0] = p10;
        v5_2[1] = Boolean.valueOf(p11);
        v5_2[2] = Boolean.valueOf(p12);
        org.apache.cordova.LOG.d("CordovaWebViewImpl", "showWebPage(%s, %b, %b, HashMap)", v5_2);
        if (p12) {
            this.engine.clearHistory();
        }
        if (!p11) {
            if (!this.pluginManager.shouldAllowNavigation(p10)) {
                org.apache.cordova.LOG.w("CordovaWebViewImpl", new StringBuilder().append("showWebPage: Refusing to load URL into webview since it is not in the <allow-navigation> whitelist. URL=").append(p10).toString());
            } else {
                this.loadUrlIntoView(p10, 1);
            }
        }
        if (this.pluginManager.shouldOpenExternalUrl(p10).booleanValue()) {
            try {
                android.content.Intent v1_1 = new android.content.Intent("android.intent.action.VIEW");
                v1_1.addCategory("android.intent.category.BROWSABLE");
                android.net.Uri v2 = android.net.Uri.parse(p10);
            } catch (android.content.ActivityNotFoundException v0) {
                org.apache.cordova.LOG.e("CordovaWebViewImpl", new StringBuilder().append("Error loading url ").append(p10).toString(), v0);
            }
            if (!"file".equals(v2.getScheme())) {
                v1_1.setData(v2);
            } else {
                v1_1.setDataAndType(v2, this.resourceApi.getMimeType(v2));
            }
            this.cordova.getActivity().startActivity(v1_1);
        } else {
            org.apache.cordova.LOG.w("CordovaWebViewImpl", new StringBuilder().append("showWebPage: Refusing to send intent for URL since it is not in the <allow-intent> whitelist. URL=").append(p10).toString());
        }
        return;
    }

Method org.apache.cordova.CordovaActivity.onCreate() calling method android.app.Activity.onCreate()


    public void onCreate(android.os.Bundle p9)
    {
        this.loadConfig();
        org.apache.cordova.LOG.setLogLevel(this.preferences.getString("loglevel", "ERROR"));
        org.apache.cordova.LOG.i(org.apache.cordova.CordovaActivity.TAG, "Apache Cordova native platform version 6.2.3 is starting");
        org.apache.cordova.LOG.d(org.apache.cordova.CordovaActivity.TAG, "CordovaActivity.onCreate()");
        if (!this.preferences.getBoolean("ShowTitle", 0)) {
            this.getWindow().requestFeature(1);
        }
        if (this.preferences.getBoolean("SetFullscreen", 0)) {
            org.apache.cordova.LOG.d(org.apache.cordova.CordovaActivity.TAG, "The SetFullscreen configuration is deprecated in favor of Fullscreen, and will be removed in a future version.");
            this.preferences.set("Fullscreen", 1);
        }
        if (!this.preferences.getBoolean("Fullscreen", 0)) {
            this.getWindow().setFlags(2048, 2048);
        } else {
            if ((android.os.Build$VERSION.SDK_INT < 19) || (this.preferences.getBoolean("FullscreenNotImmersive", 0))) {
                this.getWindow().setFlags(1024, 1024);
            } else {
                this.immersiveMode = 1;
            }
        }
        super.onCreate(p9);
        this.cordovaInterface = this.makeCordovaInterface();
        if (p9 != null) {
            this.cordovaInterface.restoreInstanceState(p9);
        }
        return;
    }

Method org.apache.cordova.CordovaActivity.onNewIntent() calling method android.app.Activity.onNewIntent()


    protected void onNewIntent(android.content.Intent p2)
    {
        super.onNewIntent(p2);
        if (this.appView != null) {
            this.appView.onNewIntent(p2);
        }
        return;
    }

Method org.apache.cordova.CordovaWebViewImpl.showWebPage() calling method android.app.Activity.startActivity()


    public void showWebPage(String p10, boolean p11, boolean p12, java.util.Map p13)
    {
        String v5_2 = new Object[3];
        v5_2[0] = p10;
        v5_2[1] = Boolean.valueOf(p11);
        v5_2[2] = Boolean.valueOf(p12);
        org.apache.cordova.LOG.d("CordovaWebViewImpl", "showWebPage(%s, %b, %b, HashMap)", v5_2);
        if (p12) {
            this.engine.clearHistory();
        }
        if (!p11) {
            if (!this.pluginManager.shouldAllowNavigation(p10)) {
                org.apache.cordova.LOG.w("CordovaWebViewImpl", new StringBuilder().append("showWebPage: Refusing to load URL into webview since it is not in the <allow-navigation> whitelist. URL=").append(p10).toString());
            } else {
                this.loadUrlIntoView(p10, 1);
            }
        }
        if (this.pluginManager.shouldOpenExternalUrl(p10).booleanValue()) {
            try {
                android.content.Intent v1_1 = new android.content.Intent("android.intent.action.VIEW");
                v1_1.addCategory("android.intent.category.BROWSABLE");
                android.net.Uri v2 = android.net.Uri.parse(p10);
            } catch (android.content.ActivityNotFoundException v0) {
                org.apache.cordova.LOG.e("CordovaWebViewImpl", new StringBuilder().append("Error loading url ").append(p10).toString(), v0);
            }
            if (!"file".equals(v2.getScheme())) {
                v1_1.setData(v2);
            } else {
                v1_1.setDataAndType(v2, this.resourceApi.getMimeType(v2));
            }
            this.cordova.getActivity().startActivity(v1_1);
        } else {
            org.apache.cordova.LOG.w("CordovaWebViewImpl", new StringBuilder().append("showWebPage: Refusing to send intent for URL since it is not in the <allow-intent> whitelist. URL=").append(p10).toString());
        }
        return;
    }

Method org.apache.cordova.CordovaActivity.startActivityForResult() calling method android.app.Activity.startActivityForResult()


    public void startActivityForResult(android.content.Intent p2, int p3, android.os.Bundle p4)
    {
        this.cordovaInterface.setActivityResultRequestCode(p3);
        super.startActivityForResult(p2, p3, p4);
        return;
    }

Method org.apache.cordova.CordovaInterfaceImpl.startActivityForResult() calling method android.app.Activity.startActivityForResult()


    public void startActivityForResult(org.apache.cordova.CordovaPlugin p3, android.content.Intent p4, int p5)
    {
        this.setActivityResultCallback(p3);
        try {
            this.activity.startActivityForResult(p4, p5);
            return;
        } catch (RuntimeException v0) {
            this.activityResultCallback = 0;
            throw v0;
        }
    }