Commit 63d2ec7b authored by Mygod's avatar Mygod

Revert "Fix #838 #839"

This reverts commit 32f4d6af.

Never mind then! I changed my mind.
parent 06b6afd5
......@@ -28,8 +28,8 @@ object TcpFastOpen {
file.canRead && (Utils.readAllLines(file).toInt & 1) > 0
}
def enabled(value: Boolean) = {
val result = Shell.run("su", Array(
def enabled(value: Boolean) =
Shell.run("su", Array(
"if echo " + (if (value) 3 else 0) + " > /proc/sys/net/ipv4/tcp_fastopen; then",
" success=-1",
" if mount -o rw,remount /dev/block/platform/msm_sdcc.1/by-name/system /system; then",
......@@ -46,7 +46,5 @@ object TcpFastOpen {
" fi",
"else",
" echo Failed.",
"fi"), null, true)
if (result == null) "Root access failed." else result.asScala.mkString("\n")
}
"fi"), null, true).asScala.mkString("\n")
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment