We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
/proc/mounts
1 parent e035d93 commit 4f4e1f9Copy full SHA for 4f4e1f9
src/main/kotlin/app/revanced/utils/adb/Constants.kt
@@ -35,7 +35,7 @@ internal object Constants {
35
36
// unmount command
37
internal const val COMMAND_UMOUNT =
38
- "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"
39
40
// install mount script & set permissions
41
internal const val COMMAND_INSTALL_MOUNT = "mv $PATH_INIT_PUSH $PATH_MOUNT && $COMMAND_CHMOD_MOUNT $PATH_MOUNT"
0 commit comments