Modifying SystemUI.apk odex vs deodex? - Android Q&A, Help & Troubleshooting

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?

Related

[Q] How to decompile/recompile apks for Rezound ICS

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!!!

[Q] Can't find smali folder after decompiling systemui.apk/framework-res.apk

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

[DEV][REQ]Decompile systemui.apk

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:

[L7 II][ROM][HELP]How to change icon on Notification bar?

How can I change the icons in the notification bar stock with those of G3??
AssoDiPicche said:
How can I change the icons in the notification bar stock with those of G3??
Click to expand...
Click to collapse
You must decompile LGSystemUI.apk, then find&replace icons in /res/drawable-hdpi/ folder, must be same size (picture-no data) and type (usually .png).
Some of icons is in lge-res.apk and framework-res.apk. Procedure is same.
Files must be deodexed.
Recompile and enjoy.
Thank you!!
maxx_hr said:
You must decompile LGSystemUI.apk, then find&replace icons in /res/drawable-hdpi/ folder, must be same size (picture-no data) and type (usually .png).
Some of icons is in lge-res.apk and framework-res.apk. Procedure is same.
Files must be deodexed.
Recompile and enjoy.
Click to expand...
Click to collapse
Thank you very much , I'll try in the evening !
maxx_hr said:
You must decompile LGSystemUI.apk, then find&replace icons in /res/drawable-hdpi/ folder, must be same size (picture-no data) and type (usually .png).
Some of icons is in lge-res.apk and framework-res.apk. Procedure is same.
Files must be deodexed.
Recompile and enjoy.
Click to expand...
Click to collapse
Please can you guide me how to decompile and recompile LGSystemUI.apk
yashgumaste said:
Please can you guide me how to decompile and recompile LGSystemUI.apk
Click to expand...
Click to collapse
OK,
First, read this: http://forum.xda-developers.com/showthread.php?t=2251719
When you install al nessesery applications, ask if/when you stuck.
Or, if you ready to learn, there is my favourite app Virtuous Ten Studio, http://forum.xda-developers.com/showthread.php?t=1619473,
or http://virtuous-ten-studio.com/
maxx_hr said:
OK,
First, read this: http://forum.xda-developers.com/showthread.php?t=2251719
When you install al nessesery applications, ask if/when you stuck.
Or, if you ready to learn, there is my favourite app Virtuous Ten Studio, http://forum.xda-developers.com/showthread.php?t=1619473,
or http://virtuous-ten-studio.com/
Click to expand...
Click to collapse
I downloaded Virtuous ten studio and trying to decompile android.policy.jar, but cant find how to do it.
I opened that jar file through new project but cant figure out what to do next.
yashgumaste said:
I downloaded Virtuous ten studio and trying to decompile android.policy.jar, but cant find how to do it.
I opened that jar file through new project but cant figure out what to do next.
Click to expand...
Click to collapse
Didn't you ask: Please can you guide me how to decompile and recompile LGSystemUI.apk.
So, lets start with that... it is (infinitely) simpler than handling with android.policy.jar.
For beginning, please read and install from here:http://forum.xda-developers.com/showthread.php?t=2251719
All of this you need if you want to use VTS.
That is good base for start and understand this process (and works with kitkat).
And for virtuos ten studio, first you MUST read tutorials at this page: http://virtuous-ten-studio.com/, but if you don't understand base of whole process, VTS is useless.
maxx_hr said:
You must decompile LGSystemUI.apk, then find&replace icons in /res/drawable-hdpi/ folder, must be same size (picture-no data) and type (usually .png).
Some of icons is in lge-res.apk and framework-res.apk. Procedure is same.
Files must be deodexed.
Recompile and enjoy.
Click to expand...
Click to collapse
I think we can decompile and compile apk via any root browser (Extract to decomplie and zip to compile).
Do you know a link where I can get notification bar icons from G3.
Thank you
yashgumaste said:
I think we can decompile and compile apk via any root browser (Extract to decomplie and zip to compile).
Do you know a link where I can get notification bar icons from G3.
Thank you
Click to expand...
Click to collapse
I dont know where you take only icons, you must take it by yourself from LGSystemUI, or framework-res from original G3 rom.
Try to extract from here: https://app.box.com/s/m0tvrwabte4x6lyc2la1, if they look like in attached pic.
Or try to search or ask someone on G3 forum.

[TouchWiz 4.1+] How to deodex apps without deodexing rom

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

Categories

Resources