zhangwenan / smali

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

issue when smali re-comiling #42

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What seems to be the problem?

blahblah~~~~~/~~~~~~~.smali[0,0] null came out when I was trying to recompile 
*.smali files

like below

zero@Ubuntu:~/romcooking/framework$ ./smali output/ -o output/classes.dex
output/com/android/server/AttributeCache$Package.smali[0,0] null
output/com/android/server/IntentResolver.smali[0,0] null
output/com/android/server/RandomBlock.smali[0,0] null
output/com/android/server/PackageManagerService$PackageSettingBase.smali[0,0] 
null

baksmali works perpectly, but smali doesn't.

What is the exact smali/baksmali command that you ran?
./baksmali -x services.odex -o output
./smali output/ -o output/classes.dex

What version of smali/baksmali are you using? What rom are you working
from?
1.2.4 both of them and I'm working on GalaxyS-I9000-JM2 firmware.

What is the airspeed velocity of an unladen swallow?
It depends on whether you are talking about an African or European swallow.

The airspeed velocity of an unladen swallow is roughly 11 meters per second, or 
24 miles per hour*, beating its wings 7-9 times per second (rather than 43). 
But please note that a 5 ounce bird cannot carry a one pound coconut. 

Please provide any additional information below: error messages, symptoms,
etc.

Original issue reported on code.google.com by dkcld...@gmail.com on 28 Aug 2010 at 6:35

Attachments:

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Well.. I've succeeded to deodex files in the end, sorry I think it was me who 
made a mistake. After removing and reinstalling java from 1.5 to 1.6, it works 
like a charm Thank you!

Original comment by dkcld...@gmail.com on 29 Aug 2010 at 12:51

GoogleCodeExporter commented 9 years ago
Thanks for the info! It should work with java 1.5 as well - I'll take a look 
into why it doesn't.

Original comment by JesusFr...@gmail.com on 29 Aug 2010 at 2:00

GoogleCodeExporter commented 9 years ago
I guess it was because my os system was messed up at the moment..

Original comment by dkcld...@gmail.com on 29 Aug 2010 at 2:33

GoogleCodeExporter commented 9 years ago
Well, if it works on 1.6, but not on 1.5, it seems to imply that smali/baksmali 
doesn't work correctly on 1.5. If that's the case, I want to fix it :)

Original comment by JesusFr...@gmail.com on 29 Aug 2010 at 3:01

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Thanks for your effort : )

Original comment by dkcld...@gmail.com on 29 Aug 2010 at 3:51

GoogleCodeExporter commented 9 years ago
ah, I've got another question..

What if I deodex like this?

./de-odexer/baksmali -d framework -c 
:com.samsung.device.jar:seccamera.jar:sechardware.jar:twframework:libmobileap.ja
r:javax.obex.jar:com.google.android.maps.jar -x Contacts.odex 

All basic + additional bootclasspaths at once.. haha..

I'm very lazy so I don't wanna be botherd.

Does that make any problem?

Original comment by dkcld...@gmail.com on 29 Aug 2010 at 4:20

GoogleCodeExporter commented 9 years ago
There is a big problem.

Steps:
java -jar baksmali-1.2.2.jar -x Phone.odex

Result:
Error occured while loading boot class path files. Aborting.
org.jf.dexlib.Code.Analysis.ClassPath$ClassNotFoundException: Could not find 
superclass Loms/app/FrameTabActivity;
        at org.jf.dexlib.Code.Analysis.ClassPath$ClassDef.loadSuperclass(ClassPath.java:784)
        at org.jf.dexlib.Code.Analysis.ClassPath$ClassDef.<init>(ClassPath.java:668)
        at org.jf.dexlib.Code.Analysis.ClassPath.loadClassDef(ClassPath.java:280)
        at org.jf.dexlib.Code.Analysis.ClassPath.initClassPath(ClassPath.java:163)
        at org.jf.dexlib.Code.Analysis.ClassPath.InitializeClassPathFromOdex(ClassPath.java:110)
        at org.jf.baksmali.baksmali.disassembleDexFile(baksmali.java:93)
        at org.jf.baksmali.main.main(main.java:277)
Error while loading class Lcom/android/phone/DialtactsActivity; from file 
Phone.odex
Error while loading ClassPath class Lcom/android/phone/DialtactsActivity;

The Phone.odex is gotten from the ophone system with 2.1 version.
I have put total things from /system/framework/ into the current directory, and 
start to decode the file.

Original comment by lennyap...@gmail.com on 9 Oct 2010 at 4:34

Attachments:

GoogleCodeExporter commented 9 years ago
Please submit a separate issue for this

Original comment by JesusFr...@gmail.com on 9 Oct 2010 at 2:47

GoogleCodeExporter commented 9 years ago
I finally got around to looking into this,but I wasn't able to reproduce the 
issue with java 1.5

Original comment by JesusFr...@gmail.com on 31 Oct 2010 at 8:18