(以编程方式/自动方式)删除iOS应用 [英] (Programmatically/Automatically) Removing iOS-Apps
问题描述
我正在寻找一种解决方案,该方法如何从设备中删除所有已安装的iOS应用程序.我正在为iOS-Security开发一个项目.对于越狱设备上的不同分析工具,有必要自动安装大量的应用程序,执行所有测试,然后将其删除,以便为将来的应用程序腾出可用空间.自动安装和测试逻辑已经完成.我只停留在应用程序删除部分.
I'm looking for a solution how to remove all installed iOS-Apps from a device. I'm working on a project for iOS-Security. For different analytical stuff on a jail-broken device it's necessary to automatically install a fat bunch of apps, perform all the tests and remove them afterwards to get free space for further applications. The auto installation and test-logic is already done. I only stuck with the apps-removing part.
用户安装的iOS应用位于/var/mobile/Applications/
中.
每个应用程序都有其自己的随机命名目录,例如7654BE30-F438-42CE-98E0-B95264458C49/
.
User installed iOS-Apps are located in /var/mobile/Applications/
.
Each application has its own randomly named directory e.g. 7654BE30-F438-42CE-98E0-B95264458C49/
.
为证明是否已安装应用程序,我的软件签出了/private/var/mobile/Library/Caches/
中的com.apple.mobile.installation.plist
To proof whether an application is already installed or not my software checks out the com.apple.mobile.installation.plist
in /private/var/mobile/Library/Caches/
我已尝试删除/var/mobile/Applications/
中所有应用程序的二进制文件,并且com.apple.mobile.installation.plist
中存在引用.似乎iOS在每个安装过程之后都会生成一个新的com.apple.mobile.installation.plist
,因此我是否从com.apple.mobile.installation.plist
中删除所有条目都没有区别.因此,如果我想安装某个已经过某天测试的应用程序,我的软件将不会识别它尚未安装,因为它仍列在com.apple.mobile.installation.plist
中.
I've tried to remove the binaries of all applications in /var/mobile/Applications/
and there references in the com.apple.mobile.installation.plist
. It seems like the iOS generates a new com.apple.mobile.installation.plist
after each installation-process, so it makes no difference whether I remove all the entries out of com.apple.mobile.installation.plist
or not. So if I would like to install an application which was already tested someday my software wouln't recognize that it's not installed yet, because it's still listed in com.apple.mobile.installation.plist
.
我试图找出iOS在哪里存储了有关用户安装的应用程序的所有信息.希望能有任何帮助或提示以查找信息.预先感谢!
I try to find out where the iOS stores all the information about a user installed application. Would appreciate any help or hint to find out the information. Thanks in advance!
考虑到我正在使用越狱的iDevice,因此一切皆有可能;-)
Consider I'm working with an jailbroken iDevice, so everything is possible ;-)
推荐答案
以编程方式擦除整个设备
通过编程方式卸载一些应用
如果要卸载应用程序,则可以使用专用API"MobileInstallationUninstall".但是,它要求获得授权"com.apple.private.mobileinstall.allowedSPI",因为您的设备已经越狱了.
if you want to uninstall apps, you can use private API "MobileInstallationUninstall". However, it requires entitlement "com.apple.private.mobileinstall.allowedSPI", which you can get, because your device is jailbroken.
这篇关于(以编程方式/自动方式)删除iOS应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!