Info Call to command execution API

Description

List of all command execution API calls

Recommendation

This entry is informative, no recommendations applicable.

Technical details

Method org.apache.commons.io.g.a() calling method java.lang.Runtime.exec()


    Process a(String[] p2)
    {
        return Runtime.getRuntime().exec(p2);
    }

Method com.fitbit.util.at.a() calling method java.lang.Runtime.exec()


    public static String a()
    {
        String v2_0 = 0;
        try {
            String v3_8 = android.os.Process.myPid();
            String v4_6 = new StringBuilder();
            v4_6.append("logcat -d --pid=");
            v4_6.append(v3_8);
            String v4_2 = new java.io.BufferedReader(new java.io.InputStreamReader(Runtime.getRuntime().exec(v4_6.toString()).getInputStream()));
            try {
                String v2_2 = new StringBuilder();
                String v3_5 = System.getProperty("line.separator");
            } catch (String v2_7) {
                String v3_10 = v2_7;
                v2_0 = v4_2;
                if (v2_0 != null) {
                    try {
                        v2_0.close();
                    } catch (String v2_8) {
                        Object[] v1_3 = new Object[1];
                        v1_3[0] = v2_8.getMessage();
                        d.a.b.d("IOException when trying to close buffer. %s", v1_3);
                    }
                }
                throw v3_10;
            } catch (String v2_4) {
                String v3_3 = v2_4;
                v2_0 = v4_2;
                String v5_3 = new Object[1];
                v5_3[0] = v3_3.getMessage();
                d.a.b.d("IOException when trying to read logcat. %s", v5_3);
                String v3_9 = v3_3.getMessage();
                if (v2_0 != null) {
                    try {
                        v2_0.close();
                    } catch (String v2_5) {
                        Object[] v1_2 = new Object[1];
                        v1_2[0] = v2_5.getMessage();
                        d.a.b.d("IOException when trying to close buffer. %s", v1_2);
                    }
                }
                return v3_9;
            }
            while(true) {
                String v5_2 = v4_2.readLine();
                if (v5_2 == null) {
                    break;
                }
                v2_2.append(v5_2);
                v2_2.append(v3_5);
            }
            String v2_3 = v2_2.toString();
            if (v4_2 != null) {
                try {
                    v4_2.close();
                } catch (String v3_6) {
                    Object[] v1_1 = new Object[1];
                    v1_1[0] = v3_6.getMessage();
                    d.a.b.d("IOException when trying to close buffer. %s", v1_1);
                }
            }
            return v2_3;
        } catch (String v3_10) {
        } catch (String v3_3) {
        }
    }

Method com.fitbit.util.d.b.a() calling method java.lang.Runtime.exec()


    public static String a()
    {
        java.io.IOException v1_0 = 0;
        try {
            String v3_0 = new java.io.BufferedReader(new java.io.InputStreamReader(Runtime.getRuntime().exec("logcat -t 500 -v time").getInputStream()));
            try {
                java.io.IOException v1_2 = new StringBuilder();
            } catch (java.io.IOException v1_5) {
                java.io.IOException v2_6 = v1_5;
                v1_0 = v3_0;
                if (v1_0 != null) {
                    try {
                        v1_0.close();
                    } catch (java.io.IOException v1_6) {
                        Object[] v0_3 = new Object[0];
                        d.a.b.e(v1_6, "Couldn\'t close input stream", v0_3);
                    }
                }
                throw v2_6;
            } catch (java.io.IOException) {
                v1_0 = v3_0;
                String v3_2 = new Object[0];
                d.a.b.b("Error processing logcat string for customer service attachment.", v3_2);
                if (v1_0 != null) {
                    try {
                        v1_0.close();
                    } catch (java.io.IOException v1_4) {
                        Object[] v0_2 = new Object[0];
                        d.a.b.e(v1_4, "Couldn\'t close input stream", v0_2);
                    }
                }
                return "";
            }
            while(true) {
                java.io.IOException v2_1 = v3_0.readLine();
                if (v2_1 == null) {
                    break;
                }
                v1_2.append(v2_1);
            }
            java.io.IOException v1_3 = v1_2.toString();
            if (v3_0 != null) {
                try {
                    v3_0.close();
                } catch (java.io.IOException v2_2) {
                    Object[] v0_1 = new Object[0];
                    d.a.b.e(v2_2, "Couldn\'t close input stream", v0_1);
                }
            }
            return v1_3;
        } catch (java.io.IOException v2_6) {
        }
    }