[Galaxy S 5 Themes and Apps] ksr007:
VN-TEAM present Guide mod Locksceen style Note 4 for S5 !

First, This guide only help you to mod lockscreen Galaxy S5 ( Time, clock, alarm, charging like Note4) , Not help you to enable Note4 lockscreen unlock effect or anymore .

Just tested on S5 ported rom Tweaked stock S5 port and My S5 port rom ( not avaiable on XDA) , Galaxy S4 ( 4.4.2) .

However this guide can apply for Note 2, S4, N3 neo... etc running Kitkat 4.4.2 .

​

*Note :

- You must have and basic knowledge about Decompiling and compiling apks .

- Text editor using Notepad ++

- Copy Keyguard.apk from your rom to PC for modding .

1. Move clock from Right to center .

Decompile Keyguard.apk, navigate to > Keyguard.apk/res/layout/Sec_single_clock.xml

Open Sec_single_clock.xml with Notepad++ :

See codes below ( Marked in red zone.)

​

Change to the whole line with this code:​

<LinearLayout android:gravity="center_horizontal" android:orientation="vertical" android:id="@id/keyguard_single_clock" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/kg_singleclock_margin_left" android:layout_marginTop="@dimen/kg_singleclock_margin_top" android:layout_marginRight="@dimen/kg_singleclock_margin_right"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:gravity="bottom" android:layout_gravity="center_horizontal" android:orientation="horizontal" android:id="@id/keyguard_single_clock_total" android:focusable="true" android:clickable="true" android:layout_width="wrap_content" android:layout_height="@dimen/kg_singleclock_height">
<com.android.keyguard.sec.SecKeyguardTextClock android:textSize="16.0dip" android:textColor="#ffffffff" android:id="@id/keyguard_single_clock_ampm_kor" android:clickable="false" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="5.0dip" android:shadowColor="#cc000000" android:textAllCaps="true" android:format12Hour="@string/status_view_ampm_for_12_hours" android:format24Hour="@string/status_view_ampm_for_24_hours" style="@style/keyguard_text_shadow" />
<com.android.keyguard.sec.SecKeyguardTextClock android:textSize="@dimen/kg_singleclock_time_text_size_normal" android:textColor="#ffffffff" android:gravity="bottom" android:id="@id/keyguard_single_clock_time" android:clickable="false" android:layout_width="wrap_content" android:layout_height="wrap_content" android:shadowColor="#cc000000" android:format12Hour="@string/status_view_12_hours_format" android:format24Hour="@string/status_view_24_hours_format" style="@style/keyguard_text_shadow" />
<com.android.keyguard.sec.SecKeyguardTextClock android:textSize="16.0dip" android:textColor="#ffffffff" android:id="@id/keyguard_single_clock_ampm" android:clickable="false" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="5.0dip" android:shadowColor="#cc000000" android:textAllCaps="true" android:format12Hour="@string/status_view_ampm_for_12_hours" android:format24Hour="@string/status_view_ampm_for_24_hours" style="@style/keyguard_text_shadow" />
</LinearLayout>
<LinearLayout android:layout_gravity="center_horizontal" android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content">
<TextView android:textSize="@dimen/kg_widget_common_date_text_size" android:textColor="#ffffffff" android:id="@id/keyguard_single_clock_date" android:clickable="true" android:layout_width="wrap_content" android:layout_height="wrap_content" android:shadowColor="#cc000000" android:fontFamily="sans-serif" style="@style/keyguard_text_shadow" />
<View android:visibility="gone" android:layout_width="20.0dip" android:layout_height="0.0dip" />

2. Move Weather and Shealth to center .

Navigate to Keyguard.apk/res/layout/sec_adaptive_event_container_small.xml

See code below ( Marked in red zone)

​

Change to the whole line with this code:​

<com.android.keyguard.sec.AdaptiveEventContainerSmall android:gravity="center" android:orientation="horizontal" android:id="@id/adaptive_event_container_small" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layoutDirection="ltr" android:layout_marginStart="19.0dip" android:layout_marginEnd="19.0dip"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/emergency_container" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<LinearLayout android:layout_gravity="center_horizontal" android:id="@id/adaptive_info_area" android:layout_width="wrap_content" android:layout_height="wrap_content">
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/weather_container" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/ped_container" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>

3. Move charging battery to center .

Navigate to Keyguard.apk/res/layout/keyguard_message_area.xml

See code below (Marked in red zone)

​

Change to the whole line with this code:​

<LinearLayout android:gravity="center" android:orientation="horizontal" android:paddingLeft="20.0dip" android:paddingRight="20.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content"
xmlns:android="http://schemas.android.com/apk/res/android">
<com.android.keyguard.KeyguardMessageArea android:textAppearance="?android:textAppearance" android:textSize="@dimen/kg_status_line_font_size" android:textColor="#ffffffff" android:ellipsize="marquee" android:gravity="center" android:id="@id/keyguard_message_area" android:clickable="true" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:shadowColor="#7f000000" android:fontFamily="sans-serif" style="@style/keyguard_text_shadow"
xmlns:android="http://schemas.android.com/apk/res/android" />
</LinearLayout>

4. Move alarm icon to Center .

Navigate to Keyguard.apk/res/layout/sec_alarm.xml

See code below (Marked in red zone):

​

Change to the whole line with this code:​

<LinearLayout android:visibility="gone" android:orientation="vertical" android:layout_width="wrap_content" android:layout_height="wrap_content"

5. Download Note4 lockscreen wallpaper from Here

Copy it to : Keyguard.apk/res/drawable-xxhdpi/

6. All done and now Recompile apk .

Copy again Keyguard.apk to System/priv-app by Root explorer ( or etc)​

Special thanks to

: