Rangderaj / smali

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

Error while disassembling class when using -a #170

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What seems to be the problem?
Disassembling system/app odex file on Android 2.3.6. When don't use -a 10, it 
works, but later use with apktool and running the app does not work with api 
level related errors.
When I disassemble with -a 10 (which is Gingerbread 
http://source.android.com/source/build-numbers.html) it throws many errors (see 
at the end)

What is the exact smali/baksmali command that you ran?
>baksmali -a 10 -d framework -x FmRadio.odex

What version of smali/baksmali are you using? What rom are you working
from?
baksmali 2.0b4, Samsung stock 2.3.6 ROM

What is the airspeed velocity of an unladen swallow?
What do you mean, an African or European Swallow?

Please provide any additional information below: error messages, symptoms,
etc.
/framework is complete /system/framework folder.

Error occured while disassembling class 
Lcom.samsung.app.fmradio.AllChannelsActivity$11; - skipping class
org.jf.util.ExceptionWithContext: 1536
    at org.jf.util.ExceptionWithContext.withContext(ExceptionWithContext.java:54)
    at org.jf.baksmali.Adaptors.MethodDefinition.<init>(MethodDefinition.java:112)
    at 
... (see attachment with complete log)

Original issue reported on code.google.com by shott...@gmail.com on 30 May 2013 at 7:28

Attachments:

GoogleCodeExporter commented 9 years ago
When I just deodex without -a, I get

05-30 21:38:57.261 E/AndroidRuntime(15224): java.lang.VerifyError: 
com.samsung.app.modradio.FmRadioPlaybackActivity$26
05-30 21:38:57.261 E/AndroidRuntime(15224):     at 
com.samsung.app.modradio.FmRadioPlaybackActivity.<init>(FmRadioPlaybackActivity.
java:1747)

(if not signing or something is the cause of that)

Original comment by shott...@gmail.com on 30 May 2013 at 7:49

GoogleCodeExporter commented 9 years ago
Please provide the logcat logs from when the app is installed, in the case of 
not using -a. There should be some dalvikvm messages starting with "VFY:" - 
grab the logcat around that area.

Also, do you have a link where I could download the ROM you are working from?

Original comment by bgruv@google.com on 30 May 2013 at 9:11

GoogleCodeExporter commented 9 years ago
Here is the logcat after swapping system/app/FmRadio.apk, starting with
I/PackageManager(556): /system/app/FmRadio.apk changed

I baksmalid/smalid the FmRadio.odex to classes.dex without -a and pushed it 
into the FmRadio.apk with 7zip.
I tried also without zipalign and with zipalign and signing, produces same 
result, app not visible any more in app drawer and same stuff in the log.

Here http://www35.zippyshare.com/v/45297214/file.html is a download of my 
current ROM, this http://www.droidevelopers.com/downloads.php?do=file&id=1483 
is a repacked 3 file version (1 update older) if that's better, I could also 
upload /system/framework and FmRadio.apk if you need it.

Original comment by shott...@gmail.com on 31 May 2013 at 5:25

Attachments:

GoogleCodeExporter commented 9 years ago
https://code.google.com/p/smali/source/detail?r=01cfa02bfefe2383ef0585433610990b
3c0b1f75

The above change should fix the issue when using -a 10. The fix will be in the 
next beta version (to be released soon :)).

Original comment by jesusfreke@jesusfreke.com on 1 Jun 2013 at 9:36