I'm having a hard time with a few things concerning smali / baksmali. I'm in the process of making my own rom, it's tough starting out since I have no friggin clue as to what im doing. I've learned a ton of information and I feel like i got the basics. Apollo so graciously let me use his Unitology rom as a base, but for learning sake I decided to start off from the stock rom and work my way up using unitology as a guide. Ive run into a problem and I cant seem to solve it. Here are the steps as to how I get my problem:
1) Took a fresh copy of stock b08c rom into dsixda kitchen.
2) Setup my working folder in kitchen
3) Went to system/framework and copied the android.policy.jar file and pasted a copy into my directory to work with smali / baksmali
4) Now I enter the following command:
and this is what I get:
Then it sends me back to my command prompt. Now the reason why I brought up Unitology rom is because I followed the same steps with that rom as I did with the stock rom, but without the error on the android.policy.jar file when it was being disassembled. I'm wondering if the two files are different, but I don't really think so...
Now granted I am only trying to do this for the extended power menu with reboot, recovery and download options and it probably really isnt needed but it's a nice feature to have and I really want to incorporate it into my rom. Also this is probably a really good learning experience. Im stuck though so any advice would be welcomed
Edit: Just remembered I forgot to mention that smali / backsmali is the latest version, latest JDK and Java. Im also running windows vista home premium 32bit if the OS really matters.
1) Took a fresh copy of stock b08c rom into dsixda kitchen.
2) Setup my working folder in kitchen
3) Went to system/framework and copied the android.policy.jar file and pasted a copy into my directory to work with smali / baksmali
4) Now I enter the following command:
Code:
java -jar baksmali.jar -x android.policy.jar -o classout
and this is what I get:
Code:
UNEXPECTED TOP-LEVEL EXCEPTION:
org.jf.dexlib.DexFile$NoClassesDexException: zip file android.policy.jar does not contain a classes.dex file
at org.jf.dexlib.DexFile.<init><DexFile.java:298>
at org.jf.baksmali.main.main(main.java:269)
Then it sends me back to my command prompt. Now the reason why I brought up Unitology rom is because I followed the same steps with that rom as I did with the stock rom, but without the error on the android.policy.jar file when it was being disassembled. I'm wondering if the two files are different, but I don't really think so...
Now granted I am only trying to do this for the extended power menu with reboot, recovery and download options and it probably really isnt needed but it's a nice feature to have and I really want to incorporate it into my rom. Also this is probably a really good learning experience. Im stuck though so any advice would be welcomed
Edit: Just remembered I forgot to mention that smali / backsmali is the latest version, latest JDK and Java. Im also running windows vista home premium 32bit if the OS really matters.