*This is only for the stock, non-deodexed Gingerbread rom for the Nitro. If you want to apply this mod to a particular rom, let me know and I can apply it to it.*
**TYPICAL DISCLAIMER: I am not a dev, just a guy messing with this phone and sharing my experiences, so try anything I suggest at your own risk and protect yourself with lots of backups! And if you have any questions at ALL, please ask before trying something that could hurt your very expensive phone! =) **
For those of you obsessed with the minor cosmetics of android (or for those of you who just can't get enough of ICS), you may have noticed that changing the lockscreen font to whatever you want is much harder than in other usual android roms. Ordinarily, all you have to do is find a font you like (*.ttf format), rename it to Clockopia.ttf and plop it into /system/fonts in your phone, and voila, lockscreen clock changed. Unfortunately, LG modified the rom so that it doesn't use Clockopia.ttf for the lockscreen font at all. It just uses whatever system-wide font is being utilized at the time, making it impossible to have, for example, an Ice Cream Sandwich style font setup, with roboto font for the phone and the ICS lockscreen font for the clock (which is actually quite different looking from roboto). Well, I, for one, couldn't stand for that, so I found the settings in framework.odex, deodexed it, changed the settings to use Clockopia.ttf for the lockscreen and re-odexed it back. Now, trying out different fonts is as simple as swapping in a new *.ttf. For example:
Default clockopia font (included in attached zip)
{
"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"
}
Ice Cream Sandwich lockscreen font (included in attached zip)
Gothic font I imported (included in attached zip)
Here's what you'll need to apply this mod:
1.) 7zip for your computer
2.) root explorer (with root access) for your phone
Here's what to do:
1.) BACK UP EVERYTHING FIRST! With clockworkmod and titanium and anything else you use! Any time you mess with system files, always backup everything first! In particular, back up "framework.odex" and "framework-res.apk" from your phone's /system/framework/ folder somewhere safe so that you can revert back to the original versions if you like.
2.) From attached "framework.zip" file, copy the framework.odex file to /system/ folder of your phone using root explorer.
3.) Using root explorer, change permissions of framework.odex to Owner: read write, Group: read, Others: read.
4.) Now that it has correct permissions, move framework.odex into /system/framework of your phone, letting it overwrite your original odex
5.) Restart your phone.
If everything went as expected, your lockscreen will now show the standard clockopia font shown in the first image above. (If you are using the pattern lockscreen, the clock will be slightly cut off at the top. To fix this we will move on to step 6)
6.) Pick which ONE "fixed clock" xml you want from the attached files. If you just want to fix the clock being cut off, choose "fixed clock - stock." However, if you want to also remove (or had already removed) the emergency call button or the carrier on the lockscreen as well, pick those files instead.
7.) Copy framework-res.apk from /system/framework to your computer
8.) Right click framework-res.apk on your computer, choose 7zip, "open archive", and navigate to res/layout folder with all the XMLs in it
9.) Drag and drop the keyguard_screen_unlock_portrait.xml in the "fixed clock" zip you chose into the open archive of framework-res.apk, and let it overwrite the original xml in res/layout
10.) Move framework-res.apk back onto your phone. Using root explorer, move it to /system/, change permissions to Owner: read write, Group: read, Others: read.
11.) Now that it has correct permissions, move framework-res.apk back into /system/framework and let it overwrite the original framework-res.apk.
12.) Restart your phone!
13.) Pick whichever of the attached Clockopia fonts (including ICS) (or pick one from your computer or off the web), move it into /system/, change permissions of the font file to Owner: read write, Group: read, Others: read, and then move it into /system/fonts, overwriting the original Clockopia.ttf. (You may have to restart your phone after changing fonts for it to adjust to the new font properly).
Now if you want to change the lockscreen clock font, just swap Clockopia.ttf in /system/fonts to whatever you want (making sure to always use proper permissions). Always paste system files INCLUDING FONTS into /system/, then change permissions to Owner: read write, Group: read, Others: read, and THEN move into their proper places, overwriting the originals. NEVER try to change permissions after replacing. It probably won't end well =)
*NOTE: if you want to import fonts from windows or online or where ever, note that simply renaming the *.ttf to Clockopia.ttf and putting it into /system/fonts will result in weird spacing issues, as it does on any typical android device when swapping Clockopias. The original Clockopia.ttf font file has unique spacing for android. For importing other fonts, I suggest using wonderful font-editing freeware programs like Type Light to modify your original Clockopia.ttf by copying and pasting individual glyphs from whatever font you want over those in the original Clockopia.ttf from your phone, and then saving this as your new Clockopia.ttf. This will preserve the proper spacing, though you may still have to tweak it some, just depending on the font you're trying to import. The good news is Clockopia only has characters 0-9, :, A, M, and P, so copying and pasting these 14 characters from another font into Clockopia.ttf doesn't take too long =)
Thanks 4 sharing,
About changing clockscreen clock font, why dont u use Fontchanger for this? will be easier
Font changers won't allow you to change the lock screen font without also changing the font of your phone system wide due to the way lg modified the os. This allows you to detach the lockscreen font from the rest of the phone like it normally is on stock Android os.
Font changers won't allow you to change the lock screen font without also changing the font of your phone system wide due to the way lg modified the os. This allows you to detach the lockscreen font from the rest of the phone like it normally is on stock Android os.
Click to expand...
Click to collapse
Nice work!
Sent from my LG Nitro HD
can someone speficy on the following lines what to do in order to hide carrier label from lockscreen? thanks
<TextView android:textAppearance="?textAppearanceMedium"
android:ellipsize="marquee" android:gravity="bottom|right|center"
android:id="@id/carrier" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_marginLeft="8.0dip"
android:layout_marginTop="6.0dip" android:layout_marginRight="8.0dip"
android:singleLine="true" android:layout_toRightOf="@id/time"
android:layout_alignParentTop="true" android:layout_alignParentRight="true" />
itasoulas said:
can someone speficy on the following lines what to do in order to hide carrier label from lockscreen? thanks
<TextView android:textAppearance="?textAppearanceMedium"
android:ellipsize="marquee" android:gravity="bottom|right|center"
android:id="@id/carrier" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_marginLeft="8.0dip"
android:layout_marginTop="6.0dip" android:layout_marginRight="8.0dip"
android:singleLine="true" android:layout_toRightOf="@id/time"
android:layout_alignParentTop="true" android:layout_alignParentRight="true" />
Click to expand...
Click to collapse
Easiest way I can think of, I would just switch
layout_height="wrap_content"
to
layout_height="0.0dip"
You might also try changing layout_width to "0.0dip", but I think swapping layout_height would have less likelihood of messing with spacing of other stuff
itiskonrad said:
Easiest way I can think of, I would just switch
layout_height="wrap_content"
to
layout_height="0.0dip"
You might also try changing layout_width to "0.0dip", but I think swapping layout_height would have less likelihood of messing with spacing of other stuff
Click to expand...
Click to collapse
it didn't work, maybe some more xmls need to be changed, thanks anyways dude!
That sucks. Make sure you're looking at the right xml for what you want to change. That's all I changed to get rid of the carrier in my lockscreen, but then I changed that setting in the keyguard_screen_unlock_portrait xml, and it gets rid of the carrier in the pattern lockscreen. The non-pattern lockscreen obviously uses a different xml, so that setting will have to be changed there.
will work on galaxy s3 gt I9300 ?
I wanna try clockopia
thanks
I'm quite positive it will NOT work on anything but the stock gingerbread Nitro.
Related
{
"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"
}
Here is a compilation of many mods which I have been using for myself which I thought the community might be interested in. Please bare in mind that I am not the original creator of many of these and credits follow below. I am merely collecting them all together so they are handy for those who want them.
Of course I am open to new/not included ones, so please post and alert me to them and I will update as regularly as possible. Enjoy!
THANKS TO:
-Jjdoctor (XDA)
-CrushedD (RootzWiki)
-Snow02 (RootzWiki)
-PvyParts (XDA)
-ArrTooDeeToo (RootzWiki)
-He_stheone64 (XDA)
-Fergie716 (XDA)
-Altimax98 (RootzWiki)
Volume-rocker screen-wake
-decompile android.policy.jar and open KeyguardViewMediator.smali
-search for "WakeKeyWhenKeyguard"
-scroll down a bit and delete the two lines that start with "0x18" and "0x19"
-save and recompile
Faster soft-key UI
-decompile SystemUI.apk and navigate to smali>statusbar>policy and open KeyButtonView.smali
-search for "setDuration(J)" and there should be two instances
-in first instance find the line above it, starting with "const-wide/16 v1", change to "0x28" for medium fast or "0x0" for instant
-in second instance find the same line and change to "0x80" for medium or "0x0" for instant
-save and recompile
Get framework-res.apk to recompile
*this is hella time consuming, but gotta do what you gotta do*
-decompile framework-res.apk and then recompile without making any changes
-take note of every values folder which a plurals file gives an error from
-now navigate to each of those specific values folders and open the plurals.xml
-find line 79 (using Notes++) and add a 2nd "%" to the second "%d" so it looks like this: <item quantity="other">%d of %%d</item>
-save each one and recompile when all completed
Change carrier label (both notification pulldown and lockscreen)
-decompile framework-res.apk and navigate to res>XML>eri.xml
-search for line starting with "64 Verizon Wireless"
-change the "Verizon Wireless" to anything you want, max 16 characters
-it must be 16 characters, so fill in missing characters with spaces on either side
--Example: " Galaxy Nexus " needs 2 spaces on either side to be correct
-save and recompile
Adding MIUI battery bar and remove stock battery
-decompile SystemUI.apk and navigate to res>layout>status_bar.xml
-add this line to the bottom:
Code:
<com.android.systemui.statusbar.BatteryBar android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="1.0px" />
-should look like this:
Code:
</LinearLayout>
<com.android.systemui.statusbar.BatteryBar android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="1.0px" />
</com.android.systemui.statusbar.phone.PhoneStatusBarView>
-now, in the same file, find the line starting with "<ImageView android:id="@id/battery"" and add "android:visibility="gone"" to the end of it
-now navigate to smali>com>android>systemui>statusbar and drop the 3 smali files in there from the attached zip from folder named "MIUI Battery Bar"
-save everything and recompile
-download the BatterBarSettings.zip, extract the apk, and install as you would any other apk to enable and customize the battery bar
Replace "recents" with "search" and add long-press recents to home button and long-press voice search to search button
-decompile SystemUI.apk and navigate to res>layout>navigation_bar.xml
-search for "android:id="@id/recent_apps"" should be 2 instances
-for first instance, replace entire line with:
Code:
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/recent_apps" android:layout_width="80.0dip" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_search" android:layout_weight="0.0" android:contentDescription="@string/accessibility_recent" systemui:keyCode="84" systemui:glowBackground="@drawable/ic_sysbar_highlight" />
-for second instance, replace entire line with:
Code:
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/recent_apps" android:layout_width="fill_parent" android:layout_height="80.0dip" android:src="@drawable/ic_sysbar_search_land" android:layout_weight="0.0" android:contentDescription="@string/accessibility_recent" systemui:keyCode="84" systemui:glowBackground="@drawable/ic_sysbar_highlight_land" />
-now search for "android:id="@id/home"" should be two instances, in both find and delete "systemui:keyRepeat="false""
-now navigate to res>values>public.xml
-search for "ic_sysbar_recent" change to "ic_sysbar_search" and right below it change "ic_sysbar_recent_land" to "ic_sysbar_search_land"
-finally find some icons you want and replace them in res>drawable-xhdpi and you can delete the recents ones too
-save everything and recompile
Center lockscreen slider and clock
-decompile framework-res.apk and navigate to res>layout
-drop in the two files from the attached zip from folder named "Center Lockscreen" overwriting old ones
-recompile
1% battery increments
-decompile SystemUI.apk and navigate to res>drawables
-drop in the two files from the attached zip from folder named "Percent Battery" overwriting old ones
-now find whatever battery images you want and place them in res>drawable-xhdpi
-recompile
Change color of statusbar clock and date
-decompile SystemUI.apk and navigate to res>values>styles.xml
-for clock, search for "
TextAppearance.StatusBar.Clock" and date search for "
TextAppearance.StatusBar.Date"
-under each, find the line starting with "
android:textColor" and change the hex value to whatever you want
--example, "fffffff" would be white
-save and recompile
Change color of soft-key background
-decompile SystemUI.apk and navigate to res>layout>navigation_bar.xml
-find the line that starts with "<com.android.systemui.statusbar.phone.NavigationBarView" (should be second one)
-fine "android:background="#ff000000" and change the hex color to whatever you want
--example, "ffffffff" would be white
-save and recompile
Launcher2 modifications
-I'm not actually going to type all of this out because a fantastic guide has already been put together to hide the search bar, increase number of rows, and increase/decrease number of screens. It can be found HERE.
Thank you thats very helpful^^
Nice one. Thanks
Sent from my A500 using Tapatalk
What programs does this require? Which are the best? (running on Mac, but I have bootcamp, so I would prefer a program that's compatible with Macs).
wonderfull howto's!!!!!+1
Huge thanks for all of this!
anton2009 said:
What programs does this require? Which are the best? (running on Mac, but I have bootcamp, so I would prefer a program that's compatible with Macs).
Click to expand...
Click to collapse
I use Apktool and Notepad++, so this guide was written assuming that. I find it to be the easiest to use, but there are plenty out there to choose from.
Just added how to color of the soft-keys background. Obviously remember that this does not change the color of the soft-keys themselves, so you will have to replace them to contrast whatever color you choose.
Thank you for this wonderful info. Do you know how to enable the menu button even when it is hidden? I know that the systemui.apk has to be decompiled and navigation_bar.XML has to be edited. But exactly what needs to be edited is what I do not know. Thanks.
Thanks for everything in this thread, very helpful.....my only question is, if I decompile SystemUI and then immediately try to recompile, I end up with a different file size.
Im guessing this is not normal.....what am I missing in my environment setup to be able to decompile/recompile successfully?
Is it not possible to use the softkey background colour mod to make it transparent (ie. see the wallpaper behind softkeys) I tried editing the alpha to 00 but it doesnt seem to have worked or is another mod required to stretch the wallpaper into this area?
i'd love a how-to on modifying the lockscreen to include SMS and Phone shortcuts
Immix said:
Thank you for this wonderful info. Do you know how to enable the menu button even when it is hidden? I know that the systemui.apk has to be decompiled and navigation_bar.XML has to be edited. But exactly what needs to be edited is what I do not know. Thanks.
Click to expand...
Click to collapse
I don't know how to do that at this time, but it is on my list because I too would like to know this. So as soon as I find out, I will update with it.
chrisexv6 said:
Thanks for everything in this thread, very helpful.....my only question is, if I decompile SystemUI and then immediately try to recompile, I end up with a different file size.
Im guessing this is not normal.....what am I missing in my environment setup to be able to decompile/recompile successfully?
Click to expand...
Click to collapse
Hmm, no I don't think so. I don't usually compare the file size (just assume everything is good lol) so I can't say for sure. Are you using apktool? The only thing I can think of is: if you are using apktool, you have to replace the META-INF folder (and android manifest too) in the new apk with the one from the old apk. So if you didn't know that, this could be your problem.
be77amy said:
Is it not possible to use the softkey background colour mod to make it transparent (ie. see the wallpaper behind softkeys) I tried editing the alpha to 00 but it doesnt seem to have worked or is another mod required to stretch the wallpaper into this area?
Click to expand...
Click to collapse
Hmm I never actually thought or tried that, it's a good idea though. So what happens when you set it to 0?
mrvirginia said:
i'd love a how-to on modifying the lockscreen to include SMS and Phone shortcuts
Click to expand...
Click to collapse
Haha join the club, I would also love to know that. Believe me if I ever find out, you guys will be the first to know.
Thanks for writing this up, I am trying to learn more about the process and how to do more mods, but I am stuck when trying to decompile .apks. I have managed to decompile android.policy.jar and framework.jar to do some simple volume wake and granularity mods, but I was trying to figure out how to remove the paging from rosie.apk and ran into a roadblock. I keep getting magic number errors everytime I try to do the decompile. I was getting the same problem when I started with the .jar files, but I was able to get past it by getting the latest smali/baksmali updates. I have been trying to use apktool and also apkbuilder but can't get past the magic number errors. Can anyone offer a suggestion to get past this please?
Thanks, for the tutorial! But editing eri.xml does not effect the carrier name. I am running CM9 on the Maguro (GSM Galaxy Nexus). Is the carrier info stored elsewhere?
And, could the app drawer icon be added to the navbar?
Sent from my Galaxy Nexus using xda premium
out of topic,can i decompile jar file using apktool?
Bump. I'm running miui v4 on toro (vzw cdma) and can't get the carrier to change either. Tried root tools also and was a no go. Anyone have any ideas where else the carrier could be stored?
aiinjylls said:
Thanks, for the tutorial! But editing eri.xml does not effect the carrier name. I am running CM9 on the Maguro (GSM Galaxy Nexus). Is the carrier info stored elsewhere?
And, could the app drawer icon be added to the navbar?
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
Miui since 0.9.x
Nice.!
Sent from my PG86100 using XDA
00McD00 said:
Volume-rocker screen-wake
-decompile android.policy.jar and open KeyguardViewMediator.smali
-search for "WakeKeyWhenKeyguard"
-scroll down a bit and delete the two lines that start with "0x18" and "0x19"
-save and recompile
Click to expand...
Click to collapse
That method not working in 4.2
"KeyguardViewMediator.smali" in /com/android/internal/policy/impl/keyguard_obsolete/
modified that not changed
Hi guys!
After getting a lot of requests by various users of Resurrection Remix and RootBox,I finally decided to do a tutorial on how to make certain kinds of mods.I have been modding for Resurrection Remix for quite some time now and have learnt a lot in the process.I will keep updating this thread as and when i learn new stuff.
What this tutorial teaches and guides you to do:
-ANIMATED NOTIFICATION DROPDOWN BACKGROUND
-NAVIGATION BAR BACKGROUND MOD
-TOGGLES BACKGROUND MOD
-PULLDOWN BAR MOD
-SYSTEM+DIALER BACKGROUND MOD
-LOCKSCREEN HANDLER MOD
MORE MODS WILL BE ADDED AS AND WHEN I GET TIME AND ALSO DEPENDING ON THE INTEREST OF THE USERS.
DISCLAIMER :
> Please be careful.The methods here are totally tested so if anything goes wrong it is probably your fault that you didn't do something correctly.I will give my support but I am not responsible for anything unfortunate that may happen.Don't forget to do a BACKUP before trying anything!
>This is a tutorial to help the daily user in making mods.It might not be the most perfect way to do things,so if you are competent enough and technically sound to build from source please go ahead and read Entropy512's post here to get an idea on the same.My tutorial is aimed at helping everyone make their own mods.
Firstly,I will give the credits of my learning curve to :
GaboWinter (For his EXCELLENT tutorials and awesome FAQ)
Westcrip (For giving us an excellent ROM that changed the way i looked at things)
Yorzua (For his excellent tutorials on theming)
MyLifeRocks10 (For teaching me how to use UFT)
Vreestyle (For being one of the main inspirations and letting me use his zip files as a base whenever required!)
Bajee11 (For guiding me on how to mess around with smali files)
Tigiy (Whose first Hulk mod was the one that triggered my curiosity)
Sun90,Faseeh,LegendZenefy,Kroz,Kicker09 (For being awesome!)
Neerajganga (For forcing and encouraging me to write this tutorial)
To all the others who helped me during this transition of mine.You know who you are!Also a huge thanks to all the developers without whom this wouldn't have been possible.
I'll try to cover all the mods that I have done so far gradually and I'll start with the easier ones.
Some of the tutorials may or may not already be available on the internet but I have been getting too many requests so I'll put everything together here.Remember that i am also NEW here so please dont flame me if i do things differently.However constructive criticism is always welcome!
I would appreciate a Thanks for all this as it took a lot of my time and effort.
So let's get started.
What you need to have installed on your PC :
-Android SDK - Get it here.
-Java Runtime Environment (APKtool needs at least ver. 1.6) - Get it here.
-Notepad++ or Adobe Dreamweaver for editing XMLs.
-Draw9patch.bat [Included in the Android SDK]
-Apktool - Get it here. - I use ICS Apktool to recompile and Original Apktool to decompile.Works great with SystemUI.apk
-Photoshop or GIMP - Get GIMP here (It is a free software).
-APK Multitool v 1.0.5/APK Manager 5.0.2. Get them here. (You can use Apktool for the same functions i think,however I use them both depending on my needs)
-7zip or Winrar.
Please don't ask me questions on how to set up the above as the tutorial is not for that and you will find many tutorials/guides on XDA and elsewhere which explain the same.
What you need to know before doing some of these mods:
-Decompiling and compiling APKs-
There are many tutorials on XDA for this.And it's pretty straightforward.I will just try to explain how to decompile the tricky SystemUI.apk.
I modified TVTV's post for HTC Desire,threw in my bits and wrote the way to do this :
Step 1 (installing the tools):
- Download and install the latest Java Runtime Environment (APKtool needs at least ver. 1.6);
-Download Apk Tool(both Original and ICS Apktool.I linked you to both above.)
Step 2 (preparing to decompile):
- In order to properly decompile/compile SystemUI.apk, you need to install the framework with Apktool.
- Open your root explorer of choice and navigate to /system/framework;
- Copy "framework-res.apk" and "SystemUI.apk" to the SD card, then move them to your PC either via cable or via a software of your choosing.
- Put both "framework-res.apk" and "SystemUI.apk" into the folder where you've extracted Original Apktool;
- Open command prompt (Windows button + R then type "cmd") and navigate to the folder where you have Original Apktool and the framework apk;
- Type "apktool if framework-res.apk". Your file will be processed and the required bits will be "installed" in "C:/Users/<yourusername>/apktool/framework";
Step 3 (proper decompilation):
-For decompiling we will use the Original Apktool.
- Copy your SystemUI.apk from "/system/app" to the folder where you've installed the Original Apktool or copy the SystemUI.apk you wish to mod to the folder where you've extracted Original Apktool;
- Open a command prompt, navigate to the Original Apktool folder, type "apktool d SystemUI.apk" and wait till the original apktool has finished. You should get no errors whatsoever and your apk should now be decompiled into "readable format" in "<yourOriginalAPKtoolfolder>/SystemUI".
Step 4 (proper compilation):
- After making the desired changes in the decompiled apk, it's now time to compile it.
-For compilation we will use the ICS Apktool
-Copy the changed SystemUI folder,SystemUI.apk and framework-res.apk to the folder of ICS Apktool
- Open a command prompt, navigate to the ICS Apktool folder then type "apktool b SystemUI". Your apk will now be compiled to "<yourICS Apktoolfolder>/SystemUI/dist" (again, you should get no errors whatsoever). DON'T USE IT YET!
- Being a system app, SystemUI.apk must first be signed with the proper keys else odds are it won't work. To do that, you need to rename the SystemUI.apk you're editing (the original one) into SystemUI.zip, open it with an archive manager then extract META-INF and AndroidManifest.xml to the "<yourICS APKtoolfolder>/SystemUI/build/apk" folder, then run the "apktool b SystemUI" command again. Your APK will now be built with the proper keys included, and is now fully functional. You may "pick it up" from the "<yourICS APKtoolfolder>/SystemUI/dist" folder;
- You can now flash the resulting (modded) apk to your device either via ADB or via a way of your choosing (.ZIP from recovery etc.).
Have fun and remember to always do a nandroid backup before messing with system files!
-A general idea of what 9.PNG images are.
READ this to know what they are and how to use draw9patch.bat.
For patching 9.PNGs go to Yorzua's thread HERE.
Note: You can either follow all the steps in his tutorial for creating the image and then use the drag and drop(7zip,winrar) method OR skip step 3 of his tutorial and compile the image along with the previously decompiled apk.In other words,if you decompile the apk,then skip step 3 and if you want to use the drag and drop method,then follow the entire tutorial of Yorzua.Usually when a simple 9.PNG patch is required,Yorzua's method can be followed,but when we are editing XML files,we need to decompile the apk and then recompile it as otherswise the XMLs wont be editable as they are encrypted).
So now that we are settled with that,let's begin the real stuff starting with the easiest :
NOTE : I ATTACHED AN EMPTY FLASHABLE ZIP FOR YOU GUYS.
After you mod your framework-res.apk, SystemUI.apk etc you need to place
them(drag and drop the modded apk's) inside the flashable file using 7zip or Winrar.
SystemUI.apk and Contacts.apk goes inside /system/app
Framework-res.apk goes inside /system/framework
After flashing any mod,dont forget to fix permissions!
If you are on a kernel other than Siyah kernel do the following steps :
-Reboot to recovery
-Mounts and storage
-Mount /system
-Flash zip
-Fix permissions
-Reboot system
ANIMATED NOTIFICATION DROPDOWN BACKGROUND
- Decompile your SystemUI.apk
- Navigate to /res/layout/ and open status_bar_tracking.XML
- Use Notepad++ to change the following lines of code.
Now add this line:
Code:
android:background="@drawable/dropanim"
to
Code:
<com.android.systemui.statusbar.phone.TrackingView android:orientation="vertical" android:paddingLeft="0.0px" android:paddingRight="0.0px" android:paddingBottom="0.0px" android:focusable="true" android:visibility="gone" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android">
-The "dropanim" is basically the name of the XML file that you are gonna create next.So you can name it whatever you want.
-Save the XML file and navigate to /res/drawable
-Inside this drawable folder , make an XML file named "dropanim".
-This XML file will basically point to all your resources(images).The images should be PNG images.Depending on the number of images you use,the code will be accordingly written.From personal experience,i would say don't exceed 30-35 png image files.Also there are ways to make the animation play only once,to make it play once forward and then reverse infinite number of times.More on that a little later.
-The android:drawable="drawable/anim1" syntax points at the images.Here the image name is anim1.
-You can refer the code below for this XML file.Depending on the number of images you use,you will have to edit the code accordingly.
Code:
<?xml version="1.0" encoding="utf-8"?>
<animation-list android:oneshot="false"
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:duration="150" android:drawable="@drawable/anim1" />
<item android:duration="150" android:drawable="@drawable/anim2" />
<item android:duration="150" android:drawable="@drawable/anim3" />
<item android:duration="150" android:drawable="@drawable/anim4" />
<item android:duration="150" android:drawable="@drawable/anim5" />
<item android:duration="150" android:drawable="@drawable/anim6" />
<item android:duration="150" android:drawable="@drawable/anim7" />
<item android:duration="150" android:drawable="@drawable/anim8" />
</animation-list>
-Here the 'duration' part signifies the time lapse you want between frames in milliseconds.
-The above code is an example for 8 images.Thus there is anim1 to anim8.
NOTE: - If you want the animation to play for only once,then in the code above replace
Code:
<animation-list android:oneshot="false"
with
Code:
<animation-list android:oneshot="true"
.
-If you want the animation to play in reverse once it has reached the end then firstly keep
Code:
<animation-list android:oneshot="false"
set to false
and add the line :
android:repeatMode="reverse" after
Code:
<animation-list android:oneshot="false"
This line will make your animation play in reverse.
-Save this XML file.
-Now navigate to the drawable-hdpi folder and place your images there.
-Recompile your SystemUI.apk
-And then use ADB or a flashable zip to enjoy your newly modded and animated background!
Preview of one that i had done for Resurrection Remix:
NOTIFICATION DROPDOWN BACKGROUND MOD
So this one is something that i have been getting many requests for and although i had initially implemented it as a theme , I finally learnt how to make it as a flashable zip.Pretty easy once you know what to change.So lets get on with it.
For this particular mod you will again need to know how to compile and decompile the apk.Also needs proper knowledge of 9 PNGs.The 9.PNG concept is pretty important here as unlike the other mods,the stretching of the image takes place to a large extent to cover the entire area of the notification background,so if it not done properly,then you will see white/transparent empty spaces in the area that is hidden behind the toggles.This happens because the image didn't 'stretch' out to cover the empty part.
Here we go..
-Open Photoshop or GIMP and make the image that you want to set as you dropdown background.This must be a PNG image of size roughly around 536x398 pixels.
Ensure that when you finally save the above image,you save it with a 2 pixel transparent border at the left and right and a 2 pixel transparent border at the bottom.This is because when the picture gets stretched later on,we want the transparent bit to get stretched and not the actual picture as it will result in the distortion of the edge pixels then.If the transparent bit is stretched,there is no problem with that.
So finally after saving the image with a 2 pix border everywhere except the top,we'll get an image of 540x400 pixels.This image should be saved as notification_bg.png.
Size is not a very critical issue but if you exceed you may get a clipped picture.
-Having done that, we need to now define the stretching and content parameters using draw9patch.bat tool from the android sdk.
You can use this image as a reference on how the border pixels will have to be.This is totally upto you and you will be able to see the stretching and preview of it in the draw9patch tool.
Reference image :
{
"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"
}
-Save the 9.PNG as notification_bg.9.png.
Now we need to edit the XML files to point it to our new image.
-For this first decompile SystemUI.apk using the method and tools i explained earlier.
-Navigate to res/layout/status_bar_tracking.xml
-Open it with Notepad++ and change the following code from :
Code:
<FrameLayout android:background="@drawable/notification_tracking_bg" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0">
<com.android.systemui.statusbar.policy.WeatherText android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center" android:layout_gravity="bottom" android:paddingBottom="40.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<com.android.systemui.statusbar.phone.CarrierLabel android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center" android:layout_gravity="bottom" android:paddingBottom="20.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" />
</FrameLayout>
to
Code:
<FrameLayout android:background="@drawable/notification_bg" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0">
<com.android.systemui.statusbar.policy.WeatherText android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center" android:layout_gravity="bottom" android:paddingBottom="40.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<com.android.systemui.statusbar.phone.CarrierLabel android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center" android:layout_gravity="bottom" android:paddingBottom="20.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" />
</FrameLayout>
-Save the file.
-Now navigate to res/values/drawables.xml and change the line :
Code:
<item type="drawable" name="notification_tracking_bg">#d8000000</item>
to
Code:
<item type="drawable" name="notification_tracking_bg">@drawable/notification_bg</item>
-Save it.Now both your XML files point to the the correct images.
-After this simply recompile the SystemUI.apk and you are done.To flash it you can use my attached flashable zip.
-Enjoy
NAVIGATION BAR BACKGROUND MOD
-Open up Photoshop or GIMP and make your navigation bar background image that you want to use.It has to be a PNG image of about 540x70 pixels.You can take any image from the net: resize it,crop it,change the tint etc, but it needs to be roughly of that dimension.
-After you are done with that image,you will need to make another image so that it can be used in landcape mode.Now the dimension of the landscape image needs to be 70x540 pixels roughly.Usually once you are done with the portrait background,just rotate it by 90 degrees to get the landscape image.Remember that both need to be PNGs.
-Save the portrait and landscape images with any name.For example i will use "raja_nav_bg.png" for the portrait image and "raja_nav_bg_land" for the landscape image.
-Now,it's time to use those images in our SystemUI.apk.
-To do this first decompile SystemUI.apk using apktool.You will now find a SystemUI folder in your apktool path.
-Copy the two images that you made earlier and paste them in this path:
SystemUI\res\drawable-hdpi
-Now the thing is that we need to edit 3 XML files.All these XML files are located in the layout folder of SystemUI and are related to the navigation bar background.Each of them point to a hexadecimal colour code.We need to change that and make them point to a drawable resource,which in our case are the 2 images that we made.
-To do this first go to SystemUI/res/layout and open the file navigation_bar.xml with Notepad++.
-Change this line :
Code:
<com.android.systemui.statusbar.phone.NavigationBarView android:background="@drawable/nav_bar_bg" android:layout_width="fill_parent"
to
Code:
<com.android.systemui.statusbar.phone.NavigationBarView android:background="@drawable/your_portrait_image" android:layout_width="fill_parent"
Remember that in the @drawable part,we do not have to give the extension of the file.Just the file name.
-Now navigate below in the page near the Frame Layout section that says android:[email protected]/rot90 and add this to the existing code :
Code:
android:background="@drawable/your_landscape_image"
So the existing part becomes something like this after the addition :
Code:
FrameLayout android:id="@id/rot90" android:paddingTop="0.0dip" android:background="@drawable/your_landscape_image" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="fill_parent">
-Now save the XML file and close it.
-In a similar and identical manner we need to edit the navigation_bar_naked.xml and navigation_bar_search.xml.
2 edits in each of them.One near the FrameLayout for landscape and the other one at the top for the portrait image.
-After editing all the files,save them and exit.
-Now copy this changed SystemUI folder to ICS apktool folder and recompile it.Follow the steps that i stated earlier on how to recompile and you will have your modded SystemUI.apk
Then either use ADB or a flashable zip file to use the new SystemUI.apk on your phone!
A screenshot of a navigation background mod that i did for Resurrection Remix :
TOGGLES BACKGROUND MOD
Many users had requested me to put a jet black background behind the toggles instead of the zigzag lines.So here is the way to change them..
- Open up Photoshop or GIMP and make a PNG image/background of 960x180 pixels resolution.If you want it transparent then you can keep it so using Photoshop.Name this image as notify_panel_notification_icon_bg.png.
-Save it somewhere on your desktop
-Now use 7zip or Winrar to open framework-res.apk in view mode.Don't extract it.
-Navigate to framework-res.apk/res/drawable-hdpi and drag and drop the image that you made here, and by doing that you will replace the existing notify_panel_notification_icon_bg.png image of size 14x14.
-Keep the framework-res.apk somewhere safe as we shall be using this one while flashing the mod or with Adb.
So the original image was a 'tile' image of 14x14 pixels and we just replaced it with another image having a dimension of 960x180 pixels.Initially,the tile image was 'repeated' several times using a code in one of the xml files in SystemUI.apk and thus it appeared to be spread out over the area behind the toggles.We need to now disable that as we are using a background of 960x180.
-To do this we need to first decompile SystemUI.apk
-After doing so navigate to the SystemUI\res\drawable folder.
-Open status_bar_ticker_background.xml with Notepad++.
-Change the existing code from :
Code:
<?xml version="1.0" encoding="utf-8"?>
<bitmap android:src="@android:drawable/notify_panel_notification_icon_bg" android:tileMode="repeat"
xmlns:android="http://schemas.android.com/apk/res/android" />
to
Code:
<?xml version="1.0" encoding="utf-8"?>
<bitmap android:src="@android:drawable/notify_panel_notification_icon_bg" android:tileMode="disabled"
xmlns:android="http://schemas.android.com/apk/res/android" />
-Save the XML file.
Note: Incase you want to use a transparent background,then you dont have to edit the XML file as a transparent image of 14x14 pixels in the drawable-hdpi folder of framework-res.apk will give you transparent toggle background.
-After editing the above XML file , recompile SystemUI.apk.
-Now,both your framework-res.apk and SystemUI.apk have been modded and you can use them on your phone and get whatever background you desire.
A screenshot of a purely black toggle background that i made for Resurrection Remix :
PULLDOWN BAR MOD
This mod is for the bar that we get when we pull down the notification dropdown.This has been done many times before but I will share it nevertheless as some users cannot find what they want.
It is a simple mod that doesn't require editing any XML files.It does however require the patching of a 9.PNG image.
We shall be using Yorzua's method here which will help us in optimizing the 9.PNG image so that the 7zip drag-and-drop method can be used here,rather than going into the lengthy process of decompiling the SystemUI.apk,pasting the unoptimized 9.png in it and recompiling it again). 9.PNG images get optimized on recompiling,but Yorzua's link lets us use a tool which will optimize the image beforehand so that we can just drag and drop it there).
-Firstly open up SystemUI.apk with 7zip or Winrar.
-Navigate inside the drawable-hdpi folder and find the file status_bar_close_on.9.
-Drag it and drop it on the desktop.We will use this file for reference purpose while patching the 9.PNG image.
-Now open up Photoshop or GIMP and make your bar image.It should be a PNG image of around 476x42 pixels(This is variable and the width can be anything within 480 pixels and the height can be within 48 pixels).Save it as status_bar_close_on.png.
-So now we have your PNG ready and we need to make it a 9.png using the draw9patch.bat file in the Android-SDK.Many people prefer to do it with Eclipse but that's just complicated and a miserable way of doing it.
-At this stage,I expect you to have read enough about 9.PNG images from the links i gave at the start of this thread.If you haven't then go and read it as it might be a bouncer otherwise.
-Now open draw9patch.bat and drag the ORIGINAL status_bar_close_on.9.png image that you had taken from the SystemUI.apk and drop it in the tool.
-Observe how the borders of the image are and how the pixels have been drawn at all the borders.Each pixel is important and changing even one of them can result in a big visual difference.These pixels contain the stretching information and changing them can change the whole behaviour of these images.Remember the pattern and the coordinates of these pixels as you will have to need to do the same thing while patching your status_bar_close_on.png.You can change one or two pixels in the left and top border just to see how the image stretches in the right viewing pane of draw9patch tool.
-After you got an idea of these 9.png files,you have to do make the same border so that it stretches properly with your status_bar_close_on.png image.
For reference,you can use this 9.PNG file of mine also :
-After you are done patching the image properly save it as status_bar_close_on.9.png
-Open SystemUI.apk again with 7zip or Winrar and navigate to the drawable-hdpi folder.
-Drag and drop your new 9.png image that you made and overwrite the existing one.
-Close the apk.
-Your modded SystemUI.apk is now ready.
-Use ADB or a flashable zip for getting it on your phone.
A screenshot of the pulldown mod i had made for Rootbox :
SYSTEM+DIALER BACKGROUND MOD
Most people know this.It is very easy and no XML editing or 9.PNG is required.However you need Contacts.apk for changing the dialer background.
-Simply take your favourite pics of 480x800 resolution.They must be PNG images.
-For the picture that you want to use as the dialer background,name it as
background_dial_holo_dark.png.
-For the picture you want to use as System background(for example Settings background) name it as background_holo_dark.png
-You will need framework-res.apk and contacts.apk for this.
-Using 7zip or winrar open framework-res.apk and navigate to :
framework-res.apk\res\drawable-nodpi
-Drag the background_holo_dark.png that you made and drop it inside this and in doing so you will replace the existing one.
-Close the apk.
-Now open Contacts.apk with 7zip or Winrar and navigate to
Contacts.apk\res\drawable-nodpi
-Drag the background_dial_holo_dark.png that you made and drop it here and replace the existing one.
-Done.Your contacts.apk and framework-res.apk files are now modded and you backgrounds will also change.Simple,isn't it?
Some screenshots of the system+dialer background that i had made for Resurrection Remix :
LOCKSCREEN HANDLER MOD
This is again an easy mod and no skill required.
-For this mod you will need framework-res.apk
-Make 2 handler icons,one that will be normally be displayed on the lockscreen and the other that it will change to when pressed for unlocking.
-Name the 1st icon as ic_lockscreen_handle_normal.png and the second icon
as ic_lockscreen_handle_pressed.png.
-Remember that both the images need to be PNG images of 162x162 pixels.
-Now open up framework-res.apk with 7zip or Winrar.
-Navigate to framework-res.apk\res\drawable-hdpi and drag and drop the two images above inside this and replace the existing ones.
-Done,you can now close the apk and use your modded framework-res.apk.
You can find some amazing lockrings icon here.Be sure to use the HDPI ones.
A screenshot of these mods :
Nice, great work, mate!
Reserved
Haha thanks legend..forgot to reserve a post there..
SilencerOfLambs said:
Reserved
Haha thanks legend..forgot to reserve a post there..
Click to expand...
Click to collapse
he can actually delete his post
edit: whoopps. mistaken xda for another forum. dont mind me! heh
very well compiled one dude, gr8 work keep it up
Great work mate. Keep it up. :thumbup:
Sent from my GT-I9100 using Tapatalk 2
Thanks all!
You guys were solely responsible for whatever I have learnt!
SilencerOfLambs said:
Reserved
Haha thanks legend..forgot to reserve a post there..
Click to expand...
Click to collapse
Oops, sry about that.. :silly:
When's Part 2 coming?
finally the wait is over .... thanx man
LegendZenify said:
Oops, sry about that.. :silly:
When's Part 2 coming?
Click to expand...
Click to collapse
Weekend mostly
vegeta1 said:
finally the wait is over .... thanx man
Click to expand...
Click to collapse
Thanks mate!
Great tutorial! Keep it up!
I know that a lot of users will use this!
Second, I get less messages to make mods as well. Lol
Now I got more time to explore the rest of XDA
Send from the godfather of smartphones to your face!!
Vreestyle said:
Great tutorial! Keep it up!
I know that a lot of users will use this!
Second, I get less messages to make mods as well. Lol
Now I got more time to explore the rest of XDA
Send from the godfather of smartphones to your face!!
Click to expand...
Click to collapse
Haha honestly..It's much easier to guide people to a tutorial than make mods for everyone as it gets tedious..
And thanks
Fantastic tutorial...exactly what I need and very well explained...this along with Kros tutorial will hopefully help me to theme whatever I see fit! Can't wait for part 2!
Sent from my GT-I9100 using xda app-developers app
somepepe**** said:
Fantastic tutorial...exactly what I need and very well explained...this along with Kros tutorial will hopefully help me to theme whatever I see fit! Can't wait for part 2!
Sent from my GT-I9100 using xda app-developers app
Click to expand...
Click to collapse
Pleasure mate
Sent from my GT-I9100 using xda premium
Hi!
I have installed just 4fun a batman's theme. To be honest i dont like it very much. Especially because of that silly bat type icon instead of normal one on lockscreen. How can I turn the default theme back on? I am using RootBox ROM.
Sent from my GT-I9100 using xda app-developers app
Dioktis said:
Hi!
I have installed just 4fun a batman's theme. To be honest i dont like it very much. Especially because of that silly bat type icon instead of normal one on lockscreen. How can I turn the default theme back on? I am using RootBox ROM.
Sent from my GT-I9100 using xda app-developers app
Click to expand...
Click to collapse
To get your original look back,you will need to copy your original framework-res.apk,SystemUI.apk and Contacts.apk to the proper places in a flashable zip file and then flash it in CWM recovery.You can get the original files from your ROM zip.You can use the empty flashable zip file i attached in the OP.
framework-res.apk will go in /system/framework
contacts.apk and SystemUI.apk will go in /system/app
Alternatively if you only want to change the lockscreen icons,follow the steps in the OP for the lockscreen mods.
I have attached the default lock rings for you.(Just click on them and you will be able to see it.It's white so it appears invisible..)
Phew Finally
Nice work
Sorry for noob question. How can I run ICS and Original apk tool ?
Arnadel said:
Sorry for noob question. How can I run ICS and Original apk tool ?
Click to expand...
Click to collapse
Ask that question here :
http://forum.xda-developers.com/showthread.php?t=1558171
dude that's great.
could you please make a tutorial about "theme chooser" themes? you know they are really easy to implement and change.
{
"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 ICS, Google started to use Roboto as android's default english font. so I found 6 types of style here :
/system/fonts/Roboto-Bold.ttf
/system/fonts/Roboto-BoldItalic.ttf
/system/fonts/Roboto-Italic.ttf
/system/fonts/Roboto-Light.ttf
/system/fonts/Roboto-LightItalic.ttf
/system/fonts/Roboto-Regular.ttf
before you replace these, you need to know the font's classification, someone complained that when repaced the Roboto-Bold.ttf, the device restart into boot-loop, I think maybe that was because u replaced a BOLD style with a REGULAR one (android2.3 dones't check this).
FontCreator-6.5-pro(which i use) can change the font's properties.
for example, change a Regular font into Bold, here is the steps:
1、open a regular font(most of fonts in http://www.fonts2u.com/ are regular style) with the FontCreator;
2、Format(in the menubar) -> settings -> Classification;
3、change the "Weight" value into "Bold";
4、change the "Width" value into "Medium(normal)";
5、only tick off a single bold in "Font Design(windows)";
6、only tick off a single bold in "Mac Style".
7、save it and u can use it to replace the Roboto-Bold.ttf file.
-------------------------
How to change the LockScreen Digital Clock Font?
/system/fonts/AndroidOpia.ttf seems no longer be used in Jelly Bean(which android 2.3 use it as LockScreen Clock Font)
so you need to replace those three files to change the lock clock font:
/system/fonts/AndroidClock.ttf
/system/fonts/AndroidClock_Highlight.ttf
/system/fonts/AndroidClock_Solid.ttf
those three files are totally same, and only contains 16 chars: not_def, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, M, P, :, space, 0.
u can edit the original to replace the chars in sequence.(use FontCreator6.5pro)
---------------
the attachment fonts was tested in my Nexus 7.
Looks like you need to be rooted for that. Or you can use ssLauncher, add any font you wish, and use throughout your screens. True, doesn't change in-app fonts, but typically those are very readable. Sample of ssLauncher, with app folder and Quickpic in Segoe bold (tilted at 4 degrees) and page title in Jokerman. Touching anywhere on camera launches camera app. Root not required.
If I were rooted I'd change system fonts too!
system fonts replacing
Can I just replace a Roboto-Regular.ttf ? I replaced that font file with my Unicode font and when I reboot my nexus 7 , it was in boot loop, so I have to reset to factory and re-root it again. Now I am afraid to do it again Can someone explain it to me what happen please?
I changed the system font with Rom toolbox app and I can read my Unicode font on fire fox but on google and gmail, gtalk , whatapps etc my fonts are miss place. what do I need to check or read about it? I have high-logic FontCreator too.
You helped me get rid of the ugly, boring JB system font!
Thanks for the advice!
I, however, found no less than 12 different 'Roboto' fonts. So I edited a new set of my favorite one, 'Rehotalko' using FontCreator, and used the properties of each as instructed in the OP. It was a little laborious, but it worked like a charm!
See here for the installation method (post #8): http://forum.xda-developers.com/showthread.php?t=2011339
Thanks to this thread my phone is how it should be.... thumbs up man!!!
i used this thread as a guide and changed like literally every font everywhere to Anke Sans haha on my GNex running XenonHD 9.5 (a 4.2.2 rom)
All the fonts mentioned above plus the RobotoCondensed versions.. AND opened up my DeskClock.apk and overwrote the fonts in the /assets/fonts directory (making sure the classifications matched) then adb pushed the DeskClock app back to /system/app and presto worked great! i appreciate the tips above to make it all happen!
For those that are curious, heres every one i modified..
Roboto-Regular, Roboto-Bold, Roboto-Italic, Roboto-BoldItalic, Roboto-Light, Roboto-LightItalic, Roboto-Thin, Roboto-ThinItalic, RobotoCondensed-Regular, RobotoCondensed-Bold, RobotoCondensed-Italic, RobotoCondensed-BoldItalic, AndroidClock, AndroidClock_Solid, AndroidClock_Highlight, DroidSans, DroidSans-Bold, DroidSansMono, Clockopia.. then extracted from DeskClock.apk, AndroidClockMono-Bold, AndroidClockMono-Light, AndroidClockMono-Thin, Roboto-Thin (but thats also a system font that you'll see change in the app before even modding it)
good luck haha!
Change Font of Minutes
frickinjerms said:
i used this thread as a guide and changed like literally every font everywhere to Anke Sans haha on my GNex running XenonHD 9.5 (a 4.2.2 rom)
All the fonts mentioned above plus the RobotoCondensed versions.. AND opened up my DeskClock.apk and overwrote the fonts in the /assets/fonts directory (making sure the classifications matched) then adb pushed the DeskClock app back to /system/app and presto worked great! i appreciate the tips above to make it all happen!
For those that are curious, heres every one i modified..
Roboto-Regular, Roboto-Bold, Roboto-Italic, Roboto-BoldItalic, Roboto-Light, Roboto-LightItalic, Roboto-Thin, Roboto-ThinItalic, RobotoCondensed-Regular, RobotoCondensed-Bold, RobotoCondensed-Italic, RobotoCondensed-BoldItalic, AndroidClock, AndroidClock_Solid, AndroidClock_Highlight, DroidSans, DroidSans-Bold, DroidSansMono, Clockopia.. then extracted from DeskClock.apk, AndroidClockMono-Bold, AndroidClockMono-Light, AndroidClockMono-Thin, Roboto-Thin (but thats also a system font that you'll see change in the app before even modding it)
good luck haha!
Click to expand...
Click to collapse
I am still having a hard time changing font of minutes. All the rest seem to have been changed but not the thin font for minutes.
Any suggestion? I tried to follow your steps and will still see what happened.
I was able to change the minutes, however, they it was not properly aligned with the hour.
I am using FontCreator 6.5. ANy suggestion? Thanks!
iambourne1986 said:
I am still having a hard time changing font of minutes. All the rest seem to have been changed but not the thin font for minutes.
Any suggestion? I tried to follow your steps and will still see what happened.
I was able to change the minutes, however, they it was not properly aligned with the hour.
I am using FontCreator 6.5. ANy suggestion? Thanks!
Click to expand...
Click to collapse
yeh i never figured out the alignment issue either, i tried a few different fonts and it cut off no matter what so i just try to not let it bother me haha
How about changing the font color?
k00lguy105 said:
How about changing the font color?
Click to expand...
Click to collapse
I'm guessing you would have to decompile apk's and edit xml files.
So friends, here is a quick and easy guide for changing the status bar icons of your Gingerbread(Actually any phone )
For those who don't know how to do it(for anyone actually :highfive
Theory
Android is the awesome platform which is easily configurable and is able of being edited very easily
The icons used in every app and Android framework are located as png images in apk of those respective apps in location:-
*.apk/res/drawable-mdpi (in my case, as our phone is mdpi)
So, we can change any icon of our status bar like battery, signal, (not clock[clock is to be configures in SystemUI.apk{will post how to change it shortly}]), etc by editing png's in framework-res.apk
Not even that, you can edit images of any app as I told you
There are several ways to decompile and compile apk in which we have made change
If we want full access of apk and want to change every thing like the xml's in it and smali content in jar files, then we would have to do it on computer by apktool or apkmanager
But, we are here to only change image, so we would not go in detail of apktool or apkmanager. For changing images, that can be very easily done even on the phone by an app NinjaMorph that is made for developers by our senior head and DEVELOPING LEGEND Stephen(Stericson)
But be careful as backing up the original file if you do something wrong
And as you all know any developer or even a newbie posting something interesting that you want to try WILL NOT BE RESPONSIBLE for your mobile blowing up, resting in peace, sleeping like a dead, behaving like a non-living BRICK, or anything whatsoever that may or may not happen to phone in this universe or any other universe known or unknown
What to do if anything happened to my mobile
We have had a backup of your original file so we can restore it
But if while editing the system files like framework-res.apk
If you deleted some un-backed up apk's
Well you can always have backup of your ROM and that is why Koushik Datta has made clockworkmod Recovery
You can restore your ROM from there
Pre-Requisites
Patience
Mind
A Android (A spare one if you brick your phone, just kidding)
Root access(to change the apk)
NinjaMorph(http://bit.ly/ninjamorph)
Root Explorer(Optional)(http://bit.ly/stericson)
GUIDE
So Let's Start
Download NinjaMorph. Install it and give it root access. It will prompt for starting checks. Click on start checks.
Now you would have three options, namely, New Project, Finish Project, Existing Project
Click on new project. Go to system/framework/ and click on framework-res.apk. It will start extracting files
Once it has extracted all the files, it will open to show you what is inside framework-res.apk.
Exit it and go to your file explorer.
Go to /sdcard/AndroidThemes/workspace/framework-resapk
This is what is inside apk. Go to res/drawable-mdpi folder
There you will see hundreds of icons of your menu, lockscreen, battery, signal, and everything
You can edit them and replace them as you want. But the name of the file you are replacing and size and dimension must be equal to the file you are replacing with(I recommend Googling and finding icons of battery, signal, and other things)[I have even used hdpi icons, there was no problem]
If you download a theme file which is to be flashed in recovery that is not for your phone, no problem, extract the zip and place its framework-res.apk in your sdcard and extract the apk with Ninjamorph. Replace your icons with its icons and TADA
After you have done replacing the icons and you are satisfied(I am never)
Go to NinjaMorph. Click on Fininsh Projects. Click on framework-resapk. It will recompile and ask to replace the original apk with modded one. Click OK
Then it will ask if you want to remove the completed project, Say No(As you would need it if something gets wrong)
Reboot your phone
Maximum chances are that your icons will be replaced. Rare cases have their status bar gone or no change, if so:-
Download(Buy) Root Explorer. Go to /sdcard/AndroidThemes/workspace,
There you will see framework-res.apk. Copy it and go to /system/framework
Mount as R/W
Paste the apk. If it asks that file already exists, overwrite it.
SET PERMISSIONS
Long click on framework-res.apk and click on permissions
You will see three columns
Read Write Execute
You have to set them in the following way
x means you have to tick it
blank means uncheck
Read Write Execute
.....x........x.................
.....x...........................
.....x...........................
Click OK
You will see it as rw-r--r--
Reboot
Do it over again if nothing happens
Enjoy
This way you can edit not only framework-res.apk but any apk
Treat
This section is different from the thread topic
I: Faking Up
Want to make your device show Jelly Bean in About Phone
Go to Root Explorer
Go to /system
Long click on build.prop
Click on Open in a Text Editor
Change the files as
ro.build.display.id=Jelly Bean
ro.build.version.release=4.1.4
Save Changes
Reboot
II: Easter Egg
You all must know that an image of GingerBread Zombie comes up when you repeatedly click on Android Version in Setting>About Phone
Wanna change it to look like Jelly Bean?
{
"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"
}
Extract framework-res.apk
Go to res/drawable-nodpi
You will see platlogo.jpg
Replace it with the file in attachment
Recompile
Reboot
Troubleshooting
Will find and update it
Tell me what problems are you having
Nice guide. How to change color of clock in gingerbread because white is ugly? Maybe you can add that in future.
Verstuurd van mijn GT-S5660
FlemishDroid said:
Nice guide. How to change color of clock in gingerbread because white is ugly? Maybe you can add that in future.
Verstuurd van mijn GT-S5660
Click to expand...
Click to collapse
Yes
It is a tedious process
By editing smali files of classes.dex of SystemUI.apk
BUMP
which file do you you need for notificationbar background???
jkoetsier said:
which file do you you need for notificationbar background???
Click to expand...
Click to collapse
Add @amdroid:background @ frawable/statbarbg
In statusbar tracking.xml
Then add statbarbg.png in drawable-mdpi
For gb clock u need to do smali
Devilsking has made good guide
Sent from my ST25i using xda app-developers app
Thanks man, its working!!
Sent from my GT-S5660 using xda premium
SpaceCaker said:
Add @amdroid:background @ frawable/statbarbg
In statusbar tracking.xml
Then add statbarbg.png in drawable-mdpi
For gb clock u need to do smali
Devilsking has made good guide
Sent from my ST25i using xda app-developers app
Click to expand...
Click to collapse
*android
BUMP
BUMP
BUMPS are unneeded, if theres nothing to say, dont do it.
Sent from my GT-S5660 using xda app-developers app
Bigger PNG's
Quick question, I know this is an old topic, but upon googling I found this and I feel that my question sort of belongs here. Not even sure if OP is still around to look at this thread, but here goes:
I swapped out a png image for the statusbar icon of an app called CoolSymbols (not using this guide, but using APK Multi tool, but I imagine that the png sizes will have to be the same). Now, this app had a quite ugly statusbar icon, with jagged edges. I replaced it by a circle icon. This circle is pretty much the same size as the previous icon, so the icon looks jagged as well.
Here is the question: Do I simply make a bigger png image, so it will get cropped <---- doubt this
or do I create another folder like res/drawable-hdpi, but for xxhdpi (drawable-xxhdpi???), and if so will that fix the problem, or will I also have to point to that folder somewhere in another file <--- probably the way to go
I hope someone can help me out here!
(PS: I hope my issue is clear from the text above, I don't have a possibility to post proper screenshots until tomorrow, but they will be provided if needed)
(Also I'm sorry if there may have been a more recent topic about this, then I totally missed this!)
JaySilverMusiq said:
Quick question, I know this is an old topic, but upon googling I found this and I feel that my question sort of belongs here. Not even sure if OP is still around to look at this thread, but here goes:
I swapped out a png image for the statusbar icon of an app called CoolSymbols (not using this guide, but using APK Multi tool, but I imagine that the png sizes will have to be the same). Now, this app had a quite ugly statusbar icon, with jagged edges. I replaced it by a circle icon. This circle is pretty much the same size as the previous icon, so the icon looks jagged as well.
Here is the question: Do I simply make a bigger png image, so it will get cropped <---- doubt this
or do I create another folder like res/drawable-hdpi, but for xxhdpi (drawable-xxhdpi???), and if so will that fix the problem, or will I also have to point to that folder somewhere in another file <--- probably the way to go
I hope someone can help me out here!
(PS: I hope my issue is clear from the text above, I don't have a possibility to post proper screenshots until tomorrow, but they will be provided if needed)
(Also I'm sorry if there may have been a more recent topic about this, then I totally missed this!)
Click to expand...
Click to collapse
You need to create an image of correct pixels according to your phone's dpi
Have a look here - http://developer.android.com/design/style/iconography.html
[MOD] MA7 base, DEODEX, 1x/3g icon, no clock, no charged notice, 1% battery mods, themed in Smurfy blue with a few other themed icons.
You can use it as is, or you can rip it apart and replace the icons with whatever you prefer.
I removed the clock, converted it to 1% capable, removed the charge completed notice, and, obviously I like blue.
I rarely share my mods but the Note II area is pretty bare.
https://dl.dropbox.com/u/9946170/Smurfy.zip
{
"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"
}
Standard disclaimer applies.... I can't guarantee my work won't "blow up" your Note II, always have a backup. Obviously it didn't blow mine up.
Compusmurf said:
[MOD] MA7 base, DEODEX, 1x/3g icon, no clock, no charged notice, 1% battery mods, themed in Smurfy blue with a few other themed icons.
You can use it as is, or you can rip it apart and replace the icons with whatever you prefer.
I removed the clock, converted it to 1% capable, removed the charge completed notice, and, obviously I like blue.
I rarely share my mods but the Note II area is pretty bare.
https://dl.dropbox.com/u/9946170/Smurfy.zip
Standard disclaimer applies.... I can't guarantee my work won't "blow up" your Note II, always have a backup. Obviously it didn't blow mine up.
Click to expand...
Click to collapse
Looks awesome! You will hate me for this - any chance we could also have a version with the clock? :angel: Some of us don't keep a clock widget on the home screen and use the status bar clock instead.
Not really, but I can tell you how to modify your own so you can make any changes you want. Self service is the absolute best.
Compusmurf said:
Not really, but I can tell you how to modify your own so you can make any changes you want. Self service is the absolute best.
Click to expand...
Click to collapse
Do tell, I'm actually itching to be free of waiting for people to mod **** for me, I'd rather just do it myself and do it exactly the way I want.
You need to follow most of the steps in this thread:
http://forum.xda-developers.com/showpost.php?p=37273338&postcount=13
However, the apktool package there is missing some parts.
So if you use my apktool package it should work:
https://dl.dropbox.com/u/9946170/APKtool.rar
Also, they say JRE/JDK. you really want the JDK only.
You should also put the c:\apktool folder in your system path.
That should get you to the point that you can compile and decompile your SystemUI.apk.
When modifying these, always take one from YOUR rom or one that's compatible.
And this is for DEODEX only.
When you get to the point that you can compile and decompile, then you need to know the things to change.
I'd suggest Notepad ++ as an editor and paint.net as an icon editor.
notepad: http://notepad-plus-plus.org/
Paint.net: http://www.getpaint.net/
When you get that all working and setup and have decompiled and recompiled a systemui.apk successfully without making changes, let me know and I'll point you to the next step of goodies to play with.
Compusmurf said:
When you get that all working and setup and have decompiled and recompiled a systemui.apk successfully without making changes, let me know and I'll point you to the next step of goodies to play with.
Click to expand...
Click to collapse
OK all done and working. What do I change? What I want most is to re-enable the 1X connection icon that Sprint disabled. Thank you for guiding me through this.
Darn, you work fast!!!!!
Ok, use my download as an example, extract it and rename it something like system1.apk, then decompile it..
Keep the zip file because you'll need it for flashing. Just replace the file in it.
First thing you want to do is make a backup flashable file called orig.zip or something. Again, use my zip file in the first post, and put your systemui.apk in it.
KEEP IT ON YOUR DEVICE because when you screw something up, you'll need it for repair.
Also, VERY important, update your darn nandroid backup. TRUST ME, you will break something and eventually will need to use it. KEEP THIS CURRENT!!!!!!!!!! <--- I know from experience!!!!!
Compusmurf said:
Darn, you work fast!!!!!
Ok, use my download as an example, extract it and rename it something like system1.apk, then decompile it..
Keep the zip file because you'll need it for flashing. Just replace the file in it.
First thing you want to do is make a backup flashable file called orig.zip or something. Again, use my zip file in the first post, and put your systemui.apk in it.
KEEP IT ON YOUR DEVICE because when you screw something up, you'll need it for repair.
Also, VERY important, update your darn nandroid backup. TRUST ME, you will break something and eventually will need to use it. KEEP THIS CURRENT!!!!!!!!!! <--- I know from experience!!!!!
Click to expand...
Click to collapse
Way ahead of you, I nandroid religiously.
I have my SystemUI.apk decompiled and ready. Lay it on me.
now for the fun part, since you're backed up and have a backup of the SystemUI.apk file....
To put the clock back, you'll want to replace MY file here with a copy from the original:
SystemUI/res/layout and find tw_status_bar.xml
or if you want to jack with the actual data...
Original line will look something like this
<com.android.systemui.statusbar.policy.Clock android:textSize="@dimen/status_bar_clock_text_size" android:textColor="#ff33b5e5" android:gravity="left|center" android:id="@id/clock" androidpaddingLeft="3.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:includeFontPadding="false" />
Change that entire line to this below:
<com.android.systemui.statusbar.policy.Clock android:textSize="0.0dip" android:textColor="#ff959595" android:gravity="left|center" android:id="@id/clock" androidpaddingLeft="0.0dip" android:visibility="gone" android:layout_width="0.0dip" android:layout_height="0.0dip" android:singleLine="true" android:includeFontPadding="false" />
That's the CLOCK stuff....
If all you're doing is changing the clock, after you've replaced my file recompile and go....
These 2 files control the 1% stuff. Make sure you have the 1% matching icons added as well before compiling.
stat_sys_battery.xml and stat_sys_battery_charge.xml from \res\drawable and make sure you have matching battery files for it before compiling.
You can grab working versions from mine.
icons are mostly located in \res\drawable\drawable_xhdpi.
Power features like to NOT display the charge complete are located:
powerui$1.smali file. Easier to just grab my edits.
You might want to take this out of your update script
delete("/system/app/SecEmail.apk","/system/app/SecExchange.apk");
digiblur said:
You might want to take this out of your update script
delete("/system/app/SecEmail.apk","/system/app/SecExchange.apk");
Click to expand...
Click to collapse
LOL, as you can see, I reuse my zip files and crap I took it from my big "cleanup" one. eh. sorry.
digiblur said:
delete("/system/app/SecEmail.apk","/system/app/SecExchange.apk");
Click to expand...
Click to collapse
Reminds me.
You can use the updater script to do things like DELETE unused garbage and push other files and such.
I take the rooted, stock rom and make me a zip installer with things like this, init.d files, deletes and other tweaks I like on my rom and end up with a 1 zip installer to precustomize everything.
Makes setup a breeze.
Again, this just shows why one should ALWAYS ALWAYS have a valid and updated NANDROID backup!!!!!!!!
Any other DEV's with some great tweaks and knowledge, feel free to step in and add things. Sadly I've run out of the "easiest" things to tweak here.
The 1x/3G stuff is located in:
\res\values\bools.xml
<bool name="config_showMin3G">false</bool>
The default is TRUE, change it to false and that should fix that.
Compusmurf said:
now for the fun part, since you're backed up and have a backup of the SystemUI.apk file....
To put the clock back, you'll want to replace MY file here with a copy from the original:
SystemUI/res/layout and find tw_status_bar.xml
or if you want to jack with the actual data...
Original line will look something like this
<com.android.systemui.statusbar.policy.Clock android:textSize="@dimen/status_bar_clock_text_size" android:textColor="#ff33b5e5" android:gravity="left|center" android:id="@id/clock" androidpaddingLeft="3.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:includeFontPadding="false" />
Change that entire line to this below:
<com.android.systemui.statusbar.policy.Clock android:textSize="0.0dip" android:textColor="#ff959595" android:gravity="left|center" android:id="@id/clock" androidpaddingLeft="0.0dip" android:visibility="gone" android:layout_width="0.0dip" android:layout_height="0.0dip" android:singleLine="true" android:includeFontPadding="false" />
That's the CLOCK stuff....
If all you're doing is changing the clock, after you've replaced my file recompile and go....
Click to expand...
Click to collapse
You got the two data lines reversed... the second line is what's in your tw_status_bar.xml and you should replace it with the first line which is from stock tw_status_bar.xml.
Just replaced it, recompiled, rezipped, flashed, and it worked. I now have your mod with the clock visible. Thank you for the walkthrough, now I know how to modify APKs on my own!
Here it is in case you want to post it to your OP - let me know when you've grabbed it so I can delete it from my Dropbox.
http://dl.dropbox.com/u/66752204/Smurfy-with-Clock.zip
Now, if all I want to do is take the stock SystemUI.apk and re-enable the 1X signal icon so I know when I'm on 1X-RTT and not EVDO (3G), what do I change and where? Thank you!
---------- Post added at 02:22 PM ---------- Previous post was at 02:17 PM ----------
digiblur said:
You might want to take this out of your update script
delete("/system/app/SecEmail.apk","/system/app/SecExchange.apk");
Click to expand...
Click to collapse
FFFFUUUUUUUUU... just realized my Email app is gone. Damnit. Restoring Nandroid now.
---------- Post added at 02:23 PM ---------- Previous post was at 02:22 PM ----------
Compusmurf said:
The 1x/3G stuff is located in:
\res\values\bools.xml
<bool name="config_showMin3G">false</bool>
The default is TRUE, change it to false and that should fix that.
Click to expand...
Click to collapse
Doing this now. Thank you.
siraltus said:
FFFFUUUUUUUUU... just realized my Email app is gone. Damnit. Restoring Nandroid now.
Doing this now. Thank you.
Click to expand...
Click to collapse
Ooops, sorry. I edited my zip file.
It's one of those things I never use so I wipe it off. I use gmail so don't bother keeping the other on there. Now you see why I re-iterated that you have a current NANDROID? People make mistakes, and I'm no professional DEV!!!!!
However, this is a GREAT LESSON for everyone. When you d/l someone's stuff, instead of blindly flashing it, glance at the script to see what it's going to do BEHIND the scenes. This was accidental but someone COULD wipe everything off or install something else that you weren't expecting.
A quick fix in this case instead of restore would have been to put the 2 files back into the zip, remove the updater line and reflash just the zip.
Again, soo sorry about that.
Compusmurf said:
Ooops, sorry. I edited my zip file.
It's one of those things I never use so I wipe it off. I use gmail so don't bother keeping the other on there. Now you see why I re-iterated that you have a current NANDROID? People make mistakes, and I'm no professional DEV!!!!!
However, this is a GREAT LESSON for everyone. When you d/l someone's stuff, instead of blindly flashing it, glance at the script to see what it's going to do BEHIND the scenes. This was accidental but someone COULD wipe everything off or install something else that you weren't expecting.
A quick fix in this case instead of restore would have been to put the 2 files back into the zip, remove the updater line and reflash just the zip.
Again, soo sorry about that.
Click to expand...
Click to collapse
Hey no worries man. I always always make Nandroids whenever I'm about to do something that might bork the system.
I didn't even know what an updater script was until this, and anything that I can learn something new from I regard as a positive experience. And I learned a lot today - now I can modify my own APKs and that's so awesome, so thank you.
Do you know how to decompile jars? I want to fix the 4-in-1 reboot mod now, need to replace the command that the Quick Reboot option launches because the currently posted one sends the phone into a bootloop.