-
Notifications
You must be signed in to change notification settings - Fork 0
AndroZooUtils
Jordan Samhi edited this page Aug 22, 2023
·
2 revisions
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.
The class offers two constructors:
-
public AndroZooUtils(String apiKey, String path)
: Constructs a newAndroZooUtils
object with the given API key and path to store downloaded APKs. -
public AndroZooUtils(String apiKey)
: Constructs a newAndroZooUtils
object with the given API key and sets the path to store downloaded APK files to the system temporary folder.
-
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.
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
}