[REQUEST] Clock Color Change - Samsung Galaxy Player 4.0, 5.0

I have been struggling with this procedure for the past couple of weeks and I am at my wit's end. I have tried both APKTOOL and APK Manager to decompile my SystemUI.apk and no matter how many ways I try to decompile it, there absolutely is no smali directory.
If I post my SystemUI.apk, would an experienced themer, developer, or modder be kind enough to edit the smali coding to make the clock a different color? I am happy with the icons and everything else; I just want the color change.
The color I was looking for is #33b5e5 (the ICS blue). I would appreciate any help someone would be willing to give. Thanks.

Higgs_Boson said:
I have been struggling with this procedure for the past couple of weeks and I am at my wit's end. I have tried both APKTOOL and APK Manager to decompile my SystemUI.apk and no matter how many ways I try to decompile it, there absolutely is no smali directory.
If I post my SystemUI.apk, would an experienced themer, developer, or modder be kind enough to edit the smali coding to make the clock a different color? I am happy with the icons and everything else; I just want the color change.
The color I was looking for is #33b5e5 (the ICS blue). I would appreciate any help someone would be willing to give. Thanks.
Click to expand...
Click to collapse
I will gladly do it for you right now.
Give me about 10 mins time.
EDIT: took a look at the apk, the reason why there is no smali folder is because you are using an odexed rom I believe. You have to be deodexed to be able to modify the smali inside system apks.
Sent using Tapatalk

klin1344 said:
I will gladly do it for you right now.
Give me about 10 mins time.
EDIT: took a look at the apk, the reason why there is no smali folder is because you are using an odexed rom I believe. You have to be deodexed to be able to modify the smali inside system apks.
Sent using Tapatalk
Click to expand...
Click to collapse
Thank you very much for your help.
Is there nothing that can be done?

Higgs_Boson said:
Thank you very much for your help.
Is there nothing that can be done?
Click to expand...
Click to collapse
You could deodex the apk, make your smali edits, re-odex it again, and then push both files into the correct directories, but it is a very annoying and tedious process.
You should flash a custom rom (all of them are deodexed) and make your smali edits from there.
Sent using Tapatalk

Related

[tutorial] decompiling and recompiling framework-res for ics

