Skip to content

Commit

Permalink
Return R0 address when not JNI call
Browse files Browse the repository at this point in the history
  • Loading branch information
AeonLucid committed Aug 23, 2021
1 parent 87c32ff commit f4517a5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions androidemu/emulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,8 @@ def call_native(self, addr, *argv):
return result

return result.value
else:
return self.mu.reg_read(UC_ARM_REG_R0)
finally:
# Clear locals if jni.
if is_jni:
Expand Down

0 comments on commit f4517a5

Please sign in to comment.