public class AndroidManifestPackageNameUtils
extends java.lang.Object
| Constructor and Description |
|---|
AndroidManifestPackageNameUtils() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getPackageNameFromManifestFile(com.android.ide.common.util.PathString manifestFile)
Reads package name from the AndroidManifest.xml file in the given directory.
|
static java.lang.String |
getPackageNameFromResApk(java.util.zip.ZipFile resApk)
Reads package name from the AndroidManifest.xml stored inside the given res.apk file.
|
@Nullable
public static java.lang.String getPackageNameFromManifestFile(@NonNull
com.android.ide.common.util.PathString manifestFile)
throws java.io.IOException
manifestFile - the AndroidManifest.xml filejava.io.IOException@Nullable
public static java.lang.String getPackageNameFromResApk(@NonNull
java.util.zip.ZipFile resApk)
throws java.io.IOException
resApk - the res.apk filejava.io.IOException