[MOD][HOW-TO][CM10]Change Lockscreen Clock Format, Font, and Size - Samsung Galaxy SL i9003

Hey Guys, I'm back with another CM10 mod.
With this mod you can change the lockscreen clock format, font, and size.
Initially I looked into this because the clock on the lockscreen wouldn't show AM/PM even after explicitly setting it to show from the settings. So after fixing that, I noticed that I can also change the font of the clock too. And then also the size. :victory:
Ok. So before I start with the guide, a screenshot of how it can look in the end.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
So first of all Format :
1. Decompile framework.jar of cm10.
2. Goto \smali\com\android\internal\widget\
3. Open DigitalClock.smali
4. Find:
Code:
.method private setDateFormat()V
5. In that method find:
Code:
const-string v0, "h:mm"
It's the third last line of that method.
6. Change it to:
Code:
const-string v0, "h:mm AA"
7. Save the file. You just changed the lockscreen format. Now, usually AA should give capital AM/PM. But it still shows am/pm on lockscreen. So that means something's wrong somewhere. But anyways this method does show am/pm on lockscreen.
Moving on to the Font (Optional. Read point 11):
8. In that same file DigitalClock.smali, the very first method is
Code:
.method static constructor <clinit>()V
9. Find:
Code:
const-string v0, "/system/fonts/AndroidClock.ttf"
change it to:
Code:
const-string v0, "/system/fonts/Clockopia.ttf"
10. Next find:
Code:
const-string v0, "/system/fonts/AndroidClock_Highlight.ttf"
change it to:
Code:
const-string v0, "/system/fonts/Clockopia.ttf"
11. Save the file. Now this makes the lockscreen font to Clockopia.ttf which is present in your /system/fonts/ . This allows users to change only a single file to change clock font. Or else users can change both AndroidClock.ttf and AndroidClock_Highlight.ttf to any other font.
The original clockopia font in our cm10 doesn't contain proper alphabets so you will have to change it to something else.
You will have to rename a font to Clockopia.ttf (make sure the font you are changing to is in .ttf format) and replace it in the fonts folder with permissions rw-r-r.
Next is the size of the Font:
When I changed the font to an other one, the size was too large and had to be changed. To do that:
12. Decompile framework-res.apk.
13. Goto \res\values\
14. Open dimens.xml and find:
Code:
<dimen name="keyguard_lockscreen_clock_font_size">
Change the dip value to anything you want. (For the font in the screenshot, I have kept it 50.)
15. Save the file.
16. Now recompile the jar and the apk.
For framework.jar, take the classes.dex from the recompiled jar and replace in the original jar.
For framework-res.apk, take the resources.arsc from the recompiled apk and replace in the original apk.
17. Replace both of them in system/framework/ folder with permissions rw-r-r.
Click to expand...
Click to collapse
Note: For people who on ROMs based on CM10 (eg. RemICS, XPERIA etc), the framework-res.apk which I am attaching is for the original CM10 by dhiru. So the drawables will be of the original CM10. So you all will have to replace the resources.arsc of your ROM's framework-res.apk to retain your ROM's drawables.
Download links:
Morphing Zip
Thank You
​

^^ thanks man .. don't you use your transparent background mod?
To use that mod alongwith this one, i'll just have to replace the resources.arsc in this apk by the one in my apk. Correct?
===========================================
Oops. I didnt realize that this one uses a different file. Thanks for the below post.
=================
Downloaded and pushed. As always, works perfect. No issues.

Hetalk said:
^^ thanks man .. don't you use your transparent background mod?
To use that mod alongwith this one, i'll just have to replace the resources.arsc in this apk by the one in my apk. Correct?
Click to expand...
Click to collapse
That transparent background mod is in SystemUI.apk if I'm not mistaken. So this wont change that.

Morphing Zip in OP.

font color
Hi, thank you for the mod, but how do you change the font color? I've been looking for an answer to that question and nothing found about it.
Thanks in advance.
Regards.

fvlserevere said:
Hi, thank you for the mod, but how do you change the font color? I've been looking for an answer to that question and nothing found about it.
Thanks in advance.
Regards.
Click to expand...
Click to collapse
In framework-res.apk, goto \res\values\ . Open colors.xml.
Find:
<color name="lockscreen_clock_background">#ffffffff</color>
<color name="lockscreen_clock_foreground">#ffffffff</color>
<color name="lockscreen_clock_am_pm">#ffffffff</color>
<color name="lockscreen_owner_info">#ff9a9a9a</color>
Change as you like.

ammar, how are things about jb theme for gb value pack?

cukierkas said:
ammar, how are things about jb theme for gb value pack?
Click to expand...
Click to collapse
Working on it. Dont worry, i wont let the users down. Just give me time. Keep calm and gangnam style.

Never understood the popularity of that piece
Keep it going, gb community trust in you :thumbup:
Sent from my GT-I9003

How about making it transparent? and adding some text on lockscreen

great guide
can you recomnend another cool font, as i don't like Clockotopia

jader13254 said:
great guide
can you recomnend another cool font, as i don't like Clockotopia
Click to expand...
Click to collapse
Roboto is the best. :thumbup:

Thank you for the excellent guide!
Any idea how to change the font that is used by the date string on the lock screen?

creeve4 said:
Thank you for the excellent guide!
Any idea how to change the font that is used by the date string on the lock screen?
Click to expand...
Click to collapse
I believe it's the default. I could had looked into it but currently im back on my stock gb rom for my theme.

