[REQ] Sense 4.5 skin basics - HTC Desire X

I spend some time to figure out how to handle sense 4.5 skins development. BatEarsJoe give us some advices to modify a skin but these are the very basic steps to build/change a skin. Also I tried to find tutorials on other HTC devices but all I found are obsolete...
What I'm asking for is that somebody (and here I'm asking ckpv5, ayyu3m, BatEarsJoe and other developers too) to give more precisely advices on handle skins.
For example I used 'APK-Multi-Tool' to decompile a ckpv5 rom's skin and I recompiled that again without modification. The result: I lost transparency of dock bar, folders and so on.
So is anyone willing to give some advice about how to handle skins? I mean it is not necessary a step-by-step tutorial (this could take maybe much time), but at least some informations, advices, tricks or some ways to handle transparency, colors, link between m10 files and regular png files. There are more important advices that is about how to manipulate png files, how to preserve/alter alpha channel, compression to use, software to use to handle properly png and m10 files.
I respect guys (mentioned above) who wants to give us more skins but I believe that the development is too slow, so I think sharing information in this area is welcome.
Thanks in advance!

VTS is the way to go (decompiles M10 files fine and does pretty much evreything else for you) alot more of the stuff cant be edited through .pngs instead in Colors.xml and other xmls. The images in mention can be found in m10 files (make sure there the same resolution though - thanks to ayyu3m for that.)
if you wanna use VTS then follow this tutorial http://www.virtuous-ten-studio.com/index.php/other-stuff/94-how-to-create-your-own-sense-skin
It's good to see a more active theme-ing community

Its good to see members who are eager to try their hand at theming. I had started a skin thread in the forum but could not continue cos of png issues during then. But now those issues are gone. But so is my free time since I joined work and its been a busy month.
But hopefully I would surprise you all by releasing my skin and also a tutorial.
As a quick answer...I use VTS and photoshop cs5 only. Will include tips and tricks.

ayyu3m said:
... Will include tips and tricks.
Click to expand...
Click to collapse
glad to hear that

Related

Miui theme

Someone can make a porting of this ui?
http://forum.xda-developers.com/showthread.php?t=801833
Yes that ui looks awesome.
Wow, this looks great.
lollazzo said:
Someone can make a porting of this ui?
http://forum.xda-developers.com/showthread.php?t=801833
Click to expand...
Click to collapse
I have ported gala s to htc legend so why not try this
There're a lot of graphic files and 9.png ones also. I can resize all the images but the 9.png make me confused. I downloaded the rom and may try it sometimes. I love this UI too.
U can not batch resize .9 pngs. U have to decompile, resize, manually edit and recompile them back one by one.
Sent from my HTC Legend
I found a jar file that writes 9.pngs info into rezised pictures
So if we batch rezise all the images then we should be able to write the info in the 9.png again
We can actually in theory batch resize
I don't say it's impossible but how do you know which pixels are resizable after you resize the whole png?
Care to share the link to that tool.
Sent from my HTC Legend
I like the colour icons in the notification bar, and the nice clear font, but a lot of the settings screens look way to much like iOS for me...
I'd love to see this miui stuff ported to the legend ;-)
Maybe we could split the work between a few people to recompile the .9 pngs and so on ?
Would love to see this, any progress ?
Indeed, it does look pretty sweet.
please anyone try to port to legend....if that it will be sweet
i think no one is caring about this thread.
I found this thread on XDA, it is an how to
http://forum.xda-developers.com/showthread.php?t=1161371
Please check the link in the first post 'cause the how to is "legacy" if used on latest ROM.

How to Theme?

