File tree 1 file changed +5
-3
lines changed
src/main/kotlin/app/revanced/utils/adb
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ internal object Constants {
12
12
internal const val COMMAND_RESTART = " monkey -p $PLACEHOLDER 1 && kill ${' $' } ($COMMAND_PID_OF $PLACEHOLDER )"
13
13
14
14
// default mount file name
15
- private const val NAME_MOUNT_SCRIPT = " mount_ $PLACEHOLDER .sh"
15
+ private const val NAME_MOUNT_SCRIPT = " mount_revanced_ $PLACEHOLDER .sh"
16
16
17
17
// initial directory to push files to via adb push
18
18
internal const val PATH_INIT_PUSH = " /sdcard/revanced.delete"
@@ -41,7 +41,9 @@ internal object Constants {
41
41
internal val CONTENT_UMOUNT_SCRIPT =
42
42
"""
43
43
#!/system/bin/sh
44
- while read line; do echo ${' $' } {line} | grep $PLACEHOLDER | awk '{print ${' $' } 2}' | xargs umount -l; done< /proc/mounts
44
+
45
+ stock_path=${' $' } { pm path $PLACEHOLDER | grep base | sed 's/package://g' }
46
+ umount -l $PLACEHOLDER ; done< /proc/mounts
45
47
""" .trimIndent()
46
48
47
49
// mount script
@@ -54,4 +56,4 @@ internal object Constants {
54
56
stock_path=${' $' } { pm path $PLACEHOLDER | grep base | sed 's/package://g' }
55
57
mount -o bind ${' $' } base_path ${' $' } stock_path
56
58
""" .trimIndent()
57
- }
59
+ }
You can’t perform that action at this time.
0 commit comments