Double check myExe path before launching
This commit is contained in:
@@ -211,7 +211,7 @@ class RootServer {
|
|||||||
*/
|
*/
|
||||||
suspend fun init(context: Context, niceName: String = "${context.packageName}:root") {
|
suspend fun init(context: Context, niceName: String = "${context.packageName}:root") {
|
||||||
withContext(Dispatchers.IO) {
|
withContext(Dispatchers.IO) {
|
||||||
try {
|
if (AppProcess.myExeCanonical.startsWith("/data/")) doInit(context, niceName, true) else try { // #173
|
||||||
doInit(context, niceName)
|
doInit(context, niceName)
|
||||||
} catch (e: LaunchException) {
|
} catch (e: LaunchException) {
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user