ammar786 said:
I believe it's the default. I could had looked into it but currently im back on my stock gb rom for my theme.
Click to expand...
Click to collapse
I agree, it is the stock font. I've searched through the smali files in framework.jar but I cannot find where the font is assigned.

Help
Hi mates! How r u ? Think its all right. My problem: i need fonts to my Samsung GT I9003 "azlat" or another font with these characters : "ə, ü, ö, ğ "& etc. format of Azeri ( Azerbaijan) language.
Thanks & Regards.
Zaur from Baku.

hey ammar before i use this can you use the font style like in 4.2.2?

tejadakenneth said:
hey ammar before i use this can you use the font style like in 4.2.2?
Click to expand...
Click to collapse
4.2.2 uses different fonts for hours and minutes. Here both will remain the same.

ammar786 said:
4.2.2 uses different fonts for hours and minutes. Here both will remain the same.
Click to expand...
Click to collapse
what about segoe ui light like in windows phones? and also can it be change the day and month?

tejadakenneth said:
what about segoe ui light like in windows phones? and also can it be change the day and month?
Click to expand...
Click to collapse
Any ttf font would work. THe day and month uses the system font. So it wont change.

Related

[Lockscreen] Centered Style & Custom Background for CM 7

Custom Lockscreen: Centered Style & Custom Background for CM 7.1
- just follow the instructions from CM 7..it´s just an update
- picture 2.) is same as 1.) just disabled sliders, like that, as I unlook with a gesture.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
- CustomLockscreenX71_morph.zip
- CustomLockscreenX71_tr_morph.zip
---------------------------------------------------------------
Custom Lockscreen: Centered Style & Custom Background for CM 7
[Tested on current 24/03/2011 nightly - passion]
I made 2 versions:
Version I.) CustomLockscreenX_morph.zip: Centered with a custom background
Version II.) CustomLockscreenX_tr_morph.zip: Centered with transparent background, which you cannot change
So you decide which to apply and enjoy!
---------------------------------------------------------------
How to Version I:
---------------------------------------------------------------
1.)
- put "CustomLockscreenX_morph.zip" in /sdcard/AndroidThemes/
- apply with MetaMorph
now you have a custom centered lockscreen background
]
2.) How to change your new custom lockscreen background:
- put "CustomLockscreen_my_morph.zip" in /sdcard/AndroidThemes/
- apply with MetaMorph
now you have your own custom lockscreen background
3.) How to make your own custom lockscreen background:
- exchange "default_wallpaper.jpg" in CustomLockscreen_my_morph.zip with your own (same size & jpg)
- put "CustomLockscreen_my_morph.zip" in /sdcard/AndroidThemes/
- apply with MetaMorph
now you have a your own custom lockscreen background
-----------------------------------------------------------
How to Version II:
---------------------------------------------------------------
1.)
- put "CustomLockscreenX_tr_morph.zip" in /sdcard/AndroidThemes/
- apply with MetaMorph
now you have a custom centered lockscreen with transparent background
---------------------------------------------------------------
Notes:
- Sliders, Clock font, Battery Icons are not included here !!
.
Some custom....
- santiemanuel: CustomLockscreenPng_morph.zip #post
.
very very very nice! Will try that.... the seperate lockscreen background was always something i liked about miui and now we have it for cm -->
Aha, so the lockscreen wallpaper is always default_wallpaper.jpg
I noticed this happen on my phone and didnt know why lol.
Does this always work? Right now I have a custom default_wallpaper.jpg in the .apk and the lock screen does not use it and uses the wallpaper instead.
Note that it was set in framework-res before I flashed the nightly.
edit: It cant be translucent as its a JPG, I wish it was a PNG
what did you actually change in the framework.apk?
I'd like to know, so i can apply it on my modded framework.apk... Plus i'd like to use it withe the niegtlies....
So what did you change in the framework??
gaeng4665 said:
what did you actually change in the framework.apk?
I'd like to know, so i can apply it on my modded framework.apk... Plus i'd like to use it withe the niegtlies....
So what did you change in the framework??
Click to expand...
Click to collapse
Just check the morph
framework-res\res\drawable-hdpi\default_wallpaper.jpg
edit: a layout\xml was added later
wow, thank you so much for this. may actually be enough to make me hold onto CM a bit longer lol.
britoso said:
Just check the morph
framework-res\res\drawable-hdpi\default_wallpaper.jpg
Click to expand...
Click to collapse
yeah i know, but it can't be the only thing.... otherwise we all would already have had a different lockscreen wallpaper......(the green gras wallpaper....)
Another file got moddded, must be some xml file...
BTW: i found the file, it's in layout....
Trying to apply... will see.
But still don't know what got modded in that xml file....?
And feel free to post some nice lockscreen backgrounds
You da man! Love this!
rori~ said:
And feel free to post some nice lockscreen backgrounds
Click to expand...
Click to collapse
Holy crap you are GOOD! I have a question, could we use PNGs instead of JPGs? Would there be any conflict issues?
Zephyron said:
Holy crap you are GOOD! I have a question, could we use PNGs instead of JPGs? Would there be any conflict issues?
Click to expand...
Click to collapse
*lol, thanx.
For using png's one would have to find another way..
This works only for jpg's now.
Sent from my Nexus One
Here are the BG's that Im gonna use for my lockscreen, enjoy!
edit: Ah shoot, need to edit resolution as well
edit2: fix resolution
gaeng4665 said:
Another file got moddded, must be some xml file...
BTW: i found the file, it's in layout....
Trying to apply... will see.
But still don't know what got modded in that xml file....?
Click to expand...
Click to collapse
There is no XML file in the morph.
edit: the xml was added later
britoso said:
There is no XML file in the morph.
Click to expand...
Click to collapse
Yes that's true. The Morph only changes the default wallpaper in framework/res/drawable hdpi.
Only applying the morph will result in nothing.
In order to have a lockscreen wallpaper as well as a "normal" wallpaper, the keyguard_screen_tab_unlock.xml in framework/res/layout must be modified so the default wallpaper in framework/res/drawable hdpi will show as lockscreen wallpaper.
What i don't get is what has been changed in the keyguard_screen_tab_unlock.xml file.
So rori can you please tell me what and how you modified that xml file?
Tried it and lockscreen still doesnt have its custom bg
Zephyron said:
Tried it and lockscreen still doesnt have its custom bg
Click to expand...
Click to collapse
You need to flash CustomeLockscreen.zip first in recovery, reboot then apply the morph and then reboot again. It should work that way.
Alternatively youn can modify your framework.apk and replace the file i mentioned one post earlier....
BUT i advise you to flash the zip file....
gaeng4665 said:
You need to flash CustomeLockscreen.zip first in recovery, reboot then apply the morph and then reboot again. It should work that way.
Alternatively youn can modify your framework.apk and replace the file i mentioned one post earlier....
BUT i advise you to flash the zip file....
Click to expand...
Click to collapse
I have, I flashed the zip, rebooted, and morphed, reboot, and its the default nexus live wallpaper. Changing to a different wallpaper, the lockscreen still just display the wallpaper
Zephyron said:
I have, I flashed the zip, rebooted, and morphed, reboot, and its the default nexus live wallpaper. Changing to a different wallpaper, the lockscreen still just display the wallpaper
Click to expand...
Click to collapse
What happens if you change your default homescreen wallpaper?
gaeng4665 said:
What happens if you change your default homescreen wallpaper?
Click to expand...
Click to collapse
The lockscreen changes with the homescreen wallpaper

