Related
Anyone can help me odex this attachment 'services.jar' to 'services.jar' and 'services.odex'?
I have read many articles, but it seems really complicate for me to make it work.
thx in advance!!
merckey said:
Anyone can help me odex this attachment 'services.jar' to 'services.jar' and 'services.odex'?
I have read many articles, but it seems really complicate for me to make it work.
thx in advance!!
Click to expand...
Click to collapse
Deodex:
Code:
java -Xmx512m -jar /usr/bin/baksmali-1.2.2.jar -d ./framework -x services.odex -o services.odex-new
Extract services.jar with unzip tool.
Create a classes.dex from the services.odex-new directory:
Code:
java -Xmx512m -jar /usr/bin/smali-1.2.2.jar services.odex-new/ -o ./classes.dex
Put the classes.dex into the root dir of the extracted services.jar and zip it up. Rename it to .jar. Sign it. Good to go.
I think he wants the other direction.
Basically, you can use dexopt-wrapper to generate the odex file again. I assume that you have an odex ROM, which is a big problem, because if you change one ODEX file you need to rebuild them all (they rely on the "signatures" of others).
You should try to find a deodexed ROM and apply your change there, because working with the odex files is a lot of work.
Btw, If you really want to change the odex file, and running the dexopt-wrapper is not too complicated for you, there is a work around for the odex signatures problem - let me know if you are interested.
erasmux said:
I assume that you have an odex ROM, which is a big problem, because if you change one ODEX file you need to rebuild them all
Click to expand...
Click to collapse
That is not true, as long as you're not touching the framework.
Well, in this particular case, since this IS framework (services), he DOES need to do it.
You can try an express method:
cd /system/framework
for x in *.jar;do dexopt-wrapper "$x" /sdcard/"$x".odex;done
Mount your sdcard and copy over your odex'; remember to strip the .jar with sed from the filename.
thanks for all your help, guys!
I just noticed that there's no attachment uploaded
This is a file I extracted from an deodex Rom. I am trying to apply it in an odex rom to change the color of the front on the status-bar.Don't know if it works, but I just wanna try it.
I am really a newbie here haha, and these codes makes me Crazy~
So... wish you can odex it for me! thanks!
I really have to study some basic knowledge about java and linux.
Maybe odex/classes.dex is the problem too,which I posted
here http://forum.xda-developers.com/showthread.php?t=716506
why some apps don`t work
But for Deodex,I found this:
http://code.google.com/p/smali/wiki/DeodexInstructions
I get a error message that reads no odex file found. what's up with that
Hi Guys,
I broke my Desire Z somehow and i want Original Desire Z system.img and boot.img. is there anybody can upload his original system.img and boot.img of his Desire Z?
Its Very important for me. i will be so glad if anybody can help me with uploading his. i would appreciate if you upload to mediafire cause its very easy to download from it.
Thank you guys
behdude said:
Hi Guys,
I broke my Desire Z somehow and i want Original Desire Z system.img and boot.img. is there anybody can upload his original system.img and boot.img of his Desire Z?
Its Very important for me. i will be so glad if anybody can help me with uploading his. i would appreciate if you upload to mediafire cause its very easy to download from it.
Thank you guys
Click to expand...
Click to collapse
Extract from an RUU or perhaps just use the RUU?
DanWilson said:
Extract from an RUU or perhaps just use the RUU?
Click to expand...
Click to collapse
I Don't use RUU but if RUU doesn't manipulate the system.img or boot.img. i appreciate it.
behdude said:
I Don't use RUU but if RUU doesn't manipulate the system.img or boot.img. i appreciate it.
Click to expand...
Click to collapse
I would help you more (by uploading the images) but since I don't have the phone yet, I'm afraid I can't.
I will upload the files for you if you can tell me how to extract them from my phone. I presume I will just need to "dd" a couple of partitions, can you confirm, and if so, which ones ?
Edit - partitions 22 and 25 ?
Edit2 - argh, my phone isn't rooted yet, so I don't think I can do it
steviewevie said:
I will upload the files for you if you can tell me how to extract them from my phone. I presume I will just need to "dd" a couple of partitions, can you confirm, and if so, which ones ?
Edit - partitions 22 and 25 ?
Click to expand...
Click to collapse
Here is the (dd)s :
Code:
dd if=/dev/block/mmcblk0p22 of=/sdcard/extracted_boot.img
dd if=/dev/block/mmcblk0p25 of=/sdcard/extracted_system.img
Great thanks
behdude said:
Here is the (dd)s :
Code:
dd if=/dev/block/mmcblk0p22 of=/sdcard/extracted_boot.img
dd if=/dev/block/mmcblk0p25 of=/sdcard/extracted_system.img
Click to expand...
Click to collapse
Cool, I figured out the correct commands myself
However, see my later edit - my phone isn't rooted. Yet. Let me see if I can root it now and do that for you.
steviewevie said:
Cool, I figured out the correct commands myself
However, see my later edit - my phone isn't rooted. Yet. Let me see if I can root it now and do that for you.
Click to expand...
Click to collapse
Thanks steviewevie!
I will be so happy. I really appreciate this. will waiting.
ok, I rooted my phone. Just extracting the images now, will upload soon.
An extraction from a phone is not required
Download the official ROM from here:
http://forum.xda-developers.com/showthread.php?t=822908
Now, run the RUU, let it load, and keep it open (don't close it)
Go to C:\Users\YOUR USER NAME\AppData\Local\Temp\
look for the 2 new folders and search inside for rom.zip (it's the biggest file)
Open rom.zip with WinRAR or ZIP and there inside you will have boot.img and system.img
gtrab said:
An extraction from a phone is not required
Click to expand...
Click to collapse
You mean I rooted and S-OFF'd my phone for nothing !
Just kidding I needed an excuse to make me bite the bullet
steviewevie said:
You mean I rooted and S-OFF'd my phone for nothing !
Just kidding I needed an excuse to make me bite the bullet
Click to expand...
Click to collapse
Haha, bless ya mate
steviewevie said:
ok, I rooted my phone. Just extracting the images now, will upload soon.
Click to expand...
Click to collapse
Thanks, I'm Waiting.
gtrab said:
An extraction from a phone is not required
Download the official ROM from here:
http://forum.xda-developers.com/showthread.php?t=822908
Now, run the RUU, let it load, and keep it open (don't close it)
Go to C:\Users\YOUR USER NAME\AppData\Local\Temp\
look for the 2 new folders and search inside for rom.zip (it's the biggest file)
Open rom.zip with WinRAR or ZIP and there inside you will have boot.img and system.img
Click to expand...
Click to collapse
Thank You, but i don't have windows to use this .exe file.
Well, if you still want them, I've uploaded them. The system.img was too big for a free Mediafire account, so I uploaded them to my Dropbox. But you don't need Dropbox to download, they are below :
boot.img
system.img
deleted
10 char
steviewevie said:
Well, if you still want them, I've uploaded them. The system.img was too big for a free Mediafire account, so I uploaded them to my Dropbox. But you don't need Dropbox to download, they are below :
boot.img
system.img
Click to expand...
Click to collapse
Thank you very much man.
I used it and boot is now okay. but fastboot have problem with system.img, so i installed ModRevocery and i will use modaco rom for desire z.
I really Appreciate your work. thanks again.
behdude said:
Thank you very much man.
I used it and boot is now okay. but fastboot have problem with system.img, so i installed ModRevocery and i will use modaco rom for desire z.
I really Appreciate your work. thanks again.
Click to expand...
Click to collapse
You're very welcome, and I'm glad it help.
Thank you also for giving me the push to root my own phone !
iv been looking but cant figure it out, no one gives instructions on how to use there deodex tools
Download AvaboxV2 Here
Unzip the download somewhere, open up the 'De-odexer' and view the readme.
I think you just put the apk and odex file inside the "de-odexer" folder and double-click the ''deodexall.bat" or "deall.bat", something along those lines.
Can't check right now since I'm on my phone
i down loaded an used but its not creating a Classes.dex
DubsideWICKED said:
i down loaded an used but its not creating a Classes.dex
Click to expand...
Click to collapse
AvaboxV2 won't do that, it will take both the APPNAME.apk & APPNAME.odex files and make it into a single de-odexed APPNAME.apk
If you want the classes.dex file check out smali tools I believe that should do it for you. It may decompile as out.dex, if it does just rename it back to classes.dex
Edit: instructions for it are HERE
I think apk manager will let you deodex files as well.... I think....
theimpaler747 said:
I think apk manager will let you deodex files as well.... I think....
Click to expand...
Click to collapse
if it does i have never seen it
i thought when u de-odexed a file that it created a classes dex. im still having problemswith all methods mentioned
attach the apk and the odex files in a zip so I can download them. when I have time I'll see if I can get the classes.dex file for you and let you know what I did to get it
kyouko said:
attach the apk and the odex files in a zip so I can download them. when I have time I'll see if I can get the classes.dex file for you and let you know what I did to get it
Click to expand...
Click to collapse
i think its the systemUI he is trying to deodex everything i have tried to deodex it errors out.
however i have circumvented it and i am excited
ya im tryin to do what kyle said. i just wanna edit the signal bars. is it possible to make a odex file for a apk.
Please I really need someone with root and didn't deleted some files do this for me!
If you are not sure you are the person, do it anyway, maybe it can be useful!
Ok. Run the file attached (remember to unzip first) and see if there is 2 files on the folder (after you ran it!), the files are "recovery-from-boot.p" and "install-recovery.sh". If you found those files, please upload them to me, as I download it I give you thanks and mention you on my Thread LordAIOTool, I need the files to use on it!
Thanks
I'm not on Windows, but looking at your batch file, it looks like all you're doing is pulling /system/etc/install-recovery.sh and /system/recovery-from-boot.p, yes?
If that's the case, here's those two files from my MZ604.
http://ubuntuone.com/4zhk0odoiOaFvTdkHYjbPg
Ok, thanks
Sent from my MZ605 using XDA App
FYI recovery-from-boot.p only works for a specific boot images (namely the stock one that is shipped from google).
If you try to use this file on any other boot image it will fail.
Keep up the good work, looking forward to your #10 AIO Tool! Hope you fixed the Mount SD card issue.
I tried to update to 4.2 and I changed the android.policy.odex file and maybe this is not good one and the android does not goes up.
I can go into recovry and conect to adb. someone have the write file or way to solve this problem.
can I paste the file therout adb or flashable zip ??
Thanks
I found the right file
How can I use adb to delete the file on the device and push the new one?
edit
I understand that I cant go into this folders with the adb beacuse it says I dont have perrmision/ and I maybe need flashable zip file. how I do flashable zip for this file?