public boolean is_zram_on() { CMDProcessor.CommandResult cr = new CMDProcessor() .sh.runWaitFor("busybox echo `busybox cat /proc/swaps | busybox grep zram`"); return (cr.success() && cr.stdout.contains("zram")); }