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

Try to run examples/BracketedMemberNames #876

Open
realyukii opened this issue Sep 1, 2023 · 1 comment
Open

Try to run examples/BracketedMemberNames #876

realyukii opened this issue Sep 1, 2023 · 1 comment

Comments

@realyukii
Copy link

I am new to Smali, followed your "hello world" example, which was a success, but I am facing problems while running BracketedMemberNames

smali a -o classes BracketedMemberNames.smali
zip test.zip classes.dex
adb push test.zip /storage/emulated/0/Download
adb shell dalvikvm -cp /storage/emulated/0/Download/test.zip BracketedMemberNames

error log:

Unable to locate class 'BracketedMemberNames'
java.lang.ClassNotFoundException: BracketedMemberNames
Exception in thread "main" java.lang.ClassNotFoundException: BracketedMemberNames
@realyukii
Copy link
Author

It seems < and > brackets cause syntax errors, so I remove them, but in the smali file there's a comment: # this will cause a verification error But when I execute the .dex there's no error as expected in the comment section.

$ adb shell dalvikvm -cp /storage/emulated/0/Download/test.zip BracketedMemberNames
Hello World!

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

1 participant