[Ready to DONATE][Q] How to manually deodex Email.apk and Mobileprint.apk - Galaxy S II Q&A, Help & Troubleshooting

I found many threads of people who can't deodex Email.apk, Mobileprint.apk, even manualy, including every .jar in the baksmali.jar -c: xxxx.
Is there a Dev who could give us the command line to succesfully deodex Email.odex and Mobileprint.odex ?
Thanks
Edit 06/30/2011 : I am ready to donate for the help you could give me

Found the same threads you did.. I am researching this as well.. Will keep you updated if I find anything.

U don't need to deodex the whole rom, though you will need to deodex the whole framework.

mak1 said:
U don't need to deodex the whole rom, though you will need to deodex the whole framework.
Click to expand...
Click to collapse
Ok, thanks for the answer, but what to do with the .odex files (Email and Mobileprint), I'm not going to leave them non deodexed with others deodexeds apk ?

sicopat said:
Ok, thanks for the answer, but what to do with the .odex files (Email and Mobileprint), I'm not going to leave them non deodexed with others deodexeds apk ?
Click to expand...
Click to collapse
i wana know this tooo

If ur not changing anything in the BOOTCLASSPATH files, u can deodex a single file
-app for eg.-, edit it and put it into ur device without deodexing anything else, delete the existing odex file.
u'll need baksmali for that purpose-apktool donot have that feature btw-also u'v to have framework files available (just pull the entire framework directory from the phone) pass it's directory via the -d option. App depends on particular jar files will require that through -c option.

mak1 said:
If ur not changing anything in the BOOTCLASSPATH files, u can deodex a single file
-app for eg.-, edit it and put it into ur device without deodexing anything else, delete the existing odex file.
u'll need baksmali for that purpose-apktool donot have that feature btw-also u'v to have framework files available (just pull the entire framework directory from the phone) pass it's directory via the -d option. App depends on particular jar files will require that through -c option.
Click to expand...
Click to collapse
That's the problem, even with the entire framework directory, I am not able to deodex Email.apk and Mobileprint.apk . Seems like if missing Bootclasspath ...
No problem manualy deodexing every other apks ..

I tried to deodex both of these files with omrij's tool and it was successfull.
http://forum.xda-developers.com/showthread.php?t=1053227

TAEL said:
I tried to deodex both of these files with omrij's tool and it was successfull.
http://forum.xda-developers.com/showthread.php?t=1053227
Click to expand...
Click to collapse
I wonder if it ignores certain errors. If i use baksmali with the -I option, i can get deodexed output, But obviously the APK won't work.

sicopat said:
I found many threads of people who can't deodex Email.apk, Mobileprint.apk, even manualy, including every .jar in the baksmali.jar -c: xxxx.
Is there a Dev who could give us the command line to succesfully deodex Email.odex and Mobileprint.odex ?
Thanks
Click to expand...
Click to collapse
I got it done for u method is a bit complicated though

First of all, Thanks!
Second of all, I'm much more interested on how its done rather than the apps themselves. I'd be very happy if you could share how by any means.

ransagy said:
First of all, Thanks!
Second of all, I'm much more interested on how its done rather than the apps themselves. I'd be very happy if you could share how by any means.
Click to expand...
Click to collapse
same here..i guess we just want to learn so please share
thanks

Deodexing is not my favorite stuff I do it for my personal use at times, I use my own set of scripts on linux with custom bootclasspaths.
Would recommend to have a look here: http://code.google.com/p/smali/wiki/DeodexInstructions

mak1 said:
Deodexing is not my favorite stuff I do it for my personal use at times, I use my own set of scripts on linux with custom bootclasspaths.
Would recommend to have a look here: http://code.google.com/p/smali/wiki/DeodexInstructions
Click to expand...
Click to collapse
thanks already read that

