Skip to content
aidservPublic

About

Authorize ios device ,实现爱思助手、鲨漏验机、3utools、imazing一样安装app、iOS私有应用市场

Topics

Resources

Stars

147 stars

Watchers

9 watching

Forks

Repository files navigation

🌐 Language: English (current)  |  简体中文

aid2: Overview

aid2 authorizes iOS devices and installs apps in a way similar to i4Tools (AiSi Assistant), ShaLou device inspector, and 3uTools. After a device has been authorized with aid2, installing an IPA file does not require an Apple account or password.

For commercial applications that need to run on Linux, macOS, Android, Raspberry Pi, and other development boards, please contact:

Table of Contents

Setting Up the Build Environment

First, follow the quick setup guide below:

Windows

aid2 supports Windows 10 and later. Install the version of iTunes linked on this page. Versions installed from the Microsoft Store are not currently supported.

The build environment requires Vcpkg, OpenSSL, and nlohmann-json.

Quick Start: Windows

Prerequisites:

First, clone Vcpkg with git clone and run the bootstrap.bat script. You can install Vcpkg in any location. However, we generally recommend using Vcpkg as a submodule of a CMake project and integrating it globally with Visual Studio projects. We recommend an installation directory such as C:\src\vcpkg or C:\dev\vcpkg; other locations may cause path-related issues when building some libraries.

> 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

Download links for standard iTunes installers:

Build

Download the Source Code

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

Build with Visual Studio 2022

Open aid2.sln in Visual Studio 2022, select x64 as the platform, and build the entire solution.

Run

Debugging

Set the C++ project under the examples directory as the startup project to start debugging automatically. The current project is configured to install h1.0.25.ipa; change this to the filename of the package you want to install.

Command-Line Usage

Go to the build output directory, either x64\Debug or x64\Release, to install apps. The following commands install Phone Transfer Assistant, ChatGPT, and Sync Assistant. Building a custom app marketplace requires substantial resources; if you need to install a specific app, please contact us using the email address or QQ number above.

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

The commands above report Device name: iPhone and Authorization succeeded when authorization succeeds, then show an installation-success dialog after the IPA is installed. The examples authorize the device for each installation. To authorize only once, separate the authorization and installation code. Two external DLL functions are currently provided.

After the installation is complete, open the three apps on the phone and check whether they prompt for an Apple ID and password. To retest authorization, restore the phone to factory settings. To do this, go to Settings > General > Transfer or Reset iPhone > Erase All Content and Settings.

Main Functions

/******************************************************
* Perform pairing. On first-time pairing, the phone displays Trust and Don't Trust buttons.
* Return values:
*   LOCKDOWN_E_PAIRING_DIALOG_RESPONSE_PENDING = -19  A dialog is displayed; press "Trust" on the device.
*   LOCKDOWN_E_USER_DENIED_PAIRING            = -18  The user pressed "Don't Trust".
*   LOCKDOWN_E_PASSWORD_PROTECTED             = -17  Unlock the device with its passcode and open the iOS home screen.
*   LOCKDOWN_E_MUX_ERROR                      =  -8  The USB cable is disconnected or has a poor connection.
*                                              0      Pairing succeeded.
***************************************************************/
int DoPair(const char* udid);

/*******************************************************
* Authorize a device by UDID.
* Parameter: udid
* Return value: AuthorizeReturnStatus::AuthorizeSuccess on success.
*******************************************************/
AuthorizeReturnStatus AuthorizeDevice(const char* udid);

/*******************************************************
* Install the IPA package at ipaPath on the device with the given UDID.
* Parameters:
*   udid    The device UDID.
*   ipaPath The path to the IPA package.
* Return value: true on success.
*******************************************************/
bool InstallApplication(const char* udid, const char* ipaPath);

About

Authorize ios device ,实现爱思助手、鲨漏验机、3utools、imazing一样安装app、iOS私有应用市场

Topics

Resources

Stars

147 stars

Watchers

9 watching

Forks

Releases

Packages

Used by

Contributors

Languages