notishell / smali

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

I9000 - 2.3.6 - baksmali-2.0b4.jar - unable to process system apps #171

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What seems to be the problem?
I9000 - 2.3.6
baksmali-2.0b4.jar - unable to process system app
baksmali-1.4.2.jar - works fine

What is the exact smali/baksmali command that you ran?
java -Xmx512m -jar baksmali-2.0b4.jar -a 10 -x Camera.odex -d framework -o 
Camera

What version of smali/baksmali are you using? What rom are you working
from?
baksmali-2.0b4 I9000 - 2.3.6 - JWB - framework and app files here: 
https://dl.dropboxusercontent.com/u/1970904/app.7z

Please provide any additional information below: error messages, symptoms,
etc.
C:\Users\xxx\Desktop\xxx\JWB_stock\app>java -Xmx512m -jar baksmali-2.0b4.jar -a 
10 -x Camera.odex -d origi_frame -o Camera

Error occured while disassembling class 
Lcom.sec.android.app.camera.ImageGetter; - skipping class
org.jf.util.ExceptionWithContext: No instruction at offset 2634238
        at org.jf.dexlib2.util.InstructionOffsetMap.getInstructionIndexAtCodeOffset(InstructionOffsetMap.java:62)
        at org.jf.dexlib2.util.InstructionOffsetMap.getInstructionIndexAtCodeOffset(InstructionOffsetMap.java:55)
        at org.jf.baksmali.Adaptors.MethodDefinition.findSwitchPayload(MethodDefinition.java:189)
        at org.jf.baksmali.Adaptors.MethodDefinition.<init>(MethodDefinition.java:101)
        at org.jf.baksmali.Adaptors.ClassDefinition.writeDirectMethods(ClassDefinition.java:268)
        at org.jf.baksmali.Adaptors.ClassDefinition.writeTo(ClassDefinition.java:104)
        at org.jf.baksmali.baksmali.disassembleClass(baksmali.java:174)
        at org.jf.baksmali.baksmali.access$000(baksmali.java:46)
        at org.jf.baksmali.baksmali$2.call(baksmali.java:100)
        at org.jf.baksmali.baksmali$2.call(baksmali.java:98)
        at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
        at java.util.concurrent.FutureTask.run(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
Error while processing method 
Lcom/sec/android/app/camera/ImageGetter;-><init>(Landroid/content/ContentResolve
r;)V

Error occured while disassembling class 
Lcom.sec.android.app.camera.gallery.BaseImageList; - skipping class
org.jf.dexlib2.analysis.AnalysisException: Incorrect field type 
"Lcom/sec/android/app/camera/CamcorderQualityMenu$OnCamcorderQualityChanged
Listener;" for sget-volatile
        at org.jf.dexlib2.analysis.OdexedFieldInstructionMapper.getAndCheckDeodexedOpcodeForOdexedOpcode(OdexedFieldInstructionMapper.java:233)
        at org.jf.dexlib2.analysis.MethodAnalyzer.analyzePutGetVolatile(MethodAnalyzer.java:1634)
        at org.jf.dexlib2.analysis.MethodAnalyzer.analyze(MethodAnalyzer.java:255)
        at org.jf.dexlib2.analysis.MethodAnalyzer.<init>(MethodAnalyzer.java:134)
        at org.jf.baksmali.Adaptors.MethodDefinition.addAnalyzedInstructionMethodItems(MethodDefinition.java:355)
        at org.jf.baksmali.Adaptors.MethodDefinition.getMethodItems(MethodDefinition.java:270)
        at org.jf.baksmali.Adaptors.MethodDefinition.writeTo(MethodDefinition.java:178)
        at org.jf.baksmali.Adaptors.ClassDefinition.writeDirectMethods(ClassDefinition.java:269)
        at org.jf.baksmali.Adaptors.ClassDefinition.writeTo(ClassDefinition.java:104)
        at org.jf.baksmali.baksmali.disassembleClass(baksmali.java:174)
        at org.jf.baksmali.baksmali.access$000(baksmali.java:46)
        at org.jf.baksmali.baksmali$2.call(baksmali.java:100)
        at org.jf.baksmali.baksmali$2.call(baksmali.java:98)
        at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
        at java.util.concurrent.FutureTask.run(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)

C:\Users\xxx\Desktop\xxx\JWB_stock\app>

Original issue reported on code.google.com by byczy...@gmail.com on 2 Jun 2013 at 9:28

GoogleCodeExporter commented 9 years ago
'works' with java -Xmx512m -jar baksmali-2.0b4.jar -x Camera.odex -d 
origi_frame -o Camera

so w/o -a 10

but the app made (deodexed) this way is not working

same as any attempt to odex back with dexopt-wrapper fails with

--- END 'Camera.apk' --- status=0xff00, process failed

while v-1.4.2 works just fine ... what is wrong ?!

Original comment by byczy...@gmail.com on 4 Jun 2013 at 7:06

GoogleCodeExporter commented 9 years ago
I'm pretty sure this is already fixed (but not in a released version yet). I'll 
ping the bug again when 2.0b5 is out.

Alternately, feel free to compile from the latest source and try that.

Original comment by jesusfreke@jesusfreke.com on 8 Jun 2013 at 6:09

GoogleCodeExporter commented 9 years ago
I think this should be fixed in 2.0b5. Please try it out and let me know.

Original comment by jesusfreke@jesusfreke.com on 16 Jun 2013 at 5:34

GoogleCodeExporter commented 9 years ago
sorry was busy. yes, baksmali-2.0b5 decompiles now flawlesly

at least i see no errors with Camera.apk ;)

Original comment by byczy...@gmail.com on 19 Jun 2013 at 12:03

GoogleCodeExporter commented 9 years ago
Great, thanks!

Original comment by bgruv@google.com on 19 Jun 2013 at 12:20