Skip to content
This repository was archived by the owner on Apr 15, 2024. It is now read-only.

Commit 372470c

Browse files
author
Nguyen Hoang The Vi
authored
fix: mount bind revanced.apk from magisk's mirror
Some banking apps detect the mountpoint of youtube base apk to determine device is rooted. So mount bind from magisk's mirror to trigger magisk unmount and let it hidden along with magisk hiding.
1 parent 3cef245 commit 372470c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/kotlin/app/revanced/utils/adb/Constants.kt

+3-1
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,14 @@ internal object Constants {
4444
internal val CONTENT_MOUNT_SCRIPT =
4545
"""
4646
#!/system/bin/sh
47+
MAGISKTMP="${'$'}(magisk --path)" || MAGISKTMP=/sbin
48+
MIRROR="${'$'}MAGISKTMP/.magisk/mirror"
4749
while [ "${'$'}(getprop sys.boot_completed | tr -d '\r')" != "1" ]; do sleep 1; done
4850
4951
base_path="$PATH_REVANCED_APP"
5052
stock_path=${'$'}( pm path $PLACEHOLDER | grep base | sed 's/package://g' )
5153
5254
chcon u:object_r:apk_data_file:s0 ${'$'}base_path
53-
mount -o bind ${'$'}base_path ${'$'}stock_path
55+
mount -o bind ${'$'}MIRROR${'$'}base_path ${'$'}stock_path
5456
""".trimIndent()
5557
}

0 commit comments

Comments
 (0)