[Q] Date on lockscreen - Hero CDMA Q&A, Help & Troubleshooting

Anyone know how to change the date format on the lockscreen? I am using the default one and not HTCs. I have looked in android policy and framework-res but neither seems to set the EE, MMM dd. I would like to change it to E, MMM dd yy or something along those lines. Any help is appreciated. The only thing that comes close is the date_format_short, but since there are multiple values, it seems to have to do with regular date_format....I did find a hardcoded date_format_short in SettingsProvider.apk as well as a way to turn Unknown Sources on by default...havent tested - but it is set there.

Wh00t! Well, not a big deal, but made it so that on the flashing of a rom, Unknown Sources under Applications is automatically checked, and Haptic Feedback under Sounds and Display is unchecked...less crap I have to deal with

Well, finally figured out how to change the date format on the lock screen.

Are you going to tell us?

You have to decompile framework-res.apk and browse to /res/values/ and /res/values-languagecode/ (mine is values-en-rUS). You want to edit strings.xml and look for
Code:
<string name="abbrev_wday_month_day_year">EEE, MMM d, yyyy</string>
as you can see, mine is different than what is already there. What I have above shows the full day, month, date, and year (Thursday, March 31, 2011) - the ", yyyy" does not exist initially. I have not finished determining how I want the lockscreen to display the date yet, I was just making sure I had the right option.
To enable "Unknown Sources" and disable "Haptic Feedback" you have to edit SettingsProviders.apk and I believe the file is bools.xml (I have since removed the decompiled files as I was done editing for now...I actually need to find some more options in the settings menu that I have to go through and turn off, but that is for another day). I must say it is real nice to not have that stupid popup when you try to install an app that you backed up. It may only happen once, but I always forget about it and it is soooo annoying.

Good deal. Thanks evilvoice!
I had a feeling the date format was in framework-res, but I wasn't sure which one. I haven't yet ripped into SettingsProvider yet, so I'm looking forward to what I can screw up in there.

