public final class AabDetector
Detects whether a local file is a real Android App Bundle by its internal zip structure
(BundleConfig.pb at the archive root) rather than trusting its file extension or URL
suffix — download URLs (S3 pre-signed, etc.) often carry no reliable extension at all.
| Type Params | Return Type | Name and description |
|---|---|---|
|
public static boolean |
isAabBundle(File file)Returns true only if file is a valid zip archive containing a
BundleConfig.pb entry at its root. |
Returns true only if file is a valid zip archive containing a
BundleConfig.pb entry at its root. Returns false — never throws — for any
file that isn't a zip at all, or is a zip without that entry (e.g. a plain .apk):
neither case is an error, both simply mean "not an AAB, use existing behavior unchanged".