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.splunk.mint.ab.f() calling method java.lang.Runtime.exec()


    protected static final String f()
    {
        String v0_0 = com.splunk.mint.u.w;
        if (v0_0 < null) {
            v0_0 = 100;
        }
        String v2_2 = new StringBuilder();
        try {
            String v3_1 = new java.io.BufferedReader(new java.io.InputStreamReader(Runtime.getRuntime().exec(new StringBuilder().append("logcat -d ").append(com.splunk.mint.u.v).toString()).getInputStream()));
            java.util.ArrayList v4_4 = new java.util.ArrayList();
        } catch (String v0_11) {
            com.splunk.mint.o.c("Error reading logcat output!");
            String v0_4 = v0_11.getMessage();
            return v0_4;
        }
        while(true) {
            String v1_4 = v3_1.readLine();
            if (v1_4 == null) {
                break;
            }
            v4_4.add(v1_4);
        }
        if (v4_4.size() != 0) {
            String v0_1 = (v4_4.size() - v0_0);
            if (v0_1 < null) {
                v0_1 = 0;
            }
            String v1_8 = v0_1;
            while (v1_8 < v4_4.size()) {
                v2_2.append(new StringBuilder().append(((String) v4_4.get(v1_8))).append("\n").toString());
                v1_8++;
            }
            v0_4 = v2_2.toString().replaceAll(java.util.regex.Pattern.quote("}{^"), "}{ ^");
            return v0_4;
        } else {
            v0_4 = "You must add the android.permission.READ_LOGS permission to your manifest file!";
            return v0_4;
        }
    }

Method me.leolin.shortcutbadger.impl.d.b() calling method java.lang.Runtime.exec()


    private String b(String p5)
    {
        java.io.BufferedReader v1 = 0;
        try {
            java.io.BufferedReader v2_2 = new java.io.BufferedReader(new java.io.InputStreamReader(Runtime.getRuntime().exec(new StringBuilder().append("getprop ").append(p5).toString()).getInputStream()), 1024);
            try {
                java.io.BufferedReader v0_6 = v2_2.readLine();
                v2_2.close();
                me.leolin.shortcutbadger.a.b.a(v2_2);
            } catch (java.io.BufferedReader v0_5) {
                v1 = v2_2;
                me.leolin.shortcutbadger.a.b.a(v1);
                throw v0_5;
            } catch (java.io.BufferedReader v0) {
                java.io.BufferedReader v0_4 = v2_2;
                me.leolin.shortcutbadger.a.b.a(v0_4);
                v0_6 = 0;
            }
            return v0_6;
        } catch (java.io.BufferedReader v0_5) {
        } catch (java.io.BufferedReader v0) {
            v0_4 = 0;
        }
    }