diff --git a/app/src/main/java/com/topjohnwu/magisk/data/database/base/MagiskQuery.kt b/app/src/main/java/com/topjohnwu/magisk/data/database/base/MagiskQuery.kt index 09429781f..470edb3e7 100644 --- a/app/src/main/java/com/topjohnwu/magisk/data/database/base/MagiskQuery.kt +++ b/app/src/main/java/com/topjohnwu/magisk/data/database/base/MagiskQuery.kt @@ -1,5 +1,5 @@ package com.topjohnwu.magisk.data.database.base data class MagiskQuery(private val _query: String) { - val query = "magisk --sqlite $_query" + val query = "magisk --sqlite '$_query'" } \ No newline at end of file diff --git a/app/src/main/java/com/topjohnwu/magisk/data/database/base/MagiskQueryBuilder.kt b/app/src/main/java/com/topjohnwu/magisk/data/database/base/MagiskQueryBuilder.kt index 463db2d2a..e78e25232 100644 --- a/app/src/main/java/com/topjohnwu/magisk/data/database/base/MagiskQueryBuilder.kt +++ b/app/src/main/java/com/topjohnwu/magisk/data/database/base/MagiskQueryBuilder.kt @@ -69,6 +69,7 @@ class Select : MagiskQueryBuilder { .appendln(condition) .appendln(orderField) .toString() + .replace("\n", " ") } }