mirror of
https://github.com/revanced/smali.git
synced 2025-05-29 12:20:11 +02:00
Fix the registers in the dummy method calls used to replace null pointer method invokes/field accesses
git-svn-id: https://smali.googlecode.com/svn/trunk@438 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
This commit is contained in:
parent
631326836e
commit
285dfd013a
@ -40,6 +40,6 @@ public class Instruction22csnMethodItem extends InstructionFormatMethodItem<Inst
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected void setAttributes(StringTemplate template) {
|
protected void setAttributes(StringTemplate template) {
|
||||||
template.setAttribute("Register", instruction.RegisterNum);
|
template.setAttribute("Register", formatRegister(instruction.RegisterNum));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -40,6 +40,6 @@ public class Instruction35msnMethodItem extends InstructionFormatMethodItem<Inst
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected void setAttributes(StringTemplate template) {
|
protected void setAttributes(StringTemplate template) {
|
||||||
template.setAttribute("Register", instruction.RegisterNum);
|
template.setAttribute("Register", formatRegister(instruction.RegisterNum));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -200,8 +200,8 @@ Format22csf(Opcode, RegisterA, RegisterB, Reference) ::=
|
|||||||
|
|
||||||
Format22csn(Opcode, Register) ::=
|
Format22csn(Opcode, Register) ::=
|
||||||
<<
|
<<
|
||||||
#Couldn't determine field access while deodexing, replaced with generic method call
|
#Couldn't determine the field while deodexing, replaced with generic method call
|
||||||
invoke-virtual <Register>, Ljava/lang/Object;->hashCode()I
|
invoke-virtual-range {<Register> .. <Register>}, Ljava/lang/Object;->hashCode()I
|
||||||
>>
|
>>
|
||||||
|
|
||||||
Format22s(Opcode, RegisterA, RegisterB, Literal) ::=
|
Format22s(Opcode, RegisterA, RegisterB, Literal) ::=
|
||||||
@ -277,7 +277,7 @@ Format35msf(Opcode, Registers, Reference) ::=
|
|||||||
Format35msn(Opcode, Register) ::=
|
Format35msn(Opcode, Register) ::=
|
||||||
<<
|
<<
|
||||||
#Couldn't determine method while deodexing, replaced with generic method call
|
#Couldn't determine method while deodexing, replaced with generic method call
|
||||||
invoke-virtual <Register>, Ljava/lang/Object;->hashCode()I
|
invoke-virtual-range {<Register> .. <Register>}, Ljava/lang/Object;->hashCode()I
|
||||||
>>
|
>>
|
||||||
|
|
||||||
Format3rc(Opcode, StartRegister, LastRegister, Reference) ::=
|
Format3rc(Opcode, StartRegister, LastRegister, Reference) ::=
|
||||||
|
Loading…
x
Reference in New Issue
Block a user