本文整理了Java中com.zzzmode.apkeditor.apksigner.ZipManager.extraZipEntry()
方法的一些代码示例,展示了ZipManager.extraZipEntry()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZipManager.extraZipEntry()
方法的具体详情如下:
包路径:com.zzzmode.apkeditor.apksigner.ZipManager
类名称:ZipManager
方法名:extraZipEntry
[英]提取文件
[中]提取文件
代码示例来源:origin: 8enet/apkeditor
ZipManager.extraZipEntry(tmpFile, new String[]{"AndroidManifest.xml"}, new String[]{A_XML});
代码示例来源:origin: 8enet/apkeditor
@Test
public void axmlReaderTest() throws Exception {
File apkFile=TestUtils.getResourceFile("tap_unsign.apk");
File axmlFile=File.createTempFile("AndroidManifest", ".xml",null);
ZipManager.extraZipEntry(apkFile, new String[]{"AndroidManifest.xml"}, new String[]{axmlFile.getAbsolutePath()});
AXMLDoc doc = new AXMLDoc();
doc.parse(FileUtils.openInputStream(axmlFile));
doc.print();
}
代码示例来源:origin: 8enet/apkeditor
@Test
public void axmlEditTest()throws Exception{
File apkFile=TestUtils.getResourceFile("tap_unsign.apk");
File axmlFile=File.createTempFile("AndroidManifest", ".xml",null);
ZipManager.extraZipEntry(apkFile, new String[]{"AndroidManifest.xml"}, new String[]{axmlFile.getAbsolutePath()});
AXMLDoc doc = new AXMLDoc();
doc.parse(FileUtils.openInputStream(axmlFile));
ApplicationInfoEditor applicationInfoEditor = new ApplicationInfoEditor(doc);
applicationInfoEditor.setEditorInfo(new ApplicationInfoEditor.EditorInfo("testAppName", false));
applicationInfoEditor.commit();
doc.build(new FileOutputStream(axmlFile));
doc.print();
doc.release();
}
}
内容来源于网络,如有侵权,请联系作者删除!