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.tns.Util.readSystemProperty() calling method java.lang.Runtime.exec()


    public static String readSystemProperty(String p7)
    {
        try {
            java.io.IOException v3_1 = Runtime.getRuntime();
            String v4_6 = new String[2];
            v4_6[0] = "/system/bin/getprop";
            v4_6[1] = p7;
            java.io.InputStreamReader v0 = new java.io.InputStreamReader(v3_1.exec(v4_6).getInputStream());
            java.io.BufferedReader v2 = new java.io.BufferedReader(v0);
            String v4_4 = v2.readLine();
            com.tns.Util.silentClose(v0);
            com.tns.Util.silentClose(v2);
            return v4_4;
        } catch (Throwable v1_1) {
            com.tns.Util.silentClose(v0);
            com.tns.Util.silentClose(v2);
            throw v1_1;
        } catch (java.io.IOException v3) {
            com.tns.Util.silentClose(v0);
            com.tns.Util.silentClose(v2);
            return 0;
        }
    }

Method com.tns.ErrorReport.getLogcat() calling method java.lang.Runtime.exec()


    public static String getLogcat(String p7)
    {
        try {
            String v2_0 = new java.io.BufferedReader(new java.io.InputStreamReader(Runtime.getRuntime().exec("logcat -d").getInputStream()));
            StringBuilder v3_1 = new StringBuilder();
            String v5_1 = System.getProperty("line.separator");
        } catch (String v0) {
            android.util.Log.e("TNS.Android", "Failed to read logcat");
            String v0_1 = "Failed to read logcat";
            return v0_1;
        }
        while(true) {
            String v6_0 = v2_0.readLine();
            String v4_0 = v6_0;
            if (v6_0 == null) {
                break;
            }
            if (v4_0.contains(p7)) {
                v3_1.append(v4_0);
                v3_1.append(v5_1);
            }
        }
        v0_1 = v3_1.toString();
        return v0_1;
    }