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

Search This thread

freefrank

Senior Member
Feb 8, 2007
73
32
remove

How to remove this mod? It comes with a rom but i cant change the font size of the clock. Need to remove it and back to stock.
 

eyesore123

Senior Member
Apr 29, 2013
337
49
Philippines
error recompiling


Recompiling "SystemUI.apk" With Original Signature,
in work area "_WorkArea1", using "apktool_2.0.0rc3.jar"

With Tickle My Android V9.2.5
(tinyurl.com\ticklemyandroid)

----------------

I: Using Apktool 2.0.0-RC3 on SystemUI.apk
I: Smaling smali folder into classes.dex...
..\_WorkArea1\_working\SystemUI.apk\smali\com\potato\systemui\clocks\Clock$1.smali[24,4] Error for input '.parameter': Invalid directive
..\_WorkArea1\_working\SystemUI.apk\smali\com\potato\systemui\clocks\Clock$1.smali[40,4] Error for input '.parameter': Invalid directive
..\_WorkArea1\_working\SystemUI.apk\smali\com\potato\systemui\clocks\Clock$1.smali[41,4] Error for input '.parameter': Invalid directive
..\_WorkArea1\_working\SystemUI.apk\smali\com\potato\systemui\clocks\Clock$1.smali[40,15] mismatched input '"context"' expecting END_METHOD_DIRECTIVE
Exception in thread "main" brut.androlib.AndrolibException: Could not smali file: com/potato/systemui/clocks/Clock$1.smali
at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:71)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:55)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:41)
at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:349)
at brut.androlib.Androlib.buildSources(Androlib.java:289)
at brut.androlib.Androlib.build(Androlib.java:275)
at brut.androlib.Androlib.build(Androlib.java:250)
at brut.apktool.Main.cmdBuild(Main.java:225)
at brut.apktool.Main.main(Main.java:84)

----------------

Recompile Not Successful!


pls help
 
  • Like
Reactions: contrinsan

contrinsan

Senior Member
Jan 23, 2013
432
221
error recompiling


Recompiling "SystemUI.apk" With Original Signature,
in work area "_WorkArea1", using "apktool_2.0.0rc3.jar"

With Tickle My Android V9.2.5
(tinyurl.com\ticklemyandroid)

----------------

I: Using Apktool 2.0.0-RC3 on SystemUI.apk
I: Smaling smali folder into classes.dex...
..\_WorkArea1\_working\SystemUI.apk\smali\com\potato\systemui\clocks\Clock$1.smali[24,4] Error for input '.parameter': Invalid directive
..\_WorkArea1\_working\SystemUI.apk\smali\com\potato\systemui\clocks\Clock$1.smali[40,4] Error for input '.parameter': Invalid directive
..\_WorkArea1\_working\SystemUI.apk\smali\com\potato\systemui\clocks\Clock$1.smali[41,4] Error for input '.parameter': Invalid directive
..\_WorkArea1\_working\SystemUI.apk\smali\com\potato\systemui\clocks\Clock$1.smali[40,15] mismatched input '"context"' expecting END_METHOD_DIRECTIVE
Exception in thread "main" brut.androlib.AndrolibException: Could not smali file: com/potato/systemui/clocks/Clock$1.smali
at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:71)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:55)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:41)
at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:349)
at brut.androlib.Androlib.buildSources(Androlib.java:289)
at brut.androlib.Androlib.build(Androlib.java:275)
at brut.androlib.Androlib.build(Androlib.java:250)
at brut.apktool.Main.cmdBuild(Main.java:225)
at brut.apktool.Main.main(Main.java:84)

----------------

Recompile Not Successful!


pls help
I got same error, maybe it's because i'm trying with systemui from lollipop, are you also trying on lollipop ?
 

ravian29

Senior Member
Jan 23, 2011
1,847
1,872
Does it matter?
Yes. Here I have made it work for the Note 5 on TMO on 5.1.1 - Link Check the commit in the link.
i am trying to make it work on note 5 but i am getting the same error

Exception in thread "main" brut.androlib.AndrolibException: Could not smali file: com/potato/systemui/clocks/Clock$1.smali
at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuil der.java:71)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder. java:55)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder. java:41)
at brut.androlib.Androlib.buildSourcesSmali(Androlib. java:349)
at brut.androlib.Androlib.buildSources(Androlib.java: 289)
at brut.androlib.Androlib.build(Androlib.java:275)
at brut.androlib.Androlib.build(Androlib.java:250)
at brut.apktool.Main.cmdBuild(Main.java:225)
at brut.apktool.Main.main(Main.java:84)

can you guide me how did you manage to make it work ?

thanks a lot
 

gurumachaz

Senior Member
Dec 1, 2014
714
453
Singapore
I am on Note 3 + Phronesis 5.1.1 Rom with built in Potato Clock.
I have just one tiny question, why name it Potato ?
Why not onion, chili, ginger, cabbage, cucumber, lettuce, or even Carrot ?
Please do tell the History....
 

renzo090513

Senior Member
Feb 1, 2015
261
162
Anyone have the smali files for lollipop? bacause in apktool says that i need to have .param istead of .parameter and i dont know how to edit that. please. Any help would be great. ! i have 5.0.2
 

adamo86

Senior Member
Mar 5, 2009
1,383
119
Hi I decompile the system ui on s7 edge but I can't seem to find the file called smali?
 

Zidni

Senior Member
May 19, 2015
135
139
Feni
Error in Recompiling

For Marshmallow Rom i got error in recompile.

here is logcat
Log For : SystemUI.apk

Log Type : Recompiling

Log Recorded At : Tue 16-08-2016 6:48:56.98

Log Recorded By : Advanced ApkTool v4.2.0 By BDFreak

------------------------------------------------------

..\3-Out\SystemUI.apk\smali\com\potato\systemui\clocks\Clock$1.smali[24,4] Error for input '.parameter': Invalid directive
..\3-Out\SystemUI.apk\smali\com\potato\systemui\clocks\Clock$1.smali[40,4] Error for input '.parameter': Invalid directive
..\3-Out\SystemUI.apk\smali\com\potato\systemui\clocks\Clock$1.smali[41,4] Error for input '.parameter': Invalid directive
..\3-Out\SystemUI.apk\smali\com\potato\systemui\clocks\Clock$1.smali[40,15] mismatched input '"context"' expecting END_METHOD_DIRECTIVE
Exception in thread "main" brut.androlib.AndrolibException: Could not smali file: com/potato/systemui/clocks/Clock$1.smali
at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:71)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:55)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:41)
at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:385)
at brut.androlib.Androlib.buildSources(Androlib.java:312)
at brut.androlib.Androlib.build(Androlib.java:295)
at brut.androlib.Androlib.build(Androlib.java:268)
at brut.apktool.Main.cmdBuild(Main.java:225)
at brut.apktool.Main.main(Main.java:84)

------------------------------------------------------
 

Top Liked Posts

  • There are no posts matching your filters.
  • 50
    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
    ***** Clock - Potato Edition of Fuzzy Clock (Show exact minutes in words)
    All caps *****
    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
    1535479_656569271046107_814170500_n.jpg


    10155608_645031108901482_2099040492_n.jpg



    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:
    <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:
    <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:
    <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:
    <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:
    <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:
    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
    2
    Might mod to adapt the lollipop ?

    Yes. Here I have made it work for the Note 5 on TMO on 5.1.1 - Link Check the commit in the link.
    1
    can you tell me the function of custom clock ? and whre i can find the custom java code for this potato clock mod ?
    but overall this is a great mod sir, good job :good:
    It just let you use custom Java date format.
    Check this.

    http://www.tutorialspoint.com/java/java_date_time.htm

    The code of normal clock is hh:mm ;)
    1
    error recompiling


    Recompiling "SystemUI.apk" With Original Signature,
    in work area "_WorkArea1", using "apktool_2.0.0rc3.jar"

    With Tickle My Android V9.2.5
    (tinyurl.com\ticklemyandroid)

    ----------------

    I: Using Apktool 2.0.0-RC3 on SystemUI.apk
    I: Smaling smali folder into classes.dex...
    ..\_WorkArea1\_working\SystemUI.apk\smali\com\potato\systemui\clocks\Clock$1.smali[24,4] Error for input '.parameter': Invalid directive
    ..\_WorkArea1\_working\SystemUI.apk\smali\com\potato\systemui\clocks\Clock$1.smali[40,4] Error for input '.parameter': Invalid directive
    ..\_WorkArea1\_working\SystemUI.apk\smali\com\potato\systemui\clocks\Clock$1.smali[41,4] Error for input '.parameter': Invalid directive
    ..\_WorkArea1\_working\SystemUI.apk\smali\com\potato\systemui\clocks\Clock$1.smali[40,15] mismatched input '"context"' expecting END_METHOD_DIRECTIVE
    Exception in thread "main" brut.androlib.AndrolibException: Could not smali file: com/potato/systemui/clocks/Clock$1.smali
    at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:71)
    at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:55)
    at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:41)
    at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:349)
    at brut.androlib.Androlib.buildSources(Androlib.java:289)
    at brut.androlib.Androlib.build(Androlib.java:275)
    at brut.androlib.Androlib.build(Androlib.java:250)
    at brut.apktool.Main.cmdBuild(Main.java:225)
    at brut.apktool.Main.main(Main.java:84)

    ----------------

    Recompile Not Successful!


    pls help
    1
    Dont work lollipop.