Use exec whenever possible

This commit is contained in:
Mygod
2018-08-26 19:24:45 +08:00
parent 1c5d7c1109
commit 7a8412407b
3 changed files with 3 additions and 3 deletions

View File

@@ -37,7 +37,7 @@ class P2pSupplicantConfiguration(private val initContent: String? = null) : Parc
}
override fun describeContents() = 0
private val contentDelegate = lazy { initContent ?: loggerSu("cat /data/misc/wifi/p2p_supplicant.conf") }
private val contentDelegate = lazy { initContent ?: loggerSu("exec cat /data/misc/wifi/p2p_supplicant.conf") }
private val content by contentDelegate
fun readPsk(handler: ((RuntimeException) -> Unit)? = null): String? {