Search in sources :

Example 6 with MetaInfo

use of brut.androlib.meta.MetaInfo in project Apktool by iBotPeaches.

the class MissingVersionManifestTest method missingVersionParsesCorrectlyTest.

@Test
public void missingVersionParsesCorrectlyTest() throws BrutException, IOException {
    String apk = "issue1264.apk";
    // decode issue1264.apk
    ApkDecoder apkDecoder = new ApkDecoder(new File(sTmpDir + File.separator + apk));
    ExtFile decodedApk = new ExtFile(sTmpDir + File.separator + apk + ".out");
    apkDecoder.setOutDir(new File(sTmpDir + File.separator + apk + ".out"));
    apkDecoder.decode();
    MetaInfo metaInfo = new Androlib().readMetaFile(decodedApk);
    assertEquals(null, metaInfo.versionInfo.versionName);
}
Also used : MetaInfo(brut.androlib.meta.MetaInfo) ExtFile(brut.directory.ExtFile) ExtFile(brut.directory.ExtFile) File(java.io.File) Test(org.junit.Test)

Aggregations

MetaInfo (brut.androlib.meta.MetaInfo)6 ExtFile (brut.directory.ExtFile)4 File (java.io.File)3 Test (org.junit.Test)3 Map (java.util.Map)1 ZipFile (java.util.zip.ZipFile)1