[COMPILATION 11/5]List of working fonts on X10 CONTRIBUTE NOW!TUTORIAL ADDED

hey people, i've been active on XDA for quite awhile and i thought it'll be time for me to contribute back to this gracious community.
There is no dedicated thread to the compilation of working fonts for the x10 and i thought i'll kick start this thread.
Please post screenshots of the fonts you are using and i'll compile them and add them into OP so that it'll be easier for users to have access to information.
If users want to contribute guides on how to change fonts, please feel free to do so and i'll add them into OP
WORKING FONTS ON X10
SonySketch //font found Here
Comfortaa //font found Here
Ubuntu //font found here
Babel sans //font found here
Storopia //font found here
Click to expand...
Click to collapse
GUIDE ON MAKING YOUR OWN XREC ZIP sorry i dont have time to make a flashable zip for every font. i'm still a student!
FOR CM/2.2/2.3/ STOCK 2.1 ROMS
install this base zip here CREDITS TO AYDEE
unzip the files and under system/font you will find clocktopia, droidsans and droidsans-bold
find your desired font and download the font pack
RENAME the regular version of your desired font with "DroidSans", the bold with "DroidSans-Bold" and also replace clocktopia with the REGULAR version of your desired font
zip it up and you're ready to go
FOR MIUI ROMS
Install base zip here CREDITS TO MY_IMMORTAL for zip file as well as guiding me along on the font changing process
Replace all fonts in zip with desired font.
Regular version of font rename it Arial
Bold version of the font rename it with Arial-Bold
and so on.
replace everything except for DroidSans-Fallback.ttf.
zip it up and you're ready to go
Click to expand...
Click to collapse
TIPS (credits to AYDEE)
Clocktopia will change the lockscreen clock font on CM/2.2/2.3 ROMS
Clocktopia is not used as the lockscreen clock font in 2.1 though so it won't change that but installing it on 2.1 won't hurt anything. The lockscreen font in 2.1 has to be added to framework-res in the assets folder then pushed back so it's a little trickier.
Most true type (.ttf) fonts will "work" but some are too big or small or have missing characters that will make them look bad on x10.
Click to expand...
Click to collapse
I DO NOT OWN THESE FONTS. CREDITS TO THE MAKERS OF THESE FONTS
feel free to try some fonts here and report the outcome here! REMEMBER MAKE A BACKUP BEFORE TRYING TO CHANGE YOUR FONTS
Great!.....
does anyone know what font is this?
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
thanks in advance!
Working Fonts for X10
Working Fonts For Android...
Share Your Fonts Package For X10
Dead threads but they have some good fonts scattered in them.
& it would be much easier if the fonts were posted as zips for xrecovery or at least packaged & renamed so they can be used with a font changing program or adb push.
Here is 'Storopia' for xrecovery:Click (preview attached)
I have tried many fonts from the thread pasted below, and all of them were working for me with Font Changer.
http://forum.xda-developers.com/showthread.php?t=801160
There are about 300 fonts there.
Keep the contributions coming I will update the list when I'm home.
The link is on op. Can anyone try out a few fonts and report it back here thanks!
Sent from my X10i TripNMiUI using XDA App
Kindly make recovery zips for Fonts found in OP
i request to kindly make recovery zips for the following fonts mentioned in first post of this thread.
WORKING FONTS ON X10
SonySketch //font - i found the xrecovery zip for this
Link - http://www.mediafire.com/file/1i7c83ttv5a8x1k/SonySketch.zip
Comfortaa //font
Ubuntu //font
Babel sans //font
Thanks in advance.
jketankumar said:
i request to kindly make recovery zips for the following fonts mentioned in first post of this thread.
WORKING FONTS ON X10
SonySketch //font - i found the xrecovery zip for this
Link - http://www.mediafire.com/file/1i7c83ttv5a8x1k/SonySketch.zip
Comfortaa //font
Ubuntu //font
Babel sans //font
Thanks in advance.
Click to expand...
Click to collapse
i've made a tutorial on how to make your own xrec zip! try it
how to install it?
kierpalmares said:
how to install it?
Click to expand...
Click to collapse
install base zip for your type of rom, then follow the instructions, reboot into xrec make a backup and flash. if it screws up it means the font you chose is not compatible with our device. so just restore backup and try again!
Nice work.
Some things to note:
The zip you got from me will also work on stock 2.1
Clocktopia will change the lockscreen clock font on CM/2.2/2.3 ROMS
Clocktopia is not used as the lockscreen clock font in 2.1 though so it won't change that but installing it on 2.1 won't hurt anything. The lockscreen font in 2.1 has to be added to framework-res in the assets folder then pushed back so it's a little trickier.
Most true type (.ttf) fonts will "work" but some are too big or small or have missing characters that will make them look bad on x10.
FOR CM/2.2/2.3 ROMS
install this base zip here CREDITS TO AYDEE
unzip the files and under system/font you will find clocktopia, droidsans and droidsans-bold
find your desired font and download the font pack
RENAME the regular version of your desired font with "DroidSans", the bold with "DroidSans-Bold" and also replace clocktopia with the REGULAR version of your desired font
zip it up and you're ready to go
Click to expand...
Click to collapse
Have you tried your method? I haven't tried just re-zipping the old signature files like you suggest so I don't know if that would work...
I will make a zip to use as a template but it will need to be signed before flashing with xrecovery.
So it should be something like:
FOR 2.1 & CM/2.2/2.3 ROMS
find your desired font and download the font pack
download this base zip here CREDITS TO AYDEE
Open the zip (double-click, not unzip) and then navigate to system/font. you will find clocktopia, droidsans and droidsans-bold
RENAME the regular version of your desired font with "DroidSans", the bold with "DroidSans-Bold" and also add your desired lockscreen clock font and rename it to "Clocktopia"
Drag the 3 new fonts into the open zip and click yes on the popup prompting to replace the files and then close the zip.
Sign the zip on your computer or with ZipSigner 2 or Signapktic (both free on the market)
Reboot into xrecovery, backup, and then flash it as a custom zip
My_Immortal's zip is also signed so unless I'm wrong you may have to change the guide a little.
AyDee said:
Nice work.
Some things to note:
The zip you got from me will also work on stock 2.1
Clocktopia will change the lockscreen clock font on CM/2.2/2.3 ROMS
Clocktopia is not used as the lockscreen clock font in 2.1 though so it won't change that but installing it on 2.1 won't hurt anything. The lockscreen font in 2.1 has to be added to framework-res in the assets folder then pushed back so it's a little trickier.
Most true type (.ttf) fonts will "work" but some are too big or small or have missing characters that will make them look bad on x10.
Have you tried your method? I haven't tried just re-zipping the old signature files like you suggest so I don't know if that would work...
I will make a zip to use as a template but it will need to be signed before flashing with xrecovery.
So it should be something like:
FOR 2.1 & CM/2.2/2.3 ROMS
find your desired font and download the font pack
download this base zip here CREDITS TO AYDEE
Open the zip (double-click, not unzip) and then navigate to system/font. you will find clocktopia, droidsans and droidsans-bold
RENAME the regular version of your desired font with "DroidSans", the bold with "DroidSans-Bold" and also add your desired lockscreen clock font and rename it to "Clocktopia"
Drag the 3 new fonts into the open zip and click yes on the popup prompting to replace the files and then close the zip.
Sign the zip on your computer or with ZipSigner 2 or Signapktic (both free on the market)
Reboot into xrecovery, backup, and then flash it as a custom zip
My_Immortal's zip is also signed so unless I'm wrong you may have to change the guide a little.
Click to expand...
Click to collapse
I actually used my immortal's zip file, unzipped it and replaces certain fonts and zipped it back up with winrar without signing it and it worked. Maybe someone would like to confirm I'll add your method into the op later on. Thanks!
Sent from my X10i TripNMiUI using XDA App
Well, if that works then just leave it how it is... The easier the better!
I rarely have time to muck with it so I hadn't tried it.
Sent from my X10a using XDA App
I used Sony sketch resized, good improvement to the default font.
Thanks a lot
just sharing. I use this edited comic sans with fontchanger.
It can read almost all symbols.
bern4d1 said:
just sharing. I use this edited comic sans with fontchanger.
It can read almost all symbols.
Click to expand...
Click to collapse
mind sharing the site you got your edited comic sans from?
thanks!

