From e1c7d1082a6946d1082c8744a1d0118c1a2263ea Mon Sep 17 00:00:00 2001 From: Kinsteen Date: Tue, 14 Jun 2022 15:30:14 +0200 Subject: [PATCH] feat: chcon on mount Co-authored-by: PaulF Co-authored-by: oSumAtrIX --- src/main/kotlin/app/revanced/utils/adb/Constants.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/kotlin/app/revanced/utils/adb/Constants.kt b/src/main/kotlin/app/revanced/utils/adb/Constants.kt index 9554c86a..57ef60db 100644 --- a/src/main/kotlin/app/revanced/utils/adb/Constants.kt +++ b/src/main/kotlin/app/revanced/utils/adb/Constants.kt @@ -54,6 +54,8 @@ internal object Constants { base_path="$PATH_REVANCED_APP" stock_path=${'$'}( pm path $PLACEHOLDER | grep base | sed 's/package://g' ) + + chcon u:object_r:apk_data_file:s0 ${'$'}base_path mount -o bind ${'$'}base_path ${'$'}stock_path """.trimIndent() }