mak1 said:
Deodexing is not my favorite stuff I do it for my personal use at times, I use my own set of scripts on linux with custom bootclasspaths.
Would recommend to have a look here: http://code.google.com/p/smali/wiki/DeodexInstructions
Click to expand...
Click to collapse
I also wrote my own deodexing bash script with baksmali/smali/zip. The thing is, Those two APK request java libraries to deodex (java.awt.* and javax.swing.*). I could't find anywhere to get those dependencies from, So if you could share which boot classes you used for satisfying those requirements, it would be great.
Thanks!

I am ready to make a donation for help.
I would like to be able to do it myself

sicopat said:
I am ready to make a donation for help.
I would like to be able to do it myself
Click to expand...
Click to collapse
I have found out how you do it, by checking my bash logs way back
Just use the -I ignore flag on the command, along with regular bootclasspath.
The errors are not an issue and the apps work fine.
Enjoy.

pulser_g2 said:
I have found out how you do it, by checking my bash logs way back
Just use the -I ignore flag on the command, along with regular bootclasspath.
The errors are not an issue and the apps work fine.
Enjoy.
Click to expand...
Click to collapse
Thanks so much Pulser, I am going to try this.
it's Curious we canno't avoid errors.
As promised : donation done
Big thanks

Hi guys, same here with Email.odex...
I'm not be able to deodex it...
Somebody can help me? Thanks!

Related

How to de-odex a Desire ROM?

