[Q] Odex Jar - T-Mobile Samsung Galaxy S 4

I decompiled my android.policy.jar and made some changes to my smali files. I'd like to know what the simplest way to compile/odex it so I can push it back to my phone? I am on a stock odexed TW rom.
Thanks!

Related

[Request] Stock XXKL1 Framework files

Hello,
I want the following files from stock XXKL1 ROM (2.3.6) I believe.
android.policy.jar
framework.jar
services.jar
framework-res.apk
Just don't want to download whole ROM for specific files Need them for SGS2 Lockscreen Port for SGS (JW1 2.3.6)
Regards,
Rahul
Why do you need stock kl1 files? You could use darky jw1 as a source. SGS2 lock is in the lockmod with the others
Sent from my GT-I9100 using Tapatalk
You need yet?
If you need, i can upload for you.
Hi,
I want's this file:
twframework-res.apk
framework-res.apk
SystemUI.apk
and the odex file please
for the firmware I9100XXKL1 ODEXED version
sorry but my english is very bad.
im sorry my xxkl1 is deodex.
i dont have .dex files.

Modding Phone.apk

I've decompiled the Phone.apk from system/app/ and modified some images to change the dialer theme but I tried to replace the apk using cwm and it showed the same Phone interface and if I look at the file with the file explorer it has the modified Phone.apk in the system/app/ folder, I've also tried to replace it with the explorer with no results.
I'm using a deodexed LPQ rom.
Can you please make a phone.apk without increasing ring........thank you..
Sent from my GT-I9100 using xda premium
You need to modify Contacts.apk as well.. and maybe framework-res.apk (depending on what you're modifying)
EDIT: also, you don't need to decompile if you're only swapping out the PNG's.. unless you make XML changes as well, just drag the PNG's to the APK with 7zip.

I Can't Find The twframework-res.apk

So I am trying to using apk-took but I can not located the twframework-res.apk I have found the framework-res.apk in /system/framework/ directory and place both files in the other folder. I am running the stock rooted rom. Do I need to find the rom and decompile it or does someone already have those files for the GN that I can use. Any help would be nice. Thanks :cyclops:
LOL because we dont have a touchwiz framework-res.apk why are you looking for it anyways?
I figured, I thought it was required for apk tool. Thanks for the reassurance though and taking your time to answer this question.
Nope just need to run
Code:
apktool if framework-res.apk
then you can start decompiling system apps and such. Make sure you have the framework-res.apk from your ROM and running that command in the same directory (folder) as the APK.
ÜBER™ said:
LOL because we dont have a touchwiz framework-res.apk why are you looking for it anyways?
Click to expand...
Click to collapse
Hello! Where to find the twframework-res.apk in Android Oreo?

SecPhone apks corrupt?

Are the SecPhone.apk corrupt? I can decompile the apk perfectly fine but I cannot get it to recompile after making changes to the xml files. I have tried different SecPhone.apk from different stock ROMs including stock ROMs from the SIII and still same thing. I am currently on XXLSJ stock ROM. If anyone can recompile the SecPhone.apk without any errors please help. Thanks.
princeferoz said:
Are the SecPhone.apk corrupt? I can decompile the apk perfectly fine but I cannot get it to recompile after making changes to the xml files. I have tried different SecPhone.apk from different stock ROMs including stock ROMs from the SIII and still same thing. I am currently on XXLSJ stock ROM. If anyone can recompile the SecPhone.apk without any errors please help. Thanks.
Click to expand...
Click to collapse
Excuse me, how do you solved it?
littlethings said:
Excuse me, how do you solved it?
Click to expand...
Click to collapse
When you try to recompile the APK, go to the log and find out which XML files having bad lines and just delete those lines. This has at least worked for me. But you can always send me the APK and I'll recompile them for you.

How to mod android.policy.jar?

My Xperia S is official , it is odex
I want to mod the android.policy.jar
but I find it in system/framework/android.policy.jar is only 1KB
and the android.policy.jar next to android.policy.odex which is 369KB
I think the android.policy.odex is normal.
The android.policy.jar 's information is not I need , only have a small data!
How can i mod the android.policy.jar??
Thank you Very much~!
The android.policy.jar & android.policy.odex :
View attachment 2205036
:fingers-crossed:
lllllllllll said:
My Xperia S is official , it is odex
I want to mod the android.policy.jar
but I find it in system/framework/android.policy.jar is only 1KB
and the android.policy.jar next to android.policy.odex which is 369KB
I think the android.policy.odex is normal.
The android.policy.jar 's information is not I need , only have a small data!
How can i mod the android.policy.jar??
Thank you Very much~!
The android.policy.jar & android.policy.odex :
View attachment 2205036
:fingers-crossed:
Click to expand...
Click to collapse
Hi,
In order to make changes in the android policy.jar file, you first need to deodex it. You can very easily deodex it using my software over here - http://forum.xda-developers.com/showthread.php?t=2213235
Then, follow this huide to decompile the jar - http://forum.xda-developers.com/showthread.php?t=1732635
Good luck
Sent from my LT26i using xda app-developers app
abcdjdj said:
Hi,
In order to make changes in the android policy.jar file, you first need to deodex it. You can very easily deodex it using my software over here - http://forum.xda-developers.com/showthread.php?t=2213235
Then, follow this huide to decompile the jar - http://forum.xda-developers.com/showthread.php?t=1732635
Good luck
Sent from my LT26i using xda app-developers app
Click to expand...
Click to collapse
OK, thank you
Am i just deodex the android policy.jar? Do not need to deodex my rom?
Then , it is different for decompile the jar and decompile the apk?
Thank YoU ~
I'm Hongkonger~~ :victory:
lllllllllll said:
OK, thank you
Am i just deodex the android policy.jar? Do not need to deodex my rom?
Then , it is different for decompile the jar and decompile the apk?
Thank YoU ~
I'm Hongkonger~~ :victory:
Click to expand...
Click to collapse
You do not need to deodex your entire rom. Only deodexing the android policy.jar file will suffice. Decompiling a jar file is slightly different from decompiling an apk. We do not use apktool to decompile jar files but execute these two commands - (First extract classes.dex from anroid policy.jar using winrar and place it in the same folder as smali.jar and baksmali.jar)
Code:
java -jar baksmali.jar -o classout/ classes.dex
Make any changes that you want to do now.
Code:
java -Xmx512M -jar smali.jar classout/ -o new-classes.dex
Then rename new-classes.dex to classes.dex and put it back into the jar file.
Regards,
abcdjdj
Is there a guide how to return to odex? My rom is odex. I now have my mod android.policy.jar
AFAIK, when you deodex a framework file, all the rest needs to be deodexed also, something that doesn't exist with apps files...
gercen said:
Is there a guide how to return to odex? My rom is odex. I now have my mod android.policy.jar
Click to expand...
Click to collapse
Here is a guide to re-odex framework files - http://forum.xda-developers.com/showthread.php?t=1208320
Felimenta97 said:
AFAIK, when you deodex a framework file, all the rest needs to be deodexed also, something that doesn't exist with apps files...
Click to expand...
Click to collapse
I am sorry, I confused framework files with apks coz I have myself tried using a deodexed apk on a fully odexed rom and it worked. You are right, using a partially deodexed framework causes bootloops.

Categories

Resources