aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMemphiz <memphis@machzwo.de>2018-08-09 05:57:59 +0200
committerGitHub <noreply@github.com>2018-08-09 05:57:59 +0200
commitf83069c7ed877717013f9448497581e33332850e (patch)
treea8c5f8da49c34e840e52084b907ad3d14ba01750 /tools
parentf25baa5fb9f1b1ae78aa2f4fccd6b0cfcf913d5d (diff)
parent7aea10d9e46243dfefa932982320ae2d8c3b14ec (diff)
Merge pull request #14182 from Memphiz/ios11_jailbreak
Ios11 jailbreak
Diffstat (limited to 'tools')
-rwxr-xr-xtools/darwin/Support/Codesign.command17
-rw-r--r--tools/darwin/packaging/ios/mkdeb-ios.sh.in2
-rw-r--r--tools/depends/native/ldid-native/Makefile2
-rw-r--r--tools/depends/target/Makefile1
-rw-r--r--tools/depends/target/iosentitlements/Makefile15
-rw-r--r--tools/depends/target/iosentitlements/ios11_entitlements.xml32
6 files changed, 67 insertions, 2 deletions
diff --git a/tools/darwin/Support/Codesign.command b/tools/darwin/Support/Codesign.command
index ae7558aeeb..65b823c63a 100755
--- a/tools/darwin/Support/Codesign.command
+++ b/tools/darwin/Support/Codesign.command
@@ -8,6 +8,7 @@ LIST_BINARY_EXTENSIONS="dylib so"
export CODESIGN_ALLOCATE=`xcodebuild -find codesign_allocate`
GEN_ENTITLEMENTS="$NATIVEPREFIX/bin/gen_entitlements.py"
+IOS11_ENTITLEMENTS="$XBMC_DEPENDS/share/ios11_entitlements.xml"
LDID="$NATIVEPREFIX/bin/ldid"
if [ ! -f ${GEN_ENTITLEMENTS} ]; then
@@ -23,7 +24,21 @@ if [ "${PLATFORM_NAME}" == "iphoneos" ] || [ "${PLATFORM_NAME}" == "appletvos" ]
#do fake sign - needed for jailbroken ios5.1 devices for some reason
if [ -f ${LDID} ]; then
- ${LDID} -S ${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/${APP_NAME}
+ find ${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/ -name "*.dylib" | xargs ${LDID} -S${IOS11_ENTITLEMENTS}
+ find ${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/ -name "*.so" | xargs ${LDID} -S${IOS11_ENTITLEMENTS}
+ ${LDID} -S${IOS11_ENTITLEMENTS} ${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/${APP_NAME}
+
+ #repackage python eggs
+ EGGS=`find ${CODESIGNING_FOLDER_PATH} -name "*.egg" -type f`
+ for i in $EGGS; do
+ echo $i
+ mkdir del
+ unzip $i -d del
+ find ./del/ -name "*.so" -type f | xargs ${LDID} -S${IOS11_ENTITLEMENTS}
+ rm $i
+ cd del && zip -r $i ./* && cd ..
+ rm -r ./del/
+ done
fi
# pull the CFBundleIdentifier out of the built xxx.app
diff --git a/tools/darwin/packaging/ios/mkdeb-ios.sh.in b/tools/darwin/packaging/ios/mkdeb-ios.sh.in
index 8632edbe1e..663c5ccbbf 100644
--- a/tools/darwin/packaging/ios/mkdeb-ios.sh.in
+++ b/tools/darwin/packaging/ios/mkdeb-ios.sh.in
@@ -112,6 +112,8 @@ chmod +x $DIRNAME/$PACKAGE/DEBIAN/prerm
echo "#!/bin/sh" > $DIRNAME/$PACKAGE/DEBIAN/postinst
echo "chown -R mobile:mobile /Applications/@APP_NAME@.app" >> $DIRNAME/$PACKAGE/DEBIAN/postinst
cat $DIRNAME/../migrate_to_kodi_ios.sh >> $DIRNAME/$PACKAGE/DEBIAN/postinst
+echo "/usr/bin/uicache" >> $DIRNAME/$PACKAGE/DEBIAN/postinst
+echo "echo 'finish:respringing ...'" >> $DIRNAME/$PACKAGE/DEBIAN/postinst
chmod +x $DIRNAME/$PACKAGE/DEBIAN/postinst
# prep @APP_NAME@.app
diff --git a/tools/depends/native/ldid-native/Makefile b/tools/depends/native/ldid-native/Makefile
index a75b5b9579..36149b47c3 100644
--- a/tools/depends/native/ldid-native/Makefile
+++ b/tools/depends/native/ldid-native/Makefile
@@ -5,7 +5,7 @@ DEPS= ../../Makefile.include Makefile
# lib name, version
LIBNAME=ldid
-VERSION=1.0.0
+VERSION=2
SOURCE=$(LIBNAME)-$(VERSION)
ARCHIVE=$(SOURCE).tar.gz
diff --git a/tools/depends/target/Makefile b/tools/depends/target/Makefile
index 3353e33665..682a4760dc 100644
--- a/tools/depends/target/Makefile
+++ b/tools/depends/target/Makefile
@@ -31,6 +31,7 @@ ifeq ($(OS),ios)
ifeq ($(TARGET_PLATFORM),appletvos)
DEPENDS += boblight
endif
+ DEPENDS += iosentitlements
else
DVDREAD_DEPS = libdvdcss
endif
diff --git a/tools/depends/target/iosentitlements/Makefile b/tools/depends/target/iosentitlements/Makefile
new file mode 100644
index 0000000000..eaf99e84e0
--- /dev/null
+++ b/tools/depends/target/iosentitlements/Makefile
@@ -0,0 +1,15 @@
+include ../../Makefile.include
+DEPS= ../../Makefile.include Makefile ios11_entitlements.xml
+
+IOS11_ENT=$(PREFIX)/share/ios11_entitlements.xml
+
+all: $(IOS11_ENT)
+
+$(IOS11_ENT):
+ mkdir -p $(PREFIX)/share
+ cp ios11_entitlements.xml $(IOS11_ENT)
+
+
+clean:
+distclean::
+ rm -f $(IOS11_ENT)
diff --git a/tools/depends/target/iosentitlements/ios11_entitlements.xml b/tools/depends/target/iosentitlements/ios11_entitlements.xml
new file mode 100644
index 0000000000..ca7826950b
--- /dev/null
+++ b/tools/depends/target/iosentitlements/ios11_entitlements.xml
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>com.apple.springboard.opensensitiveurl</key>
+ <true/>
+ <key>com.apple.coremedia.allow-protected-content-playback</key>
+ <true/>
+ <key>com.apple.coreaudio.allow-amr-decode</key>
+ <true/>
+ <key>com.apple.springboard.launchapplications</key>
+ <true/>
+ <key>com.apple.managedconfiguration.profiled-access</key>
+ <true/>
+ <key>platform-application</key>
+ <true/>
+ <key>com.apple.private.security.no-container</key>
+ <true/>
+ <key>com.apple.private.skip-library-validation</key>
+ <true/>
+ <key>com.apple.CommCenter.fine-grained</key>
+ <array>
+ <string>spi</string>
+ </array>
+ <key>keychain-access-groups</key>
+ <array>
+ <string>com.apple.cfnetwork</string>
+ <string>com.apple.identities</string>
+ <string>com.apple.mobilesafari</string>
+ </array>
+</dict>
+</plist>