[Q] Deodex 4.1.B.0.431 - Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A

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

Related

[Ready to DONATE][Q] How to manually deodex Email.apk and Mobileprint.apk

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!

Need help editing fw-res

Can anyone please direct me to the correct tutorial(or similar) on how to modify framework-res.apk files of 2011 xperias like St15i,st18i, etc.. ????
I have been Here but it is for the earlier xperias. Does it apply to today's xperias also ???
decompile apk using apkmanager , edit files and zip.
install apkmanager first and you will get to know everything, no need for a tutorial.
metalrawk said:
decompile apk using apkmanager , edit files and zip.
install apkmanager first and you will get to know everything, no need for a tutorial.
Click to expand...
Click to collapse
I'm using Apk Multi tool, since Apk manager is no longer supporting.
My problem is that the system ui apk i have is from a custom rom(Hybrom v11) which has control panel in the notification area.
Now when i'm decompiling the system ui.apk i get an error in apk tool, an error too technical in the log for me to understand.
I get an error in Apk Manager 4.9 too probably the same as apk multi tool.
So if error occurs some part of the apk is not decompiled right ?
If it is not decompiled correctly how am i going to edit the xmls and recompile it ??
systemui.apk needa dependencies to be decompiled. check there will be an option of decompiling apk with with dependency. when it asks for dependency file, point it to framework-res.apk
metalrawk said:
systemui.apk needa dependencies to be decompiled. check there will be an option of decompiling apk with with dependency. when it asks for dependency file, point it to framework-res.apk
Click to expand...
Click to collapse
Just now did that. But apk tool says that framw-res is not the dependent apk. So what is the solution ??
decompile it without dependency and post log here.
Strange now i'm not getting any error . I really had that problem today morning. Thanks for Prompt replies prateek
Any way one off topic question . Can you tell me how to mod power menu. I want to add reboot and recovery in power menu for my st15i . Do i have to add images for it ??
its not in systemUI afaik. there is other file I forgot its name.
metalrawk said:
its not in systemUI afaik. there is other file I forgot its name.
Click to expand...
Click to collapse
Currently i'm refering This thread. It says I have to edit fw-res and Android.policy.jar . Is that method applicable to Xperia 2011 devices ??
crazyadmit said:
Currently i'm refering This thread. It says I have to edit fw-res and Android.policy.jar . Is that method applicable to Xperia 2011 devices ??
Click to expand...
Click to collapse
yes it will work

[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)

[ HELP ] Decompiling and recompiling stock ICS framework-res

