Mounting an iPhone

Due to several reasons that I will not discuss here, I decided my next phone to be an iPhone SE. Of course, I naively expected that when I plug it in my computer, it will behave. Well, it doesn’t. The phone has iOS 11 and in Slackware 14.2 the system sees it, but there’s no way to mount it. In Slackware -current I can access my photos only. Well, I googled a bit and here’s what I did on -current.

Install the latest version of libimobiledevice, which at the moment is commit 26373b3 on Sep 15, 2017. First, get the SlackBuild and slack-desc from -current. At the moment, the script builds libimobiledevice version 1.2.0 and applies a patch to fix mounting issues on iOS 10. I am building a later version and seems I do not need the sslv3 patch. Then get the commit source:

wget https://github.com/libimobiledevice/libimobiledevice/archive/26373b3/libimobiledevice-26373b334889f5ae2e2737ff447eb25b1700fa2f.tar.gz

The SlackBuild has to be modified a bit. Comment out the patch line and add an autogen.sh step:

# Make sure ownerships and permissions are sane:
chown -R root:root .
find . \
  \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
  -exec chmod 755 {} \; -o \
  \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
  -exec chmod 644 {} \;

# Fixes mounting issues with iOS 10:
#zcat $CWD/libimobiledevice.use_tlsv1_instead_of_sslv3.diff.gz | patch -p1 --verbose || exit 1

./autogen.sh

CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
  --prefix=/usr \
  --libdir=/usr/lib${LIBDIRSUFFIX} \
  --sysconfdir=/etc \
  --localstatedir=/var \
  --docdir=/usr/doc/$PKGNAM-$VERSION \
  --mandir=/usr/man \
  --disable-static \
  --build=$ARCH-slackware-linux || exit 1

Upgrade the default package with the new one. Then install ifuse from SBo. That’s it. Now not only the photos are accessible but some of the phone folders.



Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s