Thread: java cracking
View Single Post
  #62  
Old 02-08-2019, 02:33
CodeCracker CodeCracker is online now
VIP
 
Join Date: Jun 2011
Posts: 454
Rept. Given: 27
Rept. Rcvd 398 Times in 129 Posts
Thanks Given: 21
Thanks Rcvd at 1,823 Times in 349 Posts
CodeCracker Reputation: 300-399 CodeCracker Reputation: 300-399 CodeCracker Reputation: 300-399 CodeCracker Reputation: 300-399
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)