joinToString before releasing RootSession
This commit is contained in:
@@ -94,8 +94,8 @@ class SettingsPreferenceFragment : PreferenceFragmentCompat() {
|
|||||||
|logcat -d
|
|logcat -d
|
||||||
""".trimMargin())
|
""".trimMargin())
|
||||||
try {
|
try {
|
||||||
out.write(RootSession.use { it.execQuiet(commands.toString(), true).out }
|
out.write(RootSession.use { it.execQuiet(commands.toString(), true).out.joinToString("\n") }
|
||||||
.joinToString("\n").toByteArray())
|
.toByteArray())
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
e.printStackTrace(writer)
|
e.printStackTrace(writer)
|
||||||
writer.flush()
|
writer.flush()
|
||||||
|
|||||||
Reference in New Issue
Block a user