Double check myExe path before launching

This commit is contained in:
Mygod
2022-05-17 17:53:35 -04:00
parent 819a584c4b
commit 1b25add1e3

View File

@@ -211,7 +211,7 @@ class RootServer {
*/
suspend fun init(context: Context, niceName: String = "${context.packageName}:root") {
withContext(Dispatchers.IO) {
try {
if (AppProcess.myExeCanonical.startsWith("/data/")) doInit(context, niceName, true) else try { // #173
doInit(context, niceName)
} catch (e: LaunchException) {
try {