So today I came up with a guide to deodex your apps withour deodexing your rom.
All credits goes to @eboybasit
REQUIREMENTS
Apktool
The app you want to deodex and the same app from any deodexed rom/custom rom of your device.
A cup of coffee.
Now,
Setup apktool
decompile your app(the odex one)
Also decompile the app from the custom rom
For example lets deodex SystemUI
Decompile your SystemUI.apk
Decompile CustomUI.apk
Now head to CustomUI folder
Copy Smali folder.
Now head to SystemUI folder.
Paste the Smali folder in there.
Now recompile SystemUI.apk. Sign it by pushing Meta-inf and Androidmanifest.
Voila! Your SystemUI is now deodexed!
Note: This method worked for me. DWYOR. :silly:
Don't forget to hit thanks If you like my work!
This method seems to be pretty difficult, instead my this guide is a lot more easy and can work on any device
http://forum.xda-developers.com/showthread.php?t=2979042
Aniruddha_Pathak said:
So today I came up with a guide to deodex your apps withour deodexing your rom.
All credits goes to @eboybasit
REQUIREMENTS
Apktool
The app you want to deodex and the same app from any deodexed rom/custom rom of your device.
A cup of coffee.
Now,
Setup apktool
decompile your app(the odex one)
Also decompile the app from the custom rom
For example lets deodex SystemUI
Decompile your SystemUI.apk
Decompile CustomUI.apk
Now head to CustomUI folder
Copy Smali folder.
Now head to SystemUI folder.
Paste the Smali folder in there.
Now recompile SystemUI.apk. Sign it by pushing Meta-inf and Androidmanifest.
Voila! Your SystemUI is now deodexed!
Note: This method worked for me. DWYOR. :silly:
Don't forget to hit thanks If you like my work!
Click to expand...
Click to collapse
good job..thanks working perfect
great
Thanks
Glad it helped you
I found another easiest method using multitool but..thanks again for this hope this may help others
Related
Hello,
I want to decompile the DefaultThemes.apk ! However,decompiling with apk manager 4.9 gives an error !
I dont want to just change the images,but add another theme !
What can be done ?
probably the best solution would be enable the cyanogenmod themes manager and install that theme...
nicom.mt said:
probably the best solution would be enable the cyanogenmod themes manager and install that theme...
Click to expand...
Click to collapse
But that isn't possible on stock ROM right ?? What to do for stock ROM ?
dont need to decompile, just change files using 7zip
metalrawk said:
dont need to decompile, just change files using 7zip
Click to expand...
Click to collapse
I want to add a theme,not replace existing !
defaultheme.apk need dependencies for being decompiled which is framework-res.apk and SemcGenericUxpRes.apk
you can find them on /system/framework
I do not use apkmanager so can't tell you the way to do it but with apktool i do this
Code:
apktool if framework-res.apk
apktool if SemcGenericUxpRes.apk
peexl said:
defaultheme.apk need dependencies for being decompiled which is framework-res.apk and SemcGenericUxpRes.apk
you can find them on /system/framework
I do not use apkmanager so can't tell you the way to do it but with apktool i do this
Code:
apktool if framework-res.apk
apktool if SemcGenericUxpRes.apk
Click to expand...
Click to collapse
Hello,thanks ! I was able to decompile the apk successfully. However,I added the desired files for new theme,added the ids,and edited the smali files ! I then recompiled it and signed it. However,after pushing it to the phone,it doesn't work,just a blank screen is displayed ! Here is my apk ! What shall I do to make it work ?
Thanks !
Edit : It is working after restarting phone,however new theme doesn't show up in themes menu,only old ones are shown !
i have this eror too...
decompile apkmanager v5.0 send log: cant find framework resourse of parkage of id:2.You must install proper framework file, see project wedsite for more info.??
How can i decompile this defaultthemes.apk?
sr my bad english..!
Solution?
What I do is using Root Explorer.apk I extract the file while on the phone (it automatically unfold it in a new folder called extracted). I copy the original files to a TMP folder in case I delete or make mistake with the original files when copy them over.
I then connect the phone via USB and change the files thats need to be changed and then I unplug the USB cable and again using the Root Explorer.apk I choose to zip it again. An from there I rename the new file to *.apk
Hope it helps
guys please help...i like too much defaultthemes but i did everything and they don't take effect to my phone...mini pro 2.3.7 mcm7 v21 i put them in the system/app change perm but nothing...maybe cause i have a theme from themechooser or something...in the start i didn't replace the default themes.apk there wasn't anything there... any ideas???thanks
nitsakh said:
Hello,thanks ! I was able to decompile the apk successfully. However,I added the desired files for new theme,added the ids,and edited the smali files ! I then recompiled it and signed it. However,after pushing it to the phone,it doesn't work,just a blank screen is displayed ! Here is my apk ! What shall I do to make it work ?
Thanks !
Edit : It is working after restarting phone,however new theme doesn't show up in themes menu,only old ones are shown !
Click to expand...
Click to collapse
how did yu decompile it? please tell me too.. i use apk manager!
Aarush said:
how did yu decompile it? please tell me too.. i use apk manager!
Click to expand...
Click to collapse
Use the following commands with apktool to decompile ::
Code:
apktool if framework-res.apk
apktool if SemcGenericUxpRes.apk
apktool d DefaultThemes.apk
I'm trying to learn more about modding my APKs (to change colors and little things) and I'm wondering if there is a good guide anyone knows of that will walk me through getting started. I've found several specific to a device but not for the reZound and am not sure what is the same and what is not. Any insight will be appreciated.
Go to the Android theming section. There are some good guides there.
Sent from my ADR6425LVW using xda premium
You need apktool and 7zip
Sent from my Dinc... I mean Rezound
Here's my APKtool setup(that works) LINK
The only other thing you'll need is 7-zip.
I have APKtool in my PATH to make life easier.
Start off by adding your current framework:
apktool if framework-res.apk
apktool if SystemUI.apk
apktool if com.htc.resources.apk
Decompile:
apktool d SystemUI.apk
Compile:
apktool b SystemUI (this is a directory not a file name)
or
apktool b SystemUI SystemUI.apk (specifies the apk name to build)
MrSmith317 said:
I have APKtool in my PATH to make life easier.
Start off by adding your current framework:
apktool if framework-res.apk
apktool if SystemUI.apk
apktool if com.htc.resources.apk
Click to expand...
Click to collapse
Do I need to pull those 3 apk's from the phone (in the system folder I think)? And then add the apk I want to edit as well?
pmterp said:
Do I need to pull those 3 apk's from the phone (in the system folder I think)? And then add the apk I want to edit as well?
Click to expand...
Click to collapse
you input which apks you want to decompile for edits which is like creating a format or template.
sent from my ICS flavored HTC Vigorous Vigor. If I helped please use the "thanks" option!
pmterp said:
Do I need to pull those 3 apk's from the phone (in the system folder I think)? And then add the apk I want to edit as well?
Click to expand...
Click to collapse
Yeah, apktool will make copies but you do need to pull them from the phone first
/system/app/SystemUI.apk
/system/framework/framework-res.apk
/system/framework/com.htc.resources.apk
Thanks for the help guys! Just changed my first icon!!!
Can't find smali folder after decompiling systemui.apk/framework-res.apk
As the titles says, i'm unable to find smali folder either by decompiling using apktool or using 7zip or winrar or anything... I have hidden files/folder view enabled on my laptop/64bit windows 7. My device is xperia s with stoke ics 4.0.4. I posted here to know if its general. Or is there no smali folder in systemui.apk n framework-res.apk.. Or its something specific to sony's ics? Thanx for clarifying me doubt....
There are none in the framework-res.apk, and they reside in the SystemUI.odex on a stock odexed system - you need to first deodex to get to the smali files.
Sent from my phone's mind
Thanx man...
alteredlikeness said:
There are none in the framework-res.apk, and they reside in the SystemUI.odex on a stock odexed system - you need to first deodex to get to the smali files.
Sent from my phone's mind
Click to expand...
Click to collapse
So now i have to first decompress original firmware to get odex one or in port rom i can get and path pls
Hello, i would like to modify this systemui.apk but everytime i decompile and then recompile the apk it is no longer functional and is of a smaller size.For example, i decompiled and recompiled the apk without any modifications and then signed it but the file was 2.25mb instead of 2.53mb and didn't function
so can you please decompile the apk and recompile the apk, if it is about 2.5mb please upload the decompiled folder
I have uploaded the systemui.apk nd framework-res.apk
thank you
Anyone??
You need to add the manifest/metadata from original apk when working with system apks. And the loss of mb is normal. I see its tw but what firmware?
andrewwright said:
You need to add the manifest/metadata from original apk when working with system apks. And the loss of mb is normal. I see its tw but what firmware?
Click to expand...
Click to collapse
Thank you very much it worked It's actually an 4.4.2 aosp rom themed like touchwiz
No problem. :thumbup:
I want clarification, for example lets use samsung s6, stock ROM which is odexed, if I wanted to modify say the date on the status bar, it is located in status_bar.xml. Do you need to deodex SystemUI.apk before making changes to the xml file or can you just use apktool to decompile SystemUI.apk, open status_bar.xml, make the changes, and recompile SystemUI.apk and push to the phone? Does SystemUI.apk need to be deodexed first, than re-odexed before being pushed back to the phone?
Thanks
arf8 said:
I want clarification, for example lets use samsung s6, stock ROM which is odexed, if I wanted to modify say the date on the status bar, it is located in status_bar.xml. Do you need to deodex SystemUI.apk before making changes to the xml file or can you just use apktool to decompile SystemUI.apk, open status_bar.xml, make the changes, and recompile SystemUI.apk and push to the phone? Does SystemUI.apk need to be deodexed first, than re-odexed before being pushed back to the phone?
Thanks
Click to expand...
Click to collapse
You should be able to mod it without deodexing.
Deodexing is needed when you have to edit the smali file, layout editing and image replacement can be done on odexed :good:
Great thanks for the confirmation.
With regards to deodexing and odexing what is your favorite tool?