@BeforeClass
 public static void beforeClass() throws Exception, BrutException {
   sTmpDir = new ExtFile(OS.createTempDirectory());
   sTestOrigDir = new ExtFile(sTmpDir, "testapp-orig");
   sTestNewDir = new ExtFile(sTmpDir, "testapp-new");
   LOGGER.info("Unpacking testapp...");
   TestUtils.copyResourceDir(BuildAndDecodeTest.class, "brut/apktool/testapp/", sTestOrigDir);
 }
示例#2
0
  @BeforeClass
  public static void beforeClass() throws Exception, BrutException {
    sTmpDir = new ExtFile(OS.createTempDirectory());
    sTestOrigDir = new ExtFile(sTmpDir, "testapp-orig");
    sTestNewDir = new ExtFile(sTmpDir, "testapp-new");
    LOGGER.info("Unpacking testapp...");
    TestUtils.copyResourceDir(BuildAndDecodeTest.class, "brut/apktool/testapp/", sTestOrigDir);

    LOGGER.info("Building testapp.apk...");
    File testApk = new File(sTmpDir, "testapp.apk");
    new Androlib().build(sTestOrigDir, testApk);

    LOGGER.info("Decoding testapp.apk...");
    ApkDecoder apkDecoder = new ApkDecoder(testApk);
    apkDecoder.setOutDir(sTestNewDir);
    apkDecoder.decode();
  }