将应用程序安装到越狱的ios Root的Applications文件夹中 [英] Install app into jailbroken ios Root’s Applications folder

查看:430
本文介绍了将应用程序安装到越狱的ios Root的Applications文件夹中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我将myapp.app放在ios5 root的Applications文件夹中时,它无法正常工作。
为什么?但我发现cydia可以正常工作。

when i put myapp.app in ios5 root's Applications folder, but it can't work. why? but i find that cydia can work normally.

推荐答案


  1. 在main.m中添加 setuid(0); setgid(0);

  2. 正常构建应用程序。

  3. 然后在.app中复制并粘贴可执行文件,并将其重命名为
    您想要的任何内容,不要重命名原始文件。

  4. 打开原始可执行文件并删除其内容(
    内容现在存储在先前复制并重命名的
    二进制文件中)。

  5. 添加此项bash脚本从4开始的空二进制文件:

  1. In the main.m add setuid(0); and setgid(0);
  2. Build the app normally.
  3. Then copy and paste the executable inside the .app and rename it to anything you want, don't rename the original file.
  4. Open the original executable file and delete its contents (the contents are now stored in the previously copied and renamed binary).
  5. Add this bash script to the empty binary file from 4. :

#!/bin/bash
dir=$(dirname "$0")
exec "${dir}"/<COPIED FILE NAME> "$@"

Springboard将首先运行此文件,因为它的CFBundleExecutable,然后这将启动实际app的
可执行文件。这样做是因为SpringBoard无法以root权限直接启动可执行文件

Springboard will run this file first because its the CFBundleExecutable, then this will launch the actual app's executable. This is done because SpringBoard would fail to directly launch the executable with root permissions

这篇关于将应用程序安装到越狱的ios Root的Applications文件夹中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