Java Code Examples for org.jf.dexlib2.Opcode#isOdexedInstanceVolatile()

The following examples show how to use org.jf.dexlib2.Opcode#isOdexedInstanceVolatile() . 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: OdexedFieldInstructionMapper.java    From ZjDroid with Apache License 2.0 5 votes vote down vote up
private static int getOpcodeSubtype(@Nonnull Opcode opcode) {
    if (opcode.isOdexedInstanceQuick()) {
        return 0;
    } else if (opcode.isOdexedInstanceVolatile()) {
        return 1;
    } else if (opcode.isOdexedStaticVolatile()) {
        return 2;
    }
    throw new RuntimeException(String.format("Not an odexed field access opcode: %s", opcode.name));
}
 
Example 2
Source File: InstructionMethodItem.java    From ZjDroid with Apache License 2.0 5 votes vote down vote up
private boolean isAllowedOdex(@Nonnull Opcode opcode) {
    baksmaliOptions options = methodDef.classDef.options;
    if (options.allowOdex) {
        return true;
    }

    if (methodDef.classDef.options.apiLevel >= 14) {
        return false;
    }

    return opcode.isOdexedInstanceVolatile() || opcode.isOdexedStaticVolatile() ||
        opcode == Opcode.THROW_VERIFICATION_ERROR;
}
 
Example 3
Source File: OdexedFieldInstructionMapper.java    From zjdroid with Apache License 2.0 5 votes vote down vote up
private static int getOpcodeSubtype(@Nonnull Opcode opcode) {
    if (opcode.isOdexedInstanceQuick()) {
        return 0;
    } else if (opcode.isOdexedInstanceVolatile()) {
        return 1;
    } else if (opcode.isOdexedStaticVolatile()) {
        return 2;
    }
    throw new RuntimeException(String.format("Not an odexed field access opcode: %s", opcode.name));
}
 
Example 4
Source File: InstructionMethodItem.java    From zjdroid with Apache License 2.0 5 votes vote down vote up
private boolean isAllowedOdex(@Nonnull Opcode opcode) {
    baksmaliOptions options = methodDef.classDef.options;
    if (options.allowOdex) {
        return true;
    }

    if (methodDef.classDef.options.apiLevel >= 14) {
        return false;
    }

    return opcode.isOdexedInstanceVolatile() || opcode.isOdexedStaticVolatile() ||
        opcode == Opcode.THROW_VERIFICATION_ERROR;
}
 
Example 5
Source File: OdexedFieldInstructionMapper.java    From HeyGirl with Apache License 2.0 5 votes vote down vote up
private static int getOpcodeSubtype(@Nonnull Opcode opcode) {
    if (opcode.isOdexedInstanceQuick()) {
        return 0;
    } else if (opcode.isOdexedInstanceVolatile()) {
        return 1;
    } else if (opcode.isOdexedStaticVolatile()) {
        return 2;
    }
    throw new RuntimeException(String.format("Not an odexed field access opcode: %s", opcode.name));
}
 
Example 6
Source File: InstructionMethodItem.java    From HeyGirl with Apache License 2.0 5 votes vote down vote up
private boolean isAllowedOdex(@Nonnull Opcode opcode) {
    baksmaliOptions options = methodDef.classDef.options;
    if (options.allowOdex) {
        return true;
    }

    if (methodDef.classDef.options.apiLevel >= 14) {
        return false;
    }

    return opcode.isOdexedInstanceVolatile() || opcode.isOdexedStaticVolatile() ||
        opcode == Opcode.THROW_VERIFICATION_ERROR;
}
 
Example 7
Source File: OdexedFieldInstructionMapper.java    From ZjDroid with Apache License 2.0 5 votes vote down vote up
private static int getOpcodeSubtype(@Nonnull Opcode opcode) {
    if (opcode.isOdexedInstanceQuick()) {
        return 0;
    } else if (opcode.isOdexedInstanceVolatile()) {
        return 1;
    } else if (opcode.isOdexedStaticVolatile()) {
        return 2;
    }
    throw new RuntimeException(String.format("Not an odexed field access opcode: %s", opcode.name));
}
 
Example 8
Source File: InstructionMethodItem.java    From ZjDroid with Apache License 2.0 5 votes vote down vote up
private boolean isAllowedOdex(@Nonnull Opcode opcode) {
    baksmaliOptions options = methodDef.classDef.options;
    if (options.allowOdex) {
        return true;
    }

    if (methodDef.classDef.options.apiLevel >= 14) {
        return false;
    }

    return opcode.isOdexedInstanceVolatile() || opcode.isOdexedStaticVolatile() ||
        opcode == Opcode.THROW_VERIFICATION_ERROR;
}