From d9e5b0a487cbcb6b5f9351e036cc3db7ace0db5b Mon Sep 17 00:00:00 2001 From: Ben Gruver Date: Tue, 20 Jan 2015 19:01:18 -0800 Subject: [PATCH] Switch the default for implicit references --- .../src/main/java/org/jf/baksmali/baksmaliOptions.java | 2 +- .../baksmali/src/main/java/org/jf/baksmali/main.java | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/brut.apktool.smali/baksmali/src/main/java/org/jf/baksmali/baksmaliOptions.java b/brut.apktool.smali/baksmali/src/main/java/org/jf/baksmali/baksmaliOptions.java index e62a20ba..ea97f45e 100644 --- a/brut.apktool.smali/baksmali/src/main/java/org/jf/baksmali/baksmaliOptions.java +++ b/brut.apktool.smali/baksmali/src/main/java/org/jf/baksmali/baksmaliOptions.java @@ -75,7 +75,7 @@ public class baksmaliOptions { public boolean deodex = false; public boolean ignoreErrors = false; public boolean checkPackagePrivateAccess = false; - public boolean useImplicitReferences = true; + public boolean useImplicitReferences = false; public File customInlineDefinitions = null; public InlineMethodResolver inlineResolver = null; public int registerInfo = 0; diff --git a/brut.apktool.smali/baksmali/src/main/java/org/jf/baksmali/main.java b/brut.apktool.smali/baksmali/src/main/java/org/jf/baksmali/main.java index 4161ff44..28c42030 100644 --- a/brut.apktool.smali/baksmali/src/main/java/org/jf/baksmali/main.java +++ b/brut.apktool.smali/baksmali/src/main/java/org/jf/baksmali/main.java @@ -206,7 +206,7 @@ public class main { options.setResourceIdFiles(rif); break; case 't': - options.useImplicitReferences = false; + options.useImplicitReferences = true; break; case 'e': options.dexEntry = commandLine.getOptionValue("e"); @@ -425,8 +425,8 @@ public class main { .withArgName("FILES") .create("i"); - Option noImplicitReferencesOption = OptionBuilder.withLongOpt("no-implicit-references") - .withDescription("Don't use implicit (type-less) method and field references") + Option noImplicitReferencesOption = OptionBuilder.withLongOpt("implicit-references") + .withDescription("Use implicit (type-less) method and field references") .create("t"); Option checkPackagePrivateAccessOption = OptionBuilder.withLongOpt("check-package-private-access")