[Guide][MOD] How to Mod Espier Launcher

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
After receiving many questions on how I modded my Espier Launcher.apk I decided to write this tutorial. Many thanks to Taine0 for inspiration and initial instructions!
WHAT THIS GUIDE IS FOR:
-How to change icons in espier launcher
-How to change page indicators
-How to change dock
-How to change notification bubble
-How to add custom icons (for apps not natively themed by espier launcher) RECENTLY EDITED
-How to install onto phone
A. Preliminary Steps:
1. Install apktool
2. Create a directory called Espier launcher mod
3. Download Espier Launcher and rename to launcher.apk
4. Place Espier Launcher into that directory.
5. Open terminal.
6. Change terminal directory to your Espier launcher mod folder.
E.G. I ran this:
Code:
cd /home/gaurav/Desktop/Espier launcher mod
7. Decompile the apk.
Code:
apktool d launcher.apk
B. Changing basic icons.
**UPDATE**
Now, to prevent icons from being edited (in a bad way) by Espier Launcher, download this icon and place it in drawable-(h/m/l)dpi. This is crucial to prevent your icons from getting a weird white glow around them!
1. Open res/drawable-(hdpi/ldpi/mdpi/xhdpi) *depending on what screen size your phone is. I have an mdpi so i will go into drawble-mdpi
2. Change the desired icon
For example, the file
Code:
ic_com_android_camera_preparecamera.png
can be replaced by an image of the same (or similar) size. when you're done, it should look like:
Screenshot
3. Refer to Section G
C. Changing page indicators
1. Open res/drawable-mdpi
2. Find the file:
Code:
ic_screen_level_focus.png
ic_screen_level_normal.png
3. Replace these two files with desired ones
4. Open res/drawable-hdpi
5. Replace these files with desired images.
Code:
ic_screen_level_focus
ic_screen_level_normal.png
ic_screen_level_search_focus.png
ic_screen_level_search_normal.png
ic_screen_level_widget_focus.png
ic_screen_level_widget_normal.png
6. Refer to Section G.
D. How to change dock
1. Navigate to res/drawable-mdpi (in my case)
2. Find file called
Code:
toolbar.png
3. Replace with desired (make sure the dock image is correct size for your phone)
4. Refer to Section G.
E. How to change notification bubble.
1. Open res/drawable-mdpi
2. Find and replace with desired image
Code:
icon_shuzi1.png
3. Refer to Section G.
F. How to add custom icons
*Warning* This section is a lot more confusing. Please read carefully. *Warning*
1. Navigate to /res/values/arrays.xml
2. Now, it gets tricky.
3. Go this website
4. Search for an app. It should look like this:
Screenshot
5. Now, in arrays.xml, scroll down until you see this type of coding
Screenshot
6. Get to the end of that "chunk" of xml.
7. Let's say we're theming the facebook app. So we add this to xml. (and fill it out with info)
Code:
<item>ACTIVITY_OF_APP</item>
<item>DESCRIPTIVE_ACTIVITY_OF_APP</item>
<item>@drawable/NAME_OF_APP</item>
For example:
Code:
<item>com.facebook.katana</item>
<item>com.facebook.katana.LoginActivity</item>
<item>@drawable/facebook</item>
You get the first line of info like this:
Screenshot
and the second:
Screenshot
in that third line of that xml we add (@drawable/NAME_OF_APP), you can name your app anything you want. i made it "facebook" in this case.
8. Save and exit.
9. Find a desired image for your application (in this case facebook).
10. Rename it to "NAME_OF_APP.png" in this case, "facebook.png"
11. Drop that file into drawable/mdpi
12. Repeat steps 1-11 for as many applications as you want to theme.
13. Refer to Section G.
G. How to install on your phone
1. First, save and close everything you're working on.
2. Open your terminal, and change its directory to the "espier launcher mod" folder
3. Type in
Code:
apktool b 'PATH_TO/espier launcher mod' 1.apk
4. Take that 1.apk, and sign it, using a program like ApkSigner
5. Connect your phone to your computer via USB.
6. Mount it as a mass storage device.
7. Transfer that signed.apk to the root of your sdcard.
8. Now on your phone, uninstall any current version of EspierLauncher you may have.
9. Then, using a file manager, install the signed.apk from your sdcard.
YOU'RE DONE!
Hope everyone finds this guide very useful! If you want to see what it looks like as a completed project Check out my DeviantArt
I've been looking for ways to mod Espier Launcher and recently asked one users from deviantArt to teach me how but didn't get a response and now I saw this. Thanks a lot mate, this is very useful ! :]
Mello^ said:
I've been looking for ways to mod Espier Launcher and recently asked one users from deviantArt to teach me how but didn't get a response and now I saw this. Thanks a lot mate, this is very useful ! :]
Click to expand...
Click to collapse
Yup! I got a lot of requests so I made this guide! Glad you like it!!
Sent from my Liberty using XDA App
I modded this launcher myself removing backdops, icon backgrounds. But changing
the png file with a transparent file. Can you teach doing this by changin code?
Secondly can you teach how to use 2 lines icon names? I do this by changing
a code but i think you already know this.
With all of these it will be a perfect launcher.
mind posting/sharing your modded espier launcher?
This is dope! Great job mate!
Sent from my GT-I9100 using XDA App
yken said:
I modded this launcher myself removing backdops, icon backgrounds. But changing
the png file with a transparent file. Can you teach doing this by changin code?
Secondly can you teach how to use 2 lines icon names? I do this by changing
a code but i think you already know this.
With all of these it will be a perfect launcher.
Click to expand...
Click to collapse
Oh yes, i forgot to include how to get rid of icon backdrops...I do not know how to change the code (regards to the icon backgrounds) nor I know how to make the icon names have 2 lines :/ If you could post those instructions, i will add to OP and give you some credit
roi14 said:
mind posting/sharing your modded espier launcher?
Click to expand...
Click to collapse
Sorry, I wish I could, but the icons i've used in it are NFR. So...no
iekansh said:
This is dope! Great job mate!
Sent from my GT-I9100 using XDA App
Click to expand...
Click to collapse
Thanks!!!
super awesome, dude !
thanks! glad you appreciate it!
Why don't you Share your apks ?
Sent from my GT-I9100 using XDA App
why dont you just share you apks dude?
For everyone wondering why he won't share his modded launcher, it's because the icons aren't for release. He made this tutorial, why not just do it yourself?
Really nice and thorough tut! I was waiting over on deviantart but didn't see it until now!
For those not wanting to install apktool, the same can be done with apkmanager much easier. Gaurav, I would actually recommend changing the tutorial to use apkmanager instead. Much easier for the noobs You would only have to change up a couple of steps.
iLauncher is better.
kcls said:
For everyone wondering why he won't share his modded launcher, it's because the icons aren't for release. He made this tutorial, why not just do it yoursellf?
Click to expand...
Click to collapse
That is exactly correct!
kcls said:
Gaurav, I would actually recommend changing the tutorial to use apkmanager instead. Much easier for the noobs You would only have to change up a couple of steps.
Click to expand...
Click to collapse
Sounds good. I will update when I find some free time.
GetPatriotized said:
iLauncher is better.
Click to expand...
Click to collapse
I thought Espier was smoother. And i know how to theme
Sent from my Liberty using XDA App
Mate, I don't use apktool nor apk manager. I just use 7zip for modding apks and I can't seem to find the values folder on the res so I can't add any app activities on array.xml :/
help TT
Mello^ said:
Mate, I don't use apktool nor apk manager. I just use 7zip for modding apks and I can't seem to find the values folder on the res so I can't add any app activities on array.xml :/
help TT
Click to expand...
Click to collapse
You have to use one of the two, they decompile the apks so the XML is readable. Unzipping with 7 zip will result in a bunch of gibberish for XML.
Tapatalkin it from my IHO CM7.1'd, MIUI Themed Optimus V
kcls said:
You have to use one of the two, they decompile the apks so the XML is readable. Unzipping with 7 zip will result in a bunch of gibberish for XML.
Tapatalkin it from my IHO CM7.1'd, MIUI Themed Optimus V
Click to expand...
Click to collapse
I see now, Thanks a lot mate :]
Well, thanks to supetawesomedude and his awesome guide, I moded espier launcher so now it has Suave theme This theme is for MDPI devices only (I dont have HDPI devices so I can't test). Backup your Espier Launcher config, remove it, install the file below and restore the config Enjoy
awesome guide bro, but too complex for me to get my head around it lol, if they just allowed the option that ilauncher has for custom icons this would rock so much more imo, and thanks TMinh for sharing your setup
So can you only add up to 14 icons by editing the public.xml?
I'm up to 8 right now and just realized it only goes up to icbk_color_14

[GUIDE][2.2+]How to change Setting's background

If this thread helped then rate this thread 5stars and click onTip Us
Hey Guys i am back with my new guide:victory:
I searched a lot to find a method to chnage the bclack background of the menu and settings but sorry i didn't got any!
Software needed :
1.7zip (to replace the image)
2.android sdk(to use adb commands to push/pull the files)
3.)Apktool (search on XDA)
Difficulty level: Medium
For 2.2+ based ROMs
1. Decompile framework-res.apk
2. Navigate to res/values and open styles.xml
3. Locate <style name="Theme">
4. Replace
<item name="colorBackground">@color/background_dark</item>
with
<item name="colorBackground">@color/transparent</item>
5. Replace
<item name="windowBackground">@drawable/screen_background_dark</item>
with
<item name="windowBackground">@drawable/mybackground</item>
6. Locate <style name="Theme.Black" parent="@style/Theme">
7. Replace
<item name="colorBackground">@color/black</item>
with
<item name="colorBackground">@color/transparent</item>
8. Replace
<item name="windowBackground">@color/black</item>
with
<item name="windowBackground">@drawable/mybackground</item>
9. Create a png of size according to your resolution(like 320*480 for mdpi) to your liking, name it mybackground.png and place it in drawable-hdpi folder
9. Recompile framework-res.apk
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
For 4.0+ based ROMs
1.) Open the framework-res.apk via 7zip and navigate to the following directory
"framework-res.apk\res\drawable-nodpi\", you will see a file called "background_holo_dark.png". Delete the image and dont close the 7zip.
2.)Preparing your own image:
Now use any png image you want to set as background , resize it to 512 x 512 via mspaint or any other image editing software and rename the file to "background_holo_dark.png".
3.)Drag the newly created image file back to 7zip(to the same directory where the old file is deleted) and close the 7 zip .
4.)Replace the framework-res.apk(that you edited now) with the your ROM's using and Root Browser like Root Explorer and reboot.
For 4.2+ Based ROMs
1. Decompile framework-res.apk
2. Navigate to res/values and open styles.xml
3. Locate <style name="Theme">
4. Replace
<item name="colorBackground">@color/background_dark</item>
with
<item name="colorBackground">@color/transparent</item>
5. Replace
<item name="windowBackground">@drawable/screen_background_selector_dark</item>
with
<item name="windowBackground">@drawable/mybackground</item>
6. Create a png of size according to your resolution(512*512 most common) to your liking, name it mybackground.png and place it in drawable-nodpi folder
7. Recompile framework-res.apk
For users who know how to use root explorer can use the same to copy/paste the framework-res.apk before and after editing.​
Click to expand...
Click to collapse
Those who don't have the above mentioned pngs please upload your styles.xml to pastebin and kindly post in the thread i will look into it and solve it!

			
				
