vaginessa / smali

Automatically exported from code.google.com/p/smali
0 stars 0 forks source link

No MIME type for *.smali #135

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
My apologies for this report. I can't find a Smali mailing list, IRC appears to 
have ghosts that wander in/out, and The Blog appears to want stuff in Bug 
Reports 
(http://blog.jesusfreke.com/2011/08/reporting-issues-in-smalibaksmali.html)

I'm having difficulties setting breakpoints in *.smali files when using 
NetBeans. (Smali files were created with APKTOOL, 
http://code.google.com/p/android-apktool/ and 
http://code.google.com/p/android-apktool/wiki/SmaliDebugging).

What MIME type should be associated with *.smali files to fascilitate debugging 
under NetBeans? Usual suspects such as java and text/x-java result in parse 
errors.

Original issue reported on code.google.com by noloa...@gmail.com on 3 Aug 2012 at 4:40

GoogleCodeExporter commented 9 years ago
Alternately, is there a NetBeans plugin that I have overlooked and should be 
using here? NetBeans is 7.2 (for completeness).

Original comment by noloa...@gmail.com on 3 Aug 2012 at 4:42

GoogleCodeExporter commented 9 years ago
Netbeans does not have any support for smali files, that I am aware of. I 
believe previous versions allowed you to load smali files, and debug them as if 
they were java files. But I've heard that doesn't work with newer versions of 
netbeans.

Original comment by jesusfreke@jesusfreke.com on 3 Aug 2012 at 5:37

GoogleCodeExporter commented 9 years ago
> I believe previous versions allowed you to load smali files,
> and debug them as if they were java files.

Would you happen to know what verson(s) of NetBeans supports Smali debugging?

Would you happen to know of any projects/initiatives to get Smali support into 
NetBeans or other editors (such as plugins)?

Smali is not helpful to me if tools (such as IDEs) can't consume it and I can't 
debug it. Sorry to bother you with the request.

Original comment by noloa...@gmail.com on 3 Aug 2012 at 6:03

GoogleCodeExporter commented 9 years ago
I don't. I know there's that youtube video that brut.all made that demonstrates 
the capability. You might see if you can identify the version in the video. Or 
try a version from around the time the video was made.

I'm not aware of any such project.

What is it that you are wanting to use smali for?

Original comment by jesusfreke@jesusfreke.com on 3 Aug 2012 at 6:56

GoogleCodeExporter commented 9 years ago
> at is it that you are wanting to use smali for?
Blackbox testing, such as live analysis. Its hard to perform a live analysis 
when the debugger can't set breakpoints :( I refuse to do the 'printf' thing.

Original comment by noloa...@gmail.com on 3 Aug 2012 at 10:42

GoogleCodeExporter commented 9 years ago
You might try jdb

Original comment by jesusfreke@jesusfreke.com on 3 Aug 2012 at 10:45

GoogleCodeExporter commented 9 years ago
OK, thanks.

From 10,000 feet, what is the solution here? It seems to me there are at least 
three pieces in motion - Smali code, IDEs, and Debuggers. Would an ISO 
recognized MIME type (perhaps text/x-smali) help? Perhaps a NetBeans plugin 
that knows how to handle Smali (how does tat help Eclipse, et al)?

Original comment by noloa...@gmail.com on 3 Aug 2012 at 11:08

GoogleCodeExporter commented 9 years ago
A mimetype is pretty much irrelevant. The current debugging infrastructure 
(jdwp) should be sufficient, in combination with bytecode instrumentation of 
the dex file, like what apktool does.

The missing piece would be an IDE plugin, for whatever IDE you want to use. 
I've briefly experimented with a plugin for IDEA in the past, but haven't had 
the motivation to actually get anything going there.

Original comment by jesusfreke@jesusfreke.com on 4 Aug 2012 at 12:47

GoogleCodeExporter commented 9 years ago
I used Apk-tool 1.4.1 and NetBeans 6.8, it works for me:
http://d-kovalenko.blogspot.com/2012/08/debugging-smali-code-with-apk-tool-and.h
tml

Original comment by Dm.O.Kov...@gmail.com on 27 Aug 2012 at 6:45

GoogleCodeExporter commented 9 years ago
Hi Dima,

Can you describe (1) your environment (Linux, x64, Mac OS X Lion, etc), and (2) 
your device (make, model, Android version, including jail break status).

I have endured lots of pain and misery from Linux/Windows/Mac OS X and NetBeans 
while attempting to re-engineer a live app and my own "crack me." So I have got 
to be missing something obvious...

Jeff

Original comment by noloa...@gmail.com on 27 Aug 2012 at 7:03