What does the Java – .restart smali keyword do?

What does the Java – .restart smali keyword do? … here is a solution to the problem.

What does the Java – .restart smali keyword do?

What does this line in smali do? I’ve been googling something for .restart but haven’t been able to find anything about it.

.restart local v3       #i:I

Solution

This is equivalent to the “DBG_RESTART_LOCAL” opcode in the debug_info entry in the dex file.

from http://s.android.com/tech/dalvik/dex-format.html :

re-introduces a local variable at the current address. The name and
type are the same as the last local that was live in the specified
register.

Related Problems and Solutions