This simple library and tool allows fetching the build fingerprint and other properties of standard Android OTA files hosted on the web, without downloading the entire files.
Before first usage fetch dart deps: dart pub get
dart compile exe bin/fetchbuild.dart && ./bin/fetchbuild <url> [extra]
dart run bin/fetchbuild.dart <url> [extra keys]
See bin/fetchbuild.dart
for example usage.
<url>
: The URL of the OTA file to fetch build properties from.
[extra keys]
: Extra keys to fetch from the OTA file (names are the same as in META-INF/com/android/metadata
, without the =
)