xychix / smali

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

happy rainbow ponies or how i learned to story worrying and deodex bluetooth.apk #87

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When attempting to deodex a Dell Streak 5 rom, Bluetooth.apk fails to deodex 
without using 'ignore mode'

Before deodexing the rom bluetooth worked properly so I assume the bug is in 
the deodexing process itself as bluetooth.apk is the only apk that does not 
deodex properly.

Several frameworks also fail to deodex properly, but they are mostly missing 
test cases and run properly otherwise.

Details:
Device: Dell Streak 5
Rom with issue: All 2.2/2.3 stock/odexed roms
Specific rom used: 2.3.3/GRI40 - Dell stock rom

Example rom with bug:
http://mirror2.streakdroid.com/manii/360/update.zip (Latest Generic 
2.2.2/FRG83G Dell stock rom)

http://pastebin.com/mjqWFnif
Error output from baksmali 1.2.8:
------------------------------------------------------------
    Error occured while loading boot class path files. Aborting.
    org.jf.dexlib.Code.Analysis.ClassPath$ClassNotFoundException: Could not find superclass Ljavax/obex/ServerRequestHandler;
            at org.jf.dexlib.Code.Analysis.ClassPath$ClassDef.loadSuperclass(ClassPath.java:788)
            at org.jf.dexlib.Code.Analysis.ClassPath$ClassDef.<init>(ClassPath.java:676)
            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:104)
            at org.jf.baksmali.main.main(main.java:282)
    Error while loading class Lcom/android/bluetooth/opp/BluetoothOppObexServerSession; from file N:\Deodexer\app\Bluetooth.odex
    Error while loading ClassPath class Lcom/android/bluetooth/opp/BluetoothOppObexServerSession;
------------------------------------------------------------

http://pastebin.com/vmcAQuru
Logcat from attempting to share file via bluetooth:
------------------------------------------------------------
I/ActivityManager(  161): Starting: Intent { act=android.intent.action.CHOOSER 
cmp=android/com.android.internal.app.ChooserActivity (has extras) } from pid 902
I/ActivityManager(  161): Displayed 
android/com.android.internal.app.ChooserActivity: +517ms
I/ActivityManager(  161): Starting: Intent { act=android.intent.action.SEND 
typ=*/* flg=0x3000000 
cmp=com.android.bluetooth/.opp.BluetoothOppLauncherActivity (has extras) } from 
pid 902
I/ActivityManager(  161): Starting: Intent { 
act=android.bluetooth.devicepicker.action.LAUNCH flg=0x800000 
cmp=com.android.settings/.bluetooth.BluetoothSettings (has extras) } from pid 
863
F/PrintK  (  161): <2>[I2C]IRQ:  90 W2 NAK (43C8)
E/PrintK  (   83): <3>Unable to increase ACPU vdd (-5)
W/InputManagerService(  161): Starting input on non-focused client 
com.android.internal.view.IInputMethodClient$Stub$Proxy@40897648 (uid=10040 
pid=902)
I/ActivityManager(  161): Displayed 
com.android.settings/.bluetooth.BluetoothSettings: +360ms (total +746ms)
W/dalvikvm(  863): VFY: thrown class 
Lcom/android/bluetooth/opp/BluetoothOppTransfer; not instanceof Throwable
W/dalvikvm(  863): VFY:  rejecting opcode 0x27 at 0x002c
W/dalvikvm(  863): VFY:  rejected 
Lcom/android/bluetooth/opp/BluetoothOppTransfer;.startObexSession ()V
W/dalvikvm(  863): Verifier rejected class 
Lcom/android/bluetooth/opp/BluetoothOppTransfer;
W/dalvikvm(  863): threadid=11: thread exiting with uncaught exception 
(group=0x40015560)
E/AndroidRuntime(  863): FATAL EXCEPTION: Bluetooth Share Service
E/AndroidRuntime(  863): java.lang.VerifyError: 
com.android.bluetooth.opp.BluetoothOppTransfer
E/AndroidRuntime(  863):        at 
com.android.bluetooth.opp.BluetoothOppService.insertShare(BluetoothOppService.ja
va:604)
E/AndroidRuntime(  863):        at 
com.android.bluetooth.opp.BluetoothOppService.access$1800(BluetoothOppService.ja
va:71)
E/AndroidRuntime(  863):        at 
com.android.bluetooth.opp.BluetoothOppService$UpdateThread.run(BluetoothOppServi
ce.java:448)
------------------------------------------------------------

Original issue reported on code.google.com by themanii...@gmail.com on 31 Oct 2011 at 8:12

GoogleCodeExporter commented 9 years ago
This issue was resolved with the submitter out-of-band

Original comment by jesusfreke@jesusfreke.com on 1 Nov 2011 at 3:32