├── AppPatcher ├── AppPatcherSource ├── README.md └── usage.rtf /AppPatcher: -------------------------------------------------------------------------------- 1 | echo "REMINDER: Patching this ipa to show up in File Manager can make it crash." 2 | echo "" 3 | echo "" 4 | if [ $1 == "-b" ] 5 | then 6 | mkdir MergeApps 7 | cp -r $2 MergeApps 8 | cd MergeApps 9 | cd * 10 | unzip '*.ipa' 11 | zip -r Payload.zip Payload 12 | mv Payload.zip Merged.ipa 13 | cp Merged.ipa .. 14 | echo "iPA´s should be merged now. Make sure to reboot or respring after installing." 15 | echo "" 16 | find . -name "*.ipa" -type f 17 | find . -name "*.ipa" -type f -delete 18 | cd .. 19 | cp Merged.ipa .. 20 | rm -rf * 21 | cd .. 22 | open `pwd` 23 | else 24 | echo "Path to the ipa is: $1" 25 | mkdir Tempt 26 | cp $1 Tempt 27 | cd Tempt/ 28 | unzip $1 29 | cd Payload/ 30 | cd * 31 | defaults write $PWD/Info UIFileSharingEnabled YES 32 | echo "" 33 | echo "Worked" 34 | defaults write $PWD/Info LSSupportsOpeningDocumentsInPlace YES 35 | echo "" 36 | echo "Patches Applied" 37 | cd .. 38 | cd .. 39 | zip -r Payload.zip Payload 40 | mv Payload.zip patched.ipa 41 | echo "Repacked application" 42 | echo "" 43 | echo "" 44 | echo "Cleaning up" 45 | cp patched.ipa .. 46 | rm -rf Payload 47 | cd .. 48 | rm -rf Tempt 49 | open `pwd` 50 | cd .. 51 | fi 52 | echo "Done" 53 | -------------------------------------------------------------------------------- /AppPatcherSource: -------------------------------------------------------------------------------- 1 | echo "REMINDER: Patching this ipa to show up in File Manager can make it crash." 2 | echo "" 3 | echo "" 4 | echo "Path to the ipa is: $1" 5 | mkdir Tempt 6 | cp $1 Tempt 7 | cd Tempt/ 8 | unzip $1 9 | cd Payload/ 10 | cd * 11 | defaults write $PWD/Info UIFileSharingEnabled YES 12 | echo "" 13 | echo "Worked" 14 | defaults write $PWD/Info LSSupportsOpeningDocumentsInPlace YES 15 | echo "" 16 | echo "Patches Applied" 17 | cd .. 18 | cd .. 19 | zip -r Payload.zip Payload 20 | mv Payload.zip patched.ipa 21 | echo "Repacked application" 22 | echo "" 23 | echo "" 24 | echo "Cleaning up" 25 | rm -rf Payload 26 | cd .. 27 | open `pwd` 28 | cd .. 29 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # UPDATES 2 | I have holidays currently and likely not gonna update this in the next 6 Weeks. If i do, it may contains some issues. (I will fix them all when school started again.) 3 | 4 | 5 | # iOS-AppPatcher 6 | This is a script to patch .ipa or other Archives which have an .app folder. 7 | 8 | 9 | # Compiling 10 | You don´t need to compile anything, it´s just a shell script. (This will maybe chnage in future) 11 | 12 | # How i randomly "discovered" this. 13 | I was bored and remembered how someone asked me about accessing applications files and I said only possible with jailbreak. When i created an app in xcode and wanted to intigrate it in the Files app, I just thought that you can do integrate any app in the Files app, without source code or needing to program something. 14 | 15 | # Usage 16 | AppPatcher can apply patches to an .ipa file to be accessible from the default iOS files app without a jailbreak. 17 | AppPatcher can merge multiple .ipa files to one iPA file. (Make sure to respring or reboot after installing,) 18 | 19 | To use this script, run the commands below first: 20 | "cd /DRAG/THE/APP/PATCHER/FOLDER/HERE" 21 | "chmod +x AppPatcher" 22 | 23 | Patching an .ipa file to show up in default ios files: 24 | "./AppPatcher /iPA/FILE/HERE/DRAG" 25 | 26 | Merging iPA´s 27 | Before merging ipa´s, make a folder and paste all iPA´s you want to be merged in that folder. 28 | "./AppPatcher -b /Drag/Folder/With/Multiple/iPA´s/Here/" 29 | After you installed a merged ipa, the apps will not show up on your home screen, reboot or respring your idevice to let them appear. 30 | 31 | # Installing 32 | 33 | To install the ipa, simply sign it with whatever tool you want. (I recommend to use AltStore or Signulous, both working perfectly for me) 34 | If you have a jailbreak, the next updates will add an option to install the ipa by using the tweak appinst from karens repo. (https://cydia.akemi.ai/) 35 | But i think its not making sense to install this patched ipa with Appsync since its only going to work in jailbroken mode than, while you could use Filza to access the Application. 36 | #IMPORTANT 37 | Make sure the .ipa file doesn´t contain any spaces! (If the ipa is named "Example Patch" rename it to "ExamplePatch") 38 | 39 | # Coming Soon 40 | -UI version when AppPatcher is out of Beta (MacOS and iOS/iPados) 41 | -Hide apps from SpringBoard 42 | -Show hidden apps on SpringBoard 43 | -Modify Assets 44 | -Change display name of Application 45 | -Add or Change Url scheme (for example add a url scheme like OpenFromAnyBrowser:// to open the specific application) 46 | -Convert iPA to Deb or Deb to iPA. 47 | -Something really big to add an installation path to an Application 48 | 49 | # Improvements 50 | Please feel free to make Pull Request and forks of AppPatcher 51 | I really like to see people are interested in my work 52 | 53 | # Crediting 54 | If you want to include AppPatcher in your program/Tool: 55 | Make your tool on GitHub (closed or open sourced) and add link to my AppPatcher repo instead of including the script. 56 | If you want to make changes to AppPatcher and use it in your program, please ask me on Twitter or Reddit first. (Links below) 57 | If you make a fork of this repo, you can change anything you want without crediting 58 | Make pull request of your modified AppPatcher version. (I'll credit you if i approved the request) 59 | For any other questions feel free to contact me on Twitter or Reddit: 60 | Twitter: https://twitter.com/IUnl0ck1?s=09 (you will likely get an answer faster on Twitter) 61 | Reddit: https://www.reddit.com/u/Administrative-Fan4?utm_medium=android_app&utm_source=share 62 | 63 | # Credits 64 | Me [https://twitter.com/IUnl0ck1?s=09] 65 | To get a credit/special thanks make any changes/improvements or share knowledge which is useful for AppPatcher. (About iOS in gernal) 66 | -------------------------------------------------------------------------------- /usage.rtf: -------------------------------------------------------------------------------- 1 | {\rtf1\ansi\ansicpg1252\cocoartf2578 2 | \cocoatextscaling0\cocoaplatform0{\fonttbl\f0\fswiss\fcharset0 Helvetica;} 3 | {\colortbl;\red255\green255\blue255;} 4 | {\*\expandedcolortbl;;} 5 | \paperw11900\paperh16840\margl1440\margr1440\vieww11520\viewh8400\viewkind0 6 | \pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural\partightenfactor0 7 | 8 | \f0\fs24 \cf0 Usage:\ 9 | Merge Apps\ 10 | ./AppPatcher -b /Drag/Folder/With/iPA\'b4s/here/\ 11 | Apply Patches\ 12 | ./AppPatcher /Path/to/the/ipa/file\ 13 | \ 14 | Planning to add options to mod Assets and to communicate with MobileDevice to install patched .ipa\'b4s on connected idevices.} 15 | --------------------------------------------------------------------------------