What's new
Apple iPad Forum 🍎

Welcome to the Apple iPad Forum, your one stop source for all things iPad. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Accessing hidden Document folders on apps with Ubuntu

DrHouse

iPF Noob
Joined
Jan 17, 2011
Messages
644
Reaction score
21
Location
Quebec
Website
www.ws4dl.org
Hi folks,

I just found out a newt trick when using Ubuntu to access some hidden document folders on your iPad device when using Ubuntu. By default, when you connect your iPad to your Ubuntu machine, you'll get 2 new mount points: one for the DCIM content and another for the shared Document folders for each app. But not all apps have their Document folder shared by default so you only see those that have implemented that feature.

If you open a console and move to the ~/.gvfs folder. You will see the 2 mount points, one of them related to the shared document folders. For example, mine shows up as ~/.gvfs/Patrick Ipad Document.

If you list the content of that mount point, you'll see a bunch of folders, one for each app. For example, for Minecraft PE, it will be listed as com.mojang.minecraftpe. This is an empty folder but only the name is important...

Once you have found the app that you want to access, move out of the mount point and disconnect the iPad. The reason is that you need to disconnect the device for further steps to work properly. Otherwise, Ubuntu will report an error accessing the device.

Then reconnect your iPad. In Nautilus, access the "regular" document folders as usual. When you see the list of all the apps, press "Control-L" and you will see a strange URL looking like this: afc:/1231sdfsdf12323sdfsdf.3/. This is the root of the iPad (kind of). At the end, add the folder name of the app that you want to access even if it's not available in the shared document folders.

afc:/1231sdfsdf12323sdfsdf.3/com.mojang.minecraftpe

And you're in! Drill down in the sub-folders as needed. With the Minecraft PE example, you can access your maps or even add new ones. I did the same with iDOS ( I was lucky enough to still have it in my purchases even if it's not available in the appstore anymore) and was able to install Windows 3.1 in it...

This was done on an iPad 1, with iOS 5.1 no jailbreak required... And Ubuntu 12.04 with the default iDevice libraries.

Be careful not to break anything :)

VicoPad addict!
 
OP
DrHouse

DrHouse

iPF Noob
Joined
Jan 17, 2011
Messages
644
Reaction score
21
Location
Quebec
Website
www.ws4dl.org
Just to make things a bit easier, here is a small script that will output the "URLs" in a text file:

KEY=afc://fbasda123123123qdasdq332123:3
GVFSFOLDER=$(ls ~/.gvfs/Documents\ on\ iPad\ of\ Your\ Name)
DEVICENAME=iPad
echo > $DEVICENAME.txt
for f in $GVFSFOLDER; do
echo $KEY/$f >> $DEVICENAME.txt
done


  • Edit the "KEY" with your own (You can find it by pressing "CONTROL-L" in Nautilus when accessing the shared document folders after the iPad has be connected the first time...
  • Edit the "GVFSFOLDER" with your own mount point name (Depends on how your iPad was called...)
  • Make your script runnable (chmod +x yourscript.sh )
  • From a console, run the script (./yourscript.sh). It should take a few seconds to complete...
  • Disconnect the iPad
  • Re-connect the iPad
  • Open the "iPad.txt" file (gedit iPad.txt)
  • Copy one of the URL
  • Open Nautilus, press "CONTROL-L" and paste the URL. Press "ENTER" to access the content
You only need to generate the content once or if you added some new apps that are not listed in your map file (iPad.txt)

This should work also for iPhones and iPods, but I have not tested it. Of course, you'll need one script for each iDevice that you want to access.


Happy browsing!
 

Most reactions

Latest posts

Top