gpt4 book ai didi

com.zzzmode.apkeditor.apksigner.ZipManager类的使用及代码示例

转载 作者:知者 更新时间:2024-03-13 10:36:13 27 4
gpt4 key购买 nike

本文整理了Java中com.zzzmode.apkeditor.apksigner.ZipManager类的一些代码示例,展示了ZipManager类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZipManager类的具体详情如下:
包路径:com.zzzmode.apkeditor.apksigner.ZipManager
类名称:ZipManager

ZipManager介绍

暂无

代码示例

代码示例来源:origin: 8enet/apkeditor

/**
 *
 * @param file
 */
public static boolean deleteFile(File file) {
  if (file.isDirectory()) {
    File[] files = file.listFiles();
    for (int i = 0; i < files.length; i++) {
      deleteFile(files[i]);
    }
  }
  //file.delete();
  return delFileInternal(file);
}

代码示例来源:origin: 8enet/apkeditor

ZipManager.extraZipEntry(tmpFile, new String[]{"AndroidManifest.xml"}, new String[]{A_XML});
ZipManager.replaceZipEntry(tmpFile, new String[]{"AndroidManifest.xml", "res/drawable/ic_launcher.png"},
    new String[]{A_XML, appIcon});

代码示例来源: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

byte[] buff = creatBuffBytes();
String name=null;
while (entry != null) {

代码示例来源:origin: 8enet/apkeditor

public static void unzip(String zipFile, String unZipDir) {
  System.out.println( "unzip -->> zipFile  "+zipFile+"   \n  unZipDir  "+unZipDir);
  deleteDir(unZipDir);
  dirChecker(unZipDir);
  FileInputStream fin =null;
  ZipInputStream zin = null;
        dirChecker(ze.getName());
      } else {
        FileOutputStream fout = null;
  }finally {
    IOUtils.closeQuietly(zin,fin);
    deleteDir(unZipDir+"/META-INF");

代码示例来源:origin: 8enet/apkeditor

public static void deleteDir(String file) {
  deleteFile(new File(file));
}

代码示例来源:origin: 8enet/apkeditor

public static boolean deleteFile(String path){
  return delFileInternal(new File(path));
}

代码示例来源: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();
  }
}

代码示例来源:origin: 8enet/apkeditor

try {
  zipFile =new ZipFile(file);
  byte[] buff=creatBuffBytes();
  int len;
  final int size=entryFiles.length;

代码示例来源:origin: 8enet/apkeditor

byte[] buff = creatBuffBytes();
int len;
while (entry != null) {

代码示例来源:origin: 8enet/apkeditor

zout = new ZipOutputStream(fos);
ZipEntry entry = zin.getNextEntry();
byte[] buf = creatBuffBytes();
while (entry != null) {
  String name = entry.getName();

代码示例来源:origin: 8enet/apkeditor

byte[] buff = creatBuffBytes();
int len;
while (entry != null) {

代码示例来源:origin: 8enet/apkeditor

int dels = 0;
byte[] buff=creatBuffBytes();
int len;
while (entry != null) {

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com