Edit settings.apk - Sony Xperia P, U, Sola, Go

I am trying to edit settings .apk it decompile easily but whenever i try to recompile its shows me error

Related

howto de/compile systemui.apk without any error

Hello,
I wanted to de/compile the systemui.apk and got errors.
I installed framework-res.apk with apktool.
After installation I used apktool (Win7) and decompiled the systemui.apk.
But I got the same errors as many others have gotten them.
brut.blahblahblah..
So I tried other apktool.jar (apktoolICS.jar) and it worked fine!
I opened the new systemui folder and there are the following folders:
res and assets
no smali folder. is it right and normal?
Because the compiling with old apktool (not apktoolICS) didn't work, I compiled with the ICS file and it worked. I got the translation message (airplane_mode).. Not interesting for me atm.
When I look at the new built systemui.apk, I wondered about the file size.
The new file: 1.009kb
The old file: 1.338kb
I signed the new file. Now the file size is 1.044kb.
I edited only a xml file (styles.xml)..
The file didn't work on the sgs2..
Could someone tell me what I did wrong?
Please help me
Best regards
Marcus
*push* after moving to correct section
maybe no need to sign your new file,
try to drag the META-INF folder and the AndroidManifest.xml from the older file to the new file you build
BTW, is your old systemui file a deodex one?
if no deodex, the smali code wil include in the odex file~

[Q] Problem with apks (de)compiled with apktool

I made some changes to my SystemUI.apk, and I pushed it back, then rebooted, only to find my status bar had disappeared.
So, I restored to my backup, and made 4 copies of the SystemUI.apk to try to find out where the problem lay.
Copy 1: No change
Copy 2: Decompiled and Compiled with apktool. No other change.
Copy 3: Decompiled with apktool. Changed one png. Compiled with apktool
Copy 4: Decompiled with apktool. Edited text in strings.xml and changed a few colours. Compiled with apktool.
Out of these 4, only the first one worked. The rest had my status bar gone. Hence I have arrived at the conclusion that something had gone wrong in either the compiling or decompiling stages. I didn't sign the apk because I read that system apps should not be signed.
Just to make sure, these were the steps I took.
1. Retrieve SystemUI.apk, framework-res.apk, and SemcGenericUxpRes.apk
2. Install frameworks with apktool
3. Decompile SystemUI.apk
4. Make any changes
5. Compile
6. Place on SD card
7. Change \system\ to be RW
8. Copy SystemUI.apk from sd card, and overwrite the one in \system\app
9. Ensure permissions are set to rw-r-r (644)
I have not much idea what else could have gone wrong, but then again, I'm just a newbie who follows others' guides and might have missed out on doing something. Perhaps some kind soul would be able to point that out?
Well, apktool is using smali/baksmali to compile/decompile classes.dex/apk_name.odex file.
The problem can occur when you use different baksmali version when you decompile and also not the right version to compile (as the system expects it to be). You can also experience issues if the apk is not zipaligned properly (check down who to do that)
apktool has the smali/baksmali code inside it so you will need to get the newest version for it for JB for example.
You can check why the status bar is not there when you monitor the logcat and look for DEX related logs in the beginning.
You can also use smali/baksmali on your own: http://code.google.com/p/smali/wiki/DeodexInstructions
and just place the generated classes.dex in the apk
then zipalign -f 4 filein.apk fileout.apk (http://developer.android.com/tools/help/zipalign.html)
then push back fileout.apk (sytemui.apk in your case)

[how-to]change status bar clock color on latest samsung released rom

Hi , I had search every where how to change clock color on status bar in latest Samsung ROM ( JB ) but non-work
Coz its code is a bit different from other ROM. So here's how
Requirement :
SystemUI.apk
A bit knowledge about decompiling
Patience
First --->
Decompile your systemUI.apk, go res/layout/tw_status_bar.xml
Then --->
Search for this code
Code:
<com.android.systemui.statusbar.policy.Clock
Then --->
You will see
Code:
android:textColor="#fffefefe
behind it.
Now you may change whatever color you want by changing the code.
Here http://html-color-codes.info/ it maybe useful for you to find the color code
Note : The last 6-digit IS the color code, whereby
the two in front it is transparency.
It count by
#FF****** ( Opaque )
#00****** (Transparent )
It is recommended not to change the first two digits except you know what you are doin :laugh:
Now --->
Recompile your apk , drag resources.arsc and tw_status_bar.xml from your newly build APK to your old SystemUI.apk
Finally --->
Push your SystemUI,apk to system/app of your phone and reboot.
DONE.
DO PRESS THE THANKS BUTTON IF I HELP YOU !!!! CHEERS
Thanks
And to center the clock you can make an 'how to' ?
do i need the framework-res.apk when decompining,ma8?
Sent from my GT-I9100 using Xparent Skyblue Tapatalk 2
can't seem to work
everytime i try to either decompile the systemUI i make the changes but when i try to compile the systemUI back to an .apk file it doesnt compile it gives me errors i tried APKtool and APK manager both which gives me the errors also when i ty to do it which out decompiling them it gives me systmUI Force Close.. idk what to do please
Mundo Hackz said:
everytime i try to either decompile the systemUI i make the changes but when i try to compile the systemUI back to an .apk file it doesnt compile it gives me errors i tried APKtool and APK manager both which gives me the errors also when i ty to do it which out decompiling them it gives me systmUI Force Close.. idk what to do please
Click to expand...
Click to collapse
I would double check what codes you are using for the colors as I tried the html code and it wouldn't compile. When i searched for an ARGB color chart I was able to re-compile
Thanks for the info JoFury

[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

Can't edit systemui.apk in Alcatel flash6042d

Hi I was trying to decompile and edit xmls in systemui.apk but after decompiling the folder does not have "res" folder contains the xmls so I searched around and found out that the xmls were in systemui-res.apk present in custpack/jrd_custres/apk so I tried to decompile it after trials and errors I decompiled KT and edited the xmls but then while recompiling I get error messages like android manifest not present though they weren't from the start.
So please can anybody help me with this I wanted to remove the transparent codes in status bar_expanded .
Plzzz help

Categories

Resources