i will take this one also
and this one hahah:silly:
Great work dude (Y)
You rocked man....really rocked.....now we can do ultimate theming
Thanks for posting this bro
Nicely explained
Can u make a guide how to edit System
Png's and Framework.apk pngs
Re: [TUTORIAL][ICS][GB]How to change Android's black background
How to add new ones to the existing???
Sent from my Micromax A110 using Tapatalk 2
Great tut. But will u plz tell me- which tool is best for compile/decompile apk files??
Re: [TUTORIAL][ICS][GB]How to change Android's black background
2020shyboy said:
Thanks for posting this bro
Nicely explained
Can u make a guide how to edit System
Png's and Framework.apk pngs
Click to expand...
Click to collapse
There's no need of tutorials for editing pngs....
I'll tell you now...
Copy systemUI or framework-res from your mobile to pc. Extract it.
Now check the dimensions of the PNG you want to replace and remember the folder.
Now chose your image...change it's dimensions....rename it to the same name as of original file.
Drag your new files into the new folder directly in the apk using 7zip or winrar.
Replace your apk with default one in the system and you are done
Using XDA premium through A5
---------- Post added at 06:43 AM ---------- Previous post was at 06:42 AM ----------
himaloyee said:
Great tut. But will u plz tell me- which tool is best for compile/decompile apk files??
Click to expand...
Click to collapse
Use apktool....here is the detailed tutorial how to use it... http://forum.xda-developers.com/showthread.php?t=1989533
Using XDA premium through A5
Re: [TUTORIAL][ICS][GB]How to change Android's black background
Nice, I am going to give this a try and report back.
Sent from my Nexus 7 using Tapatalk HD
UPDATED THE OP
with edited first step it is
. Replace
<item name="colorBackground">@color/background_dark</item>
with
<item name="colorBackground">@color/transparent</item>
viijay4b7 said:
How to add new ones to the existing???
Sent from my Micromax A110 using Tapatalk 2
Click to expand...
Click to collapse
haven't you read the post throughly i have corretly mentioned that replace the existing backgroun_holo_dark.png with your any favourite wallpaper bu make sure that it has same attributes of the existing one.
done exactly the same in my micromax a110, but stuck on boot logo any help ????
pankycool123 said:
done exactly the same in my micromax a110, but stuck on boot logo any help ????
Click to expand...
Click to collapse
first see the original size of the pic(in pixels) then use an resizer and resize your photo(which you want to resize) to that size and in png format rename it to original one and replace the photo and then replace the framework-res.apk and reboot i have tested on a110 also it is working 100%
Re: [TUTORIAL][ICS][GB]How to change Android's black background
pankycool123 said:
done exactly the same in my micromax a110, but stuck on boot logo any help ????
Click to expand...
Click to collapse
Which file explorer did you use??
Using XDA premium through A5
Re: [TUTORIAL][ICS][GB]How to change Android's black background
The Droid Master said:
haven't you read the post throughly i have corretly mentioned that replace the existing backgroun_holo_dark.png with your any favourite wallpaper bu make sure that it has same attributes of the existing one.
Click to expand...
Click to collapse
I have read it. But I have understood wrongly may be.
I am looking to add new wallpapers to the existing, I.e when you press and hold on the home screen, add Wallpaper's--> new one's here..
So your guide is to just to avoid dark black ground r8?:what:
Sent from my Micromax A110 using Tapatalk 2
viijay4b7 said:
I have read it. But I have understood wrongly may be.
I am looking to add new wallpapers to the existing, I.e when you press and hold on the home screen, add Wallpaper's--> new one's here..
So your guide is to just to avoid dark black ground r8?:what:
Sent from my Micromax A110 using Tapatalk 2
Click to expand...
Click to collapse
ya u can say but it is actually to change the background to any wallpaper
Excellent! Working perfectly on Galaxy Mini (cm7.2)!
Thank you! :good:
MagModBR said:
Excellent! Working perfectly on Galaxy Mini (cm7.2)!
Thank you! :good:
Click to expand...
Click to collapse
Link this thread to your phone's forum so that others can also enjoy

