This isn't a huge deal but it's a pain to change directories back and forth in the command prompt. I've copied the smali/baksmali to the tools folder in the SDK directory but whenever I try to run a command like this:
java -jar smali.jar -o xxx/ classes.dex
I get "java not a recognized external or internal command, operable program or batch file"
I can run either one if I do it from the Java/bin folder. Any ideas?
Try reading up on the PATH environment variable some more. I could try to explain it to you, but honestly, I couldn't do any better than google could.
I'll Google PATH but it seems to have worked. I ran smali and baksmali from the tools directory and it worked fine. Is it possible it performed the operations incorrectly? I am having trouble with the transparent notification backround. I edited the services.jar to allow transparency but it's not taking.
It works, but it's totally the wrong way to do it. You shouldn't be copying java.exe manually
Ok, now I think I really got it. It seems I deleted the c:\windows\system32 from the PATH. I added it back, removed Java from the tools folder and ran java -jar baksmali.jar services.jar and it decompiled it fine. Thanks for the help.
XDA Developers was founded by developers, for developers. It is now a valuable resource for people who want to make the most of their mobile devices, from customizing the look and feel to adding new functionality. Are you a developer?