Java Code Examples for org.jf.dexlib2.dexbacked.DexBackedDexFile#getFieldIdItemOffset()
The following examples show how to use
org.jf.dexlib2.dexbacked.DexBackedDexFile#getFieldIdItemOffset() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: FieldIdItem.java From ZjDroid with Apache License 2.0 | 5 votes |
@Nonnull public static String asString(@Nonnull DexBackedDexFile dexFile, int fieldIndex) { int fieldOffset = dexFile.getFieldIdItemOffset(fieldIndex); int classIndex = dexFile.readUshort(fieldOffset + CLASS_OFFSET); String classType = dexFile.getType(classIndex); int typeIndex = dexFile.readUshort(fieldOffset + TYPE_OFFSET); String fieldType = dexFile.getType(typeIndex); int nameIndex = dexFile.readSmallUint(fieldOffset + NAME_OFFSET); String fieldName = dexFile.getString(nameIndex); return String.format("%s->%s:%s", classType, fieldName, fieldType); }
Example 2
Source File: FieldIdItem.java From zjdroid with Apache License 2.0 | 5 votes |
@Nonnull public static String asString(@Nonnull DexBackedDexFile dexFile, int fieldIndex) { int fieldOffset = dexFile.getFieldIdItemOffset(fieldIndex); int classIndex = dexFile.readUshort(fieldOffset + CLASS_OFFSET); String classType = dexFile.getType(classIndex); int typeIndex = dexFile.readUshort(fieldOffset + TYPE_OFFSET); String fieldType = dexFile.getType(typeIndex); int nameIndex = dexFile.readSmallUint(fieldOffset + NAME_OFFSET); String fieldName = dexFile.getString(nameIndex); return String.format("%s->%s:%s", classType, fieldName, fieldType); }
Example 3
Source File: FieldIdItem.java From HeyGirl with Apache License 2.0 | 5 votes |
@Nonnull public static String asString(@Nonnull DexBackedDexFile dexFile, int fieldIndex) { int fieldOffset = dexFile.getFieldIdItemOffset(fieldIndex); int classIndex = dexFile.readUshort(fieldOffset + CLASS_OFFSET); String classType = dexFile.getType(classIndex); int typeIndex = dexFile.readUshort(fieldOffset + TYPE_OFFSET); String fieldType = dexFile.getType(typeIndex); int nameIndex = dexFile.readSmallUint(fieldOffset + NAME_OFFSET); String fieldName = dexFile.getString(nameIndex); return String.format("%s->%s:%s", classType, fieldName, fieldType); }
Example 4
Source File: FieldIdItem.java From ZjDroid with Apache License 2.0 | 5 votes |
@Nonnull public static String asString(@Nonnull DexBackedDexFile dexFile, int fieldIndex) { int fieldOffset = dexFile.getFieldIdItemOffset(fieldIndex); int classIndex = dexFile.readUshort(fieldOffset + CLASS_OFFSET); String classType = dexFile.getType(classIndex); int typeIndex = dexFile.readUshort(fieldOffset + TYPE_OFFSET); String fieldType = dexFile.getType(typeIndex); int nameIndex = dexFile.readSmallUint(fieldOffset + NAME_OFFSET); String fieldName = dexFile.getString(nameIndex); return String.format("%s->%s:%s", classType, fieldName, fieldType); }
Example 5
Source File: DexBackedFieldReference.java From ZjDroid with Apache License 2.0 | 4 votes |
public DexBackedFieldReference(@Nonnull DexBackedDexFile dexFile, int fieldIndex) { this.dexFile = dexFile; this.fieldIdItemOffset = dexFile.getFieldIdItemOffset(fieldIndex); }
Example 6
Source File: DexBackedFieldReference.java From zjdroid with Apache License 2.0 | 4 votes |
public DexBackedFieldReference(@Nonnull DexBackedDexFile dexFile, int fieldIndex) { this.dexFile = dexFile; this.fieldIdItemOffset = dexFile.getFieldIdItemOffset(fieldIndex); }
Example 7
Source File: DexBackedFieldReference.java From HeyGirl with Apache License 2.0 | 4 votes |
public DexBackedFieldReference(@Nonnull DexBackedDexFile dexFile, int fieldIndex) { this.dexFile = dexFile; this.fieldIdItemOffset = dexFile.getFieldIdItemOffset(fieldIndex); }
Example 8
Source File: DexBackedFieldReference.java From ZjDroid with Apache License 2.0 | 4 votes |
public DexBackedFieldReference(@Nonnull DexBackedDexFile dexFile, int fieldIndex) { this.dexFile = dexFile; this.fieldIdItemOffset = dexFile.getFieldIdItemOffset(fieldIndex); }