greetings
this is a basic tutorial on decompiling and recompiling framework-res for ics.
thanks to this thread here which posted the latest aapt and the idea to use two versions of apktool. more is needed though and there are some unnecessary actions so i am adding to this for the rezound.
download this file which contains two versions of apktool and the latest aapt
apktools
add the contents to your apktool folder. rename apktool 1.4.2 to just apktool
install your ics framework
apktool if framework-res.apk
apktool if com.htc.resourses.apk
you will see flag errors but disregard.
decompile framework-res
apktool d framework-res.apk <out>
again you will see flag errors but disregard.you will also see errors in values-hdpi and values- xdpi pointing to the drawables xml. i deleted both xmls to mod the battery percentage.
to recompile. rename apktool to apktool 1.4.2. rename apktool 1.4.3 to just apktool.
this is rather strange but this is what has worked. go to res/values/anims
change this
<anim name="htc_ime_decelerate_interpolator">@anim/zzz_htc_ime_decelerate_interpolator</anim>
to
<item type="anim" name="htc_ime_decelerate_interpolator">@anim/zzz_htc_ime_decelerate_interpolator</item>
then recompile.
apktool b <out>
the anims xml is rebuilt as before which is the strange part.
please post any questions or issues
dude ty so much for this.... u are the king of theme
you are then man bro. thanks for this. now off to mess with stuff.....
Thank you kind sir.. On to the fun
EDIT: I have not tackled the framework yet but it fixed the problem I have been having with SystemUI. I finally get a consistent decompile and re-compile of it.
Thanks
NilsP said:
Thank you kind sir.. On to the fun
EDIT: I have not tackled the framework yet but it fixed the problem I have been having with SystemUI. I finally get a consistent decompile and re-compile of it.
Thanks
Click to expand...
Click to collapse
How because I cant get SysUI?
scrosler said:
How because I cant get SysUI?
Click to expand...
Click to collapse
I just set it up this way and de-compiled with 1.4.2 and re-compiled with 1.4.3 and it only gave me warnings. I actually think the aapt is the answer since that was where I was getting the "could not execute error" after it could not do resources.
It is not 100% because the SystemUI flashed over a live ROM fine but I lost the notification bar on a full wipe. Not sure yet if it is apktool or me.
did you guys get sysUI decompiled yet? i olny get a smali folder and nothing else.
racinwarrior said:
did you guys get sysUI decompiled yet? i olny get a smali folder and nothing else.
Click to expand...
Click to collapse
i didnt have an issue with systemui with the newer aapt. i decompiled, modded and recompiled with apktool 1.4.3
NilsP said:
I just set it up this way and de-compiled with 1.4.2 and re-compiled with 1.4.3 and it only gave me warnings. I actually think the aapt is the answer since that was where I was getting the "could not execute error" after it could not do resources.
It is not 100% because the SystemUI flashed over a live ROM fine but I lost the notification bar on a full wipe. Not sure yet if it is apktool or me.
Click to expand...
Click to collapse
I recompiled my SystemUI last night with a few Smali edits to see if I could get data working. Did a full factory wipe(still no good on the data) but it didn't hose anything else.
fernando sor said:
i didnt have an issue with systemui with the newer aapt. i decompiled, modded and recompiled with apktool 1.4.3
Click to expand...
Click to collapse
MrSmith317 said:
I recompiled my SystemUI last night with a few Smali edits to see if I could get data working. Did a full factory wipe(still no good on the data) but it didn't hose anything else.
Click to expand...
Click to collapse
I finally got a good compile of SystemUI with the new aapt and 1.4.2 apktools. Then I redid it with 1.4.3 and it worked fine. So they key is the aapt fernando provided.
By the way, de-compile with 1.4.2 and re-compile with 1.4.3 was the way I got a failure of the apk with losing the notifications bar.
NilsP said:
I finally got a good compile of SystemUI with the new aapt and 1.4.2 apktools. Then I redid it with 1.4.3 and it worked fine. So they key is the aapt fernando provided.
By the way, de-compile with 1.4.2 and re-compile with 1.4.3 was the way I got a failure of the apk with losing the notifications bar.
Click to expand...
Click to collapse
yes the guide for decompiling was for framework not systemui
fernando sor said:
yes the guide for decompiling was for framework not systemui
Click to expand...
Click to collapse
Yup, figured that and that is wky I went with 1 version for both directions.
Thanks
Well, got the SystemUI working the way I want and moved on to my next project.
Easy one, transparent app drawer right. Well, I get what looks like a good compile but no home screens after an install.
I will keep plodding away.
@NilsP - can you post what worked for you for the systemUI?
@fernando - I dont meant to thread jack but what about turning this thread into a how to for the major apks?
Did anyone elses framework drop by 4MB without even making any changes? When viewing the apks in 7zip is shows that the resoure.arsc file is a different "packed" size than original. Just want to confirm before I flash this with mods done.
bad4u6669 said:
@NilsP - can you post what worked for you for the systemUI?
@fernando - I dont meant to thread jack but what about turning this thread into a how to for the major apks?
Did anyone elses framework drop by 4MB without even making any changes? When viewing the apks in 7zip is shows that the resoure.arsc file is a different "packed" size than original. Just want to confirm before I flash this with mods done.
Click to expand...
Click to collapse
apktool compresses the apk. your fine

need systemui decompiled

