[Sony Xperia M2] Dzepar:
Hi

As promise to [MENTION=6708791]tromine[/MENTION] this is simple tutorial that change lockscreen Hour style to bold :D

What You Need:

1. APK Tool for decompiling (i use TMA and Thanks go to Ticklefish)

2. Stock Sony 18.6.A.0.175 rom installed and odex

3. Patience & Time

Lets Start.

First pull: SystemUI, framework-res and SemcGenericUxpRes ( Res are needed so you can properly decompile SystemUI)

Decompile SystemUI and go to SystemUI.apk\res\values folder open styles.xml

Find:

<style name="somc_sony_clock_hour_style" parent="@style/SonyClockBaseStyle">
<item name="android:textSize">@dimen/somc_sony_clock_hour_digit_size</item>
<item name="android:maxLines">1</item>
<item name="android:fontFamily">x-sst</item>
</style>
<style name="somc_sony_clock_minute_style" parent="@style/SonyClockBaseStyle">
<item name="android:textSize">@dimen/somc_sony_clock_minute_digit_size</item>
<item name="android:maxLines">1</item>
<item name="android:fontFamily">x-sst</item>

"somc_sony_clock_hour_style" controls Hour numbers

"somc_sony_clock_minute_style" control Min numbers

Add this line:

At "clock_hour_style"

<item name="android:textStyle">bold</item>

under

<item name="android:textSize">@dimen/somc_sony_clock_hour_digit_size</item>

At "clock_minute_style" change:

<item name="android:fontFamily">x-sst</item>

To

<item name="android:fontFamily">x-sst-light</item>

Now save and you can recompile.

If you want to change size of clock go to SystemUI.apk\res\values open dimens.xml

This are sizes for clock:

<dimen name="somc_sony_clock_hour_digit_size">114.0dip</dimen>
<dimen name="somc_sony_clock_minute_digit_size">108.0dip</dimen>

I changed my like this:

<dimen name="somc_sony_clock_hour_digit_size">94.0dip</dimen>
<dimen name="somc_sony_clock_minute_digit_size">94.0dip</dimen>

So it look smaller :D

[MENTION=4318169]psichokillah[/MENTION] want to get rid of the clock on the lockscreen. Is it possible?

The Answer is Yes. ;)

Go to SystemUI.apk\res\layout\somc_sony_clock_view.xml

On First line:

<?xml version="1.0" encoding="utf-8"?>
<com.sonymobile.keyguard.plugin.sonyclock.SonyClock android:layout_gravity="center_horizontal" android:orientation="vertical" android:id="@id/sony_clock_root" android:layout_width="wrap_content" android:layout_height="wrap_content"
xmlns:android="http://schemas.android.com/apk/res/android">

Add (android:visibility="invisible") after android:id="@id/sony_clock_root" so it look like this:

<?xml version="1.0" encoding="utf-8"?>
<com.sonymobile.keyguard.plugin.sonyclock.SonyClock android:layout_gravity="center_horizontal" android:orientation="vertical" android:id="@id/sony_clock_root" android:visibility="invisible" android:layout_width="wrap_content" android:layout_height="wrap_content"
xmlns:android="http://schemas.android.com/apk/res/android">

Save, recompile Push apk to system. :)

P.S. zips are NOT flashable copy/push them your choice.

How to Install:

1. Copy moded SysteUI to sd_card

2. Reboot to PhilZ_Touch recovery

3. Go to "Mounts and Storage

- mount /system ++Go Back++

Advanced Functions->Aroma File Manager

4. Select sdcard

5. Press and hold SystemUI->copy->Go back

6. Select: system->priv-app->SystemUI (Paste here and Overwrite)

Note: If permession is not rw-r--r-- select SystemUI.apk->menu->Change Permission to (User:read/write, Group:read, Others:read)

- Exit Aroma FM

- Wipe Cache and Dalvik/ART Cache

7. Reboot System Now