feat: chcon on mount

Co-authored-by: PaulF <paul.francon@pi.esisar.grenoble-inp.fr>
Co-authored-by: oSumAtrIX <johan.melkonyan1@web.de>
This commit is contained in:
Kinsteen 2022-06-14 15:30:14 +02:00 committed by GitHub
parent 7444e4e67d
commit e1c7d1082a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -54,6 +54,8 @@ internal object Constants {
base_path="$PATH_REVANCED_APP" base_path="$PATH_REVANCED_APP"
stock_path=${'$'}( pm path $PLACEHOLDER | grep base | sed 's/package://g' ) 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 mount -o bind ${'$'}base_path ${'$'}stock_path
""".trimIndent() """.trimIndent()
} }