i have tried to decompile systemui.apk using apk manager but i always get an error. i can decompile framework-res.apk but systemui alwasy gives me an error. so is there anyone that can decompile it for me and just send me the decompiled folder and then i can just edit it and recompile it my self? i am looking for the stock systemui.apk i think i have the odex one. thanks
fcortes626 said:
i have tried to decompile systemui.apk using apk manager but i always get an error. i can decompile framework-res.apk but systemui alwasy gives me an error. so is there anyone that can decompile it for me and just send me the decompiled folder and then i can just edit it and recompile it my self? i am looking for the stock systemui.apk i think i have the odex one. thanks
Click to expand...
Click to collapse
No-one has been able to do this yet. We have been trying for a long time. There is just something about the ASUS systemui that doesn't play nice.
You could try this thread that I read earlier, you may have some luck with it, I haven't tried:
http://www.xda-developers.com/android/modified-apktool-for-troublesome-system-apks-on-ics/
Doktaphex said:
No-one has been able to do this yet. We have been trying for a long time. There is just something about the ASUS systemui that doesn't play nice.
You could try this thread that I read earlier, you may have some luck with it, I haven't tried:
http://www.xda-developers.com/android/modified-apktool-for-troublesome-system-apks-on-ics/
Click to expand...
Click to collapse
i use apk manager apk tools never works for me. it gives me an error when i type "apktool if framework-res"
how did some people change stuff for their roms if no one can decompile it?
fcortes626 said:
i use apk manager apk tools never works for me. it gives me an error when i type "apktool if framework-res"
how did some people change stuff for their roms if no one can decompile it?
Click to expand...
Click to collapse
The main themes are for non-asus ROMS, ie based on aosp. I believe reNeglect managed to figure something out with regards to ROMs based on asus firmware ie virtuous, but you would need to speak to him about that.
I don't know how forthcoming reNeglect will be, as people have not been giving him much love, and considering the amount of time and effort that he has spent working on his theme, I don't blame him for being pissed off.
Doktaphex said:
The main themes are for non-asus ROMS, ie based on aosp. I believe reNeglect managed to figure something out with regards to ROMs based on asus firmware ie virtuous, but you would need to speak to him about that.
I don't know how forthcoming reNeglect will be, as people have not been giving him much love, and considering the amount of time and effort that he has spent working on his theme, I don't blame him for being pissed off.
Click to expand...
Click to collapse
no there was an edited systemui.apk for the stock rooted prime with locked bootloader. but the only thing changed was the settings menu and clock was change from blue to black. i dont have cwm.

[Q] What is VRTHEME??

I saw lots of theme which has this in their title. but I can't find any guide or tutorial about this. So, what is this? how could I use it? has it any benefit over usual "decompile/theme/recompile/replace"ing an apk?Is there any script to implement it like apktool?
Its the universal theme flasher created by Villain ROM.
As for all your other questions I'm not sure.
Sent from my GT-I9100 using XDA
thanks,
correct me if I'm worng pls.
Universal theme flasher, is kind of template. and I should extract compiled PNGs and xmls from apk file and paste theme into that. and for editing theme, I need to paste and replace those files into the apk file and then decompile that apk.
then what should I do if I changed something in "values" folder? cause it just appears in decompiled apps and It can't be seen in a compiled app.
sam5154 said:
thanks,
correct me if I'm worng pls.
Universal theme flasher, is kind of template. and I should extract compiled PNGs and xmls from apk file and paste theme into that. and for editing theme, I need to paste and replace those files into the apk file and then decompile that apk.
then what should I do if I changed something in "values" folder? cause it just appears in decompiled apps and It can't be seen in a compiled app.
Click to expand...
Click to collapse
I think after compiling the apk, you should copy the "classes" and the other file *-) I can remember its name, and add them there.
Am not sure *-) I had this question too but I thought abt trying it first and if it doesnt work I wld ask. I have no time to try I have exams
Ba7rani123 said:
I think after compiling the apk, you should copy the "classes" and the other file *-) I can remember its name, and add them there.
Am not sure *-) I had this question too but I thought abt trying it first and if it doesnt work I wld ask. I have no time to try I have exams
Click to expand...
Click to collapse
classes.dex is for the smali that has been edited if there was any.
I assume that if the xmls were edited and they point to new PNG images/objects then the resources has been changed. I would say that in this case you would need to have an updated resources file for these adjustments? This could be pulled from your newly compiled .apk that you want to base your flashable theme off?
I am unsure if resources needs to be updated though for certain? I have flashed in the past new xmls and they worked fine, however these were not referencing any new sources or images...so my thoughts are that these mods I made didn't require this additional file?? I could be wrong. I really should read the thread about it here on XDA. I did a long time ago, but have come a long way since then.
I diverse. Try using it without new resources file and see what happens?
You may also like to looking into Morphing as well (very similar concept).
James
i would also like a explanation to what vrtheme is, all i know is that when i flash it IT NEVER WORKS!
xdarkmario said:
i would also like a explanation to what vrtheme is, all i know is that when i flash it IT NEVER WORKS!
Click to expand...
Click to collapse
is your ROM deodexede? It only works on deodexed Rom?
Sent from my GT-N7100 using Tapatalk 2
sam5154 said:
is your ROM deodexede? It only works on deodexed Rom?
Sent from my GT-N7100 using Tapatalk 2
Click to expand...
Click to collapse
yep, both my phones i tried them on are deodexed.

