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.freshchat.consumer.sdk.j.ai.aR() calling method java.lang.Runtime.exec()


    public static java.io.File aR(android.content.Context p6)
    {
        String v0_2;
        String v0_0 = android.os.Process.myPid();
        if (v0_0 <= null) {
            v0_2 = 0;
        } else {
            String v2_4 = new StringBuilder();
            v2_4.append(Integer.toString(v0_0));
            v2_4.append("):");
            v0_2 = v2_4.toString();
        }
        String v2_1 = new com.freshchat.consumer.sdk.j.ar();
        v2_1.v(1000);
        try {
            int v4_3 = new java.io.BufferedReader(new java.io.InputStreamReader(Runtime.getRuntime().exec(com.freshchat.consumer.sdk.j.ai.u(10000)).getInputStream()), 8192);
        } catch (String v0_3) {
            com.freshchat.consumer.sdk.j.ai.a("FRESHCHAT", "Mobihelp could not retrieve data from LogCat", v0_3);
            java.io.IOException v6_1 = com.freshchat.consumer.sdk.j.ai.m(p6, "debuglog");
            try {
                v6_1.createNewFile();
                String v0_6 = new java.io.BufferedWriter(new java.io.FileWriter(v6_1, 1));
                String v2_3 = v2_1.iterator();
            } catch (java.io.IOException v6_2) {
                android.util.Log.e("FRESHCHAT", "Exception occured", v6_2);
                return 0;
            }
            while (v2_3.hasNext()) {
                v0_6.append(((String) v2_3.next()));
                v0_6.newLine();
            }
            v0_6.close();
            return v6_1;
        }
        while(true) {
            String v3_5 = v4_3.readLine();
            if (v3_5 == null) {
                break;
            }
            if ((!com.freshchat.consumer.sdk.j.ai.eP()) || (v3_5.contains(v0_2))) {
                v2_1.add(v3_5);
            }
        }
    }