[Request] Editing a simple line of framework-res

hello guys,
i have a small request, can please someone edit for me:
in Framework-res/values/colors.xml
next to Code:
<color name="notification_icon_bg_color"> (add a white color and remove the buggy black font)
or maybe it is in
<color name="notification_legacy_background_color">
<color name="notification_material_background_color">
because i have this bug with background notif (black with white): http://oi59.tinypic.com/1qlmy8.jpg
i do not have personnal computer and i can not use apktool at work
here is the link of my framework-res.apk:
https://mega.co.nz/#!8kcWWBTD!v-N7HHVBNQHsdtfq3srUVgPX6X3s8HCmOxSl_QqYeGY
in advance, thanks :good:
kataeb said:
hello guys,
i have a small request, can please someone edit for me:
in Framework-res/values/colors.xml
next to Code:
<color name="notification_icon_bg_color"> (add a white color and remove the buggy black font)
or maybe it is in
<color name="notification_legacy_background_color">
<color name="notification_material_background_color">
because i have this bug with background notif (black with white): http://oi59.tinypic.com/1qlmy8.jpg
i do not have personnal computer and i can not use apktool at work
here is the link of my framework-res.apk:
https://mega.co.nz/#!8kcWWBTD!v-N7HH...HCmOxSl_QqYeGY
in advance, thanks :good:
Click to expand...
Click to collapse
will try that after sometime bro
Sir your Framework download link is asking for decryption key fix it and i will help you
thanks
If i helped you press thanks button
@kataeb hmmmm maybe i know this name[emoji14][emoji14]
LOL anyway try with apktool for phone its very helpful tool ..
http://forum.xda-developers.com/showthread.php?t=3116300
Sent from my SM-G9250 using Tapatalk
zain.ahmad said:
will try that after sometime bro
Sir your Framework download link is asking for decryption key fix it and i will help you
thanks
If i helped you press thanks button
Click to expand...
Click to collapse
http://bit.ly/1ArT2sY here is the link! thanks dude
thereassaad said:
@kataeb hmmmm maybe i know this name[emoji14][emoji14]
LOL anyway try with apktool for phone its very helpful tool ..
http://forum.xda-developers.com/showthread.php?t=3116300
Sent from my SM-G9250 using Tapatalk
Click to expand...
Click to collapse
habibe kifak, ayre bil apktool ma 3reft esta3mela, nazalta 3al note 3 ma fhemt chi men chi
hayda el link taba3 el framework http://bit.ly/1ArT2sY
kataeb said:
http://bit.ly/1ArT2sY here is the link! thanks dude
Click to expand...
Click to collapse
Thanks
bro i added white color but i dont know how to remove that black font
here is your modded file
https://mega.co.nz/#!lIcyiLgC!DnlDrw0cPSvZLfH95och2Mc-366FX4S5GAV-NU4CAJA
press thanks if i helped you...!!
zain.ahmad said:
bro i added white color but i dont know how to remove that black font
here is your modded file
https://mega.co.nz/#!lIcyiLgC!DnlDrw0cPSvZLfH95och2Mc-366FX4S5GAV-NU4CAJA
press thanks if i helped you...!!
Click to expand...
Click to collapse
Just to confirm about the black --> white backgrounds, which line of code you actually edit and where? Is it in "colors.xml"?
Coz I've been trying to fix the same problem myself with apktool and I haven't been successful much. A shame about the text though.
Thanks in advance.
eiraku said:
Just to confirm about the black --> white backgrounds, which line of code you actually edit and where? Is it in "colors.xml"?
Coz I've been trying to fix the same problem myself with apktool and I haven't been successful much. A shame about the text though.
Thanks in advance.
Click to expand...
Click to collapse
i replaced white color hex code in colors.xml and this line
<color name="notification_icon_bg_color">
Cheers..!1
Actually, that fixes the icon colours. What he actually wants is below, I think - as I was suffering from the exact problem.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Anyway, I have actually found which parts of colors.xml that need changing to fix the above problem:
Code:
<color name="tw_notification_action_button_text_color">
<color name="tw_notification_action_button_background_color">
Change the first to black from teal and the second to white from black and you're all set.
Thanks for the inspiration though guys.
eiraku said:
Actually, that fixes the icon colours. What he actually wants is below, I think - as I was suffering from the exact problem.
Anyway, I have actually found which parts of colors.xml that need changing to fix the above problem:
Code:
<color name="tw_notification_action_button_text_color">
<color name="tw_notification_action_button_background_color">
Change the first to black from teal and the second to white from black and you're all set.
Thanks for the inspiration though guys.
Click to expand...
Click to collapse
a question but once modified and recompiled framwork.res coke do you overwrite the other without going bootloop ??
---------- Post added at 10:09 AM ---------- Previous post was at 10:00 AM ----------
eiraku said:
Actually, that fixes the icon colours. What he actually wants is below, I think - as I was suffering from the exact problem.
Anyway, I have actually found which parts of colors.xml that need changing to fix the above problem:
Code:
<color name="tw_notification_action_button_text_color">
<color name="tw_notification_action_button_background_color">
Change the first to black from teal and the second to white from black and you're all set.
Thanks for the inspiration though guys.
Click to expand...
Click to collapse
a question but once modified and recompiled framwork.res coke do you overwrite the other without going bootloop ??
Yeah, I just did a dirty copy and overwrite - which *will* of course cause a freeze - and quickly turned the phone on and off. Afterwards it boots fine with no bootloops.
I do need to remind you though, after recompiling you *HAVE* to copy the META-INF folder and AndroidManifest.xml file from your old framework-res.apk into the new one.
Or at least that's what I did.
Also, I'm using TotalCommander, which helpfully overwrites a file with the previous file's permissions intact. I'm not sure about other file managers - theoretically if the FM doesn't preserve file permissions while overwriting, a bootloop could occur as the new framework-res.apk will *NOT* have the correct permissions.
Thank you

Categories

Resources