Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copy files to iPhone #74

Open
MarcoB94 opened this issue Aug 11, 2021 · 6 comments
Open

Copy files to iPhone #74

MarcoB94 opened this issue Aug 11, 2021 · 6 comments

Comments

@MarcoB94
Copy link

MarcoB94 commented Aug 11, 2021

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
Copy link
Author

MarcoB94 commented Aug 16, 2021

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 #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.

@nikias
Copy link
Member

nikias commented Aug 16, 2021

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).

@SlavRice
Copy link

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.

@nikias
Copy link
Member

nikias commented Apr 25, 2022

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.

@SlavRice
Copy link

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.

@clavisound
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants