Skip to content

Commit

Permalink
feat: unmount all occurrences in /proc/mounts (ReVanced#131)
Browse files Browse the repository at this point in the history
  • Loading branch information
decipher3114 authored and inotia00 committed Oct 6, 2022
1 parent 43c772c commit 925d8f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/app/revanced/utils/adb/Constants.kt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ internal object Constants {

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

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

0 comments on commit 925d8f7

Please sign in to comment.