aid

aid

Authorize ios device ,实现爱思助手、鲨漏验机、3utools、imazing一样安装app

Stars: 111

Visit
 screenshot

Aid2 is a tool designed to authorize iOS devices and install apps similar to iTools. After authorizing with Aid2, the IPA files can be installed without entering the app ID and password. This second version of Aid supports both Windows and Mac systems, although the Mac system has not been fully tested yet. Version 2.1 added the functionality to install IPA files. Version 2.5 streamlined the authorization process, executing it on each device using a single thread to reduce code complexity and improve authorization speed. The tool requires a compilation environment with Vcpkg, gRPC, Protobuf, and OpenSSL, and users need to have access to a VPN for successful configuration.

README:

aid2: 总览

Authorize ios device 实现功能和爱思助手,鲨漏验机,3utools一样安装app,使用aid2 授权之后 ,安装的IPA文件不需要输入Apple账户和密码。

V2.6 grpc编译的复杂度,改用了http接口调用,方便编译。

需要在linux,mac,安卓或者在树莓派等各类开发版上运行的商业应用请联系邮箱:[email protected] qq:2277695881

目录

配置编译环境

首先,请阅读以下任一快速配置指南: Windows

windows 平台支持windows 10之后版本,itunes 安装最新版本或者说安装 itunes 最新版本里的AppleMobileDeviceSupport包,只做过x64平台做过大量测试,编写代码的时候也考虑到x86平台,但没有大量测试,请使用者自行测试或者拉起pull

编译环境需要用到 Vcpkg,openssl

以下配置环境都需要用到科学上网,否则会失败。

快速开始: Windows

前置条件:

  • Windows 10 或更新的版本
  • [Git][getting-started:git]
  • [Visual Studio][getting-started:visual-studio] 2022 或更新的版本(包含英文语言包

首先,请使用 git clone vcpkg 并执行 bootstrap.bat 脚本。 您可以将 vcpkg 安装在任何地方,但是通常我们建议您使用 vcpkg 作为 CMake 项目的子模块,并将其全局安装到 Visual Studio 项目中。 我们建议您使用例如 C:\src\vcpkgC:\dev\vcpkg 的安装目录,否则您可能遇到某些库构建系统的路径问题。

> git clone https://github.com/microsoft/vcpkg
> .\vcpkg\bootstrap-vcpkg.bat
> .\vcpkg\vcpkg install openssl:x64-windows-static nlohmann-json:x64-windows-static
> .\vcpkg\vcpkg integrate install

安装itunes版本,windows 10下载连接

编译

下载源码

> git clone --recursive https://github.com/aidserv/aid.git

使用Visual Studio 2022编译

使用 Visual Studio 2022 打开 aid2.sln 文件,平台选择x64,然后编译整个解决方案

然后到 https://github.com/aidserv/aid/releases 下载编译后版本,解压出aid2.zip压缩包,把certificate文件夹复制到编译输出目录下面就可以。

运行

调试

examples目录下面cpp项目为启动项目,就可以进入自动调试状态。

命令行运行

进入编译输出目录,x64\Debug或者x64\Release目录,安装app, 以下命令是安装换机助手,chatgpt,同步助手,由于自定app市场需要大量人力物力,如果需要安装指定的app,请联系上面邮箱或者QQ

> cpp h1.0.25.ipa
> cpp ChatGPT 1.2023.21 1.ipa
> cpp tonbu11.1.0.ipa

运行以上命令输出:设备名:iPhone 授权成功 就自动授权成功,最后ipa安装成功会弹出安装成功界面,以上例子是每次安装app自动授权,如果需要一次性授权,请把授权和安装代码分开,目前提供两个外部dll函数

以上命令安装好,直接在手机屏幕上找到三个app 打开,检测是否需要输入apple id和密码,手机授权之后,需要在次测试,只能把把手机还原到初厂设置,具体操作是【设置】,【通用】,【传输或还原iPhone】,【抹掉所有内容和设置】。

主要函数

/******************************************************
* 执行配对信息,首次配对手机上会出现信任和不信任按钮
返回值:LOCKDOWN_E_PAIRING_DIALOG_RESPONSE_PENDING         = -19           弹出对话框,请在设备端按下“信任”按钮
		LOCKDOWN_E_USER_DENIED_PAIRING                     = -18			使用者按下了“不信任”按钮。
		LOCKDOWN_E_PASSWORD_PROTECTED                      = -17			请打开密码锁定,进入ios主界面
		LOCKDOWN_E_MUX_ERROR                               =  -8			USB数据线断开或者接触不良
															   0			配对成功
***************************************************************/
int DoPair(const char* udid);

/*******************************************************
根据udid授权
参数:udid
返回值:成功为AuthorizeReturnStatus::AuthorizeSuccess
*******************************************************/
AuthorizeReturnStatus AuthorizeDevice(const char * udid);

/*******************************************************
根据udid安装path 的ipa 包
参数:udid
      ipaPath ipa包的路径
返回值:成功为true
*******************************************************/
bool InstallApplication(const char* udid,const char* ipaPath);

For Tasks:

Click tags to check more tools for each tasks

For Jobs:

Alternative AI tools for aid

Similar Open Source Tools

For similar tasks

For similar jobs