This guide assumes you already know how to use apktool and use latest 1.52 version. If you don`t, there are plenty of guides already on XDA.
Latest Sense 5 com.htc.resources.apk and apktool are not great friends. Actually there is a long history of compile issues with this file, but also I managed to fix it usually in the past. I stumbled about some theme threads, who were correctly complaining, that they can`t fully finish their work, since many essentially stuff in HTC`s framework can`t be themed, since com.htc.resources.apk can`t be compiled and as a result many color themes remain incomplete.
So I had a quick look and here is the workaround, which is tested and works.
For those having other apktool issues, it also might pay off looking in my One S apktool issues thread, maybe you will find some ideas to solve other problems.
http://forum.xda-developers.com/showthread.php?t=1642224
Credits:
brut for his awesome apktool
hdneuling for being a great tester and guy
1. First thing you will recognize, when decompiling the "nice" way, apktool will miserably fail. So let`s be the bad guy and brute force decompile
2. Decompile com.htc.resources apk with the following:
PHP:
java -jar apktool.jar d --keep-broken-res com.htc.resources.apk com.htc.resources-decoded
This ignores all errors and decompiles the apk
3. Since the real issues here in reality are only very minor dimens decompile problems, you can now simply delete all unneeded folders with an ERR at the end.
4. Make all necessary edits
5. Now compile the apk as usual, there are different ways to do it - I compile with
PHP:
java -jar apktool.jar b com.htc.resources-decoded
6. Flash and enjoy your work
Good job
Had to look into it, Helmut was desperate
Great Job, and o.k., feeling guilty now :silly:
LG, Helmut
One thing we noticed when putting together our tranquility rom was that any com.htc.resources, sense 4 and after, was that even when it could be decompiled it was better to hex edit. It caused issues with the rom. The dialer and battery life were affected. There were other performance issues also.
Sent from my HTC6435LVW using xda premium
fernando sor said:
One thing we noticed when putting together our tranquility rom was that any com.htc.resources, sense 4 and after, was that even when it could be decompiled it was better to hex edit. It caused issues with the rom. The dialer and battery life were affected. There were other performance issues also.
Sent from my HTC6435LVW using xda premium
Click to expand...
Click to collapse
Yep font size was stuck at medium aswell no matter what we set it to
i´m running a pretty heavy edited com.htc.resources.apk on my One since yesterday and didnt notice and afaik he_stheone did the same since yesterday.
Of course we have to have a look at "maybe problems", but it´s good to have a solution to de/compile it now i think
LG, Helmut
fernando sor said:
One thing we noticed when putting together our tranquility rom was that any com.htc.resources, sense 4 and after, was that even when it could be decompiled it was better to hex edit. It caused issues with the rom. The dialer and battery life were affected. There were other performance issues also.
Sent from my HTC6435LVW using xda premium
Click to expand...
Click to collapse
Hi Fernando, we will watch behavior going forward on Sense 5. So far we still could not find negative side effects. But we surely keep an eye on it.
Sent from my HTC ONE - powered by TrickDroid
Nice work, thanks for sharing. Have to say, you and Helm are really blazing the way with One theming!
Did try this approach with the Sense4.5 resources, could never get the apk to compile after deleting the _ERR folders, but I'll definitely give it a try with Sense5
Fisha, where are you?
We need your skills on the One :fingers-crossed:
LG, Helmut
hd2neuling said:
Fisha, where are you?
We need your skills on the One :fingers-crossed:
LG, Helmut
Click to expand...
Click to collapse
Nah, you guys are doing a great job. I'm enjoying just being a user for now
he_stheone64 said:
Hi Fernando, we will watch behavior going forward on Sense 5. So far we still could not find negative side effects. But we surely keep an eye on it.
Sent from my HTC ONE - powered by TrickDroid
Click to expand...
Click to collapse
Haha yes those of you lucky enough to have the phone! 8 days for me.
Sent from my HTC6435LVW using xda premium
Small Update:
Was running 4 different edited versions com.htc.resouces.apk, until yet, and no problems noticed, of course i´m still watching on it :fingers-crossed:
LG, Helmut
hd2neuling said:
Small Update:
Was running 4 different edited versions com.htc.resouces.apk, until yet, and no problems noticed, of course i´m still watching on it :fingers-crossed:
LG, Helmut
Click to expand...
Click to collapse
That's awesome. Hex editing is not as fun.
Sent from my HTC6435LVW using xda premium
First off, Nice find!! So far the only ill effect I'm noticing is the fonts in settings/display, gestures and buttons doesn't function properly. it changes the font size in certain areas but not system wide like it should. this is the same error we had before, and maybe its because im using the port rom for Evo LTE. I'm looking into it but we couldn't find a resolve for this before.
double post.
steal25 said:
First off, Nice find!! So far the only ill effect I'm noticing is the fonts in settings/display, gestures and buttons doesn't function properly. it changes the font size in certain areas but not system wide like it should. this is the same error we had before, and maybe its because im using the port rom for Evo LTE. I'm looking into it but we couldn't find a resolve for this before.
Click to expand...
Click to collapse
Just to confirm, this is also the case on the One ROMs themselves as well, not just limited to ports.
To see it clearly, just go into Settings/Display, Gestures and Buttons, and try flicking between small and extra large fonts. When you go back out into the main Settings menu, the font size doesn't change as expected.
Did try to get around this by compiling the images, and dragging them into the stock resources apk. If you do this without renaming some of the 9.pngs back into r.9.pngs, you get SysUI FC, and a messed up lockscreen. With those corrections made, everything boots fine, but Dialer FCs and several Settings menu options also FC.
Next thing to try is using villaintheme to insert the altered pngs directly on-device....
Edit: yup, using villaintheme seems to give the best result. No app FCs and no text resizing issue. Just means we still need to hex edit to change any of the values xmls.
At least the recompile workaround gives us a way to easily test resource edits. Thanks again for the heads up!
fisha21 said:
Just to confirm, this is also the case on the One ROMs themselves as well, not just limited to ports.
To see it clearly, just go into Settings/Display, Gestures and Buttons, and try flicking between small and extra large fonts. When you go back out into the main Settings menu, the font size doesn't change as expected.
Did try to get around this by compiling the images, and dragging them into the stock resources apk. If you do this without renaming some of the 9.pngs back into r.9.pngs, you get SysUI FC, and a messed up lockscreen. With those corrections made, everything boots fine, but Dialer FCs and several Settings menu options also FC.
Next thing to try is using villaintheme to insert the altered pngs directly on-device....
Edit: yup, using villaintheme seems to give the best result. No app FCs and no text resizing issue. Just means we still need to hex edit to change any of the values xmls.
At least the recompile workaround gives us a way to easily test resource edits. Thanks again for the heads up!
Click to expand...
Click to collapse
no problem, Ive dug in settings and com.htc.resources and see no link in the two. Not arrays, dimens, nothing. all the arrays and sizes for the different fonts are in settings so i dont understand why that would be affected. If i find afix/workaraound ill post it here.
Noticed the fontsize-problem before de/compiling com.htc.resources.apk too, dont know if it works on Stock because i never booted Stock ^^
Besides this, my edited com.htc.resources.apks are still working without problems, even with ROMs based on 1.29.401.1/2
LG, Helmut
This will no doubt come in handy. Thanks
Sent from my HTC One using Tapatalk 2
Related
We need this.
http://forum.xda-developers.com/showthread.php?t=724778
That's really cool looking; I hope someone can figure out how to port it, but I imagine it shouldn't be too hard.
this kind of post belongs in apps and themes.....
i like it though just change the colors
and it would be very cool
I would like to see this too. It won't work as is?
Sent from my rooted Incredible w/ Flash
I installed the sense-eclair 2.1 "modaco" version, used clockwork to install zip, works fine for me.
Sent from my ADR6300 using XDA App
Ok after toying with my phone with the new battery Meter. I found that the search button reboots my phone.... don't know If its just mine.
Sent from my HTC Droid Incredible.
Be careful flashing these. They contain build.prop and wireless driver files that are not for your phone.
Thread moved to General.
egzthunder1 said:
Thread moved to General.
Click to expand...
Click to collapse
Actually, this needs to be in Development where I posted it due to the fact that it requires major editing of the stat_sys_battery.xml and stat_sys_battery_charge.xml files to allow it to display the actual battery percentage for each level, such as 99, 98, 97, etc.. Please put it back.
Agreed. I too would really like to see this develop into a reality for inc users. it would free up a spot on my notification bar.
I was able to edit the images and repack the latest nightly so now I have the circle battery meter. The 1% increment isn't working. I assume there must be an xml file to edit??? Can anyone shed some light on that?
Edit: This is on CM6 nightly
Wish this could be ported with the percentage over a battery icon. The circle icon reminds me too much of WinMo.
I'd love to get this on my phone along with something similar for wifi!
Can those of us using the SkyRaider (2.2) rom get a little love with this?
Sent from my ADR6300 using XDA App
I would love to get this..
how to modify xml files?
Hi all -- I would love to have this batt on my DI too...and honestly it doesn't look difficult from a theming perspective. But we need some way to extract the necessary XML files from framework-res.apk, modify them, then correctly re-encode them as binary and repackage into the apk.
If someone can point me to a tool, short of the using the full SDK to rebuild the apk from scratch, it should be a relatively quick mod...
*thread subscribed*
bcgaynor82 said:
Hi all -- I would love to have this batt on my DI too...and honestly it doesn't look difficult from a theming perspective. But we need some way to extract the necessary XML files from framework-res.apk, modify them, then correctly re-encode them as binary and repackage into the apk.
If someone can point me to a tool, short of the using the full SDK to rebuild the apk from scratch, it should be a relatively quick mod...
*thread subscribed*
Click to expand...
Click to collapse
You need to use AXMLPrinter2 to edit stat_sys_battery.xml and stat_sys_battery_charge.xml, which are located under /res/drawable/ in framework-res.apk. I just don't know what modifications to change.
this would be awesome!
xvenom89 said:
You need to use AXMLPrinter2 to edit stat_sys_battery.xml and stat_sys_battery_charge.xml, which are located under /res/drawable/ in framework-res.apk. I just don't know what modifications to change.
Click to expand...
Click to collapse
unfortunately AXMLPrinter2 only converts the XMLs from binary back into editable text -- it doesn't do the reverse. But if you use it and take a look at the XMLs, the modifications are actually pretty straightforward. In fact, the file is already set up to have an image for every 1% step, but images for 95 of those steps are undefined.
what we need is a tool that repackages the XMLs back into the APK appropriately -- i haven't found anything to do this, and i'm not skilled enough to use the SDK in full yet...
still would really love to see this...how can we get some love from the more experienced themers?
Madcaddie said:
I installed the sense-eclair 2.1 "modaco" version, used clockwork to install zip, works fine for me.
Sent from my ADR6300 using XDA App
Click to expand...
Click to collapse
Madcaddie said:
Ok after toying with my phone with the new battery Meter. I found that the search button reboots my phone.... don't know If its just mine.
Sent from my HTC Droid Incredible.
Click to expand...
Click to collapse
i also just installed this. it also reboots my phone when quickly pressing the search button, but it does not reboot the phone when long pressing the search button. so far so good otherwise. i'm gonna try this for a day and see if any other problems arise, i have a nandroid backup i can go right back to at anytime, so no biggie.
In my opinion the orange on the Blur News Widget looks very odd against the blue Gingerbread notification bar.
So I thought I could take it upon myself to change that, and in my attempt to change the color I always run into the same issue, the issue "stretch" correctly.
I did the following:
1. Pulled the APK from my DROID X
2. unzipped it with APK Manager
3. Made my changes to the specific images
4. Edited it with draw9patch (Tried NOT doing this also)
5. Zipped the APK.
6. ADB push NewsWidget.APK /system/app/NewsWidget.apk
Any help is appreciated, thanks.
Sent from my DROIDX using XDA App
Bump
Sent from my DROIDX using XDA App
Ok... post a screenshot of what went wrong and post the file of the original one and the edited one and we'll fool around with it
Sent from my DROID2 using XDA App
Thanks!
I hope these files are sufficient.
So you just want to change that top bar on the widget or the whole widget... and what files have you been changing?
Sent from my DROID2 using XDA App
ljbaumer said:
So you just want to change that top bar on the widget or the whole widget... and what files have you been changing?
Sent from my DROID2 using XDA App
Click to expand...
Click to collapse
Just the top bar on the widget.
I edited orange_sleeve_horiz.9.png, and orange_sleeve_vert.9.png.
I tried editing both in draw9patch, to no avail.
I hope someone can figure this out soon. I'm still having no luck >_<
Sent from my DROIDX using XDA App
i dont understand exactly what youre trying to do, is the second (orange) version what you want?
oceanxblake said:
i dont understand exactly what youre trying to do, is the second (orange) version what you want?
Click to expand...
Click to collapse
I want the image in the blue version to stretch correctly, as the orange image does.
Sent from my DROIDX using XDA App
infazzdar said:
Thanks!
I hope these files are sufficient.
Click to expand...
Click to collapse
I can tell by looking at your edited pngs that you only passed them through drawpatch9 and didn't run them through eclipse or xUltimate afterward, that's why they are not stretching properly; I also noticed that you didn't properly draw the lines on the vertical png because it was giving errors.
Try this: http://www.mediafire.com/?a5soknd0381k1xp
Hopefully it works like you want
I can't test it out because I am running ApeX 2.0 Alpha 2, and the NewsWidget doesn't work (most likely missing other apks that NewsWidget requires to work properly).
bouchigo said:
I can tell by looking at your edited pngs that you only passed them through drawpatch9 and didn't run them through eclipse or xUltimate afterward, that's why they are not stretching properly; I also noticed that you didn't properly draw the lines on the vertical png because it was giving errors.
Try this: http://www.mediafire.com/?a5soknd0381k1xp
Hopefully it works like you want
I can't test it out because I am running ApeX 2.0 Alpha 2, and the NewsWidget doesn't work on (most likely missing other apks that NewsWidget requires to work properly).
Click to expand...
Click to collapse
beat me to it.
and yeah i dunno wtf happened with the vert png, error error error. odd. if i were you infa i would scrap, re-adjust, re-color, and run through eclipse post 9patch. ive had recompiling issues when i dont run through eclipse as well.
bouchigo said:
I can tell by looking at your edited pngs that you only passed them through drawpatch9 and didn't run them through eclipse or xUltimate afterward, that's why they are not stretching properly; I also noticed that you didn't properly draw the lines on the vertical png because it was giving errors.
Try this: http://www.mediafire.com/?a5soknd0381k1xp
Hopefully it works like you want
I can't test it out because I am running ApeX 2.0 Alpha 2, and the NewsWidget doesn't work (most likely missing other apks that NewsWidget requires to work properly).
Click to expand...
Click to collapse
Thanks! The image looks great!
The only issue with it now is that RSS icon and the 'widget name' displays incorrectly.
Also, would you mind explaining what Eclipse and xUltimate has to do with it, for my own future reference? ^_^
P.S. Thanks so much =D
Modified newswidget.apk
I also ran into the initial problem of the stretching. After I fixed that, I also noticed the position settings of the RSS Icon and "News" word to be out of place.
So I thought it was something I had messed up. I restored the original newswidget.apk and everything was fixed (except I was back to the orange bars).
I borrowed the modified apk from bouchigo, removed the files
orange_sleeve_horiz.9.png
orange_sleeve_vert.9.png
and I used Ninjamorph to put them into the stock newswidget.apk. And even then I had the same problem of offset RSS icon and "news".
I also used bouchigo's newswidget.apk as a whole but even that had the same RSS / "News" offset issue.
Sorry to bring up a slightly older thread.
Running Stock / deodexed / rooted .596
Eesu said:
I also ran into the initial problem of the stretching. After I fixed that, I also noticed the position settings of the RSS Icon and "News" word to be out of place.
So I thought it was something I had messed up. I restored the original newswidget.apk and everything was fixed (except I was back to the orange bars).
I borrowed the modified apk from bouchigo, removed the files
orange_sleeve_horiz.9.png
orange_sleeve_vert.9.png
and I used Ninjamorph to put them into the stock newswidget.apk. And even then I had the same problem of offset RSS icon and "news".
I also used bouchigo's newswidget.apk as a whole but even that had the same RSS / "News" offset issue.
Sorry to bring up a slightly older thread.
Running Stock / deodexed / rooted .596
Click to expand...
Click to collapse
Tis an old thread =P But since then I have been able to theme the NewsWidget apk myself while keeping the two icons in place.
I can post the themed apk back if you would like it?
Sent from my DROIDX using XDA App
That would be greatly appreciated. I would probably figure it out here soon. I have only been rooted for a few days now. Could you also please let me know what the issue was? So I know for the future. Thanks.
Eesu said:
That would be greatly appreciated. I would probably figure it out here soon. I have only been rooted for a few days now. Could you also please let me know what the issue was? So I know for the future. Thanks.
Click to expand...
Click to collapse
Here it is, along with a screenshot:
To install adb push the NewsWidget.apk to /system/app/NewsWidget.apk
Code:
adb push NewsWidgetBLUE.apk /system/app/NewsWidget.apk
if you get an error about read/write permissions then use:
Code:
adb remount
In later time I will open a new NewsWidget themeing thread and also upload a flashable zip.
The issue, I believe, is that when running the image through Draw9Patch the bottom border wasn't drawn correctly, which forced the RSS icon and name space to be pushed to the side.
Also, instead on simply unzipping the apk, I decompiled it and made my edits. Which fixed the issues I was having.
UPDATE - So i finaly figured it out, feel like a absolute NOOB atm. but these things happen.
Basicaly i edited the "Styles.XML" to make the backgrounds tranperant.
i looked for the style that the android manifest referenced and changed the parent to "@android:style/Theme.Wallpaper"
changed the background image to just a black transplucent image
rebuilt the app, copied the resources.arsc and the moded image,
pushed it to my phone, and BOOM! it worked a treat.
this should work in any app i think.
sometimes the hardest problems are solved so easliy.....
once i have tested it a bit i'll wrap the phone / contacts / mms apps into a update zip hopefully tonight or tomorro.
also i'll put a quick tut together if ppl are interested.
PVY
I am trying to make a fully transparent theme. Got all the framework-res stuff downpat. But I can't for the life of me get the other apps to go transperant.
I tried just changing the background image to semi transparent in the contacts app, then I went fishing around in the xml files but can't find any thing that relates to the background.
then in the mms app I found all the colours in the res/values
Changed the alpha but it didn't work.
Been searching around and can't find out how to make it work.
Thanks in advance.
Pvy
Sent from my X10i using XDA App
Click to expand...
Click to collapse
FINALY!!!
So i fgured this out. thought i'd share
only took a few weeks of googling. (and finding the correct thing to google)
lol...
i had to add the style to the AndroidManifest.xml
i used
Code:
android:theme="@android:style/Theme.Wallpaper"
and i put it in the application brackets. so it looked like this
Code:
<application android:label="@string/app_label" android:icon="@drawable/ic_launcher_smsmms" android:name="MmsApp" android:taskAffinity="android.task.mms" android:allowTaskReparenting="true" android:theme="@android:style/Theme.Wallpaper">
then the usual stuff with making stuff Transparent.
attached is a screeny or 2 the funny lines is my wallpaper. (fireflies Live wallpaper)
next im going to do the Phone and contacts apps, then move my way through the rest of the phone
Pvy.
are you still working on this? i think it would be cool to have all menus transparent
Yeah mate, been having mega issues with my new laptop. it wont decompile/recompile apks properly... i think it is a win 7, 64 bit issue...
so i hit a bit of a snag. was thinking of releasing a theme if ppl were interested. (gotta figure out the whole recovery zip thing tho)
Pvy
alamatnitotoy said:
are you still working on this? i think it would be cool to have all menus transparent
Click to expand...
Click to collapse
I have tried what you said in the code but didn't get the same result.
What do you mean here by the usual stuff?
pvyParts said:
then the usual stuff with making stuff Transparent.
Click to expand...
Click to collapse
modifying the alpha/transperancy of the images and the alpha in the xml files.
ie int the color.xml it has the background colors,
so #ff000000 is fully opaque black,
and #99000000 is like 60% Transperant Black
i'll post the MMS.APK if thats what you are after. and you can see all the changes i made. it was rather rushed after i had my epipheny
EDIT- I attached the MMS.apk that i was working on recently, it runs on the emulator, and the transperancy works for both black and white backgrounds. the apk is signed so it should run on a phone. but normal stuff aplies,
Make sure you have a backup of the original, and i'm not responsible for any damage, ect ect ect.
alot of the XML files have small changes.
let me kno if ya want any more info
Thanks PVY.
gil2004xp said:
I have tried what you said in the code but didn't get the same result.
What do you mean here by the usual stuff?
Click to expand...
Click to collapse
How is the work coming along? I'm gonna try the messaging app, I'd love to try anymore that you have finished
slow atm , i am having issues getting the moded apps to work on the phone... FCs.... lots and lots of fcs...
i should prob update the first post... maybe later.
the mms.apk above will work i am running it on my phone (using wolfs CM6 v006). i used x10 mod tool ( by mr rush i think) to push it to the /system/app folder ont the phone, take a backup first tho to be sure.
vpllover said:
How is the work coming along? I'm gonna try the messaging app, I'd love to try anymore that you have finished
Click to expand...
Click to collapse
So i figured it out see the first post!
Pvy
nice..you did it..ill try it maybe later cause im on miui now
yeah i was prety happy hey
heres some screenies!
http://s789.photobucket.com/albums/yy180/aaronkable/Transperant%20Theme/?albumview=slideshow
Pvy
sure it will all work good
One of my biggest *****es about the themes available in theme chooser is no, matter what, MOST (not all) leave the 4G icon on the status bar that lime ass green. Is there a step by step guide on how to make a custom theme for the NS4G? I am pretty pro at CS5 and have DW as well to exit the XML files, this is something I would be pretty confident in doing. Any advice would be greatly appreciated. Thanks in advance guys (and gals).
Here's a guide for the Theme Engine
http://forum.xda-developers.com/showthread.php?t=964391
I think, but am not certain, that if you wanted to make a flashable zip, you can grab SystemUI.apk and framework-res.apk from you ROM and use apktool to decompile SystemUI
In cmd:
apktool if framework-res.apk
apktool d SystemUI.apk
Then you look for the Wimax images, should be something like
stat_sys_data_wimax_signal_0.png
Of course there will be different values representing the different states of connection.
Sent from my Nexus S 4G using Tapatalk
I ran into a major issue last night.
This was REALLY pissing me off, you know one of those things that SHOULD be working but isn't. Whenever I view the decompiled apk (framework-res, and systemUI)
The files are decompiled everything looks correct, but when I open the image files in cs5 they look all blurry as hell. I have attached some screenshots. Make any sense to anyone?
blueluck77 said:
One of my biggest *****es about the themes available in theme chooser is no, matter what, MOST (not all) leave the 4G icon on the status bar that lime ass green. Is there a step by step guide on how to make a custom theme for the NS4G? I am pretty pro at CS5 and have DW as well to exit the XML files, this is something I would be pretty confident in doing. Any advice would be greatly appreciated. Thanks in advance guys (and gals).
Click to expand...
Click to collapse
Themes have just began fixing the 4g icon. I know for cm7 androidian and cyanbread were fixed.
Sent from my Nexus S 4G using xda premium
Rem3Dy said:
Themes have just began fixing the 4g icon. I know for cm7 androidian and cyanbread were fixed.
Sent from my Nexus S 4G using xda premium
Click to expand...
Click to collapse
Understandable. New things take time, but I have time to do it and start making all kinds of crazy themes, but just curious why the images would show up that way once they were pulled into PS. Its not just that image, its all the images. Does anyone know how I can resolve this or even prevent it from happening?
blueluck77 said:
I ran into a major issue last night.
This was REALLY pissing me off, you know one of those things that SHOULD be working but isn't. Whenever I view the decompiled apk (framework-res, and systemUI)
The files are decompiled everything looks correct, but when I open the image files in cs5 they look all blurry as hell. I have attached some screenshots. Make any sense to anyone?
Click to expand...
Click to collapse
I just answered u on G+ , but go grab Paint.NET http://paint.net/
With the pngs that are giving you problems (hopefully u haven't saved them in photoshop.. grab the originals), open them in Paint.NET first, save, then open them in photoshop. Almost always works for me.
So I am sure many of you have noticed that when you decompile ClockPackage.apk or SecContacts_Phone_FLAGSHIP_USA.apk you see a bunch of PKM image files. I have managed to replace most of them with PNG files and sucessfully theme both APK's.
Here is a link to both of my ASU Sun Devil themed ClockPackage.apk and SecContacts_Phone_FLAGSHIP_USA.apk. http://d-h.st/q5D
You are welcome to theme them as you see fit. I spent over 100 hours on these. PS: the text color code I use is ffffb310 hex and -0x4cf0 smali. There are some smali edits in ClockPackage. None in Contacts.
Thanks for looking!!!
Enjoy!!!
Ok, I'm stumped. I took ALL the images from XXHDPI and vrthemed them into another SecContacts_Phone_FLAGSHIP_USA.apk file and it didn't appear to do anything except maybe change the statusbar.
I pulled the apk just to be certain and sure enough, the themed png files were there. Any ideas?
tdunham said:
Ok, I'm stumped. I took ALL the images from XXHDPI and vrthemed them into another SecContacts_Phone_FLAGSHIP_USA.apk file and it didn't appear to do anything except maybe change the statusbar.
I pulled the apk just to be certain and sure enough, the themed png files were there. Any ideas?
Click to expand...
Click to collapse
You can't do that. The PKM files will still exist. You must morph the whole folder if you are going to do that so it erases the stock one.
Best way is to just decompile and theme it. Use my APK's as a base.
EMSpilot said:
You can't do that. The PKM files will still exist. You must morph the whole folder if you are going to do that so it erases the stock one.
Best way is to just decompile and theme it. Use my APK's as a base.
Click to expand...
Click to collapse
Ahhh!!! Gotcha. Totally forgot about that. I don't do a lot of theming I work on other development stuff mainly but this particular release is going to keep us busy for a while I think. LOL
Dev Edition?
Ok figured out that your contacts apk flashes and works fine on the Sprint S5 variant btw (very nice, this could come in handy later).
However, it does not play nice with apktool 2.0x so I decompiled it with apktool 1.5.2 and it 'almost' recompiled fine except for an apktool dummy error that was being generated by res/drawable/select_all_item_bg.xml. The resource is definitely there but it gave it that value for this line anyway.
Code:
<item android:state_pressed="true" android:drawable="@*android:drawable/APKTOOL_DUMMY_0b03" />
To correct for that, I pulled the stock select_all_item_bg.xml, copied right over the decompiled one with the apktool dummy code (I know I could have just fixed the line but whatever ) and it now recompiles perfectly. I am attaching that file for anyone that may have issues. This xml file is ALREADY decompiled.
Edit: EMSPilot, I heard you got the original images from the S4. You don't still happen to have an stock/unthemed version of contacts we can work from do you ?
Dev Phone
Dennisg34 said:
Dev Edition?
Click to expand...
Click to collapse
Yes Dev Edition
Awesome mate, I was going crazy looking for ways to thematize these PKM files.
Tested and works perfect s5 International. :laugh::laugh:
Thanks and regards.:good:
Hello guys, someone can tell me how to change the log window colors? I can not find ?
Thanks
Spinner
BoBCatRoM said:
Hello guys, someone can tell me how to change the log window colors? I can not find ?
Thanks
Click to expand...
Click to collapse
That would be a tw_spinner in framework-res. Not sure which one as I always theme them all.
EMSpilot said:
That would be a tw_spinner in framework-res. Not sure which one as I always theme them all.
Click to expand...
Click to collapse
thanks, I try to see in the framework
This is awesome work. Would love to see someone develop a dark contacts and SMS stock app darkened too. If anyone can do sothat would be awesome. But not dark MMS like the old school stuff but dark MMS with ways to change the bubble colors too. Would love to see where this goes thanks again devs
Of course we can make dark contacts, lol. Working on some now
Sent from my SM-G900P using Tapatalk
EMSpilot said:
So I am sure many of you have noticed that when you decompile ClockPackage.apk or SecContacts_Phone_FLAGSHIP_USA.apk you see a bunch of PKM image files. I have managed to replace most of them with PNG files and sucessfully theme both APK's.
Here is a link to both of my ASU Sun Devil themed ClockPackage.apk and SecContacts_Phone_FLAGSHIP_USA.apk. http://d-h.st/q5D
You are welcome to theme them as you see fit. I spent over 100 hours on these. PS: the text color code I use is ffffb310 hex and -0x4cf0 smali. There are some smali edits in ClockPackage. None in Contacts.
Thanks for looking!!!
Enjoy!!!
Click to expand...
Click to collapse
Do you also theme /system/app/InCallUI.apk? That's the contacts screen during a phone call.
InCallUI
blulite said:
Do you also theme /system/app/InCallUI.apk? That's the contacts screen during a phone call.
Click to expand...
Click to collapse
Yes of course I theme InCallUI.apk.
i decided that i would try and make a theme for the tmo s5 varient even tho i do not have the device and boy i had no idea what i got myself into when it was time to theme contacts!!! i have never seen anything like this over my past years theming the s2-s4 and note 3! i was like a pkm what??? i was able to edit in my own images for dialer buttons and dialer bg but stopped there! lol. I was truly amazed when coming across this thread and just wanted to take my hat off to you! i have a question tho... sorry if you already answered for i attempted to search for the answer in this thread but am still a little confused.. so again how did you replace the pkm with a png? just by using another seccontacts image and replacing the pkm with the png?? i doubt thats how because you would have to change it in the values folder or something like that correct? kinda like i and i also saw you figured out how to edit our own dialer button image? ive just been so stumped with these pkms that i am like i need to know how you did it! lol.
@EMSpilot
Great work in here Sir..... made couples adjustment for AT&T S5 SM-G900A And everything look good....
EDIT: Sept 15
Hi Bill @EMSpilot
I really appreciated all your guide and pointers