Hallo, I tried a lot of apktools and aapts but I am unable to recompile framework-res Every time resources have diferent size than stock framework-res and I have no idea how to hack them. If some one allready hacked them please help here! Seems Sony using an totally new aapt tool which is not public? I tried to recompile framework-res without modifying them but every time I getting boot loop.
munjeni said:
Hallo, I tried a lot of apktools and aapts but I am unable to recompile framework-res Every time resources have diferent size than stock framework-res and I have no idea how to hack them. If some one allready hacked them please help here! Seems Sony using an totally new aapt tool which is not public? I tried to recompile framework-res without modifying them but every time I getting boot loop.
Click to expand...
Click to collapse
framework from stock???
Yes
Note: mean about modifying xml files, not drag and drop from the one to the another... ! I have resigned all apks (including framework-res) and have no boot loop but framework-res can not be recompiled and signed, only signed! Allso drag and drop not working if xml files is modified! Hope you understand what I mean?
munjeni said:
Yes
Note: mean about modifying xml files, not drag and drop from the one to the another... ! I have resigned all apks (including framework-res) and have no boot loop but framework-res can not be recompiled and signed, only signed! Allso drag and drop not working if xml files is modified! Hope you understand what I mean?
Click to expand...
Click to collapse
Have U tried to drag 'n drop AndroidManifest.xml and META-INF folder from stock to modified framework-res and overwrite everything ( of course using archive manager )??
I needed to do this in my MIUI port ( CyanogenMod10 based ) for X8, because after every recompile I needed to copy them to not get bootloop
NeveHanter said:
Have U tried to drag 'n drop AndroidManifest.xml and META-INF folder from stock to modified framework-res and overwrite everything ( of course using archive manager )??
I needed to do this in my MIUI port ( CyanogenMod10 based ) for X8, because after every recompile I needed to copy them to not get bootloop
Click to expand...
Click to collapse
No, I have success in resigning unmodified stock framework-res, so META-INF have no sense because new META-INF is signed by new key and its working! There is problem with "format" ...seems Sony have his own aapt and apktool which making totaly diferent "format" than apktool and aapt that we using. I tried many of the aapt | apktool but .arsc have totaly diferent size (allso png files is with totaly diferent size)... !
Have u used the apk manager by diamondback??
http://forum.xda-developers.com/showthread.php?t=1619473
I am working in Linux machine!
munjeni said:
I am working in Linux machine!
Click to expand...
Click to collapse
have you figured out the problem yet??
and one thing I wanted a favour........
I wanted to change the rotation fix for your MIUI to back to its original state..... decompiled the framework-res.apk from the MIUI and changed the some values in framework-res/res/values/bools.xml and then recompiled it and when I replaced it with the default one I was getting the status bar of different width from the original..... it was almost double..... I also tried by just replacing some images just for test and the same thing happened........
Can you tell me whats the problem is????
Hey bro,
Even I was stuck with this issue for a while I think it was Spaun_Studio who found out how to fix this issue Its basically to do with apktool not bundling the required nxt drawables as needed Anyway, Here's the fix :
1) After decompiling, go to apktool.iml and delete the following lines :
usesFramework:
ids:
- 2
Click to expand...
Click to collapse
2) Go to res/values and open styles.xml. There, delete all references to sonyericcson.uxp:drawable (Delete the entire line)
Then, compile and it will work
Credits to Spaun_Studio and not me for the idea
Cheers
@[email protected] said:
have you figured out the problem yet??
and one thing I wanted a favour........
I wanted to change the rotation fix for your MIUI to back to its original state..... decompiled the framework-res.apk from the MIUI and changed the some values in framework-res/res/values/bools.xml and then recompiled it and when I replaced it with the default one I was getting the status bar of different width from the original..... it was almost double..... I also tried by just replacing some images just for test and the same thing happened........
Can you tell me whats the problem is????
Click to expand...
Click to collapse
Seems you missing something!
Min3r said:
Hey bro,
Even I was stuck with this issue for a while I think it was Spaun_Studio who found out how to fix this issue Its basically to do with apktool not bundling the required nxt drawables as needed Anyway, Here's the fix :
1) After decompiling, go to apktool.iml and delete the following lines :
2) Go to res/values and open styles.xml. There, delete all references to sonyericcson.uxp:drawable (Delete the entire line)
Then, compile and it will work
Credits to Spaun_Studio and not me for the idea
Cheers
Click to expand...
Click to collapse
Thanks mate for info, I will try soon! Its looking like problem you mentioned!
munjeni said:
Thanks mate for info, I will try soon! Its looking like problem you mentioned!
Click to expand...
Click to collapse
If you can help with the steps it would be great....... IF you are free then please help........ Thanks....

[Q] Help Required Editting framework.jar