Helllo everybody
Can anybody tell me (or a link?) how I can de-odex the rootedupdate.zip version 1.21.405.2?
Thank u
http://code.google.com/p/smali/wiki/DeodexInstructions
how space does de-odexing save? if that is one of its benefit
I tried it with the auto deodexer from this topic: http://forum.xda-developers.com/showthread.php?t=598026
The "De-odexing process" was successful. I de-odexed the /system/framework and the /system/app folder.
But if I replace the old /app and /framework with the de-odexed ones, my device doesn't startup.
Can anybody help me?
Flash the rom and then boot with logcat and search for the problem.
nickiberli said:
I tried it with the auto deodexer from this topic: http://forum.xda-developers.com/showthread.php?t=598026
The "De-odexing process" was successful. I de-odexed the /system/framework and the /system/app folder.
But if I replace the old /app and /framework with the de-odexed ones, my device doesn't startup.
Can anybody help me?
Click to expand...
Click to collapse
I'm having the same problem, do you solve it???
@ nickiberli : Download dsixda's kitchen and install it following his directions. It has all the tools you need to get started customizing ROMs. I believe your problem is that your .zip is not being signed which is another thing that his kitchen does for you.
@ ermacwins : Basically, (I'm not 100% on this explanation) "de-odexed" .apks are simply a .zip with a different extension. This allows further customization of the .apk. "odexed" .apks are split into two files, an ".apk" and an ."odex". The "odexed" .apk still contains the information that the "de-odexed" contains but is spread across the two files. To answer your question, I don't believe that a "de-odexed" rom saves you any more space than an "odexed" rom or vice versa.
@slavatore82 : Try the stuff I posted above. It should work for you. It's the method I've been using and it works great.
salvatore82 said:
I'm having the same problem, do you solve it???
Click to expand...
Click to collapse
When you deodex your files try to set compression level less than default. Till to 0. After deodex first boot-up might take about 10-15 min.
Dont know if this is going to shine light to anyones perspective view, but it did too me.
Link>>> http://www.addictivetips.com/mobile/what-is-odex-and-deodex-in-android-complete-guide/
SystemErrorOne said:
Dont know if this is going to shine light to anyones perspective view, but it did too me.
Link>>> http://www.addictivetips.com/mobile/what-is-odex-and-deodex-in-android-complete-guide/
Click to expand...
Click to collapse
Way to resurrect a 6 month old thread dude! lol, Just joking with ya, btw that link has some good info. Thanks for sharing it.
mbobino said:
Way to resurrect a 6 month old thread dude! lol, Just joking with ya, btw that link has some good info. Thanks for sharing it.
Click to expand...
Click to collapse
haha my bad man just trying to help lol

[Q] Deodex 4.1.B.0.431

Seen a few custom ROMs around already, so got me interested.
How to deodex the framework files of our 4.1.B.0.431 firmware? I just tried some solutions, however these didn't work.
The /system/app folder is deodexed already, but framework not, so I am unable to edit the framework.
Someguyfromhell said:
Seen a few custom ROMs around already, so got me interested.
How to deodex the framework files of our 4.1.B.0.431 firmware? I just tried some solutions, however these didn't work.
The /system/app folder is deodexed already, but framework not, so I am unable to edit the framework.
Click to expand...
Click to collapse
Check out odex solution by puppet? I did not test my self. As my internet bandwidth was over. Now it's up again, and I will try.
The odex solution by puppet worked on cm9 as reported by him. I will give it a try and report back. That is, in case some other person does not help you by then.
Thanks,
Rick
Sent from my SK17i using XDA
DragonClawsAreSharp said:
Check out odex solution by puppet? I did not test my self. As my internet bandwidth was over. Now it's up again, and I will try.
The odex solution by puppet worked on cm9 as reported by him. I will give it a try and report back. That is, in case some other person does not help you by then.
Thanks,
Rick
Sent from my SK17i using XDA
Click to expand...
Click to collapse
I need to deodex, not odex.
Someguyfromhell said:
I need to deodex, not odex.
Click to expand...
Click to collapse
Tickle My Android might be able to help..
Ticklefish said:
Tickle My Android might be able to help..
Click to expand...
Click to collapse
Tried. Result:
Code:
Tickle My Android v.3.0
By Ticklefish
tinyurl.com/ticklemyandroid
**ALWAYS Backup Your Device Before Modifying It!!**
------------------------------------------------------------------------------
Files Available For Deodexing:
Volume in drive C is WINDOWS
Volume Serial Number is F4ED-400E
Directory of C:\Users\Dude\Desktop\Tickle\TickleMyAndroid\_deodex
android.policy.odex apache-xml.odex bouncycastle.odex
core.odex core-junit.odex ext.odex
framework.odex services.odex
8 File(s) 20.250.120 bytes
0 Dir(s) 22.052.188.160 bytes free
Please Enter Filename That You Want To Deodex (case-sensitive)
Or Enter 'x' To Cancel: framework.odex
----------------
Now Deodexing "framework.odex" From "_deodex" Folder
--This Will Overwrite Any Existing Files--
Enter 'x' To Cancel Or Any Other Key To Continue: j
UNEXPECTED TOP-LEVEL EXCEPTION:
org.jf.dexlib.Util.ExceptionWithContext: regCount does not match the number of a
rguments of the method
at org.jf.dexlib.Util.ExceptionWithContext.withContext(ExceptionWithCont
ext.java:54)
at org.jf.dexlib.Code.InstructionIterator.IterateInstructions(Instructio
nIterator.java:92)
at org.jf.dexlib.CodeItem.readItem(CodeItem.java:154)
at org.jf.dexlib.Item.readFrom(Item.java:76)
at org.jf.dexlib.OffsettedSection.readItems(OffsettedSection.java:48)
at org.jf.dexlib.Section.readFrom(Section.java:143)
at org.jf.dexlib.DexFile.<init>(DexFile.java:431)
at org.jf.baksmali.main.main(main.java:265)
Caused by: java.lang.RuntimeException: regCount does not match the number of arg
uments of the method
at org.jf.dexlib.Code.Format.Instruction35c.checkItem(Instruction35c.jav
a:160)
at org.jf.dexlib.Code.Format.Instruction35c.<init>(Instruction35c.java:9
3)
at org.jf.dexlib.Code.Format.Instruction35c$Factory.makeInstruction(Inst
ruction35c.java:167)
at org.jf.dexlib.Code.InstructionIterator.IterateInstructions(Instructio
nIterator.java:84)
... 6 more
Error occured at code address 0
code_item @0x18dbdc
----------------
Error! File Not Deodexed!
Press any key to continue . . .
The stock ROM is not fully odexed, but only some framework files, that's all.
Someguyfromhell said:
Seen a few custom ROMs around already, so got me interested.
How to deodex the framework files of our 4.1.B.0.431 firmware? I just tried some solutions, however these didn't work.
The /system/app folder is deodexed already, but framework not, so I am unable to edit the framework.
Click to expand...
Click to collapse
I don't know if my solution could help u or not, but let's try cuz there is no problem with me.
I Used UOT Kitchen to cook my framework-res.apk as usual, no need to mind about those .odex files. and when i get new framework-res.apk from UOT, Doom! I can edited it and enjoy with no problem.
I need to edit framework.jar file in order to add certain customizations.
Someguyfromhell said:
I need to edit framework.jar file in order to add certain customizations.
Click to expand...
Click to collapse
Oops! No idea too cause I can't Deodex since it just release few days.
Maybe you've seen this, and/or tried it. But still:
http://forum.xda-developers.com/showthread.php?t=1600805
iONEx said:
Maybe you've seen this, and/or tried it. But still:
http://forum.xda-developers.com/showthread.php?t=1600805
Click to expand...
Click to collapse
Thanks, will give it a try
Dsixda's Kitchen also deodexes the files at the /framework folder, although when I tried it on the system dump from stock Active, then Wifi and USB weren't working.
Might be a coincidence though. I'll see how it goes as I build ICS Spartan...
x-Ultimate v2.4 not working either
iONEx said:
Maybe you've seen this, and/or tried it. But still:
http://forum.xda-developers.com/showthread.php?t=1600805
Click to expand...
Click to collapse
it isn't working either with the framework.odex file throws the same error message! but deodexes other odex files frome framework dir.
gouthamthemostwanted said:
it isn't working either with the framework.odex file throws the same error message! but deodexes other odex files frome framework dir.
Click to expand...
Click to collapse
So i have the same issue as you have. did you get with any solution?
I'm just throwing it out there because i had some similar problems lately, this is for me running win7
Use jdk 6, not 7 and and add system variable to path value and also create a new JAVA_HOME variable with path to the jdk\bin folder
Just thowing it outthere since it seems your error is generated from the runtime services
iONEx said:
Maybe you've seen this, and/or tried it. But still:
http://forum.xda-developers.com/showthread.php?t=1600805
Click to expand...
Click to collapse
This works just deodexed .587

Does Dsixda's ROM Kitchen work with Galaxy S3?

I've been wanting to try the kitchen out to see if I can try deodexing and zipaligning etc on the stock touchwiz ROM I'm running.
Do you think it would work? (despite it being discontinued)
yes it works still, works on ics & jellybean (i use it myself to deodex and zipalign)
Theshawty said:
I've been wanting to try the kitchen out to see if I can try deodexing and zipaligning etc on the stock touchwiz ROM I'm running.
Do you think it would work? (despite it being discontinued)
Click to expand...
Click to collapse
Yes dxixda kitchen works but you will need to add another file with gs3 parameters in the edify_defs folder with name m0..still the updater-script does not work . It gives me errors in the installing boot.img stage.. . Anyways you can use the kitchen to create your rom and then package your rom manually using updater-script and update-binary from some other working rom.. Then sign it..
If you or anyone finds a solution to that problem do let us know..
:thumbup:
Sent from someone in the Milky Way
zoot1 said:
but you will need to add another file with gs3 parameters in the edify_defs folder with name m0
Click to expand...
Click to collapse
Where do I find such file?
zoot1 said:
Yes dxixda kitchen works but you will need to add another file with gs3 parameters in the edify_defs folder with name m0..still the updater-script does not work . It gives me errors in the installing boot.img stage.. . Anyways you can use the kitchen to create your rom and then package your rom manually using updater-script and update-binary from some other working rom.. Then sign it..
If you or anyone finds a solution to that problem do let us know..
:thumbup:
Sent from someone in the Milky Way
Click to expand...
Click to collapse
I have a file for myself will upload it here once I reach home.. On my way back.. Hopefully you can see what is wrong.. I tried to get help from wanam also but we could not find the problem..
Edit: here you go..put the m0 file in the edify_defs folder..check if you can find any problem with it..
Sent from someone in the Milky Way
zoot1 said:
I have a file for myself will upload it here once I reach home.. On my way back.. Hopefully you can see what is wrong.. I tried to get help from wanam also but we could not find the problem..
Edit: here you go..put the m0 file in the edify_defs folder..check if you can find any problem with it..
Sent from someone in the Milky Way
Click to expand...
Click to collapse
I don't know anything about stuff like that
I'm a complete noob and just wanna try to deodex and stuff
Theshawty said:
I don't know anything about stuff like that
I'm a complete noob and just wanna try to deodex and stuff
Click to expand...
Click to collapse
Deodexing will work just fine..no probs..some times you might get an error with one or two apps..just use the option to deodex a single app and you will be good to go..
:good:
Edit:
Most important change the api level to 16 before deodexing..
just make a copy of your zipped rom, drop it into the working folder, deodex the files you want to and then pull those files out of the working folder and drop them into the original rom zip folder (minus the original odexed files)
no need to change anything, no need to drop new files in or mess with update script
as you will use your existing update script/meta inf folder blah blah blah, it means you can say yes to the mods the kitchen wants to make as you will only be taking the deodexed files from there, nothing else
(does that make sense? - im guessing you will ignore this anyway like my previous post))
Darkside Agent said:
just make a copy of your zipped rom, drop it into the working folder, deodex the files you want to and then pull those files out of the working folder and drop them into the original rom zip folder (minus the original odexed files)
no need to change anything, no need to drop new files in or mess with update script
as you will use your existing update script/meta inf folder blah blah blah, it means you can say yes to the mods the kitchen wants to make as you will only be taking the deodexed files from there, nothing else
Click to expand...
Click to collapse
Thanks, will try this.
Darkside Agent said:
(does that make sense? - im guessing you will ignore this anyway like my previous post))
Click to expand...
Click to collapse
Uh, sorry about that. I totally missed your post!
Did you get it all sorted in the end?
Darkside Agent said:
Did you get it all sorted in the end?
Click to expand...
Click to collapse
Nah, I basically said "f*ck it and deleted the whole thing.
Gonna let someone else deal with zipaligning, deodexing and all that.
Theshawty said:
Nah, I basically said "f*ck it and deleted the whole thing.
Gonna let someone else deal with zipaligning, deodexing and all that.
Click to expand...
Click to collapse
You need Patience my friend..
zoot1 said:
You need Patience my friend..
Click to expand...
Click to collapse
One of many things I lack and will probably always lack.
Sorry for dragging out an old thread but I thought I would have a go with this. I have the kitchen installed, I have put I9300XXDLI5_I9300OXADLI5_I9300XXDLI5_BTU.zip in the original_update and have the m0 file in tools/edify_defs
I then try and extract the ROM but I get an error Error: No system folder found!
How can I not even get started? I must be missing something basic here!
Kangburra said:
Sorry for dragging out an old thread but I thought I would have a go with this. I have the kitchen installed, I have put I9300XXDLI5_I9300OXADLI5_I9300XXDLI5_BTU.zip in the original_update and have the m0 file in tools/edify_defs
I then try and extract the ROM but I get an error Error: No system folder found!
How can I not even get started? I must be missing something basic here!
Click to expand...
Click to collapse
IIRC, the archive file must be a tar archive containing at least a system.img.
Sent from my GT-I9300 using Tapatalk 2
Theshawty said:
IIRC, the archive file must be a tar archive containing at least a system.img.
Sent from my GT-I9300 using Tapatalk 2
Click to expand...
Click to collapse
Can't I start with the ODIN file of the leaks? It must have a system image in it? Where do you start with this? I thought a whole flashable ROM would be ideal.
Kangburra said:
Can't I start with the ODIN file of the leaks? It must have a system image in it? Where do you start with this? I thought a whole flashable ROM would be ideal.
Click to expand...
Click to collapse
Extract the tar file and put the system.ext4.img and boot.img in the update folder.. Then Dxixda kitchen will recognize it..
Sent from the iPoop killer ==>>>
Kangburra said:
Can't I start with the ODIN file of the leaks? It must have a system image in it? Where do you start with this? I thought a whole flashable ROM would be ideal.
Click to expand...
Click to collapse
Oh yeah, I forgot, the system.img must be coverted from yaffs img to an ext4 file. I believe the utility is called ext2fs (or something like it)
Dsixda's tool should provide that program anyhow.
Well I unzipped the ROM and untarred the md5 and then it at least got me started. I am now just working out what I can do and what I need to get. Thanks for your help.
[edit]Well I built the ROM and tried both the update and updater scripts but both fail. Will go and re-read the help. [/edit]
Kangburra said:
Well I unzipped the ROM and unatarred the md5 and then it at least got me started. I am now just working out what I can do and what I need to get. Thanks for your help.
[edit]Well I built the ROM and tried both the update and updater scripts but both fail. Will go and re-read the help. [/edit]
Click to expand...
Click to collapse
Well that is the problem which I am not to work out yet.. As Dxixda kitchen does not support s3
Best way it to use meta-inf folder from other rom..
Sent from the iPoop killer ==>>>

