public class ApkFile extends AbstractApkFile implements Closeable
AbstractApkFile.CertificateFile| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
protected ByteBuffer |
fileData()
return the whole apk file as ByteBuffer
|
protected List<AbstractApkFile.CertificateFile> |
getAllCertificateData() |
byte[] |
getFileData(String path)
read file in apk into bytes
|
ApkSignStatus |
verifyApk()
已过时。
using google official ApkVerifier of apksig lib instead.
|
findApkSignBlock, getAllCertificateMetas, getAllIcons, getApkMeta, getApkSingers, getApkV2Singers, getCertificateMetaList, getDexClasses, getIconFile, getIconFiles, getIconPaths, getLocales, getManifestXml, getPreferredLocale, setPreferredLocale, transBinaryXmlpublic ApkFile(File apkFile) throws IOException
IOExceptionpublic ApkFile(String filePath) throws IOException
IOExceptionprotected List<AbstractApkFile.CertificateFile> getAllCertificateData() throws IOException
getAllCertificateData 在类中 AbstractApkFileIOExceptionpublic byte[] getFileData(String path) throws IOException
AbstractApkFilegetFileData 在类中 AbstractApkFileIOExceptionprotected ByteBuffer fileData() throws IOException
AbstractApkFilefileData 在类中 AbstractApkFileIOException@Deprecated public ApkSignStatus verifyApk() throws IOException
verifyApk 在类中 AbstractApkFileIOExceptionpublic void close()
throws IOException
close 在接口中 Closeableclose 在接口中 AutoCloseableclose 在类中 AbstractApkFileIOExceptionCopyright © 2019. All rights reserved.