No description
Find a file
2021-12-21 19:52:36 -08:00
bin Create oclif project 2021-11-06 23:34:51 -07:00
config config: pixel: 2019: Exclude EGL debug prop 2021-12-19 03:00:19 -08:00
scripts scripts: Add script to list updated system apps 2021-12-14 18:43:43 -08:00
src generate: Fix feedback loop in override resolution 2021-12-21 19:52:36 -08:00
.editorconfig Create oclif project 2021-11-06 23:34:51 -07:00
.eslintignore Create oclif project 2021-11-06 23:34:51 -07:00
.eslintrc Create oclif project 2021-11-06 23:34:51 -07:00
.gitignore gitignore: Ignore extracted ROM files 2021-12-18 02:24:51 -08:00
LICENSE Add MIT license 2021-11-15 17:45:08 -08:00
package.json package: Add lodash dependency 2021-11-23 20:14:10 -08:00
README.md readme: Revise features and license 2021-12-20 03:44:58 -08:00
tsconfig.json tsconfig: Enable ES module interop 2021-11-23 20:14:09 -08:00
yarn.lock package: Update dependencies within bounds 2021-11-15 18:08:28 -08:00

adevtool

Android device support and bringup tool, designed for maximum automation and speed.

Features

This tool automates the following tasks for devices that mostly run AOSP out-of-the-box (e.g. Google Pixel):

  • 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

This typically results in better device support with fewer bugs and issues, and makes it possible to quickly add support for new devices.

Non-AOSP devices

Pixel devices will benefit from the most automation, but several features can still be used to ease manual bringup on other devices:

  • Extract files from proprietary-files.txt up to 10x faster than LineageOS extract-utils
  • Compare a built system against stock images to find missing files, properties, and vendor interface declarations
  • List system files relevant to bringup (in all partitions)
  • Resolve overridden build rules from build warnings
  • Check SELinux policies to identify apps that should be presigned

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

License

This tool is licensed under the MIT license, ensuring that anyone is free to use it for any purpose in compliance with the license. Contributions are welcome!