本文整理汇总了Java中brut.androlib.ApkOptions类的典型用法代码示例。如果您正苦于以下问题:Java ApkOptions类的具体用法?Java ApkOptions怎么用?Java ApkOptions使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ApkOptions类属于brut.androlib包,在下文中一共展示了ApkOptions类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: apkAssemble
import brut.androlib.ApkOptions; //导入依赖的package包/类
/**
*
* @throws Exception
*/
public void apkAssemble() throws Exception {
// pre-apktool integration compiled then updated dex
apkCompileSmali();
if (DecodeResources != DecodeResOption.FULL_DECODE) {
apkUpdateDex();
} else {
ApkOptions opts = new ApkOptions();
opts.forceBuildAll = false;
opts.debugMode = false;
opts.verbose = false;
opts.copyOriginalFiles = false;
opts.isFramework = false;
opts.updateFiles = false;
opts.aaptPath = mAaptPath;
Androlib lib = new Androlib(opts);
lib.build(new File(DumpDir), new File(ApkPath));
}
}
示例2: cmdInstallFramework
import brut.androlib.ApkOptions; //导入依赖的package包/类
private static void cmdInstallFramework(CommandLine cli)
throws AndrolibException {
int paraCount = cli.getArgList().size();
String apkName = (String) cli.getArgList().get(paraCount - 1);
ApkOptions apkOptions = new ApkOptions();
if (cli.hasOption("p") || cli.hasOption("frame-path")) {
apkOptions.frameworkFolderLocation = cli.getOptionValue("p");
}
if (cli.hasOption("t") || cli.hasOption("tag")) {
apkOptions.frameworkTag = cli.getOptionValue("t");
}
new Androlib(apkOptions).installFramework(new File(apkName));
}
示例3: apkToolCompile
import brut.androlib.ApkOptions; //导入依赖的package包/类
/**
* Compile a customized app to an apk
* @param dirPath the directory of the modififed app
* @param apkPath output apk
*/
public void apkToolCompile(String dirPath, String apkPath){
String tempApktoolLog = TicklerVars.logDir+"debuggableCompile.log";
ApkOptions apkOptions = new ApkOptions();
try{
File file = new File(tempApktoolLog);
OutBut.printH3("APKTool output:");
new Androlib(apkOptions).build(new File(dirPath), new File(apkPath));
}
catch(Exception e){
e.printStackTrace();
}
}