Quantcast
Channel: xda-developers - Android Q&A, Help & Troubleshooting
Viewing all articles
Browse latest Browse all 18891

[Q] Is it possible to deodex a framework.odex and odex it with baksmali/smali?

$
0
0
For some reason I need to deodex a framework.odex, that is the /system/framework/framework.odex.

Look at this, there are 2 files list in /system/framework/:
root@computerOfGod:~/experiement# adb -d shell ls /system/framework/frame*
/system/framework/framework.odex
/system/framework/framework.jar

using baksmali, I need to specify -d <Dir>, where <DIR> is a dir containing framework.jar etc.
Obviously this is a recursive loop.

So Is it possible to deodex framework.odex?

BTW, below are my commands to deodex a framework.odex, and its output.
root@computerOfGod:~/experiement# baksmali -a 15 -x framework.odex -d .
#make some changes to some file in out dir and smali it
root@computerOfGod:~/experiement# smali -a 15 -x -o framework.odex.m out/
root@computerOfGod:~/experiement# file framework.odex*
framework.odex: Dalvik dex file (optimized for host) version 036
framework.odex.m: Dalvik dex file version 036

It sound that framework.odex is an odex file while framework.odx.m is not an odex file.
So If I push framework.odex.m to /system/framework/framework.odex, the phone will not boot, I believe.

Is there a way to turn out dir to a new framework.odex file and push it to /system/framework/framework.odex, and the phone will boot OK?

Viewing all articles
Browse latest Browse all 18891

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>