Skip to content

Instantly share code, notes, and snippets.

@AnierinBliss
Last active April 19, 2024 18:19
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save AnierinBliss/ecc621b1592056f04fd897f229d89f43 to your computer and use it in GitHub Desktop.
Save AnierinBliss/ecc621b1592056f04fd897f229d89f43 to your computer and use it in GitHub Desktop.
Compiling Evolution X 8.x for currently supported tensor-based Google Pixel devices

Install android build dependencies

curl https://raw.githubusercontent.com/akhilnarang/scripts/master/setup/android_build_env.sh -o android_build_env.sh
chmod +x android_build_env.sh
./android_build_env.sh
sudo apt-get install python3-pip
sudo pip install lxml

Initialize Evolution X via repo and sync source

mkdir udc-p && cd udc-p
repo init -u https://github.com/Evolution-X/manifest -b udc-p
repo sync -c -j$(nproc --all) --force-sync --no-clone-bundle --no-tags

Note: If repo sync fails to fully sync the tree (likely due to rate limiting), re-run the repo init & sync commands again.

Set up build environment

. build/envsetup.sh

Lunch your target device

Codename Device
oriole Pixel 6
raven Pixel 6 Pro
bluejay Pixel 6a
panther Pixel 7
cheetah Pixel 7 Pro
lynx Pixel 7a
tangorpro Pixel Tablet
felix Pixel Fold
shiba Pixel 8
husky Pixel 8 Pro
lunch evolution_codename-userdebug

Note: After lunching, device dependencies, excluding vendor (proprietary-files/firmware), will be added to a local_manifest in .repo/local_manifests/evolution.xml and synced via roomservice. Due to missing vendor, this will result in a failed lunch. The resolution for this will be handled in the next step.

Generate vendor dependencies

Run the following command to download the appropriate factory image from Google and extract vendor (proprietary-files/firmware) automatically:

./evolution/scripts/pixel/device.sh codename

Finally, lunch the device again and build

lunch evolution_codename-userdebug
m evolution
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment