Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,780,834 Members 50,333 Now Online
XDA Developers Android and Mobile Development Forum

[MOD][GUIDE][2.3.x +]Potato Clock Mods

Tip us?
 
mariozawa
Old
(Last edited by mariozawa; 3rd April 2014 at 04:46 AM.)
#1  
mariozawa's Avatar
Recognized Themer - OP
Thanks Meter 736
Posts: 364
Join Date: Jul 2012
Location: Malolos, Bulacan

 
DONATE TO ME
Default [MOD][GUIDE][2.3.x +]Potato Clock Mods

WHAT IS THIS?
Just a Potato clock

FEATURES
(COLOR HINTS)
NEW FEATURE
REMOVED
ORIGINAL FEATURE
VERSION


Potato Clock v2.1
Word Clock - Just time in words
All caps Word Clock
Minor bug fixes
New settings style - This one is cool


Potato Clock v2
Pussy Clock - Potato Edition of Fuzzy Clock (Show exact minutes in words)
All caps Pussy
Ninja Time removed
All features from v1.1

PREVIOUS CHANGE LOGS
 

Potato Clock v1.3
Ninja Moves - Ninja Time
(Will change the current time to "NOW")

Potato Clock v1.2

Font - Bold|Condensed|Light|Light Italic|Normal|Custom (ttf & otf supported)

Potato Clock v1.1
AM/PM style -
Normal|Small|Gone|Custom
Date style -
Normal|Small|Gone|Custom

Potato Clock v1 - Initial release
Clock color - Color picker
Clock position - Left|Center|Right|Hide
Font - Bold|Condensed|Light|Light Italic|Normal
AM/PM style - Normal|Small|Gone
Date style - Normal|Small|Gone
Date format - 14 styles too many to mentions|Custom JAVA format


BUGS?
404 NOT FOUND
PM me if you found any bugs

SCREENIES





INSTRUCTIONS
Download needed files here.

Download & install Potato Clock settings here.

Extract the
needed files.

Decompile your SystemUI.apk
Go to SystemUI.apk/smali then paste the smali in that folder
the smali directory will be
smali/com/potato/systemui/clocks/.SMALI FILES HERE


and the assets folder
SystemUI.apk/assets/.ttf files should be here

Go to res/layout/statusbar.xml

PHP Code:
<com.potato.systemui.clocks.ClockLeft   android:textAppearance="@android:style/TextAppearance.StatusBar.Icon"   android:textStyle="normal" android:gravity="center"   android:paddingLeft="1.0dip" android:layout_width="wrap_content"   android:layout_height="fill_parent" android:singleLine="true"   /> 
- This is for Left Clock

PHP Code:
<com.potato.systemui.clocks.ClockRight   android:textAppearance="@android:style/TextAppearance.StatusBar.Icon"   android:textStyle="normal" android:gravity="center"   android:layout_width="wrap_content" android:layout_height="fill_parent"   android:singleLine="true" /> 
- This is for Right Clock


PHP Code:
<com.potato.systemui.clocks.ClockCenter   android:textAppearance="@android:style/TextAppearance.StatusBar.Icon"   android:textStyle="normal" android:gravity="center"   android:layout_width="fill_parent" android:layout_height="fill_parent"   android:singleLine="true" /> 
- This is for Center clock