So I have been reading a few theming guides but haven't been able to really understand them. It looks like with KB1, there is nothing but .xml files in the drawable folder. Am I only needing to edit these .xml's? Or is there somewhere I am not finding the .png's?
If anyone knows how to create custom themes please let me know, or direct me to a guide that will give me more information specifically for the Vibrant.
Strericsons guide is good, but it is old and outdated.
http://forum.xda-developers.com/showthread.php?t=667951 this guide is good too but I there aren't any theme files to start off with.
Any help will be appreciated, thanks!
I also plan on sharing the themes I create. They will be good
jzero88 said:
So I have been reading a few theming guides but haven't been able to really understand them. It looks like with KB1, there is nothing but .xml files in the drawable folder. Am I only needing to edit these .xml's? Or is there somewhere I am not finding the .png's?
If anyone knows how to create custom themes please let me know, or direct me to a guide that will give me more information specifically for the Vibrant.
Strericsons guide is good, but it is old and outdated.
http://forum.xda-developers.com/showthread.php?t=667951 this guide is good too but I there aren't any theme files to start off with.
Any help will be appreciated, thanks!
I also plan on sharing the themes I create. They will be good
Click to expand...
Click to collapse
The great majority of the .pngs are in the drawable-hdpi or drawable-hdpi-v4 folders.
As for theming in general, take a look at this: http://forum.xda-developers.com/showthread.php?t=916814
Also, I wouldn't call Stericsons guide, or anyone else's for that matter, outdated. There haven't exactly been major changes in the structure of APKs, so any guide that was applicable before should still be applicable.
Ok great thanks for the info. I didn't mean necessarily outdated, but the methods might have a few changes pertaining to them. I will take a look at that link you provided!
uhh.. I'm certain if I understand you correctly. You unzip one of KB1 Roms. Under \system\framework\, some basic files you need to focus is framework-res.apk, twframwork-res.apk, and services.jar. You have to extract these apks to see the corresponding pngs.
Here's an excellent REF from Master himeself:
http://forum.xda-developers.com/showthread.php?t=940692&highlight=apk+manager
xxxman999 said:
uhh.. I'm certain if I understand you correctly. You unzip one of KB1 Roms. Under \system\framework\, some basic files you need to focus is framework-res.apk, twframwork-res.apk, and services.jar. You have to extract these apks to see the corresponding pngs.
Here's an excellent REF from Master himeself:
http://forum.xda-developers.com/showthread.php?t=940692&highlight=apk+manager
Click to expand...
Click to collapse
Awsome! Thanks for this info, I remember seeing this but don't remember where, it was late at night. This is exactly what I needed!
Thanks
jzero88 said:
Awsome! Thanks for this info, I remember seeing this but don't remember where, it was late at night. This is exactly what I needed!
Thanks
Click to expand...
Click to collapse
I just want to mention that, while I don't want to knock his guide, if you have any real interest in theming, it's best to learn how to properly decompile and compile apks, not simply unzip them. His method is fine for changing out a few pngs, though.
MWBehr said:
I just want to mention that, while I don't want to knock his guide, if you have any real interest in theming, it's best to learn how to properly decompile and compile apks, not simply unzip them. His method is fine for changing out a few pngs, though.
Click to expand...
Click to collapse
Yeah definitely. I am just looking on getting my feet wet for now, edit a few simple things to get an idea of how its done. If I want to fully edit a ROM I'm definitely going to get under the hood and take a look
So being able to change colors of some status bar .png's has been successful. What I did was basically simple. I took an already modified battery stat update theme since I wanted to keep the settings from it (KA7-KB1-circ-ab-col-pm.zip) and modified the .png's from that. Added them back to the zip, and flashed. Did not need to resign at all. Took two minutes
Was able to edit the status bar color, but couldn't find the .png's for the pull down background color.
jzero88 said:
So being able to change colors of some status bar .png's has been successful. What I did was basically simple. I took an already modified battery stat update theme since I wanted to keep the settings from it (KA7-KB1-circ-ab-col-pm.zip) and modified the .png's from that. Added them back to the zip, and flashed. Did not need to resign at all. Took two minutes
Was able to edit the status bar color, but couldn't find the .png's for the pull down background color.
Click to expand...
Click to collapse
You'll never resign a framework no matter what you do. The background is actually in twframework-res.apk

[Q] Creating a new lockscreen

