8 ms·
Libimobiledevice – Open-source library to communicate with iOS devices natively
- jalino23 5y agocan someone explain the usecase for this? what kind of apps you'll opens up when you can communicate to apple devices natively? you can't do that before this?
- mschuster91 5y agoFor example, doing backups and restores without requiring iTunes or OS X.
- sfe22 5y agoSo this is not for building ios applications
- Annatar 5y agoThis is a communication and control library for iOS-based devices. For example, with this library you could program an application on Solaris which would control iOS devices or be able to transfer data to and from them, or do pedestrian things like load your own certificates into the target iOS device's store...
- hamandcheese 5y agoDoes loading certificates allow you to MITM apps? E.g. to discover/reverse engineer an API? I suppose certificate pinning could pose problems.
- djxfade 5y agoYou can do this without this library. On iOS you could install an app like Charles Proxy, and install their cert to intercept traffic. Or you could proxy all traffic through your computer. Most apps does use certificate pinning today, but many still don't. I recently used this technique to reverse engineer a video streaming app
- mraza007 5y agoYup I’m confused here too Like is it an alternative to iTunes especially for people who are using Linux
- hugs 5y agoIf you do lots of test automation (especially on multiple platforms), its utility is immediately apparent.
- saurik 5y agoFlutter uses the tools built on top of this to automate the installation and bootstrap into their interactive code reload mechanism (by watching the device's syslog for the application to output the right port to connect to, which is then also accessed over the USB muxing bridge: libimobiledevice provides a way to activate the port mappings) for iOS apps you develop. Essentially, this is giving you the ability to write tools similar to Android's adb (Android Debug Bridge), a tool that connects over USB to a daemon running on the phone to let you run commands and install apps and access the logs (which I take advantage of in Cydia Impactor, generalizing over the functionality of an integrated adb client and the functionality from libimobiledevice).
- regecks 5y agoI recently found one of the tools (some kind of low level REPL console) helpful to get my phone out of a recovery mode boot loop. I couldn't figure out how to do it any other way and was pretty grateful for its existence. I had been feeling brave and tried to do a reset + update via KVM'd iTunes, but something went wrong with USB hot plugging with the way the device switches modes between boots ^_^.
- ddalex 5y agocan you please share more details about the tool and what did you do? I feel I am in the same boat, and a bit lost :)
- coolspot 5y agoI use it to mount iPhone as a FUSE filesystem in order to download photos using rsync.
- littlecranky67 5y agoIs this also possible with music? Got any links on details about that setup?
- avhception 5y agoMaybe also look into unison ( https://github.com/bcpierce00/unison https://github.com/bcpierce00/unison ) instead of rsync so you get 2-way sync :)
- aojdwhsd 5y agoFrom the (currently broken) FAQ [1]: "Sorry, music synchronization with newer devices is currently not supported but if you are a keen developer why not contribute a new service implementation for the ATC Service?" [1] https://libimobiledevice.org/#faq https://libimobiledevice.org/#faq
- deathanatos 5y agoIt seems like the answer is "no", but … iPhones don't expose themselves as MTP devices when connected to USB? I'm an Android user, but that just seems like basic table stakes…?
- joshspankit 5y agoThere are some very surprising tradeoffs for being in Apple’s ecosystem. Especially if you’re used to Android. Let’s just say this: Apple took the time to create a whole different interface for the TRRS headphone jack just so they could have buttons on the headphone cable. Then when app developers thought it was awesome to be able to use that button as a trigger while the app was in the foreground, Apple stopped them by removing their App store listing until the dev submitted a version without that feature. Same with detecting touch size (to ingeniously determine touch pressure).
- fantyoon 5y agoI use it for tethering with my iPhone since my phone internet is better and more stable than the cable internet I have otherwise. I wouldn't be aware that this is possible without Libimobiledevice.
- hamandcheese 5y agoIf your wireless carrier enables it, you can create a wifi hotspot under Settings > Personal Hotspot.
- jannes 5y agoI believe he is talking about tethering via USB, which should be a more stable connection than Wifi.
- 3grdlurker 5y agoAh but the Settings app does USB hotspots too
- zadokshi 5y agoWith Linux?
- Nextgrid 5y agoYes with this library and a companion kernel module it will appear like a standard network interface (connected to the phone acting as a NAT router).
- moonbas3 5y agoYou need this library in order for the connection to work. Then it will show up as a LAN connection.
- eddieroger 5y ago
- drmpeg 5y agoI use it for tethering when Comcast goes down. You also need ipheth-utils.
- parasight 5y agoWe were using this for test automation to install, launch and terminate apps on 50+ devices.
- Lammy 5y agoIt's up to the app. I can use it to copy CBZ/CBR/PDF files into my comics reader or access my saved drawings from ArtStudio Pro: https://i.imgur.com/v5bckxU.png https://i.imgur.com/v5bckxU.png
- bobmaxup 5y agohttps://github.com/google/ios-webkit-debug-proxy https://github.com/google/ios-webkit-debug-proxy
- euroderf 5y agoCould I use this to (for example) read and/or write the iPhone databases for Reminders and Calendar ? I ask because ifuse source is not compiling on macOS.
- tootie 5y agoEverything you'd do with adb.
- thangngoc89 5y agoDebugging Safari mobile if you don't have a macOS devices. I used to do this when I was using Ubuntu for web development.
- rcMgD2BwE72F 5y agoCould this be useful for adding iOS support to Syncthing?
- dividuum 5y agoIf you want to run Syncthing on iOS, take a look at Möbius Sync.
- rcMgD2BwE72F 5y ago>The Möbius Sync iOS app is not open source at this time.
- detuks 5y agoWasted 3h when this didn't work with my iPhone 12 pro, but did work with my wifes 11 pro. Was so confused...
- drmpeg 5y agoIt seems like Apple actively tries to ruin the functionality of libimobiledevice with each release of iOS. It worked the best on my iPhone 6 and iOS 9.3.4.
- amelius 5y agoWhen do people realize that an iPhone is not a general purpose computer and was never intended to be one?
- nabla9 5y agoComputer appliance, a computing device with a specific function and limited configuration ability.
- kmeisthax 5y agoWhen Apple marketing stops saying otherwise.
- machello13 5y agoHave you considered that your idea of a general purpose computer might just be different than pretty much everyone else?
- CameronNemo 5y agoI think iphone owners on here understand what apple intends for their devices, but simply like the alternatives less. So they try and hack around the restrictions placed on their iphones.
- smoldesu 5y agoBecause the iPhone is capable of being a general purpose computer, and the only one stopping it from being one so far is Apple.
- vecplane 5y agoVery interesting! Can I assume this would work with the Windows Subsystem for Linux? The Windows directions aren't filled in there.
- aymenim 5y agoYou can find windows builds in this fork https://github.com/libimobiledevice-win32/imobiledevice-net https://github.com/libimobiledevice-win32/imobiledevice-net, but make sure you have iTunes 12.x version installed.
- Diti 5y agoI haven’t tested, but I believe it won’t work, at least by USB – WSL doesn’t have USB pass-through.
- aymenim 5y agoCould it be possible to have the usbmuxd part on the windows side, most likely the iTunes's Apple Mobile Device Helper service, and connect to it through TCP from WSL which might a bit of configuration on libimobiledevice or use socat to redirect from domain socket to TCP port.
- dang 5y agoPast related threads: Libimobiledevice 1.3.0 Released - https://news.ycombinator.com/item?id=23540185 https://news.ycombinator.com/item?id=23540185 - June 2020 (1 comment) libimobiledevice – A cross-platform library to communicate with iOS devices - https://news.ycombinator.com/item?id=9670745 https://news.ycombinator.com/item?id=9670745 - June 2015 (15 comments) libimobiledevice - Teaching Penguins to Talk to Fruit - https://news.ycombinator.com/item?id=4596648 https://news.ycombinator.com/item?id=4596648 - Oct 2012 (13 comments)
- defied 5y agoAt https://testingbot.com https://testingbot.com we use this to install apps, take screenshots and manage devices for our users running tests against our physical iOS devices.
- balu_ 5y agoHas anyone a solution to use this to backup the iPhone to a linux pc (raspi) automaticaly?
- swiley 5y agoDoes anyone even have a solution for automated scheduled script execution on the iPhone?
- hansel_der 5y agohave a look at the 'shortcuts' app[1]. the automation thing has conditional triggers inluding time of day and actions like ssh-rpc. [1] https://apps.apple.com/us/app/shortcuts/id915249334 https://apps.apple.com/us/app/shortcuts/id915249334
- swiley 5y agoThose are extremeley limited and I don't think it's possible to run any kind of interesting scripts locally. I did look at it when I still had an iPhone and it's one of those "almost usable but fundamentally broken" things that are par for iOS. It works well enough that I could spend a weekend or two making stuff that almost works with it.
- hansel_der 5y ago> I don't think it's possible to run any kind of interesting scripts locally. it has the ability to run pythonista scripts amog others... but yea, it's not a fully exposed unix where most things are files.
- swiley 5y agoMost things are, in fact, files. It's just a massive pain to do anything with them.
- tritones 5y ago
- tyingq 5y agoNone of the collapsible elements (tabs, accordions, etc) on this website work in Chrome for me. Looks like their "waypoints" javascript wants jQuery, and it's not being loaded.
- CameronNemo 5y agoFWIW it does not work on (mobile) Firefox for me either.
- pabs3 5y agoCould you gather some info from the devtools and report this as a bug to the website repo? https://github.com/libimobiledevice/libimobiledevice.org/issues https://github.com/libimobiledevice/libimobiledevice.org/iss...
- tyingq 5y agoDone. https://github.com/libimobiledevice/libimobiledevice.org/issues/4 https://github.com/libimobiledevice/libimobiledevice.org/iss...
- voltagex_ 5y agoWhile trying to get parts of this to compile, I found https://github.com/tihmstar/usbmuxd2 https://github.com/tihmstar/usbmuxd2 which you can replace usbmuxd with and get wifi sync support.
- ficklepickle 5y agoThe page is broken. If you look in the HTML source, it is trying to include the homepage URL as a script on line 1506: <script src="https://libimobiledevice.org/"></script> https://libimobiledevice.org/"></script> Edit: Formatting
- pabs3 5y agoCould you file an issue or pull request about this on the website repo? https://github.com/libimobiledevice/libimobiledevice.org/issues https://github.com/libimobiledevice/libimobiledevice.org/iss...