SK-Yang / android-apktool

Automatically exported from code.google.com/p/android-apktool
0 stars 0 forks source link

INSTALL_FAILED_DEXOPT #771

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hey i am running cm11 on art and i am trying to install a recompiled apk i just 
made with a few edits but the apk crashes during installation..the same app 
works fine on dalvik..can't really make any sense out of this..i was following 
all the changes so i installed apktool 2.0.0b7 but issue doesn't seem to be 
resolved..i have attached the logs..hope someone can help!

Original issue reported on code.google.com by Deepak11...@gmail.com on 1 Mar 2015 at 7:44

Attachments:

GoogleCodeExporter commented 9 years ago
Sorry i forgot to attach the apk..its a port of color os camera..the port 
without any edits can works on both art and dalvik just fine and u can find it 
here 
http://forum.xda-developers.com/oneplus-one/themes-apps/port-coloros-camera-cm11
s-t3030369

But once i make the edits it becomes incompatible with art

Original comment by Deepak11...@gmail.com on 1 Mar 2015 at 8:33

Attachments:

GoogleCodeExporter commented 9 years ago
Tried to decompile the clean one to test this, but it has some dependencies on 
framework ID 12.

Do you happen to have those?

Original comment by connor.tumbleson on 1 Mar 2015 at 4:42

GoogleCodeExporter commented 9 years ago

Original comment by connor.tumbleson on 1 Mar 2015 at 4:42

GoogleCodeExporter commented 9 years ago
Yes I do..u can download the two frameworks I use from here -  
https://drive.google.com/folder/d/0B_lYhbWo3pojc3FJMTViYXZvc0U/edit

Original comment by Deepak11...@gmail.com on 1 Mar 2015 at 7:18

GoogleCodeExporter commented 9 years ago
ibotpeaches@raganok:~/Downloads/Apktool/Bug771$ apktool if 
oppo-framework-res.apk -t 771
I: Framework installed to: /home/ibotpeaches/apktool/framework/12-771.apk
ibotpeaches@raganok:~/Downloads/Apktool/Bug771$ apktool if framework-res.apk -t 
771
I: Framework installed to: /home/ibotpeaches/apktool/framework/1-771.apk
ibotpeaches@raganok:~/Downloads/Apktool/Bug771$ apktool d OppoCamera_1.5.apk -f 
-t 771
I: Using Apktool 2.0.0-f8d153-SNAPSHOT on OppoCamera_1.5.apk
I: Loading resource table...
I: Decoding Shared Library (oppo), pkgId: 12
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: 
/home/ibotpeaches/apktool/framework/1-771.apk
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Loading resource table from file: 
/home/ibotpeaches/apktool/framework/12-771.apk
I: Baksmaling classes.dex...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...
ibotpeaches@raganok:~/Downloads/Apktool/Bug771$ apktool b OppoCamera_1.5
I: Using Apktool 2.0.0-f8d153-SNAPSHOT
I: Checking whether sources has changed...
I: Smaling smali folder into classes.dex...
I: Checking whether resources has changed...
I: Building resources...
I: Copying libs...
I: Building apk file...
ibotpeaches@raganok:~/Downloads/Apktool/Bug771$ cd OppoCamera_1.5/
ibotpeaches@raganok:~/Downloads/Apktool/Bug771/OppoCamera_1.5$ ls
AndroidManifest.xml  apktool.yml  assets  build  dist  lib  original  res  smali
ibotpeaches@raganok:~/Downloads/Apktool/Bug771/OppoCamera_1.5$ cd dist
ibotpeaches@raganok:~/Downloads/Apktool/Bug771/OppoCamera_1.5/dist$ ls
OppoCamera_1.5.apk
ibotpeaches@raganok:~/Downloads/Apktool/Bug771/OppoCamera_1.5/dist$ signapk 
OppoCamera_1.5.apk 
ibotpeaches@raganok:~/Downloads/Apktool/Bug771/OppoCamera_1.5/dist$ ls
OppoCamera_1.5.apk  OppoCamera_1.5.apk-signed
ibotpeaches@raganok:~/Downloads/Apktool/Bug771/OppoCamera_1.5/dist$ adb install 
-r OppoCamera_1.5.apk-signed
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
6338 KB/s (8134305 bytes in 1.253s)
    pkg: /data/local/tmp/OppoCamera_1.5.apk-signed
Success

Couldn't duplicate this. Application worked fine on my One+ One (ART) and Nexus 
5 (Dalvik)

Original comment by connor.tumbleson on 3 Mar 2015 at 3:32