Thread: java cracking
View Single Post
  #62  
Old 02-08-2019, 02:33
CodeCracker CodeCracker is offline
Family
 
Join Date: Jun 2011
Posts: 327
Rept. Given: 19
Rept. Rcvd 268 Times in 83 Posts
Thanks Given: 13
Thanks Rcvd at 1,119 Times in 246 Posts
CodeCracker Reputation: 200-299 CodeCracker Reputation: 200-299 CodeCracker Reputation: 200-299
This is more like Android reversing...

Android boolean examples:
A boolean method changed to return false:
1200 const/4 v0 0
0F00 return v0

A boolean method changed to return true:
1210 const/4 v0 1
0F00 return v0

In your example niculaita:
move-result v1
; this set v1 with 1/0

ifnez v1, : cond1
; check v1

https://www.tutorialspoint.com/java/java_string_compareto.htm
https://www.javatpoint.com/java-string-compareto
Java String compareTo() Method returns 0 if strings are equal!
Reply With Quote
The Following 2 Users Say Thank You to CodeCracker For This Useful Post:
Indigo (07-19-2019), nimaarek (02-09-2019)