ifuse icon indicating copy to clipboard operation
ifuse copied to clipboard

Copy files to iPhone

Open MarcoB94 opened this issue 3 years ago • 6 comments

Hello everyone, I'm trying to copy files to my iPhone. Working on Linux Mint 20, iPhone SE 2016, iOS 14.6, libimobiledevice 1.3.1, ifuse 1.1.4.

I was able to mount the iPhone via ifuse -o allow_other /mnt/mntpt and read images, even save an image to the phone (it was visible after a reboot because of the cameraroll.plist or similar)

Now I'm trying to write a .csv file somewhere to the phone to access it via an App (I can't access the App folder directly, as UIFileScharingEnabled is not set), but I'm not successful. The downloads folder is visible, but I can't make any changes to it Screenshot from 2021-08-11 18-21-34 My idea was to save it in the Downloads folder, but wasn't successfull either. I'm not sure if I have to do something with those files?

Is it somehow possible? I would appreciate any tips! Thank you!

Furthermore jailbreaking the iPhone is not intended.

MarcoB94 avatar Aug 11 '21 16:08 MarcoB94

I fixed the issue somehow myself, but I'm not sure, why it works.

I used FileBrowserGO as App which has enabled app documents sharing.

Therefore i created a directory under /mnt and used sudo ifuse --documents com.stratospherix.netportallite /mnt/mntpt/ . This changed the directory to a "binary" (or something I did not quite understand) with no possible interactions.

After some further investigation and reading trough https://github.com/libimobiledevice/ifuse/issues/63 I hopelessly tried to create a directory as normal/guest user under /tmp and mounting via ifuse --documents com.stratospherix.netportallite /tmp/mntpt2/ (no superuser rights) and suddenly I can access the file documents and even write files to it.

Maybe this can help somebody, maybe someone else can explain this "bug". Maybe this tip can be added to the readme for the next newbie like me.

MarcoB94 avatar Aug 16 '21 09:08 MarcoB94

You said in the original post that you are trying to write "somewhere", now that somewhere is really important as not every path is writable. Regarding your 2nd attempt, since you ran ifuse as root, the mount point will not be accessible by other users (unless you use -o allow_other, but I think that only works if you allow this in some global fuse config file).

nikias avatar Aug 16 '21 14:08 nikias

You said in the original post that you are trying to write "somewhere", now that somewhere is really important as not every path is writable. Regarding your 2nd attempt, since you ran ifuse as root, the mount point will not be accessible by other users (unless you use -o allow_other, but I think that only works if you allow this in some global fuse config file).

I am having a similar issue where I cannot write files to my iPhone. I am using linux. I have mounted with -o allow_other and I am trying to transfer mp4s to the DCIM folder but they don't show up. I can access files from the DCIM folder from my phone but I can't write files to my phone.

Any help is appreciated.

SlavRice avatar Apr 25 '22 06:04 SlavRice

That's because Apple has an additional database file structure that is used to keep track of the photos and thumbnails etc, that's why just copying a file there will not work.

nikias avatar Apr 25 '22 12:04 nikias

That's because Apple has an additional database file structure that is used to keep track of the photos and thumbnails etc, that's why just copying a file there will not work.

I was under the impression that iFuse can take files from a desktop like Linux and transfer it to an iPhone. It seems I would have to use an SSH server or snapdrop or something to transfer files to the iPhone.

If you have any of your own suggestions on how to do this, let me know. Thanks for all the help.

SlavRice avatar Apr 25 '22 23:04 SlavRice

No, some programs allow to copy files to the iOS.

I copy files to the VLC folder and other programs like Flacbox.

You can’t copy files to DCIM.

clavisound avatar Apr 26 '22 06:04 clavisound