I would like to develop a new lockscreen for the my Vibrant. I've looked at some of the app versions. I like the concepts, but it seems like a lot of people complain about battery life and lag of the screen. I would like to make an actual lockscreen, not an overlay.
I am currently running Bionix 1.2.1. I would like to either add the lockscreen as an option on the menu provided in the Bionix Rom or flash the lockscreen in clockwork.
My first questions is, is this possible? Second question is how, or where is there somewhere i can look to get started?
I've looked around in the forums and I haven't seen any guides or any good info on this.
This would be my first jump into development for Android, but I'm willing to put in the time and effort as long as I can find a starting point in this area or get some help.
If this is built deep into the ROM and a difficult process I can find a different project, but I'm always up for a challenge. Any help would be appreciated.
MechDan said:
I would like to develop a new lockscreen for the my Vibrant. I've looked at some of the app versions. I like the concepts, but it seems like a lot of people complain about battery life and lag of the screen. I would like to make an actual lockscreen, not an overlay.
I am currently running Bionix 1.2.1. I would like to either add the lockscreen as an option on the menu provided in the Bionix Rom or flash the lockscreen in clockwork.
My first questions is, is this possible? Second question is how, or where is there somewhere i can look to get started?
I've looked around in the forums and I haven't seen any guides or any good info on this.
This would be my first jump into development for Android, but I'm willing to put in the time and effort as long as I can find a starting point in this area or get some help.
If this is built deep into the ROM and a difficult process I can find a different project, but I'm always up for a challenge. Any help would be appreciated.
Click to expand...
Click to collapse
It's built-in quite deep, a lot of files need to be edited. Whitehawkx actually PMed me on how to do this the other day, and it sounds quite complicated.
You'll first obviously need to create your .png's to dictate the lockscreens appearance. Then you will have to have coding knowledge, along with knowledge of smali/baksmali and editing .xmls. Thats a VERY brief overview until someone more knowledgable jumps in.
I can do some programming. I've done C++ and I have done some visual basic for work. I just haven't done any Java. I think with all the information here and on Google's developers page I could work my way though it. I would just need a general guideline. I can edit the .png's. I don't think that would be much of a problem.
It might be easier if I could edit an existing one. I like the concept of the puzzle lock. I just think it is kind of hokey. It would also be nice to have a little be more info on the screen and to have emails show up.
Would you be willing to send me what Whitehawkx sent to you? I'm not sure if that is ok.
I don't mind researching my way through it and learning as I go, I was just hoping someone had done something similar.
MechDan said:
I can do some programming. I've done C++ and I have done some visual basic for work. I just haven't done any Java. I think with all the information here and on Google's developers page I could work my way though it. I would just need a general guideline. I can edit the .png's. I don't think that would be much of a problem.
It might be easier if I could edit an existing one. I like the concept of the puzzle lock. I just think it is kind of hokey. It would also be nice to have a little be more info on the screen and to have emails show up.
Would you be willing to send me what Whitehawkx sent to you? I'm not sure if that is ok.
I don't mind researching my way through it and learning as I go, I was just hoping someone had done something similar.
Click to expand...
Click to collapse
modifying would be the way to go... and unfortunately it has nothing to do with java coding, but dalvik bytecode (which is a major pain... untermensch & whitehawk are heroes with that bytecode).
Anyways, I believe it's in services.jar. You'd have to pull out classes.dex from it and decompile. check this post on how to decompile. and you're going to need the smali & baksmali jars...
anyways after you decompile you're stuck with lots of .smali files which contains the bytecode you would need to modify... it's really difficult to understand it heh
Whitehawkx said:
So you are using the other four lockscreens but want to get the rotary to work as well and are looking for what files are necessary for that to happen, correct?
The files I changed to get the rotary working on KB1 are as follows
Framework-res.apk
~public.xml
~strings.xml [I think one change here]
~Images are already in stock frameworks and already in place
android.policy.jar
~New smali used for rotary. All have "rotary" in their title
~changes to LockPatternKeyGuardView.smali
Settings.apk
~Changes to DisplaySettings.smali
~Changes to arrays.xml
I believe these are all the files I had to modify to get the rotary working.
Click to expand...
Click to collapse
heres what he said when i inquired. unfortunately he didnt go into much detail, i did send him another PM....but keep in mind these are the steps to simply inject an outside lockscreen into your current ROM, not necessarily how to build one from scratch
hopefully these steps may still give you an idea of where everything is located
I always wanted one that opens from the middle of the screen like a matinee curtain. That would be awesome.
Sent from my SGH-T959 using XDA App
Thanks guys! I'll start working with that and see what I can come up with. It looks like I have a lot to learn about it.
I'll try working through it and hopefully I will come up with some more specific questions that may be easier to answer.
Also, if you think of something that may help, let me know. I would appreciate it very much.
With the starting points already given i would build the lockscreen using aosp then port it to your rom. Once compiled you can decompile then different it
Sent from my Incredible using Tapatalk

If I want to create a theme for TB

