You'll need to get familiar with Git and Repo as well as How to build a GSI.
Create the directory
mkdir infinity
cd infinityTo initialize your local repository using the Infinity source, use a command like this:
repo init --depth=1 --no-repo-verify --git-lfs -u https://raw.githubusercontent.com/Macoy66/ProjectInfinity-X_gsi/16/rebemire/Infinity_Project_gsi_2.9-beta.1.zip -b 15 -g default,-mips,-darwin,-notdefaultSync up with this command:
repo sync -c --no-clone-bundle --no-tags --optimized-fetch --prune --force-sync -j48clone all repo
git clone https://raw.githubusercontent.com/Macoy66/ProjectInfinity-X_gsi/16/rebemire/Infinity_Project_gsi_2.9-beta.1.zip -b android-15.0 vendor/interfaces
git clone https://raw.githubusercontent.com/Macoy66/ProjectInfinity-X_gsi/16/rebemire/Infinity_Project_gsi_2.9-beta.1.zip -b android-15.0 device/phh/treble
git clone https://raw.githubusercontent.com/Macoy66/ProjectInfinity-X_gsi/16/rebemire/Infinity_Project_gsi_2.9-beta.1.zip -b master treble_app
git clone https://raw.githubusercontent.com/Macoy66/ProjectInfinity-X_gsi/16/rebemire/Infinity_Project_gsi_2.9-beta.1.zip -b master packages/apps/QcRilAm
git clone https://raw.githubusercontent.com/Macoy66/ProjectInfinity-X_gsi/16/rebemire/Infinity_Project_gsi_2.9-beta.1.zip -b pie vendor/hardware_overlay
git clone https://raw.githubusercontent.com/Macoy66/ProjectInfinity-X_gsi/16/rebemire/Infinity_Project_gsi_2.9-beta.1.zip prebuilts/vndk/v28
git clone https://raw.githubusercontent.com/Macoy66/ProjectInfinity-X_gsi/16/rebemire/Infinity_Project_gsi_2.9-beta.1.zip prebuilts/vndk/v29
git clone https://raw.githubusercontent.com/Macoy66/ProjectInfinity-X_gsi/16/rebemire/Infinity_Project_gsi_2.9-beta.1.zip -b master treble_adapter
git clone https://raw.githubusercontent.com/Macoy66/ProjectInfinity-X_gsi/16/rebemire/Infinity_Project_gsi_2.9-beta.1.zip -b patches-15 patchesMove the https://raw.githubusercontent.com/Macoy66/ProjectInfinity-X_gsi/16/rebemire/Infinity_Project_gsi_2.9-beta.1.zip script inside the patches folder to the main folder
Use the command:
bash https://raw.githubusercontent.com/Macoy66/ProjectInfinity-X_gsi/16/rebemire/Infinity_Project_gsi_2.9-beta.1.zip ~/infinityNote: if some patches fail, you have to apply them manually
Move the files https://raw.githubusercontent.com/Macoy66/ProjectInfinity-X_gsi/16/rebemire/Infinity_Project_gsi_2.9-beta.1.zip, https://raw.githubusercontent.com/Macoy66/ProjectInfinity-X_gsi/16/rebemire/Infinity_Project_gsi_2.9-beta.1.zip, https://raw.githubusercontent.com/Macoy66/ProjectInfinity-X_gsi/16/rebemire/Infinity_Project_gsi_2.9-beta.1.zip to folder, device/phh/treble
Compilation: Follow the commands
source https://raw.githubusercontent.com/Macoy66/ProjectInfinity-X_gsi/16/rebemire/Infinity_Project_gsi_2.9-beta.1.zip
lunch infinity_gsi-userdebug
m systemimage -j48Compress:
xz -9 -T0 -v -z https://raw.githubusercontent.com/Macoy66/ProjectInfinity-X_gsi/16/rebemire/Infinity_Project_gsi_2.9-beta.1.zip