[Q] Help decompiling framework-res.apk

Hey, i am a bit noob here decompiling, and compiling system apks, so now im trying to decompile framework-res.apk from my CM7 rom, and i get a 9.png errors when decompiling and another strange one when compiling.
The whole CMD window is attached.
I hope get some help with this, i also got it with CM9 framework.
bump
Sent from my SG Ace
That means the .9 pangs were made wrong. This happens when some tries to take the easy way to theme things. You will not be able to compile it until you fix them
zelendel said:
That means the .9 pangs were made wrong. This happens when some tries to take the easy way to theme things. You will not be able to compile it until you fix them
Click to expand...
Click to collapse
Its because of the theme?
How can i fix it?
Sent from my SG Ace
Adgoosuc said:
Its because of the theme?
How can i fix it?
Sent from my SG Ace
Click to expand...
Click to collapse
Yes its because of the theme. If yo look at each file it says is broken you will have to remake all those .9.pngs properly. A search will teach you how to do it. You will need the android SDK installed for sure for the .9.png tool.
Adgoosuc said:
Its because of the theme?
How can i fix it?
Sent from my SG Ace
Click to expand...
Click to collapse
You either have to edit the .9.png files with the draw9patch.bat file located in \android-sdk\tools.. and copy basically the pixel borders - put up two windows side by side - one stock and the one you are editing. And make sure you only have one new copy of that file in your drawable folder when done.. no normal .png's of the same name.
Or you could just "borrow" those .9.png files from another rom and use GIMP to basically edit the color only and save... just don't decompile them - use 7zip instead.
alteredlikeness said:
You either have to edit the .9.png files with the draw9patch.bat file located in \android-sdk\tools.. and copy basically the pixel borders - put up two windows side by side - one stock and the one you are editing. And make sure you only have one new copy of that file in your drawable folder when done.. no normal .png's of the same name.
Or you could just "borrow" those .9.png files from another rom and use GIMP to basically edit the color only and save... just don't decompile them - use 7zip instead.
Click to expand...
Click to collapse
Editing a .9 png like that is not the prper way to do it. He will just have issues if he tries to decompile it again. This is why alot o themes break when people try to decompile them to learn.
Take some time out OP and learn how to do it properly. The easy way is never right.
zelendel said:
Editing a .9 png like that is not the prper way to do it. He will just have issues if he tries to decompile it again. This is why alot o themes break when people try to decompile them to learn.
Take some time out OP and learn how to do it properly. The easy way is never right.
Click to expand...
Click to collapse
Which way is not proper? The 2nd suggestion was not intended to be a proper way, but it can work.. and the first way I suggested is what I would consider a good way to learn how to draw the patches - by comparison with known working ones..
EDIT - please elaborate on the not being able to decompile it again later though - I was aware of this issue and had come across it - but never new the cause.
EDIT 2 - I just noticed your stats - please share your seasoned wisdom... I have got a lot to learn yet...
Ok, i have a better way to do what i want, i jzut want to edif bools.xml inside values folder, so ill apply default theme, decompile and edit, and then i replace it.
Thanks to all who helped me!
Sent from my SG Ace
Adgoosuc said:
Ok, i have a better way to do what i want, i jzut want to edif bools.xml inside values folder, so ill apply default theme, decompile and edit, and then i replace it.
Thanks to all who helped me!
Sent from my SG Ace
Click to expand...
Click to collapse
The bools XML will be over writted when you flash the theme.
alteredlikeness said:
Which way is not proper? The 2nd suggestion was not intended to be a proper way, but it can work.. and the first way I suggested is what I would consider a good way to learn how to draw the patches - by comparison with known working ones..
EDIT - please elaborate on the not being able to decompile it again later though - I was aware of this issue and had come across it - but never new the cause.
EDIT 2 - I just noticed your stats - please share your seasoned wisdom... I have got a lot to learn yet...
Click to expand...
Click to collapse
Ok the 1 px boarder around the image has to be the last thing applied to an image. You can edit it with gimp and 7zip but that breaks the border settings. This is the reason most .9.pngs break when decompiled.

