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.keabis.dtss.curia.fragment.ChecklistHomeFragment.isOnline() calling method java.lang.Runtime.exec()


    public Boolean isOnline()
    {
        try {
            Boolean v1_0;
            if (Runtime.getRuntime().exec("ping -c 1 www.google.com").waitFor() != 0) {
                v1_0 = 0;
            } else {
                v1_0 = 1;
            }
        } catch (Boolean v1_1) {
            v1_1.printStackTrace();
            return Boolean.valueOf(0);
        }
        return Boolean.valueOf(v1_0);
    }