JesusFreke/smali

Try to run examples/BracketedMemberNames

RealYukiSan opened this issue · 1 comments

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

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!