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 com.scottyab.rootbeer.b.k() calling method java.lang.Runtime.exec()


    private String[] k()
    {
        try {
            String v1_0 = Runtime.getRuntime().exec("mount").getInputStream();
        } catch (String v1_8) {
            v1_8.printStackTrace();
            v1_0 = 0;
        }
        if (v1_0 != null) {
            try {
                String[] v0_1 = new java.util.Scanner(v1_0).useDelimiter("\\A").next();
            } catch (String v1_5) {
                v1_5.printStackTrace();
            }
            return v0_1.split("\n");
        } else {
            return 0;
        }
    }

Method com.scottyab.rootbeer.b.g() calling method java.lang.Runtime.exec()


    public boolean g()
    {
        int v0_0 = 0;
        try {
            int v2_0 = Runtime.getRuntime().exec(new String[] {"which", "su"}));
            try {
                if (new java.io.BufferedReader(new java.io.InputStreamReader(v2_0.getInputStream())).readLine() != null) {
                    v0_0 = 1;
                }
            } catch (int v0_1) {
                if (v2_0 != 0) {
                    v2_0.destroy();
                }
                throw v0_1;
            } catch (Throwable) {
                if (v2_0 != 0) {
                    v2_0.destroy();
                }
                return 0;
            }
            if (v2_0 != 0) {
                v2_0.destroy();
            }
            return v0_0;
        } catch (int v0_1) {
            v2_0 = 0;
        } catch (Throwable) {
            v2_0 = 0;
        }
    }

Method com.scottyab.rootbeer.b.j() calling method java.lang.Runtime.exec()


    private String[] j()
    {
        try {
            String[] v0_7 = Runtime.getRuntime().exec("getprop").getInputStream();
            try {
                String[] v0_3 = new java.util.Scanner(v0_7).useDelimiter("\\A").next();
            } catch (String[] v0_4) {
                String v2_3 = new StringBuilder();
                v2_3.append("Error getprop, NoSuchElementException: ");
                v2_3.append(v0_4.getMessage());
                com.scottyab.rootbeer.a.a.a(v2_3.toString(), v0_4);
                v0_3 = "";
            }
            return v0_3.split("\n");
        } catch (String[] v0_8) {
            v0_8.printStackTrace();
            v0_7 = 0;
        }
    }