Skip to content

Commit

Permalink
Update dexlib
Browse files Browse the repository at this point in the history
  • Loading branch information
CalebFenton committed Mar 29, 2020
1 parent 036fcf1 commit 6380b1e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@
import org.cf.util.ClassNameUtils;
import org.cf.util.Utils;
import org.jf.dexlib2.AccessFlags;
import org.jf.dexlib2.HiddenApiRestriction;
import org.jf.dexlib2.Opcode;
import org.jf.dexlib2.builder.BuilderInstruction;
import org.jf.dexlib2.builder.instruction.*;
import org.jf.dexlib2.iface.Annotation;
import org.jf.dexlib2.iface.MethodImplementation;
import org.jf.dexlib2.iface.instruction.ReferenceInstruction;
import org.jf.dexlib2.iface.reference.FieldReference;
Expand Down Expand Up @@ -362,7 +364,15 @@ private BuilderInstruction buildFieldGetReplacement(int address) {

boolean isStatic;
BuilderField builderField =
manipulator.getDexBuilder().internField(className, fieldName, type, field.getModifiers(), null, null);
manipulator.getDexBuilder().internField(
className,
fieldName,
type,
field.getModifiers(),
null,
new HashSet<>(),
new HashSet<>()
);
FieldReference fieldRef = manipulator.getDexBuilder().internFieldReference(builderField);

isStatic = Modifier.isStatic(field.getModifiers());
Expand Down
6 changes: 3 additions & 3 deletions smalivm/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ buildscript {
}

dependencies {
api group: 'org.smali', name: 'dexlib2', version: '2.3.4'
api group: 'org.smali', name: 'smali', version: '2.3.4'
api group: 'org.smali', name: 'baksmali', version: '2.3.4'
api group: 'org.smali', name: 'dexlib2', version: '2.4.0'
api group: 'org.smali', name: 'smali', version: '2.4.0'
api group: 'org.smali', name: 'baksmali', version: '2.4.0'
implementation group: 'uk.com.robust-it', name: 'cloning', version: '1.9.12'
implementation group: 'commons-beanutils', name: 'commons-beanutils', version: '1.9.4'
implementation depends.commons_lang
Expand Down

0 comments on commit 6380b1e

Please sign in to comment.