Advice on Changing the Clock Color on the SGP 5.0

I've been trying for the past couple of weeks to change the clock color on my SGP 5.0. I searched around on the forums and followed a lot of instructions word-for-word on editing .xmls from the SystemUI.apk and the framework-res.apk. Still, I cannot get the clock color to change.
I had intended to change the clock's color to #33B5E5 (ff33b5e5), and then when that was done, remove the AM/PM. But, at this point, I am so frustrated and would appreciate any assistance from the community.
P.S. - I would be happy to upload the SystemUI and framework-res apks that I am working with if someone can do it for me.
Oh, by the way, I am running stock ROM with themed apks.
Android 2.3.6
KRKPD (because this firmware is the only one compatible with the apks I modded)
Higgs_Boson said:
I've been trying for the past couple of weeks to change the clock color on my SGP 5.0. I searched around on the forums and followed a lot of instructions word-for-word on editing .xmls from the SystemUI.apk and the framework-res.apk. Still, I cannot get the clock color to change.
I had intended to change the clock's color to #33B5E5 (ff33b5e5), and then when that was done, remove the AM/PM. But, at this point, I am so frustrated and would appreciate any assistance from the community.
P.S. - I would be happy to upload the SystemUI and framework-res apks that I am working with if someone can do it for me.
Click to expand...
Click to collapse
Changing the clock color requires editing smali in systemui. Don't worry, it's not too difficult.
I'll link you to the guide once I find it.
EDIT: link found: forum.xda-developers.com/showthread.php?t=1498859
Sent using Tapatalk
klin1344 said:
Changing the clock color requires editing smali in systemui. Don't worry, it's not too difficult.
I'll link you to the guide once I find it.
EDIT: link found: forum.xda-developers.com/showthread.php?t=1498859
Sent using Tapatalk
Click to expand...
Click to collapse
Klin,
Thank you for the prompt reply. I have no doubt that you know what you're talking about. It's just that I was surprised at what you said, because I was under the impression that there were no smali edits needed with gingerbread. Correct me if I'm wrong (which I probably am).
Thanks again.
klin1344 said:
Changing the clock color requires editing smali in systemui. Don't worry, it's not too difficult.
I'll link you to the guide once I find it.
EDIT: link found: forum.xda-developers.com/showthread.php?t=1498859
Sent using Tapatalk
Click to expand...
Click to collapse
Checked out the link. It looks like just the right thing I need, but I am running into a problem. I am using APK Manger 5.1 to decompile apks, but after the apk decompiles, there is no smali folder. Any ideas? Your help is much appreciated.
Higgs_Boson said:
Checked out the link. It looks like just the right thing I need, but I am running into a problem. I am using APK Manger 5.1 to decompile apks, but after the apk decompiles, there is no smali folder. Any ideas? Your help is much appreciated.
Click to expand...
Click to collapse
That's weird... I've never run into anything like that before.
You could extract the classes.dex from the apk with 7zip and then baksmali it.
Sent using Tapatalk
Higgs_Boson said:
Checked out the link. It looks like just the right thing I need, but I am running into a problem. I am using APK Manger 5.1 to decompile apks, but after the apk decompiles, there is no smali folder. Any ideas? Your help is much appreciated.
Click to expand...
Click to collapse
Wait.. Are you deodexed?
You need to be using a deodexed rom so all your apks will have smali in them.
Sent using Tapatalk
klin1344 said:
Wait.. Are you deodexed?
You need to be using a deodexed rom so all your apks will have smali in them.
Sent using Tapatalk
Click to expand...
Click to collapse
That must've been the issue, because I am on stock ROM, which I am sure is not deodexed.

Categories

Resources