I had originally heard that it was in framework-res, but after trying to find it, I decided to move to android.policy.jar, which did not get me anywhere, then I tried settings.apk and settingsproviders.apk (no idea why I tried providers, but I did), so I came across the 2 options by mistake. Then I decided to look again at framework-res (because someone in the Software and Hacking General forums said that it was in there under lockscreen.xml, so back to the original file, only there wasnt a lockscreen.xml...there were other files that deal with the lockscreen, but nothing with a date, so I did a findstr for date, and basically decided I was going to try editing that line to see if it worked...thankfully it did.
So, 5 days just to find that out. Now, if only someone a lot smarter than me could figure out how to remove tabs from the Settings Menu. I cant believe nobody in all of the Android HTC devices has not wanted to remove some of the tabs, anyways, thats my next BIG project. I think I am really close to figuring it out as I found out how to overwrite a tab with another tab, but that is not what I want for the end product, because you would essentially have 3-4 tabs at the bottom that are elsewhere in the menu....hate duplicates

Related

Customizing your Dialer

I wasn't sure where a good place to post this would be and haven't found a thread in the Raphael or Diamond forum on this topic so hopefully I don't get flamed for starting a new thread. I asked 4 days ago in "Let's see your ATT Fuze Screens" thread on how to edit my dialer skin to make the number keys transparent so I can view my wallpaper behind it so it flows with my theme (this was after a screenshot from someone with a dialer I want and have not been able to find). I did not get back a response. Maybe I posted in the wrong thread. I am a noob, but I am trying to learn how to do things for myself. I have read the wiki and countless threads (yes sometimes the entire 200 pages), used search function within threads, within the specific forums and within the entire xda site. Alot of results come up and none are helpful. Maybe I am not using the right search terms. In any case, I've tried to find a dialer I like, but to no avail, so I would like to try and create my own. Yes, I would like to just be able to install a cab and be done, but I am willing to try and figure it out on my own with some guidance. If someone could please point me in the right direction to do this (maybe the files I have to edit and I can try and figure out how to do that myself from other threads) I would be very greatful. I would like to have a transparent key pad on the phone screen and the screen when receiving a call and be able to place my own wallpaper behind it (Need landscape as well since I have the Fuze). I think this is something others would want as well to keep there personalized themes consistent. If this thread is redundent, please point me to the existing thread.
Thank you.
Since nobody else is replying, I will at leas share what I know. Using your phone's file explorer, navigate to the device's "windows" folder and look for the two dialer .bmp files named "Assets_dialer_Normal.bmp" and "Assets_Dialer_Pressed.bmp". Those are the two files that you need to edit or replace to get the dialer to your liking. Note: there are also other files named similarly "_Assets_dialer_Normal.bmp" etc. so don' mistake the files with the underscore at the beginning of the file name. I hope this points you in the right direction. Be advised that the biggest obstacle will be finding a way to overwrite those protected files. Good luck
IM ACTUALY IN THE PROCESS OF CUSTOMIZING MY DIALER..
IM SKINNING 'UGGALO_x WHITE S2A CDMA'
customizing the dialer is no problem. the same as skinning any of the rest of the display, to get around permissions issues just use Total Commander CE to overwrite the existing file.
transparency is a problem as the dialer pad is comprised of bmp files and as such there is no transparency like you would find with gif or png (unless someone has found a transparency color and i've just missed it).
it may be possible to use your current background image as the background of the bitmap to overlay the buttons onto, thus giving the appearance of transparency. this of course comes with the downside that if you decide to change your background you would have to change your phone screen to one that matched. in addition it would not be just the files mentioned by tx_dbs_tx that you would need to modify in this scenario as the dialer only takes up the lower... oh, 3/5ths of the screen? you would also need to modify the "Calls and Contacts" / "All Calls" / "Speed Dial" fields and the field where the number you are dialing is displayed. i am not presently aware if this has even been attempted yet.
personally, i have only attempted a color change to the dialer to date, but have been successful with that. if somehow nobody else responds before i can check on the unknowns above, i will come back and let you know what i find.
Thanks
Thanks to everyone who replied. I will try and see if I can mess around with these files. I found a dialer to use for now. See thread below. I need to figure out what files are for the slide to answer screen in portrait and landscape and the dialing screen (the screen when you make a phone call). I think that is all of the screens associated with the phone. Please correct me if I am wrong.
The Vista Abstract Dialer by [email protected] found here: http://forum.xda-developers.com/showthread.php?t=463958
I can't upload the zip of the files. Just go to the thread above to download and break down CAB

app menu customizing

is there any way to customize the app menu? such as adding folders for games, email & im, media..? tryed searching the forum and google but cant find anything
if you're rooted and have one of the compatable roms, there is a thread in the development forum which has a customized launcher.apk, allowing you to do all the things you just asked for.
i had just got the g1 2 days ago, kind of want to wait a little before doing that stuff. i got a file manager... there isnt any way to just get to a folder with the icons and add folders, and rearrange? always was the first thing i did with my WM phones... im a little OC about my menus
Like he said, not without the new launcher. You can add a folder to the desktop and name it and such. Don't worry it took me a week before I decided to flash my phone.
You can always add folders to the desktop.
evilkorn said:
Like he said, not without the new launcher. You can add a folder to the desktop and name it and such. Don't worry it took me a week before I decided to flash my phone.
Click to expand...
Click to collapse
haha im about to i think... if anything goes wrong i might "loose" my phone
its a a crc1 so im not quite sure the dirrerance between that and say a rc29... gotta look into everything and see how i feel...

Help with Phone.apk mod please

I want to edit the background of the dialer from black to white, but I cannot seem to find where it is, I've went through the source and can't find it. Can anyone help with this mod?
Thanks
Ima make a judgement call on this one and say if you can't find it, most likely you shouldn't be messing around with it
stefan.buddle said:
Ima make a judgement call on this one and say if you can't find it, most likely you shouldn't be messing around with it
Click to expand...
Click to collapse
If you do not recognize the name, perhaps you should not make such assumptions.
Let me see if I can find the file name, give me a few.
Edit: As far as I can tell, there is no image file for the background. From the small bit of android programming I have attempted, I do seem to recall the default background color being black. I think you probably need to edit an xml file, but I could be completely wrong. I could not read the xml files with my phone, so I could not narrow it down at all. If you agree this is the way to go, and need to know how to decrypt xml send me a pm.
I know it is not an image, I've edited all the images. I have done an abundant amount of themes. I posted the question because I have spent a long time looking though the source. It is not an xml in the drawable, it is in the source somewhere. After looking though the source though, I am starting to think it is something at a higher level than the phone.apk of contacts.apk and maye be something from the system itself, since all the apps have a black background as the default.
Since I think it does default to black, have you thought about including a new background file into drawable, and writing it into the xml somewhere.
cloverdale said:
Since I think it does default to black, have you thought about including a new background file into drawable, and writing it into the xml somewhere.
Click to expand...
Click to collapse
Haven't thought that far but that may be the best solution. There are a few white themes, and it could be a nice addition to them, or even to those without. I'll look into it more when I have some more time, unless there are some people that have time to help on this project
I need help please. I have the latest source from Cyanogen. I am trying to add something to the dialpad.xml but without even doing anything yet, when I start a new project from the code, I get a lot of errors, most I can just delete files and be ok with but I get
Description Resource Path Location Type
ERROR No resource identifier found for attribute 'contentDescription' in package 'android' dialpad.xml /DialtactsActivity/res/layout-finger line 126 Android AAPT Problem
Click to expand...
Click to collapse
Its from the part of the code android:contentDescription="@string/description_image_button_pound"
I have spent days trying to figure out what the issue is.
Can anyone help?

Custom Theme Components

Long time lurker, first time poster... I have been learning a lot really fast about customizing different aspects of the eris, but what I have been really searching hard for is a way to customize certain components to add to an already great rom. Right now I am running Eris_Official_0.8.1T2 btw. Anyways what I am really looking for is something like this forum.xda-developers.com/showthread.php?t=654852 Mostly the Launcher is what I really want to change but to be able to tweak everything else would be great too. If someone knows how to do this or can point me in the right direction to maybe even learn how myself I would greatly appreciate it.
Thanks
unzip the rom files
system/framework/com.htc.resources
once in there go to
res/drawable-port-mdpi
the file named common_app_rosie_navbar.png
is the launcher, and thats the main thing u need to edit.
and also go to
system/apps/rosie.apk
one inside the apk go to
res/drawable-normal-mdpi
and
drawable-normal-port-mdpi
edit those to your liking
Wow I feel dumb now lol... Ive been poking around in com.htc.resources for a couple days now and completely overlooked that... Thanks alot... Only question I have now is how do I remove the word phone that overlayed on the launcher? I would post a screenshot of my home screen but since im a new user its not allowing me.
Thanks for the help
well I uploaded a photo to my album so if you feel like checking it out just go to my profile... Im starting to like the phone (icon and word) over the orb but if anyone knows how to remove the word for future reference please let me know... I am also trying to find out how to change the status bar's clock color, which searching around has brought me to editing the services.jar or services.odex file but Im still uncertain on how to do this. Any input would be great.
Im going to sound like an idiot, but i can't open the apk to edit, im missing something.. help?
Right click and open with winrar or 7zip. Once you have edited the images you will have to resign either the .apk or the rom. Depending on if you are editing the whole rom or not. Hope I was able to help

How can i theme the dialer

First, I apolgize if this belongs in the general section, I just wasn't sure where to post. I would like to change the look of my dialer (the one you hit the phone icon to bring up), specifically to the look of Jt's AOSP rom dialer posted by Captainkrtek and pictured below. I really can't find anything that says exactly what to change in the contacts apk to get it to look like that. Rather, everything I have done has failed miserably. can anyone give me a little insight into what I take from one to put into the other? Thanks in advance
the touchwiz dialer and aosp dialer don't line up right, you'll need some xml edits (DIP) and images and a bunch of other stuff.
the dialer is TabDialerActivity.apk (or something like that)
DialerTabActivity.apk and framework-res.apk
Big thanks to both of you. I have that apk on my phone, but the aosp rom doesn't, do they hide that somewhere else on aosp? I am just sifting thru the whole rom right now looking for the same files. Also, if they don't line up right, am I just wasting my time?
Fyrmedic654 said:
Also, if they don't line up right, am I just wasting my time?
Click to expand...
Click to collapse
Well, it all depends on what you want. You might want to check Phone.apk also.
Eh, looked there but nothing matches up. I give up. Getting it like that may be more than my noob behind can handle right now. I'm still learning the ins and outs so, I may put this on the back burner next to my custom boot animation. Thanks again for the help. At least now if I find one I like in another theme, I will be able to change it

Categories

Resources