Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parsing smali methode #867

Open
Koubraa opened this issue Apr 10, 2023 · 1 comment
Open

Parsing smali methode #867

Koubraa opened this issue Apr 10, 2023 · 1 comment

Comments

@Koubraa
Copy link

Koubraa commented Apr 10, 2023

.method public onBackPressed()V
.registers 4

.line 187
iget-object v0, p0, Landroidx/activity/OnBackPressedDispatcher;->mOnBackPressedCallbacks:Ljava/util/ArrayDeque;

.line 188
invoke-virtual {v0}, Ljava/util/ArrayDeque;->descendingIterator()Ljava/util/Iterator;

move-result-object v0

.line 189
:cond_6
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

move-result v1

if-eqz v1, :cond_1c

.line 190
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

move-result-object v1

check-cast v1, Landroidx/activity/OnBackPressedCallback;

.line 191
invoke-virtual {v1}, Landroidx/activity/OnBackPressedCallback;->isEnabled()Z

move-result v2

if-eqz v2, :cond_6

.line 192
invoke-virtual {v1}, Landroidx/activity/OnBackPressedCallback;->handleOnBackPressed()V

return-void

.line 196
:cond_1c
iget-object v0, p0, Landroidx/activity/OnBackPressedDispatcher;->mFallbackOnBackPressed:Ljava/lang/Runnable;

if-eqz v0, :cond_23

.line 197
invoke-interface {v0}, Ljava/lang/Runnable;->run()V

:cond_23
return-void

.end method

Can the branch :cond_6 come before an if statment?

@j4k0xb
Copy link

j4k0xb commented Aug 12, 2023

thats not a normal if-statement but part of a loop

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants