Interface AndroidUtil
-
- All Known Implementing Classes:
UtilsImpl
public interface AndroidUtil
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default net.dongliu.apk.parser.bean.ApkMeta
getApkMetadata(File apk)
default String
getApkPackageName(File apk)
default int
getApkVersionCode(File apk)
default AppFileMetadata
getAppFileMetadata(File file)
-
-
-
Method Detail
-
getApkVersionCode
default int getApkVersionCode(File apk) throws IOException
- Returns:
- The version code of the given APK file.
- Throws:
IOException
-
getApkPackageName
default String getApkPackageName(File apk) throws IOException
- Returns:
- The application ID of the given APK file.
- Throws:
IOException
-
getAppFileMetadata
default AppFileMetadata getAppFileMetadata(File file) throws IOException
- Throws:
IOException
-
getApkMetadata
default net.dongliu.apk.parser.bean.ApkMeta getApkMetadata(File apk) throws IOException
- Returns:
- The application metadata of the given APK file.
- Throws:
IOException
-
-