[Android Software/Hacking General [Developers Only]] Droidbuster:
Samsung Note 3 clock widget on lockscreen .

Description
​

Steps

1.) Decompile framework-res.apk

2.) Download s4clokwidget.zip ,get the pngs and put it inside res/drawable of framework.

3.) Go to res/values/ids.xml and open it. And BEFORE </resources> put this code:

[COLOR=Red]<item type="id" name="first_digital">false</item>
<item type="id" name="second_digital">false</item>
<item type="id" name="dot_digital">false</item>
<item type="id" name="third_digital">false</item>
<item type="id" name="fouth_digital">false</item>
<item type="id" name="current_date">false</item>
<item type="id" name="time2">false</item>[/COLOR]

[COLOR=Red]<item type="id" name="first_digital">false</item>
<item type="id" name="second_digital">false</item>
<item type="id" name="dot_digital">false</item>
<item type="id" name="third_digital">false</item>
<item type="id" name="fouth_digital">false</item>
<item type="id" name="current_date">false</item>
<item type="id" name="time2">false</item>[/COLOR]
</resources>

and go to res/value/bool.xml open it add this code

before resources.

Now layout step

open res/layout/keyguard_screen_unlock_portrait.xml :

search for this

<com.android.internal.widget.DigitalClock android:id="@id/time" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="20.0dip" android:layout_marginTop="15.0dip" android:layout_alignParentLeft="true" android:layout_alignParentTop="true">
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="70.0sp" android:ellipsize="none" android:gravity="bottom" android:id="@id/timeDisplay" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="6.0dip" android:singleLine="true" android:shadowColor="#c0000000" android:shadowDx="0.0" android:shadowDy="0.0" android:shadowRadius="3.0" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="18.0sp" android:ellipsize="none" android:gravity="bottom" android:id="@id/am_pm" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginLeft="4.0dip" android:singleLine="true" android:shadowColor="#c0000000" android:shadowDx="0.0" android:shadowDy="0.0" android:shadowRadius="3.0" />
</com.android.internal.widget.DigitalClock>

Replace it with

<com.ninjask.internal.policy.impl.LockScreenDigitalClock android:gravity="center" android:layout_gravity="center" android:orientation="vertical" android:id="@id/time" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="25.0dip">
<LinearLayout android:id="@id/time2" android:layout_width="wrap_content" android:layout_height="58.0dip" android:layout_marginTop="40.0dip" android:layout_alignParentTop="true" android:layout_centerHorizontal="true">
<ImageView android:id="@id/first_digital" android:layout_width="wrap_content" android:layout_height="58.0dip" />
<ImageView android:id="@id/second_digital" android:layout_width="wrap_content" android:layout_height="58.0dip" />
<ImageView android:id="@id/dot_digital" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/zzz_unlock_clock_colon_s" />
<ImageView android:id="@id/third_digital" android:layout_width="wrap_content" android:layout_height="58.0dip" />
<ImageView android:id="@id/fouth_digital" android:layout_width="wrap_content" android:layout_height="58.0dip" />
</LinearLayout>
<TextView android:textSize="21.0sp" android:textColor="#fff0ffbb" android:gravity="center" android:id="@id/current_date" android:layout_width="fill_parent" android:layout_height="wrap_content" android:shadowColor="#ff000000" android:shadowDx="0.0" android:shadowDy="1.0" android:shadowRadius="2.5" android:layout_below="@id/time2" android:layout_alignParentTop="true" />
</com.ninjask.internal.policy.impl.LockScreenDigitalClock>
</LinearLayout>

4.) Save and recompile it THEN get the recompiled framework-res.apk and decompile it AGAIN.

5.)Open framework-res/res/values/public.xml and REMEMBER this codes:

<public type="id" name="first_digital" id="public1" />
<public type="id" name="second_digital" id="public2" />
<public type="id" name="third_digital" id="public3" />
<public type="id" name="fouth_digital" id="public4" />
<public type="id" name="current_date" id="public5" />
<public type="string" name="full_wday_month_day_no_year" id="public6" />
<public type="bool" name="config_lock_screen_battery_animation_horizontal" id="public7" />
<public type="drawable" name="zzz_unlock_clock_0" id="clock0" />
<public type="drawable" name="zzz_unlock_clock_1" id="clock1" />
<public type="drawable" name="zzz_unlock_clock_2" id="clock2" />
<public type="drawable" name="zzz_unlock_clock_3" id="clock3" />
<public type="drawable" name="zzz_unlock_clock_4" id="clock4" />
<public type="drawable" name="zzz_unlock_clock_5" id="clock5" />
<public type="drawable" name="zzz_unlock_clock_6" id="clock6" />
<public type="drawable" name="zzz_unlock_clock_7" id="clock7" />
<public type="drawable" name="zzz_unlock_clock_8" id="clock8" />
<public type="drawable" name="zzz_unlock_clock_9" id="clock8" />

REMEMBER THIS: when you remeber the public ids, remove the 0 next to x, (FOR EXAMPLE: 0x01234567 change it to this: 0x1234567).

6.) Decompile android.policy.jar.

7.) Download ninjask.zip and extract it to smali folder.

8.) Now..... (I hate this ids ids ids... xD) Open LockScreenDigitalClock.smali FIND this line and REPLACE the highlighted code:

const v2, [COLOR=Red]0x108048b[/COLOR]

const v2, 0x[COLOR=Red]108048c[/COLOR]

const v2, 0x[COLOR=Red]108048d[/COLOR]

const v2, [COLOR=Red]0x108048e[/COLOR]

const v2, 0x[COLOR=Red]108048f [/COLOR]

const v2, 0x[COLOR=Red]1080490 [/COLOR]

const v2, 0x[COLOR=Red]1080491 [/COLOR]

const v2, 0x[COLOR=Red]1080492 [/COLOR]

const v2, 0x[COLOR=Red]1080493 [/COLOR]

const v2, 0x[COLOR=Red]1080494 [/COLOR]

const v8, 0x[COLOR=Red]10400a7 [/COLOR]

const v0, [COLOR=Red]0x1020254 [/COLOR]

const v0, [COLOR=Red]0x1020255 [/COLOR]

const v0, [COLOR=Red]0x1020257 [/COLOR]

const v0, [COLOR=Red]0x1020258 [/COLOR]

const v0, [COLOR=Red]0x1020259 [/COLOR]

const v1, [COLOR=Red]0x10d0021 [/COLOR]

9.) Save LockScreenDigitalClock.smali.

10.) Almost There! recompile android.policy.jar.

11.) Flash your recompiled android.policy.jar and framework-res.apk

12.) If it works, JUMP! if not, tell me, maybe i forgot somethin​

I provided this flashable zip you can use it for your Flashing lockscreen (FLASHABLE.ZIP)

Now thread is updated:fingers-crossed:

1 .if you are using my work so plz give me credit . because i spend many night and days for getting success.

and

If you are porting this guide to To another inform me first . then i will create a seprate guide for your device.

by giving you credit and tester

​

​

​