Skip to content

Instantly share code, notes, and snippets.

@andreafortuna
Last active June 3, 2019 17:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andreafortuna/aa2205f3117dec23f595f53cacc882d3 to your computer and use it in GitHub Desktop.
Save andreafortuna/aa2205f3117dec23f595f53cacc882d3 to your computer and use it in GitHub Desktop.
iOS App Filesharing mount script
#!/bin/bash
OLDIFS=$IFS
IFS=','
PS3='Select iPhone app:'
options=($(ideviceinstaller -l | grep -v "Total" | awk -F" - " ' BEGIN { ORS="," }; {print $2}'))
select opt in "${options[@]}"
do
echo "Selected: $opt"
APPID=$(ideviceinstaller -l | grep $opt | awk '{print $1}')
mkdir "$HOME/iPhone/$opt"
ifuse "$HOME/iPhone/$opt" --documents $APPID
echo "$opt documents mounted on $HOME/iPhone/$opt"
IFS=$OLDIFS
mc "$HOME/iPhone/$opt"
fusermount -u "$HOME/iPhone/$opt"
echo "$HOME/iPhone/$opt successfully unmounted!"
rm -rf "$HOME/iPhone/$opt"
exit
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment