Trying to locate a file... - HTC Sensation

Hey guys, I am a bit OCD and this has bothered me all the way back to day 1 of Sense 3.6 ICS.... Does anyone know where the lock screen folder (the square background) is located? I am assuming it's a diff file from the one on the home screens because the lock screen folder has a little graphical glitch on the top corner... I just wanna fix it up. XD I appreciate anyone's help.

That would be either framework-res.apk or systemui.apk
You need to decompile then compile after your changes are done
Sent from my Sensation

Sweet, that narrows things down a bit... been looking through both and can't seem to find what I'm looking for... Can't seem to find any folder icons, actually. Does anyone know where these are located specifically?

If it is in readable format (.png or 9patch) it might be in Idlescreen_Base.apk but there is a chance that it is hidden in a .m10 file.
HTC created the m10 format as a container for encoded images and other apk properties (bit like xml file).
So far with the use of Virtuous Ten Studio by Diamondback and Flemmard (+ rest of virtuous team) we can view and edit the xml part of m10 files but images cannot yet be decoded though diamondback has said he has made this possible in the next version.

Related

Location of an input field image file

EDIT: SOLVED.
Thanks to all the amazing threads on this site, I'm able to and in the process of theme-ing my phone (blues instead of greens). I've transformed all of the .9.pngs that i could find in the drawable-hdpi folders in both com.htc.resources.apk and framework-res.apk. Thus far, everything has been good (once i realized the bottom and right traces in draw9patch were for content regions..)
As you can see in the images attached, the outline and highlight of the textfield has been modified from the original green in portrait mode. However, there seems to be 2 pesky images that i cannot find for landscape (the last two attached images). Ive looked thru the drawable-land-hdpi as well in both of the apks. I haven't left a single orange colored .9.png file. Hell, i even modified the textfield_im_user_pressed_pad.9.png and textfield_im_user_selected_pad.9.png in the stock MMS.apk drawable-hdpi folder. I simply cannot find this file...
The one orange-colored image which i thought was it, keyboard_textfield_pressed.9.png in com.htc.resources.apk, was not.
Unless, its an XML color or drawable...in which case im screwed. Any help would be greatly appreciated.​
EDIT: Found the correct file...turns out its in the HTC_IME_hi.apk drawables. keyboard_textfield_pressed.9.png and keyboard_textfield_selected.9.png if anyone was wondering..

[Q] [IDEA] Porting HDPI themes to MDPI

