2.2 KiB
2.2 KiB
adevtool
Android device support and bringup tool, designed for maximum automation and speed.
Features
This tool automates the following tasks:
- Downloading factory images and full OTA packages
- Generating a list of proprietary files
- Resolving overridden build rules and building modules from source (when possible)
- Extracting, converting, and mounting factory images
- Extracting proprietary files
- Extracting bootloader and radio firmware
- Finding and adding missing system properties
- Overriding build fingerprint to help pass SafetyNet
- Adding missing SELinux policies
- Adding missing HALs to vendor interface manifests
- Generating resource overlays for device configs
- Fixing privileged app signing certificates referenced in SELinux policies
Google Pixel devices will benefit from the most automation, but several features can still be used to ease manual bringup on other devices:
- Check SELinux policies to identify apps that should be presigned
- Compare a built system against stock images to find missing files, properties, and vendor interface declarations
- Resolving overridden build rules from build warnings
- Listing system files relevant to bringup (in all partitions)
- Extracting files from proprietary-files.txt up to 10x faster than LineageOS extract-utils
Installation
Pre-requisites:
- Node.js
- Optional:
- For converting sparse factory images: simg2img
- For extracting OTA packages: payload-dumper-go
- For extracting OTAs or factory images:
unzip
- For generating overlays: AAPT2 (included in AOSP and Android SDK)
To run adevtool without installation:
npx adevtool
To install adevtool globally using npm:
npm install -g adevtool
Using Yarn:
yarn global add adevtool
Usage
- Bringing up a new Pixel device
- Generating or updating an existing device
- Using individual bringup helper commands
License
This tool is licensed under the MIT license. Contributions are welcome!