I always hated the static wifi icon that is displayed in the notification bar so I set out to change it with a simple 6 step animated icon.
The original framework-res.apk contains 5 wifi icons for the different signal levels.
and they are named stat_sys_wifi_signal_0.png to stat_sys_wifi_signal_4.png and can be found in the res/drawable-hdpi and res/drawable-mdpi folders within the 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"
}
stat_sys_wifi_signal_0.png is not very useful so we'll keep that one a static icon.
stat_sys_wifi_signal_1.png to stat_sys_wifi_signal_4.png are going to be replaced by a set of 6 icons that will show a nice animation.
So now that we have a the graphics comes the hard part, how do we get these into the framework-res.apk as an animation.
The answer is, with XML files.
We need to create an xml file for each animated set and they have to have the same name as the original icons except for the extension.
So for the stat_sys_wifi_signal_1.png we create an xml file with the name stat_sys_wifi_signal_1.xml and place it in the res/drawable directory.
The content of the xml file is here below.
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="200" android:drawable="@drawable/stat_sys_wifi_signal_1_anim0" />
<item android:duration="200" android:drawable="@drawable/stat_sys_wifi_signal_1_anim1" />
<item android:duration="200" android:drawable="@drawable/stat_sys_wifi_signal_1_anim2" />
<item android:duration="200" android:drawable="@drawable/stat_sys_wifi_signal_1_anim3" />
<item android:duration="200" android:drawable="@drawable/stat_sys_wifi_signal_1_anim4" />
<item android:duration="200" android:drawable="@drawable/stat_sys_wifi_signal_1_anim5" />
</animation-list>
Some explanation about the content, this line
Code:
<item android:duration="200" android:drawable="@drawable/stat_sys_wifi_signal_1_anim0" />
it tells the system to show the icon stat_sys_wifi_signal_1_anim0.png for 200ms (mili-seconds) and then go to the next line.
The full set of icons and xml files can be downloaded here
To re-compile the framework-res.apk you can use this
Happy modding.
Other animated Icons
Download Sync Animation
Download Upload Download Animation
wdl1908 said:
Reserved for future use.
Click to expand...
Click to collapse
Great!
Just recompile the apk after modding and install it?
Lennb said:
Great!
Just recompile the apk after modding and install it?
Click to expand...
Click to collapse
Yes I'v added a link to a frameworkrebuiler script in the first post.
wdl1908 said:
Yes I'v added a link to a frameworkrebuiler script in the first post.
Click to expand...
Click to collapse
Thank you!
Added some extra animated icons in second post.
very funny !
thanks
thanks
How would set up xml file for your data animation? What would you call it. Im trying to get http://forum.xda-developers.com/showthread.php?t=846825 to work for my lf g2x I have settingSU and framework Ive manged to compile new icons for battery,download,wifi but getting the animations to show is driving me crazy
cleanmydirt said:
How would set up xml file for your data animation? What would you call it. Im trying to get http://forum.xda-developers.com/showthread.php?t=846825 to work for my lf g2x I have settingSU and framework Ive manged to compile new icons for battery,download,wifi but getting the animations to show is driving me crazy
Click to expand...
Click to collapse
What is the name of the icons you are trying to change?
You have to make an xml file with the same name and use other names for the icons that will do the animation.
Related
How to add the Lockscreen Text to any lockscreen.
As most know I have implemented this feature inside the Touchwiz Resurrection rom for galaxy ace i.
As seen below.
{
"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"
}
Basicly this mod was very easy to add .
What is inside the resources.zip ?
LifeCompanionText.apk ( App to change the text )
LifeCompanion smalis for the framework.jar
SpaceFont.ttf for the CoolJazz font from S3/4
Basicly what you would need to do is:
Download Resources Attachement.
Extract it
Decompile you’re framework.jar
Go to the extract smali folder from the resources.zip and copy the smali folder to the smali folder of you’re framework.jar.
Compile framework.jar
Now we are going to add it to the frameworks location/allocate the text.
Decompile framework-res.apk
Find a lockscreen layout to you’re likes.
I used “zzz_keyguard_screen_clockwidget.xml” but you would be able to put it inside : “keyguard_screen_tab_unlock.xml” for the normal sliding tab lockscreen and such.
Open the layout you wanted and simply add this line above the clock layout or where you want
Code:
<com.touchwizres.lifecompaniontext.LifeCompanionTextView android:textSize="40.0dip" android:textColor="#ffffffff" android:id="[COLOR="RoyalBlue"]@id/life_companion_tag[/COLOR]" android:layout_width="wrap_content" android:layout_height="wrap_content" android:shadowColor="#7f000000" android:shadowDx="1.0" android:shadowDy="1.0" android:shadowRadius="2.0" />
I placed this code just below
Code:
<view android:gravity="left" android:orientation="vertical" android:id="@id/clock_time_and_date" android:paddingLeft="7.0dip" android:paddingTop="2.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" class="com.android.internal.policy.impl.ClockWidget$TimeAndDate">
of the "zzz_keyguard_screen_clockwidget.xml"
Add this to the ids.xml
Code:
<item type="id" name="[COLOR="RoyalBlue"]life_companion_tag[/COLOR]">false</item>
Compile framework-res.apk
Decompile ur compiled framework-res.apk
Now we are going to fix the ID Values. From the smali .
Decompile ur compiled framework.jar
Open
Code:
com/touchwizres/lifecompaniontext/[COLOR="RoyalBlue"]LifeCompanionTextView.smali[/COLOR]
that’s inside the framework.jar
Find
Code:
const v3, 0x[COLOR="Red"]10202cc[/COLOR]
This is the “life_companion_tag” ID (
Code:
<public type="id" name="life_companion_tag" id="0x0[COLOR="Red"]10202cc[/COLOR]" />
) inside public.xml
We need to fix this to yours
Now when u have changed the code from 0x10202cc to something like 0x1020299 or something depends on ur framework-res.apk
U can compile the framework.jar
Now zip the files together and make sure these are set properly.
SpaceFont.ttf inside /system/fonts/**
LifeCompanionText.apk inside /system/apps/**
And then ofcourse you’re modified framework.jar and framework-res.apk inside /system/framework/**
Now you are done
Happy modding
On what roms can u apply this mod ?
Basicly it can be applied to ALL Roms atleast if u know what u are doing.
As Most of you all know i am a HUGE HUGE Open Source fan so in this case i fully opensourced this aswell
Here is the sourcecode: https://github.com/spacecaker/LifeCompanionLockscreentext
Import in Eclipse.
Compile app.
Export unsigned apk.
Sign apk.
Decompile apk.
Retrieve ur smali codes.
Implement in framework
Some helpers who helped me on some knowledge and ideas:
B16H22
MarioZaWa
Pineappleowl
and testers
thanks sir for your guide
sir i want to know how to port Samsunng default clockwidget to our Non tw device.
i ported but not getting hour and minute pngs
How to remove? Keep getting infinite boot whenever I remove it..
Works well.But after reboot,the text will back to"life companion".How to fix?
Android小楼阁-QQ群 439637151
来自搭载Android 2.3 GingerBread的华为Y220-T10
[App 2.3+] Wallpaper Gallery | [Guide] Make your own Gallery!
I'm here by present you a Wallpaper Gallery Application for your android phone.
{
"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"
}
Features:-
Light weight, use less ram.
Easy to use.
Direct Wallpaper applying.
You can use it in any android version above 2.3.x
Compatible with Stock, CM or any AOSP Builds.
Can be installed on both Rooted & Un-Rooted devices.
Install as normal apk. Also you can include it in ROMs.
Screens:-
Attention ROM Developers!
No need to ask for permission to include this app in your roms, just give proper Credits & Thanks ...
Download Wallpapers.apk (1.17 MB) (Attached on xda thread)
Guide: Make your own Gallery!
You can decompile this application and then you can replace, add more wallpapers. You can also add HD/High Quality wallpapers if you wish. Remember, the compiled apk size depends on the size of the wallpapers added. If the wallpapers are big, the apk also become big.
Want to download High Quality Wallpapers?
Instructions:-
►Step:1 - DeCompile apk
Download the Wallpapers.apk to your PC/Laptop
Decompile apk with APK Tool / Virtuous Ten Studio (VTS) Tool for Windows.
VTS Screens:
►Step:2 - Choosing Wallpapers
Go to decompiled folder.
\Data\res\drawable-ldpi - folder contains wallpaper files and application icon.
These represent each set of wallpaper,
wallpaper_xx.jpg - The original wallpaper file.
wallpaper_xx_small.jpg - Resolution reduced preview image for the wallpaper.
you can replace 'xx' by '01, 02, 03,....' numbers.
This app contains 10 default wallpapers. You can append more wallpapers by adding 'wallpaper_11.jpg' & 'wallpaper_11_small.jpg'
You can use some Image Resizer tools for making previews.
(Small files about resolution reduced to 20% of the original files)
Search Google for such tools
I use FastStone Image Viewer for batch resize images.
►Step:3 - Adding Wallpaper Names to arrays.xml
Go to \Data\res\values-ldpi - folder
Open 'arrays.xml' file with Notepad++ / Wordpad or any other text editor.
<item>wallpaper_11</item> - This line adds the newly added wallpaper to the list.
Do not touch any other text in the xml file. Edit BLACK text only (Notepad++)
Code:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string-array name="wallpapers">
<item>wallpaper_01</item>
<item>wallpaper_02</item>
<item>wallpaper_03</item>
<item>wallpaper_04</item>
<item>wallpaper_05</item>
<item>wallpaper_06</item>
<item>wallpaper_07</item>
<item>wallpaper_08</item>
<item>wallpaper_09</item>
<item>wallpaper_10</item>
<item>wallpaper_[COLOR="Blue"]11[/COLOR]</item>
</string-array>
</resources>
Now save the xml file.
►Step:4 - Setting Application Icon
'brijeshep_icon.png' - This image is the application icon. You can replace it with any png file with 48x48 pixels. Do not rename the icon file.
►Step:5 - Setting Application Label and Title
If you want to change the application title "Wallpapers",
Go to \Data\res\values - folder
Open 'strings.xml' file with Notepad++
Edit the Application Name: <string name="app_name">Kitkat Gallery</string> like...
Edit the Wallpaper Setting title: <string name="app_label">KK-Wallpapers</string>
Save the xml file.
Code:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">Kitkat Gallery</string>
<string name="app_label">KK-Wallpapers</string>
<string name="set_wallpaper">Set Wallpaper</string>
<string name="no_wallpaper">No Wallpaper</string>
</resources>
►Step:6 - Compile the Project files
If you have finished modding, Compile the project to make the modified apk.
You can compile the project by clicking 'Build all' button if you are in VTS.
Go to project's 'Binary' folder to get the recompiled apk.
Credits:-
elelinux for the base app.
Google for Android Version History wallpapers.
Virtuous Ten Studio (VTS) Tool
FastStone Image Viewer
Adobe Photoshop
Notepad++
Thanks
Thanks brijeshep.
Very good tutorial.
All the best.
24 Toggle Almas Toggle
{
"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"
}
AlmasToggle
I am Bored with lidroid quickpanel and my friend spacecaker toggles because no methods to switch between gridview or horizontal view and some other stuff. I make This toggle from Scratch no fork of cm11 or any other toggle source it is totally open source everyone can fork and anything but just give credit to me This toggle take 4-5 day to complete because me soo busy these day . If You need any help regarding to this post here BUT NO PM there one app where some window are located if you don't install that force close when clicking on window based toggle. Also There almas-res.apk Where the resource are located you need to put almas-res.apk to system/framework the java of the toggle will load to app to give output of images and etc. If You want to have kitkat Status_Bar_Close just open status_bar_tracking find <ImageView and replace with com.almas.systemui.BottomBar after replacing you need remove android:src="blabla" from the tag. AlmasToggle contain 24 Toggle Now and can be switch grid view and horizontal view . We talk so much let's start ?
Required
1. almas-res.apk
2.AlmasToggle.apk
3.Toggle_Smali
Instruction
1st
1. Put almas-res.apk to /system/app or /system/framework and set Permission R - W - RR (Recommended to in /system/app)
2.Install AlmasToggle to Your Phone
2nd
1.Decompile Your SystemUI.apk
2.Open smali folder Merged Toggle_Smali
3.Open /res/layout/**** any layout where you want load
4.Add These Lines
Code:
<com.almas.toggles.ToggleGridView android:layout_width="match_parent" android:layout_height="wrap_content" />
<com.almas.toggles.ToggleHorizontalView android:layout_width="wrap_content" android:layout_height="wrap_content" />
Tips
How to change Profile name and photo
Click on the Toggle
SS
Credits
AndroidFire
PxL for Toggle Images
tentenponce
AKOP
SpaceCaker
Source
Go Here
Change logs
v1
-Initial released
v2
-Added Wifi Hotspot Toggle
-Bug Fixed
-Added Toggle Order
-Many More
Features
Two Policy.
AutoUpdate
Toggle Order
Extended Toggle
more
{
"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"
}
I'm using gravitybox to make other modifications in the image above. But it cant remove SIM number so i use this mod
This Mod Remove Sim number, from statusbar. Works on lockscreen and un-locked screen
Instructions:
Do It Yourself
This can be done to any systemUI Of Lollipop...
1° Copy yours SystemUI.apk and framework-res.apk to PC put in a safe place and do not change these files...
Framework-res.apk is in /system/framework
SystemUI.apk is in /system/priv-app/SystemUI
Make a copy of these files and decompile SystemUI.apk using:
[TOOL] V4.0.3-xdaAutoTool ALL-Win | V5.0.0b-xdaautoAPKTool | V1.0.3-xdaautoDeoTool
To decompile and recompile follow the instructions detailed in the Thread above
change two lines in systemui.apk res/layout/signal_cluster_view.xml as follows
Open XML file with notepad
original
<TextView android:layout_gravity="bottom|center|right" android:id="@id/mobile_phone_label" android:layout_width="wrap_content" android:layout_height="wrap_content" style="@style/TextAppearance.StatusBar.SimLabel" />
<TextView android:layout_gravity="bottom|center|right" android:id="@id/mobile_phone_label_2" android:layout_width="wrap_content" android:layout_height="wrap_content" style="@style/TextAppearance.StatusBar.SimLabel" />
changed
* change what is in RED
<TextView android:layout_gravity="bottom|center|right" android:id="@id/mobile_phone_label" android:layout_width="0.0dip" android:layout_height="0.0dip" style="@style/TextAppearance.StatusBar.SimLabel" />
<TextView android:layout_gravity="bottom|center|right" android:id="@id/mobile_phone_label_2" android:layout_width="0.0dip" android:layout_height="0.0dip" style="@style/TextAppearance.StatusBar.SimLabel" />
After the change save the XML file, recompile and Sign the apk using the tool, replace it on the phone...
To easy replace it on the phone, just replace yours MOD SystemUI.apk in the ZIP attach, flash it and tested...
If some goes wrong, replace yours original untouched SystemUI.apk in the ZIP attach and flash it...
FLASHABLE zip:
Flash the zip (SystemUI-xt1069-5.0.2-Mod.zip) on recovery, reboot and test
if something goes wrong, use the file (SystemUI-xt1069-5.0.2-Default.zip) to restore...
!!! This zip only works on android 5.0.2 XT1069 22.21.28
This version:
But if you follow the Instructions Do It Yourself, can be made to any SystemUI...
Do a full backup before
I'm not responsible for any phone brick
if you can not do it yourself, provide me with your SystemUI and framework-res.apk that I make modifications, and make a flash zip to you...
I do not have much time left so it may take up to 48 hours for me to do it...
Credits to creators of thread and and those who helped them...
[MOD][XT1033] Remove carrier label and SIM numbers for statusbar[Do-It-Yourself]
[MOD][5.0] Center clock for stock Android Lollipop
[TOOL] V4.0.3-xdaAutoTool ALL-Win | V5.0.0b-xdaautoAPKTool | V1.0.3-xdaautoDeoTool
What is this?
This will let you add custom application shortcuts in expanded view
Screenshots
{
"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"
}
Changelog
Disappearing shortcut icon fixed
Icons are centered by default
Add icons in HorizontalScrollView if the icons reach the 6 button threshold
How to use?
Decompile your SystemUI (Must be Deodex)
Download the attached file
Please download and install PotatoShortcuts.apk attached below (You don't need to install pkg.apk anymore)
Extract the attached file
You now have 2 files , pkg.apk and SystemUISmali.zip
Install pkg.apk (Normal install)
Extract SystemUISmali.zip
You now have the smali files, paste it in the smali folder of your decompiled SystemUI
Go to res/layout/status_bar_tracking.xml
You will see this line
Code:
<com.android.systemui.statusbar.CloseDragHandle
android:id="@+id/close"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical" >
Paste this code after that line
Code:
<HorizontalScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content">
<com.android.systemui.statusbar.potato.shortcuts.ShortcutView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal" />
</HorizontalScrollView>
NOTE. You can put the code everywhere you like, I just put it in the close drag handle just to be just LOL.
Tested in Galaxy and KitKat ROM by Vanya (Dunno his XDA name)
Known bug
Nothing in v2 I guess
Permission
You can use this mod to your awesome ROM but don't change the smali names and the app name PLEASE , fixing bugs is harder than moving on (HUGOT!).
Credits
The PotatoInc (mariozawa)
Nice guide sir. btw. is there a tutorial here on how to make dynamic tint bars?
Jedz77 said:
Nice guide sir. btw. is there a tutorial here on how to make dynamic tint bars?
Click to expand...
Click to collapse
I don't know if there is existing guide for it for GB, btw I will make guide for DSB (the one that PotatoCM is using) maybe after my thesis since I need to modify some of it components to be able to work in stock ROMS just what I did in this mod.
mariozawa said:
I don't know if there is existing guide for it for GB, btw I will make guide for DSB (the one that PotatoCM is using) maybe after my thesis since I need to modify some of it components to be able to work in stock ROMS just what I did in this mod.
Click to expand...
Click to collapse
OMG cant wait for that! some people in lenox evo group in fb already did that but they wont share any tutorials. thank you in advance!
Awesome mod btw! thumbs up! :good::good::good:
sir i have a simple question
#offtopic
Sir I created a Am/pm guide and want to add a app support to control ig via app So that user can toggle show /hide am pm but i have no idea to do it can u help me?
The stable version is finally out
can't fine version 2 of potato shortcut
the apk in the attachment is version 1.0 sir jc ?