Just recently been into themes and knew how they work.
If I use some kind of batch image resizer to resize hdpi png's to mdpi, and put those resized in drawable-mdpi it would work.
Am I correct? I see no reason why it can't be as easy as that.
I resize them with GIMP. Don't know what you use but in theory have to work
well, i don't know any coding language.
Maybe someone could make a script to resize images??
it would be a pain in the a** to resize them one by one
There are many batch resize windows apps that will let you convert a complete folder full more at once..
just google it
Sent on the run from my Magic 32A
It will not work on many .9.PNG files unless you resize them from source. Sorry but I've tried it with my theme. .9.png files are not just normal png files. They are made to stretch and readjust depending on the orientation of your device (landscape versus portrait) and may have what is called 'guides' coded within the images to tell the OS how to display that graphic. If you were to edit that file in any way those guides are over written and it messes up your whole theme. So if you were to use a batch resizer you would probably experience a disgusting looking interface coupled with acore crashes. Unless of course you used the files from source and just created the app from the source code. But who knows you might get lucky and whatever app that you are trying to theme may not use those pesky .9.png files.
Binary100100 said:
It will not work on many .9.PNG files unless you resize them from source. Sorry but I've tried it with my theme. .9.png files are not just normal png files. They are made to stretch and readjust depending on the orientation of your device (landscape versus portrait) and may have what is called 'guides' coded within the images to tell the OS how to display that graphic. If you were to edit that file in any way those guides are over written and it messes up your whole theme. So if you were to use a batch resizer you would probably experience a disgusting looking interface coupled with acore crashes. Unless of course you used the files from source and just created the app from the source code. But who knows you might get lucky and whatever app that you are trying to theme may not use those pesky .9.png files.
Click to expand...
Click to collapse
Thank you for this Binary100100..
In a regular theme, about how many pngs are .9?
and what do you mean "created from source"?
MicroMina said:
Thank you for this Binary100100..
In a regular theme, about how many pngs are .9?
and what do you mean "created from source"?
Click to expand...
Click to collapse
.9.png with guides? I have no clue. For an entire rom... I would say over a hundred easily. There are about a dozen of them just in the Dialer app itself. If you modify any one of them the whole thing get's messed up. It's very delicate. What do I mean create it from source? Download the source code from HTC website on a Linux machine and create the ENTIRE rom from scratch. It's not that hard actually once it's all set up. Before you do the "make" command you would do your xml edits, resizing, color edits, etc. You can tell what a .9.png file is because it has a line on the right of the image and a line on the bottom beneath it. It will have a black pixel at the top and one on the left. So you edit those files the way that you want it and then create the app or the entire rom. If you chose to create the entire rom then remove the parts from the rom that you don't want in your theme and then make an update-script file for your flashable theme. Nobody said that making a theme is fun or easy and in many cases the developers of the theme (like myself) do it just because they did it for their own device and chose to share their work. On average if you want to create an entire theme it will take you at least 30+ hours of work if you are already set up and knowledgable with Linux and image editing. That's how long it took me anyway.
Thank you for this very informative post.
I guess its not that easy after all. Maybe one day I could try it.
Thanks again.
MicroMina said:
Thank you for this very informative post.
I guess its not that easy after all. Maybe one day I could try it.
Thanks again.
Click to expand...
Click to collapse
Oh it's plenty easy, it's just very time consuming to make a theme from scratch and since you can't take a 3kb file measuring 20 x 20 and turn it into 36 x 36 and turn it into a 5.4 kb file without losing resolution (thus defeating the purpose of being on a AMOLED HD display) even if you were to suceed it probably still won't look very good. Think of it like this. Take a standard 800 x 600 video for your non-high definition television. Sure it looks alright but what about if you displayed it on a 1080p television. Is the picture going to look any better? Not really because it's the quality of the video and not the television itself. Now, if you could enhance the video... it would make a huge improvement. But by simply resizing the images wouldn't really do anything for a HD screen (my theory anyway).
But if you build everything from the source code (that is such as Cyanogen's github) and edit all the images from scratch then you shouldn't have a problem. But it is VERY time consuming like I mentioned before. I loathe the idea of upgrading my phone now because that means that my current theme along with all of the work that I've done with it... will be obsolete until I can do it all over again from source. Ugh.

editing the lockscreen

I want to make a minor change to the way the lockscreen looks and want to see if its something easy enough for me to do.
I'm looking to make the gray part with the dots on ether side slightly transparent. I would also like to keep the clock solid. Also not lose any of the functionality of the htc lockscreen.
Is this easy enough for someone with no theming experience to do?
Assuming you are rooted and if you are just changing images it is not difficult at all.
The lockscreen slider is actually in
/system/framework/com.htc.resources.apk
and there are 3 that start with lockscreen_arc
You need to copy the apk to your PC and open it with 7zip (my preferences) and extract the res folder to the PC. Do your graphic changes in that folder. Then reopen the apk in 7zip and drag the modified res folder over the window and drop it in.
Then you just do and adb push to put it back on the phone
You can use the same process to modify other images in the
/system/app/HtcLockScreen.apk
Changes that are not just graphics become very difficult and require de-compiling the apk to edit xml files.
AND Do a nand backup before just in case you mess up.
Awesome, sounds like a good guide. I'll post my results once I finish it.
it seems this is going to be harder than i thought.
I made the part that I wanted translucent only to find that the two pngs under it are not editable enough to remove them from behind it, so I'm left with this. I'm assuming that the only way to fix this is to do some xml editing which is a little above me.
I actually like that
If I could just get rid of the straight parts near the top of the time, I would like it. But simply editing the pngs won't cut it as I have a feeling that the xml extends the top graphic straight down because what is seen there doesn't match up with what the png looks like.
You would be correct. The problem you're running into is the 2 images behind the main lock bar are actually .9.png images and not regular .png images.
Quick, very rough explanation: To save space these images are stretched by xml files at certain points in the image to create a background. When an apk is decoded, these stretch points are represented by a 1px border around the image. This does not show up when you just use a program like 7zip.
Something to try if you want to cheat, not sure if it'll work.. Treat it all as one image instead of 3 separate ones. Make lockscreen_arc.png a taller image, and then put the top and bottom bars on it that way. Then just make the other two .9.png files completely transparent. Since it's a regular .png, it wont get stretched. I know making it smaller works out, so I'm assuming you could also make it larger.
Edit: Just thought about it some more, and that might not work, because if I had to guess, the Verizon and date text are probably set up in the xml relative to that image.
I'll mess around a little more today and see if I can't come up with something.
i also would like to do this but not the stock lock screen but this one..
To look like this...
Just the green and yellow to blue..
If all else fails, you could use the theme kitchen (http://uot.dakra.lt/kitchen). It'll allow basic changes to the whole theme (specifically the lockscreen).
Dude this thread is almost a year old and some people like to do stuff manually

[Q] PNG's in the framework (Resolved)

some of the png's i open in photoshop have a black background/black pixely border. i have took a ss of one of the media control images as an example and it's attached below.
if anyone knows why this is happening could you please give me an idea? It's not all just a few here and there.
droidx11 said:
some of the png's i open in photoshop have a black background/black pixely border. i have took a ss of one of the media control images as an example and it's attached below.
if anyone knows why this is happening could you please give me an idea? It's not all just a few here and there.
Click to expand...
Click to collapse
because i believe you are looking at .9.png's which use black borders as a guide for stretching if the file is something.9.png then that is your answer
hmm.. i haven't seem to have a problem editing the .9 PNG's, i've tried searching this forum and a few other forums and haven't found that anyone has asked this.. that particular png file name is "ic_media_play". i've also had the same problem when opening the wifi, 3g, some of the keyboard buttons, the "spinner_black_16" image. i've tried opening them in firefox then copying image, dragging them directing into photoshop and a few other things. sorry if this is a newb question...
droidx11 said:
hmm.. i haven't seem to have a problem editing the .9 PNG's, i've tried searching this forum and a few other forums and haven't found that anyone has asked this.. that particular png file name is "ic_media_play". i've also had the same problem when opening the wifi, 3g, some of the keyboard buttons, the "spinner_black_16" image. i've tried opening them in firefox then copying image, dragging them directing into photoshop and a few other things. sorry if this is a newb question...
Click to expand...
Click to collapse
well ic_media_play isnt a .9.png so if it has a black outline its just for the way it looks the wifi, 3g, and spinner_black_16 images you shouldnt have a problem with since they arent .9.png's either, most of the keyboard images are tho and will need to be decompiled and recompiled to get them to work correctly. im working on a theme right now and theres no easy way to edit them, oh also if you're using something like 7zip to open up the apk that might be your problem i edit most of mine in Linux so i dont remember if you can open them in Photoshop without decompiling but the best way is to decompile, edit, then recompile and there are guides out there that describe how to better than i could but search for apktool or apkmanager
Funnyface19 said:
well ic_media_play isnt a .9.png so if it has a black outline its just for the way it looks the wifi, 3g, and spinner_black_16 images you shouldnt have a problem with since they arent .9.png's either, most of the keyboard images are tho and will need to be decompiled and recompiled to get them to work correctly. im working on a theme right now and theres no easy way to edit them, oh also if you're using something like 7zip to open up the apk that might be your problem i edit most of mine in Linux so i dont remember if you can open them in Photoshop without decompiling but the best way is to decompile, edit, then recompile and there are guides out there that describe how to better than i could but search for apktool or apkmanager
Click to expand...
Click to collapse
first i'd like to thank you for your response. what i am doing is unzipping the contents from framework-res with winrar. (i was planning on just replacing the unzipped folders with the existing folders that are in framework-res, just overwriting them.) then i just pulled the images from the unzipped folder, res -> drawable-hdpi, into photoshop... in the unzipped folder thumbnail image, these images seem to look okay, no border/stroke around the edges, no black bg etc. but in photoshop they seem to have locked layers named "index" which i just change the mode to RGB to make the layer editable. i'm not sure what i'm doing right, i'm sure it's something i'm not doing right, i just can't figure it out - maybe i'll try a different program to unzip the folder?
i've attached a ss of the folder with the thumbnail images looking okay.
(p.s. this theme is for my gf)
I've been working on a theme also, though not for the DX... I had to completely remake the PNG's in question. I'm on OSX using Photoshop and it does the same thing. First start with an indexed color version then once you get it done on a block level convert it to an RGB 8-bit image and smooth the image with a very mild gaussian blur or lens blur... personally I use gaussian.
Here's a screenshot of mine in action... I made the "empty" signal bars hollow with a neon outline..
You'll want to use 7-zip, not sure about the black stroke on the images, sounds like a .9 PNG issue. I don't use Photoshop personally, I use Fireworks. It could be Photoshop putting the stroke on the images...If you have access to Fireworks, trying using that instead.
k0smo86 said:
You'll want to use 7-zip, not sure about the black stroke on the images, sounds like a .9 PNG issue. I don't use Photoshop personally, I use Fireworks. It could be Photoshop putting the stroke on the images...If you have access to Fireworks, trying using that instead.
Click to expand...
Click to collapse
winRAR is fine too you can open a zip file without having to unzip the entire contents, personally i use linux/Ubuntu which has an awesome photoshop like picture editor G.I.M.P. idk if you can download it or not for windows but you could check it out
droidx11 said:
first i'd like to thank you for your response. what i am doing is unzipping the contents from framework-res with winrar. (i was planning on just replacing the unzipped folders with the existing folders that are in framework-res, just overwriting them.) then i just pulled the images from the unzipped folder, res -> drawable-hdpi, into photoshop... in the unzipped folder thumbnail image, these images seem to look okay, no border/stroke around the edges, no black bg etc. but in photoshop they seem to have locked layers named "index" which i just change the mode to RGB to make the layer editable. i'm not sure what i'm doing right, i'm sure it's something i'm not doing right, i just can't figure it out - maybe i'll try a different program to unzip the folder?
i've attached a ss of the folder with the thumbnail images looking okay.
(p.s. this theme is for my gf)
Click to expand...
Click to collapse
lol sure its for HER lol you can use 7zip/winRAR either one but use it to extract the drawable res folder out and pull them into photoshop, edit the ones you want and put them back in the one already zipped up, but if you do it that way stay away from .9.png's
XGX5309 said:
I've been working on a theme also, though not for the DX... I had to completely remake the PNG's in question. I'm on OSX using Photoshop and it does the same thing. First start with an indexed color version then once you get it done on a block level convert it to an RGB 8-bit image and smooth the image with a very mild gaussian blur or lens blur... personally I use gaussian.
Here's a screenshot of mine in action... I made the "empty" signal bars hollow with a neon outline..
Click to expand...
Click to collapse
looks very nice so far, did you edit the analog clock also? looks amazing... thanks for the tips.
k0smo86 said:
You'll want to use 7-zip, not sure about the black stroke on the images, sounds like a .9 PNG issue. I don't use Photoshop personally, I use Fireworks. It could be Photoshop putting the stroke on the images...If you have access to Fireworks, trying using that instead.
Click to expand...
Click to collapse
thanks for the advice, i'll give fireworks a try and see how it turns out.
Funnyface19 said:
lol sure its for HER lol you can use 7zip/winRAR either one but use it to extract the drawable res folder out and pull them into photoshop, edit the ones you want and put them back in the one already zipped up, but if you do it that way stay away from .9.png's
Click to expand...
Click to collapse
hahaha yea i was trying on that pink to see how it looked on me . I'm going to try to dl GIMP along with fireworks to see how they turn out and yea i've read about those .9.png's on other threads about how they weren't changing over in certain apps. hopefully i won't run into this problem but if i do then its back to the pros on xda for advice. lol
Update - Editing the PNG's in fireworks, works like a charm, a lot smoother. Thanks everyone for your useful and helpful information
You should be able to option +2x click the index layer and then cmd + J in PS to mod it without redrawing it.
Hth
Sent from my SCH-I800 using XDA App

[HOW TO] Animated Status Bar Pulldown for GB Roms

I saw this in an article on droid-life: Here
Original Thread: Animated status bar pulldown for GB roms
Hope this could help some devs/themers get this going for us EVO users
The Author of this is: Alastrionia
Youtube Demo
MODS: If this should not be here, please remove, and my sincere apologizes.
Animated status bar pulldown for GB roms
First off this should work with all GB based roms that use systemui.apk
there may be subtle differences but the basics should be the same all around.
after much trial and error and ripping what little hair I have left out
success was mine and it's time to share this with everyone
and it's so simple that you'll love how fast you can integrate this into ROM's / themes / whatever your heart desires
1. take your systemui.apk and decompile it
2. navigate to layout folder
3. grab "status_bar_tracking.xml" and open it up in your editor
(now for the fun)
4. to the first line - "com.android.systemui.statusbar.TrackingView" add this ""android:background="@drawable/...anim.xml""
<com.android.systemui.statusbar.TrackingView android:background="@drawable/...anim.xml...>
5. after saving that, navigate back into the drawable folder and add your animation.xml file there
5a. next navigate into the drawable/hdpi folder and add your animated images
6. also in the drawable/hdpi folder find and open up the shade_bg.png with your editor and make it 100% transparent
7. now it's time to recompile your apk , following all the usual directions with that
8. enjoy your newly created systemui.apk with a pretty animated background. new and fresh and unlike anything before
that's it. done deal. it's super easy and fast and breathes life into true customization.
I used the stat_sys_upload.xml from the framework-res.apk as my base
all I had to do was change the timing and change the image names.
also you'll notice above - don't copy it word for word on the xml.
I did the "..." meaning whatever you decide to name your file.
I'll try to throw up a video shortly of my success with this so everyone can see it.
Click to expand...
Click to collapse
You lost me at "decompile"
SantinoInc said:
You lost me at "decompile"
Click to expand...
Click to collapse
I think by that he means to open the systemui.apk
I used 7zip to open a cm7 nightly just now and it's located in the system/app folder. Inside the .apk theres:
res (folder)
AndroidManifest.xml
classes.dex
resources.arsc
Inside the res folder:
anim (folder)
drawable (folder)
drawable-hdpi (folder)
layout (folder)
xml (folder)
Hopefully some themers can get some pretty nice/cool things done with this.
No you would have to decompile the apk with a apk decompiler..Unzipping it will not work.Thats just for replacing images.
1 Aw3s0m3 M0d!!
i'll help people if they're having trouble. probably won't do this personally.
and yeah, to see .xml files correctly, you need an apk decompiler.
Nice find! Will definitely try this.
forgive me if im not reading this right.... is this for aosp of sense?
What will they think of next
Evolutionmods said:
forgive me if im not reading this right.... is this for aosp of sense?
Click to expand...
Click to collapse
I believe this is for AOSP but reading through the entire thread someone says "this also works on the com.htc.resources.apk for sense ROMs."
Subbed and Definitely Interested!
More demos with different animations are starting to appear. This is looking really awesome.
http://www.youtube.com/watch?v=gf7lFsAkxFA
http://www.youtube.com/watch?v=vte37qjSiEc
Oh yeah. I got big plans for this one. Cant wait to get some time to sit down and code it. It really is as simple as stated.
It's not just for gingerbread. I shot this with my crappy 5 year old digicam.
Another demo:
http://www.youtube.com/watch?v=HAHoKJ2N0Xw
Has anyone given this a go on the EVO yet??
Yeah, I got it working...Needs some tweaking. I tried it with a 24 frame boot animation.. very laggy. I suspect that a 8-15 frame animation would do well
blassilando said:
Another demo:
http://www.youtube.com/watch?v=HAHoKJ2N0Xw
Has anyone given this a go on the EVO yet??
Click to expand...
Click to collapse
The vid I posted above yours is on an evo.
Would either of you mind posting your xml so i could use it as a reference? Not totally clear on that part of it. Thanks.
http://www.dropbox.com/referrals/NTEyOTE1MzA3OQ
http://www.youtube.com/watch?v=HEKsfTiaif0
Ill gladly be a testbot for anyone working on this for our evos
would be nice to get a zip we can flash. so everyone including us noobs can get this mod.
thanks for the info great job

Categories

Resources