Skip to content

Commit 4f4e1f9

Browse files
authored
feat: unmount all occurrences in /proc/mounts (ReVanced#131)
1 parent e035d93 commit 4f4e1f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ internal object Constants {
3535

3636
// unmount command
3737
internal const val COMMAND_UMOUNT =
38-
"stock_path=${'$'}( pm path $PLACEHOLDER | grep base | sed 's/package://g' ) && umount -l ${'$'}stock_path"
38+
"grep $PLACEHOLDER /proc/mounts | while read -r line; do echo ${'$'}line | cut -d " " -f 2 | xargs -r umount -l; done"
3939

4040
// install mount script & set permissions
4141
internal const val COMMAND_INSTALL_MOUNT = "mv $PATH_INIT_PUSH $PATH_MOUNT && $COMMAND_CHMOD_MOUNT $PATH_MOUNT"

0 commit comments

Comments
 (0)