[Sony Cross-Device Development Themes and Apps] MarianaLovegood:
Hi everyone, I never really liked the shape that the analogue clock from the lockscreen had so I gave a try to make it less squarey and more circular... And now I wanted to share it with you... Try it AT YOUR OWN RISK, always make a Backup first.

​

What you need:

- Advanced ApkTool installed (Java installed as well, so ApkTool can work)

- Notepad++

- SystemUI (you can get it at system/priv app/systemui)

- Make a Nandroid Backup just in case (it never hurts to make one)

- Knowledge on compiling and recompiling

- Follow my guide patiently and carefully :)

Instructions:

Decompile SystemUI.apk and go to res/values/dimens.xml

Search for this

<dimen name="somc_analog_clock_ellipse_depth_full_size">10.0dip</dimen>
<dimen name="somc_analog_clock_ellipse_depth_smaller">9.5dip</dimen>
<dimen name="somc_analog_clock_ellipse_depth_larger">11.0dip</dimen>
<dimen name="somc_analog_clock_hour_hand_length_full_size">55.0dip</dimen>
<dimen name="somc_analog_clock_hour_hand_length_smaller">52.25dip</dimen>
<dimen name="somc_analog_clock_hour_hand_length_larger">60.5dip</dimen>
<dimen name="somc_analog_clock_hour_hand_thickness_full_size">6.5dip</dimen>
<dimen name="somc_analog_clock_hour_hand_thickness_smaller">6.174988dip</dimen>
<dimen name="somc_analog_clock_hour_hand_thickness_larger">7.0999756dip</dimen>
<dimen name="somc_analog_clock_minute_hand_length_full_size">95.0dip</dimen>
<dimen name="somc_analog_clock_minute_hand_length_smaller">90.25dip</dimen>
<dimen name="somc_analog_clock_minute_hand_length_larger">104.5dip</dimen>
<dimen name="somc_analog_clock_minute_hand_thickness_full_size">3.25dip</dimen>
<dimen name="somc_analog_clock_minute_hand_thickness_smaller">3.087494dip</dimen>
<dimen name="somc_analog_clock_minute_hand_thickness_larger">3.5749817dip</dimen>

And change those with the following lines (you can copy and paste)

<dimen name="somc_analog_clock_ellipse_depth_full_size">2.0dip</dimen>
<dimen name="somc_analog_clock_ellipse_depth_smaller">1.5dip</dimen>
<dimen name="somc_analog_clock_ellipse_depth_larger">1.0dip</dimen>
<dimen name="somc_analog_clock_hour_hand_length_full_size">50.0dip</dimen>
<dimen name="somc_analog_clock_hour_hand_length_smaller">50.0dip</dimen>
<dimen name="somc_analog_clock_hour_hand_length_larger">50.5dip</dimen>
<dimen name="somc_analog_clock_hour_hand_thickness_full_size">4.5dip</dimen>
<dimen name="somc_analog_clock_hour_hand_thickness_smaller">4.174988dip</dimen>
<dimen name="somc_analog_clock_hour_hand_thickness_larger">4.0999756dip</dimen>
<dimen name="somc_analog_clock_minute_hand_length_full_size">70.0dip</dimen>
<dimen name="somc_analog_clock_minute_hand_length_smaller">70.25dip</dimen>
<dimen name="somc_analog_clock_minute_hand_length_larger">70.5dip</dimen>
<dimen name="somc_analog_clock_minute_hand_thickness_full_size">1.25dip</dimen>
<dimen name="somc_analog_clock_minute_hand_thickness_smaller">1.0874939dip</dimen>
<dimen name="somc_analog_clock_minute_hand_thickness_larger">1.5749817dip</dimen>

Search for this

<dimen name="somc_analog_clock_tick_radius_full_size">127.0dip</dimen>
<dimen name="somc_analog_clock_tick_radius_smaller">120.649994dip</dimen>
<dimen name="somc_analog_clock_tick_radius_larger">139.69998dip</dimen>
<dimen name="somc_analog_clock_tick_width_full_size">2.0dip</dimen>
<dimen name="somc_analog_clock_tick_width_smaller">1.8999939dip</dimen>
<dimen name="somc_analog_clock_tick_width_larger">2.1999817dip</dimen>
<dimen name="somc_analog_clock_center_size_full_size">33.0dip</dimen>
<dimen name="somc_analog_clock_center_size_smaller">31.349976dip</dimen>
<dimen name="somc_analog_clock_center_size_larger">36.299988dip</dimen>
<dimen name="somc_analog_clock_center_stroke_width_full_size">2.0dip</dimen>
<dimen name="somc_analog_clock_center_stroke_width_smaller">1.8999939dip</dimen>
<dimen name="somc_analog_clock_center_stroke_width_larger">2.1999817dip</dimen>

And replace with this

<dimen name="somc_analog_clock_tick_radius_full_size">115.0dip</dimen>
<dimen name="somc_analog_clock_tick_radius_smaller">115.649994dip</dimen>
<dimen name="somc_analog_clock_tick_radius_larger">115.69998dip</dimen>
<dimen name="somc_analog_clock_tick_width_full_size">2.0dip</dimen>
<dimen name="somc_analog_clock_tick_width_smaller">1.8999939dip</dimen>
<dimen name="somc_analog_clock_tick_width_larger">2.1999817dip</dimen>
<dimen name="somc_analog_clock_center_size_full_size">10.0dip</dimen>
<dimen name="somc_analog_clock_center_size_smaller">10.0dip</dimen>
<dimen name="somc_analog_clock_center_size_larger">10.0dip</dimen>
<dimen name="somc_analog_clock_center_stroke_width_full_size">1.0dip</dimen>
<dimen name="somc_analog_clock_center_stroke_width_smaller">1.0dip</dimen>
<dimen name="somc_analog_clock_center_stroke_width_larger">1.0dip</dimen>

Save the changes and recompile SystemUI, push it to its respective folder in system/priv app giving the correct permissions (rw-r-r) and reboot device.

So far I tested in my Xperia Z3 and my Xperia Z1 Compact but I'm guessing it can work for all Xperias running Lollipop... Very important, before trying anything ALWAYS MAKE A BACKUP.

I added pics at the bottom, first is the stock lockscreen clock and second is the modified one.

Hope you guys liked it, please hit the Thanks button if you found my job useful :highfive: