UN1CA/external_android-tools — reverse-engineered prompt

Reverse engineered prompt

GitHub

Build me an unofficial CMake based build setup for packaging the Android platform command line tools on Linux. I want it to make life easier for distro maintainers who just need tools like adb, fastboot, the image conversion tools, logical partition tools, mkbootimg scripts, avbtool, and mkdtboimg without pulling in the whole upstream Android build system.

It should assume the patched source code is vendored in the repo, apply or organize patches cleanly, and let someone build from a release tarball with the normal flow, make a build folder, run cmake, make, and make install. Also include a target to generate a source package for releases.

Please keep it practical and minimal. Use CMake as the main build system, support common Linux compilers, Go, Perl, and the needed libraries like libusb, PCRE, protobuf, brotli, zstd, lz4, and Google Test. Add clear README instructions for building, installing, creating release tarballs, and contributing patches.

Want more depth? Deep Reverse