Skip to content

AndroZooUtils

Jordan Samhi edited this page Aug 22, 2023 · 2 revisions

AndroZooUtils 🧰

The AndroZooUtils class is part of the AndroSpecter library and serves as a utility class for downloading APK files from AndroZoo using the provided API key and path.

Class Definition

Constructors

The class offers two constructors:

  1. public AndroZooUtils(String apiKey, String path): Constructs a new AndroZooUtils object with the given API key and path to store downloaded APKs.
  2. public AndroZooUtils(String apiKey): Constructs a new AndroZooUtils object with the given API key and sets the path to store downloaded APK files to the system temporary folder.

Methods

  • public String getApk(String sha256): Downloads an APK file with the given SHA-256 hash from AndroZoo, using the provided API key and path to store the file.

Usage

Here is an example of how to use the AndroZooUtils class to download an APK file:

AndroZooUtils androZooUtils = new AndroZooUtils("your-api-key-here");
String apkPath = androZooUtils.getApk("SHA-256-hash-here");

if (apkPath != null) {
    // Do something with the downloaded APK file
}