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 committed Oct 5, 2022
1 parent e035d93 commit 4f4e1f9
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 4f4e1f9

Please sign in to comment.