Put the codes in their right position
(Don't copy my whole statusbar.xml this is for TW 2.3.6)

PHP Code:
<com.android.systemui.statusbar.StatusBarView   android:orientation="vertical" android:background="#00000000"   android:focusable="true"   android:descendantFocusability="afterDescendants"
  
xmlns:android="http://schemas.android.com/apk/res/android">
    <
LinearLayout android:gravity="center"   android:orientation="horizontal" android:layout_width="fill_parent"   android:layout_height="fill_parent">
        <
com.potato.systemui.clocks.ClockCenter   android:textAppearance="@android:style/TextAppearance.StatusBar.Icon"   android:textStyle="normal" android:gravity="center"   android:layout_width="fill_parent" android:layout_height="fill_parent"   android:singleLine="true" />
    </
LinearLayout>
    <
LinearLayout android:orientation="horizontal"   android:id="@id/icons" android:layout_width="fill_parent"   android:layout_height="fill_parent">
        <
com.potato.systemui.clocks.ClockLeft   android:textAppearance="@android:style/TextAppearance.StatusBar.Icon"   android:textStyle="normal" android:gravity="center"   android:paddingLeft="1.0dip" android:layout_width="wrap_content"   android:layout_height="fill_parent" android:singleLine="true" />
        <
com.android.systemui.statusbar.IconMerger   android:gravity="center_vertical" android:orientation="horizontal"   android:id="@id/notificationIcons" android:paddingLeft="1.0dip"   android:layout_width="0.0dip" android:layout_height="fill_parent"   android:layout_weight="1.0" android:layout_alignParentLeft="true" />
        <
LinearLayout android:gravity="center_vertical"   android:orientation="horizontal" android:id="@id/statusIcons"   android:paddingRight="1.0dip" android:layout_width="wrap_content"   android:layout_height="fill_parent"   android:layout_alignParentRight="true" />
        <
com.potato.systemui.clocks.ClockRight   android:textAppearance="@android:style/TextAppearance.StatusBar.Icon"   android:textStyle="normal" android:gravity="center"   android:layout_width="wrap_content" android:layout_height="fill_parent"   android:singleLine="true" />
    </
LinearLayout>
    <
LinearLayout android:orientation="horizontal"   android:id="@id/ticker" android:background="#000"   android:paddingLeft="6.0dip" android:animationCache="false"   android:layout_width="fill_parent"   android:layout_height="fill_parent">
        <
ImageSwitcher android:id="@id/tickerIcon"   android:layout_width="wrap_content" android:layout_height="fill_parent"   android:layout_marginRight="8.0dip">
            <
com.android.systemui.statusbar.AnimatedImageView   android:layout_width="25.0dip" android:layout_height="25.0dip" />
            <
com.android.systemui.statusbar.AnimatedImageView   android:layout_width="25.0dip" android:layout_height="25.0dip" />
        </
ImageSwitcher>
        <
com.android.systemui.statusbar.TickerView   android:id="@id/tickerText" android:paddingTop="2.0dip"   android:paddingRight="10.0dip" android:layout_width="0.0dip"   android:layout_height="wrap_content" android:layout_weight="1.0">
            <
TextView   android:textAppearance="@android:style/Theme.Holo.Wallpaper"   android:layout_width="fill_parent" android:layout_height="wrap_content"   android:singleLine="true" />
            <
TextView   android:textAppearance="@android:style/Theme.Holo.Wallpaper"   android:layout_width="fill_parent" android:layout_height="wrap_content"   android:singleLine="true" />
        </
com.android.systemui.statusbar.TickerView>
    </
LinearLayout>
    <
com.android.systemui.statusbar.DateView   android:textAppearance="@android:style/TextAppearance.StatusBar.Icon"   android:gravity="left|center" android:id="@id/date"   android:background="#ff000000" android:paddingLeft="6.0px"   android:paddingRight="6.0px" android:layout_width="wrap_content"   android:layout_height="0.0px" android:singleLine="true" />
</
com.android.systemui.statusbar.StatusBarView


For those who have Potato Statusbar Gesture mod you can use this for center clock


PHP Code:
<com.potato.touchbar.TouchMe android:gravity="center"    android:orientation="horizontal" android:layout_width="fill_parent"    android:layout_height="fill_parent">
        <
com.potato.systemui.clocks.ClockCenter    android:textAppearance="@android:style/TextAppearance.StatusBar.Icon"    android:textStyle="normal" android:gravity="center"    android:layout_width="fill_parent" android:layout_height="fill_parent"    android:singleLine="true" />
    </
com.potato.touchbar.TouchMe



IF YOU ALREADY HAVE POTATO CLOCK JUST PASTE THE SMALI FILES (.smali) in
PHP Code:
SystemUI.apk\smali\com\potato\systemui\clocks 



ISSUES
404 ISSUES NOT FOUND


CREDITS
PotatoInc

MARIOZAWA

pollube31
- 24/7 tester
@
Jay_SEAN - 12/2 tester

CYANOGENMOD
iPaulPro





IF YOU LIKE OUR WORK YOU KNOW WHAT TO DO
IF YOU WANT TO USE THIS IN YOUR AWESOME WORK PLEASE SEND ME A PM
AND AT LEAST PRESS THANKS BUTTON

I SUFFER FROM SUPER HEADACHE VERSION 4 WHEN DOING THIS
The Following 19 Users Say Thank You to mariozawa For This Useful Post: [ Click to Expand ]
 
vishal1404
Old
#2  
Senior Member
Thanks Meter 37
Posts: 213
Join Date: Apr 2013
Location: Mumbai
great mod!!!!!!
 
the_vanya1
Old
#3  
Senior Member
Thanks Meter 15
Posts: 116
Join Date: Oct 2013
Location: Kiev
Quote:
Originally Posted by vishal1404 View Post
great mod!!!!!!
Great mod!
But its do not work (Statusbar Force closed) on my LG P713, 4.1.2
 
K_TECH
Old
(Last edited by K_TECH; 8th March 2014 at 01:21 AM.)
#4  
K_TECH's Avatar
Senior Member
Thanks Meter 577
Posts: 415
Join Date: Feb 2013
Location: Sidoarjo
Tested in Galaxy Wonder with CM9 rom, thanks for shared this awesome mod


INDONESIA - DEVELOPER
| Device: SGW GT-I8150 | My Works: Here |
 
D2Y aka E
Old
#5  
D2Y aka E's Avatar
Senior Member
Thanks Meter 51
Posts: 225
Join Date: Feb 2014
Location: muara wahau (borneo)
thanks master
 
mariozawa
Old
#6  
mariozawa's Avatar
Recognized Themer - OP
Thanks Meter 736
Posts: 364
Join Date: Jul 2012
Location: Malolos, Bulacan

 
DONATE TO ME
Quote:
Originally Posted by the_vanya1 View Post
Great mod!
But its do not work (Statusbar Force closed) on my LG P713, 4.1.2
Can you attach logcat? Thanks

Sent from my GT-I9300 using Tapatalk
 
the_vanya1
Old
#7  
Senior Member
Thanks Meter 15
Posts: 116
Join Date: Oct 2013
Location: Kiev
Quote:
Originally Posted by mariozawa View Post
Can you attach logcat? Thanks

Sent from my GT-I9300 using Tapatalk
My LGSystemUI - https://www.dropbox.com/s/toi7vkcjgq...LGSystemUI.apk
 
mariozawa
Old
#8  
mariozawa's Avatar
Recognized Themer - OP
Thanks Meter 736
Posts: 364
Join Date: Jul 2012
Location: Malolos, Bulacan

 
DONATE TO ME
Quote:
Originally Posted by the_vanya1 View Post
Bro logcat not your SystemUI.apk.
BTW there is a new version.
 
butiti_09
Old
#9  
butiti_09's Avatar
Member
Thanks Meter 12
Posts: 61
Join Date: Jan 2013
Location: Malolos City
404 font not found when i chose a font
 
mariozawa
Old
#10  
mariozawa's Avatar
Recognized Themer - OP
Thanks Meter 736
Posts: 364
Join Date: Jul 2012
Location: Malolos, Bulacan

 
DONATE TO ME
Quote:
Originally Posted by butiti_09 View Post
404 font not found when i chose a font
Try to choose font from /system/fonts
It has bugs on devices that didn't have internal sdcard
But I'm working on it.

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Secrecy App Goes Open Source, New LG Android Wear Device! – XDA Developer TV

Secrecy encryption app goes open source! That and much … more

Pushbullet Updated with SMS Send Ability

Pushbullet is one of thoseapplications that every Android lover should have installed on his or … more

[OTA] Nvidia Shield Tablet Receives its First Update

The Nvidia Shield Tabletis the latest toy from one of the largest desktop graphics … more

Quick Control Panel Updated, Adds Notification Support

As some of you may remember, earlier this year we spoke about Quick Control Panel by … more