Hi, I am hoping that one of the Android developers on here might be able to give me a bit of advice please regarding editting my 'framework.jar' file.
I have a Jiayu G3 phone running Android Jelly Bean 4.1.2 but my caller ID is not functioning properly because it is not matching local & international numbers. Having done a lot of searching it appears that this is probably due to the parameters in the 'framework.jar' file as per this post on xdadevelopers here
I have succesfully decompiled the 'framework-res.apk' file using apktools and confirmed that the 'config_use_strict_phone_number_comparation' variable is set to false. However, I am having trouble decompiling the 'framework.jar' file.
I have copied the 'framework.jar' file from my phone and opened it in a Jave decompiler. However, all I am presented with is the following:
Code:
META-INF
MANIFEST.MF
preloaded-classes
(See attached image)
In the xda post it says the following:
II) Check for and fix MIN_MATCH constant in telephony framework
1) Decompile framework.jar
2) Open smali/android/telephony/PhoneNumberUtils.smali
3) Search for MIN_MATCH constant and set it to 0x7
Click to expand...
Click to collapse
...but I don't appear to have that in mine.
Am I doing something wrong.
If anyone could offer any advice I would be very grateful.
Many thanks
Russell
P'S. I tried replying about this in the original xda post itself but I don't have authorisation to post in the developers section so I thought I would try here instead.
So, is no one able to help me with this then. All the searching I've done indicates that when I decompress 'framework.jar' then I should have 'classes.dex' inside. However I don't have that.
Can anyone explain to me why this is please before I pull the rest of my hair out.
Thanks
Russell_S said:
So, is no one able to help me with this then. All the searching I've done indicates that when I decompress 'framework.jar' then I should have 'classes.dex' inside. However I don't have that.
Can anyone explain to me why this is please before I pull the rest of my hair out.
Thanks
Click to expand...
Click to collapse
You have to use apktool and apply the command to decompile..
eg.
apktool d framework.jar
this in cmd, will create a new folder named framework.jar.out, then you navigate inside this folder were all the smali's files are etc..
PS. you can't open framework.jar in java decompile, you can open framework.jar extract the classes.dex then use dex2jar tool and turn it back into framework_classes.jar this is the one that can be viewed with java decompilers
Does annybody know....
Where i can find a clean Settings.apk for the GE 4.3 (i9505) that i can mod? (Decompile/Recompile)
frapedas said:
You have to use apktool and apply the command to decompile..
eg.
apktool d framework.jar
this in cmd, will create a new folder named framework.jar.out, then you navigate inside this folder were all the smali's files are etc..
PS. you can't open framework.jar in java decompile, you can open framework.jar extract the classes.dex then use dex2jar tool and turn it back into framework_classes.jar this is the one that can be viewed with java decompilers
Click to expand...
Click to collapse
Thanks for the help. I'm away this week but I'll give it a go next weekend when I'm back.
Sent from my GT-I9100 using Tapatalk 2
Force it into submission
be rough with it
Sent from my HTC One using Tapatalk 4
Russell_S said:
then I should have 'classes.dex' inside. However I don't have that.
Click to expand...
Click to collapse
Are you using a deodexed ROM?
XperienceD said:
Are you using a deodexed ROM?
Click to expand...
Click to collapse
You've got me there. How would I find out?
Sent from my GT-I9100 using Tapatalk 2
Ok, I'm gradually learning here. Having done a bit of research it appears that my rom is odexed (I have .apk and .odex files in my /system/app folder).
I'm assuming then that this will scupper my plans to edit my framework.jar file.
Sent from my GT-I9100 using Tapatalk 2
Russell_S said:
I'm assuming then that this will scupper my plans to edit my framework.jar file.
Click to expand...
Click to collapse
No no, you just need to deodex your ROM then, luckily for you I've got a little thread here - [Info/How-To/Tools] Deodexing Made Easy... - which will help you with that, obviously ignore the Xperia Z Users part and give the rest a read.
XperienceD said:
No no, you just need to deodex your ROM then, luckily for you I've got a little thread here - [Info/How-To/Tool] Deodexing Made Easy... - which will help you with that, obviously ignore the Xperia Z Users part and give the rest a read.
Click to expand...
Click to collapse
Thanks very much for that, I shall digest the information while I'm on holiday ready to act on it when I get back.
I'll let you know how I get on.
Sent from my GT-I9100 using Tapatalk 2

Categories

Resources