[Q] Deodex LewaOS

Does anyone know how to deodex LewaOS? I tried various tools but every tools got error
lozohcum said:
Does anyone know how to deodex LewaOS? I tried various tools but every tools got error
Click to expand...
Click to collapse
You could manually deodex the files using baksmali, I would recommend taking a look at this guide here for instructions on how to deodex the files.
shimp208 said:
You could manually deodex the files using baksmali, I would recommend taking a look at this guide here for instructions on how to deodex the files.
Click to expand...
Click to collapse
thank yoy I will try
api_level is always the same for all odex?
lozohcum said:
thank yoy I will try
api_level is always the same for all odex?
Click to expand...
Click to collapse
Yes you should use the same api level for all the apps you want to deodex to avoid inconsistencies.
So should I deodex each app individally using this scheme
baksmali -a 15 -x APP.odex -d framework -o APP
Click to expand...
Click to collapse
where APP is name of app I want to deodex (app from system/app and from system/framewok)
Am I right?
I want to be sure that I understand this process
Did you try dsixda kitchen?
lozohcum said:
So should I deodex each app individally using this scheme
where APP is name of app I want to deodex (app from system/app and from system/framewok)
Am I right?
I want to be sure that I understand this process
Click to expand...
Click to collapse
Correct that is the syntax that should be used, you could technically make the output directory name whatever you want it to be put for simplicity and organization I recommend making it the same as the app you are deodexing (So if your deodexing calculator it would be best to make the output directory calculator as well to keeps things organized).
I've just run deodexing on dsixda kitchen and it seems working, I had to set API level to 10.
I have problem with spktool. I have newest release and the problem is that I can decompile every app but when I try to compile anything back, there is no apk file in folder and lot's of errors in console. I tried it manually and using terminall tools but every way doesn't work for compiling :/
(I'm trying to translate MokeeOS and LewaOS)

[Q] question : how to decompile and compile protected apk ?

hi
i have a program that i want to decompile and change something and then compile it
and i use 2 way
first i use apktool that decompile it but when i want compile it , it show errors ( even withot change nothing )
second i rename apk with zip and extract all and then without change nothing I compress extracted file and rename it to apk and sign it and then the program not work .
the program attached
i think it use some protection or ...
any one have an idea ?
thanks a lot
zeytunak said:
any one have an idea ?
Click to expand...
Click to collapse
Update your apktool...
XperienceD said:
Update your apktool...
Click to expand...
Click to collapse
hi
thanks for your reply
now i update my apktool but after compile decompiled package its not work
even after i use below swith when decompilation
apktool d -s -r b15.apk
you can chack the compiled apk and signed not work correctly .
Is that after doing your mods, just because it builds with no errors doesn't mean the mod hasn't broke something.
Also alot of apps are starting to add code that will break it if it is modded in anyway. Many paid apps are doing this to prevent pirating the app or getting some of the paid features for free. There is nothing you can really do if this is the case.

Categories

Resources