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:
Related
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
I was trying to decompile, modify and then recompile my SystemUI.APK to put THIS mod into it. I am using THIS TOOL.... Now I can successfully decompile my SystemUI.APK, but when I go to recompile it, nothing happens and there is nothing in the recompiled folder. Can someone help me out, it'd be much appreciated :good:
BTW I have a Sprint GS4 running a custom ROM (TouchWiz based) on Android 4.3.
Anyone?!
Hello,I have problem with recompiling any system apk for kitkat firmware,tried to decompile and recompile framework-res as the usual way of any 4.3 firmware and lower,it does decompile and recompile successfully but when I replace it back instead of the original one I got it stuck at sprint screen for NOTE3 SPRINT .also when I try with SecSettings ,the settings icon disappear after replacing the original one,I even tried building the apk without any modification and I got the same thing.
there is must be something with signing kitkat apk different than 4.3 and lower firmware.
I used the same method of signing A System apk of taking META-INF and AndroidManifest.xml and inserting them into the new APK.
apktool version 1.5.3
phone:NOTE3 SPRINT N900P 4.4.2 STOCK FIRMWARE.
THANK YOU
motiam4 said:
Hello,I have problem with recompiling any system apk for kitkat firmware,tried to decompile and recompile framework-res as the usual way of any 4.3 firmware and lower,it does decompile and recompile successfully but when I replace it back instead of the original one I got it stuck at sprint screen for NOTE3 SPRINT .also when I try with SecSettings ,the settings icon disappear after replacing the original one,I even tried building the apk without any modification and I got the same thing.
there is must be something with signing kitkat apk different than 4.3 and lower firmware.
I used the same method of signing A System apk of taking META-INF and AndroidManifest.xml and inserting them into the new APK.
apktool version 1.5.3
phone:NOTE3 SPRINT N900P 4.4.2 STOCK FIRMWARE.
THANK YOU
Click to expand...
Click to collapse
you shoul install framework and systemui of kitkat and then compile and decompile it
Vaibhav Chauhan said:
you shoul install framework and systemui of kitkat and then compile and decompile it
Click to expand...
Click to collapse
thank you for your reply,but I have already tried that,I did install framework-res.apk and twframework-res.apk and SystemUI.apk
but it fails,tried this time with SecContacts_OSup.apk but it does disappear after replacing it too.
any idea?
motiam4 said:
thank you for your reply,but I have already tried that,I did install framework-res.apk and twframework-res.apk and SystemUI.apk
but it fails,tried this time with SecContacts_OSup.apk but it does disappear after replacing it too.
any idea?
Click to expand...
Click to collapse
which tool you are using??
Vaibhav Chauhan said:
which tool you are using??
Click to expand...
Click to collapse
APKTOOL Version 1.5.3
Ok.thank you.I tried to do it on linux and got it working.
thank you.
motiam4 said:
Ok.thank you.I tried to do it on linux and got it working.
thank you.
Click to expand...
Click to collapse
:good:
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
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?