If I wanted to create a Scene or a Skin for the Thunderbolt how would I go about doing this. I'm good with creating images but writing the script may be a bit hard for me. And what would be the difference between the Scene and the Skin?
Please don't bark at me, I know its a question you pros hear all the time. Its that I don't know if the sizes are the same far as docks, icons, etc....
johnny quest said:
If I wanted to create a Scene or a Skin for the Thunderbolt how would I go about doing this. I'm good with creating images but writing the script may be a bit hard for me. And what would be the difference between the Scene and the Skin?
Please don't bark at me, I know its a question you pros hear all the time. Its that I don't know if the sizes are the same far as docks, icons, etc....
Click to expand...
Click to collapse
I suggest looking at other themes already made. You know you can open them (the theme file) with most types of compression tools (7zip, winrar, tar, etc). Have you tried that yet and looked to see what the sizes are and what the files do?
Just download some from the app/theme forum and browse them on your computer
yareally said:
I suggest looking at other themes already made. You know you can open them (the theme file) with most types of compression tools (7zip, winrar, tar, etc). Have you tried that yet and looked to see what the sizes are and what the files do?
Just download some from the app/theme forum and browse them on your computer
Click to expand...
Click to collapse
thanks I'll do that.
Depending on how fancy you're trying to get, just using another them as a template should work out okay. If not, you can probably find more info on just generic theming for htc sense based phones in some other forums that have been around longer on xda. I honestly haven't seen anything really thunderbolt specific mentioned on the forums here. However, it should work out the same minus the sizes for any other htc phone (assuming it's for sense 2.x, which most are still).
I know however that I've seen tutorials for launcher theming around on xda. I saw one not long ago for go launcher, so I assume there are others for adw and the other launchers out there as well. Launcher theming wont let you mod everything of course (battery and those icons and such), but still quite a bit you can do and it should be something you can carry over to any phone, not just the thunderbolt.
I don't think anything theme wise should really require coding. Perhaps modding some existing xml and such, but that shouldnt be overly tricky. The hardest part is probably the graphics and that doesn't seem to be a problem for you.

Theming LGG3 Apps - Pure Black Settings - for MM stock

I have been theming apps on my phone to give them black backgrounds. The white backgrounds bother my eyes. I'm doing pretty well but I am having a big problem with the LGSettings.apk. I have decompiled the apk and edited the colors.xml, styles.xml and parts of the manifest that i thought might change the theme. I then recompile and run the settings app but I never see any changes. I am trying to figure out what I need to edit to achieve white text on a black background. Any help would be greatly appreciated.
I don't have the apks in front of me, but you may need to theme more than that one. I think you'll need:
LGSettings (which you currently themed)
Possibly: LGSettingsAccessibility/LGSettingsProvider
These two may or may not have anything to theme in them, so you may need to decompile to take a look.
Ok. I'm getting there. The background item and textcolor item were lurking in the lge-res.apk. I am still having trouble finding a way to change the blue action bar color (1) and the color of the white section headers (2). Anybody know what these might be called and what apk I need to look in? Thanks a lot!
skyman88882002 said:
Ok. I'm getting there. The background item and textcolor item were lurking in the lge-res.apk. I am still having trouble finding a way to change the blue action bar color (1) and the color of the white section headers (2). Anybody know what these might be called and what apk I need to look in? Thanks a lot!
Click to expand...
Click to collapse
Ok. I found the action bar - I used 'Widget.Material.ActionBar.Solid' to hard code the background color. Now I just need somebody to help me find those white section headers. Anybody? Thanks so much!
Well after two hours of poking around the apks I finally figured it out. Pretty easy to make all the changes in lge-res.apk. pm me if interested in doing this kind of theming
skyman88882002 said:
Well after two hours of poking around the apks I finally figured it out. Pretty easy to make all the changes in lge-res.apk. pm me if interested in doing this kind of theming
Click to expand...
Click to collapse
Awesome, great work!
I remember doing something similar when I was doing this to my Galaxy S3, trying to find the various apk's where Sammy had changed things. It was a great feeling to find and change things.
skyman88882002 said:
Well after two hours of poking around the apks I finally figured it out. Pretty easy to make all the changes in lge-res.apk. pm me if interested in doing this kind of theming
Click to expand...
Click to collapse
HI THERE, I WAS WONDERING IF YOU CAN SHARE THOSE APS's, COUULD YOU MAKE IT POSSIBLE?
elmanolette said:
HI THERE, I WAS WONDERING IF YOU CAN SHARE THOSE APS's, COUULD YOU MAKE IT POSSIBLE?
Click to expand...
Click to collapse
Hi. Please in the future don't use all capital letters. I know you didn't mean this in this case, but it's generally considered "shouting", and for longer strings it makes it harder to read. Thanks for understanding.
roirraW "edor" ehT said:
Hi. Please in the future don't use all capital letters. I know you didn't mean this in this case, but it's generally considered "shouting", and for longer strings it makes it harder to read. Thanks for understanding.
Click to expand...
Click to collapse
sorry man, i'm understand!
I definitely intend to share my findings. However right now i am redoing the theming trying to push all the edits into LGsettings. Since I did the editing in the lge-res.apk it has a lot of unintended consequences on other parts of the system
subscribed.
i despise white backgrounds.
Brian
i cant find any color.xml in any stock apps?
skyman88882002 said:
I have been theming apps on my phone to give them black backgrounds. The white backgrounds bother my eyes. I'm doing pretty well but I am having a big problem with the LGSettings.apk. I have decompiled the apk and edited the colors.xml, styles.xml and parts of the manifest that i thought might change the theme. I then recompile and run the settings app but I never see any changes. I am trying to figure out what I need to edit to achieve white text on a black background. Any help would be greatly appreciated.
Click to expand...
Click to collapse
how do you theme? i can never find the color.xml file in any stock app?
Glitch15 said:
how do you theme? i can never find the color.xml file in any stock app?
Click to expand...
Click to collapse
You need a deodexed ROM/apk file to decompile to find those resources.
RMarkwald said:
You need a deodexed ROM/apk file to decompile to find those resources.
Click to expand...
Click to collapse
my Rom is deodex, can you pm me a step by step guide to get to the color.xml?
it would be nice if you can post a brief guide about theming it.. so people can have benefit.
knowledge is meant to share after all
minhas729 said:
it would be nice if you can post a brief guide about theming it.. so people can have benefit.
knowledge is meant to share after all
Click to expand...
Click to collapse
Hey there! Good to see you on this thread Minhas729. I'm really sorry for the delay, I have just been slammed on the home front and haven't had time to play around with this stuff.
I'm still not happy with the theming I'm doing but I plan on posting my work in process files in the next 5 or 6 days.
In the meantime, let me share my knowledge (it isn't much!)
I think I am going to change the thread title to Theming for Dummies (Like Me) (anybody know how to change a thread title?). so step one will be in the next post.....
OVERVIEW
(Ok - so here is a quick overview of the theming process as I do it. Again, I am just a novice and I just stumble around so if I get the terms incorrect forgive me.
1) The first step in theming an apk is to decompile the apk. Unzipping the apk is not going to work. This is because there are special files like styles.xml and colors.xml that are hidden in a 'values' folder in the res directory. As far as I know, you cannot access these special files by simply unzipping the apk.
2) To decompile you need an apk tool - I use 'Tickle My Android' (I'm going to call it TMA going forward) - it has a great developer with excellent instructions. The way decompiling works is you first have to create a mini-work area on your computer. You do this by decompiling and installing the framework-res and lge-res apks from your phone to your computer. TMA needs these files to decompile other apps because most apps reference a bunch of things in the framework-res and lge-res files Installing TMA is pretty easy and the instructions on the thread are excellent. The only issue I had was finding a good version of apktool.jar to use in conjunction with TMA - one that worked well with marshmallow apks. The apktool is the actual tool that does all the work - TMA (in my understanding) is simply a very well designed user interface to use the apktool. So you need an apktool that will recognize marshmallow files and be able to decompile them. I use "apktool_2.1.0-a64a03-SNAPSHOT"" as my apktool.jar file.
3) Once an apk is decompiled, all the apk components will be saved in a 'working' folder. You can then go in and edit colors and and styles using an xml editor.
4) Once you have made your edits you use TMA to recompile and sign the apk. Then you move the file back to your phone, place it in the proper device directory, fix permissions, reboot and cross your fingers.
Ok - that is the overview - go off and start trying it. One suggestion - dont try to push files from the phone to the pc with TMA - just use your usb cable.
more to come...
skyman88882002 said:
I think I am going to change the thread title to Theming for Dummies (Like Me) (anybody know how to change a thread title?). so step one will be in the next post.....
Click to expand...
Click to collapse
Edit your first post in a web browser. Choose Advanced mode and there'll be a field to edit the title.
Below are links to download the themed lge-res.apk and lgsettings.apk. MAKE A BACKUP FIRST (I'm not responsible for anything that goes wrong if you try these files). Once downloaded you will need to use a root browser to copy the files to the appropriate system directory and to change the permissions. Keep in mind, this is a work in process, if you enter settings and click on the bluetooth or wifi sections you will notice that the background is not themed yet. I'll repost when these are fixed.
lge-res.apk download link
LGSettings.apk download link
Keep in mind that you have to install both files if you want the full black background.
Ok. I think I worked out most of the bugs. The files are now set up in a flashable zip. Test it out and let me know if you see any issues. If it is working well I will start a new thread in the Themes section and work on the systemui as well. Thanks. Download link below:
download

Categories

Resources