[Galaxy Y GT-S5360 General] tentenponce:
Customizable remodified CM lock music controls + Information​

Updated (Read):

Fullscreen AlbumArt

Moving trackname if it is long (credits to sir El Uyuz Gwapo@fb, Bhevz Cailao

@fb and lenar celino@fb)

Bugs:if you find one, feel free to report :)

NOTE: Tested on Gingerbread version DXLF baseband. Still not sure if will work on other version, you can give it a try but i dont have the responsibility on bricking/damaging your phone ::p

ScreenShot:

What you need

- Basic xml techniques

- Decompile recompile skills

- android.policy.jar

- framework-res.apk

- SystemUI.apk

1.) Decompile android.policy.jar.

2.) Download MusicInfo.zip in attachment and extract it to smali folder.

3.) Decompile framework-res.apk.

4.) open res/layout/zzz_keyguard_screen_clockwidget.xml below:

<view android:gravity="center" android:orientation="vertical" android:id="@id/clock_time_and_date" android:layout_width="fill_parent" android:layout_height="wrap_content" class="com.android.internal.policy.impl.ClockWidget$TimeAndDate">

[COLOR="Red"]<LinearLayout android:gravity="center_horizontal" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
<com.tenten.AlbumArt android:layout_width="100.0dip" android:layout_height="100.0dip" android:scaleType="fitCenter" />
<com.tenten.trackname android:textColor="#ffffffff" android:ellipsize="marquee" android:gravity="center_horizontal" android:background="#00000000" android:paddingLeft="10.0dip" android:paddingRight="10.0dip" android:focusable="true" android:focusableInTouchMode="true" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:marqueeRepeatLimit="marquee_forever" />
<com.tenten.MusicControl android:gravity="center_horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content">
<com.tenten.prev android:layout_marginRight="10.0px" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<com.tenten.play android:layout_gravity="center_horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<com.tenten.next android:layout_marginLeft="10.0px" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</com.tenten.MusicControl>
</LinearLayout>[/COLOR]

<view android:gravity="center" android:orientation="vertical" android:id="@id/clock_time_and_date" android:layout_width="fill_parent" android:layout_height="wrap_content" class="com.android.internal.policy.impl.ClockWidget$TimeAndDate">
[COLOR="Red"]<LinearLayout android:gravity="center_horizontal" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
<com.tenten.AlbumArt android:layout_width="100.0dip" android:layout_height="100.0dip" android:scaleType="fitCenter" />
<com.tenten.trackname android:layout_width="wrap_content" android:layout_height="wrap_content" android:paddingLeft="10.0px" android:paddingRight="10.0px" android:singleLine="true" />
<com.tenten.MusicControl android:gravity="center_horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content">
<com.tenten.prev android:layout_marginRight="10.0px" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<com.tenten.play android:layout_gravity="center_horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<com.tenten.next android:layout_marginLeft="10.0px" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</com.tenten.MusicControl>
</LinearLayout>[/COLOR]
<LinearLayout android:gravity="center" android:layout_width="wrap_content" android:layout_height="25.0dip">
<ImageView android:id="@id/zzz_hour01" android:layout_width="17.0dip" android:layout_height="25.0dip" />
<ImageView android:id="@id/zzz_hour02" android:layout_width="17.0dip" android:layout_height="25.0dip" />
<ImageView android:id="@id/zzz_colon01" android:layout_width="17.0dip" android:layout_height="25.0dip" android:src="@drawable/zzz_unlock_clock_colon" />
<ImageView android:id="@id/zzz_minute01" android:layout_width="17.0dip" android:layout_height="25.0dip" />
<ImageView android:id="@id/zzz_minute02" android:layout_width="17.0dip" android:layout_height="25.0dip" />
</LinearLayout>
<LinearLayout android:layout_gravity="bottom" android:orientation="vertical" android:layout_width="0.0dip" android:layout_height="0.0dip">
<TextView android:textSize="0.0dip" android:typeface="sans" android:textColor="#ffffffff" android:id="@id/zzz_ampm" android:layout_width="0.0dip" android:layout_height="0.0dip" android:shadowColor="@color/black" android:shadowDx="1.0" android:shadowDy="1.0" android:shadowRadius="1.0" />
</LinearLayout>
<TextView android:textSize="20.0sp" android:typeface="sans" android:textColor="#ffffffff" android:id="@id/zzz_date_month" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="2.0dip" android:shadowColor="@color/black" android:shadowDx="1.0" android:shadowDy="1.0" android:shadowRadius="1.0" />
</view>

5.) Add a png in res/drawable folder and name it: default_music_logo.

6.) Recompile framework-res.apk and decompile it again.

7.) Go to res/values/public.xml and find this line:

<public type="drawable" name="default_music_logo" id="[COLOR="Red"]ImportantID[/COLOR]" />

8.) Remember the important ID. Go back again to your android.policy.jar and open smali/com/tenten/AlbumArt.smali.

9.) Find this line:

const v2, 0x1080411

10.) Replace 0x1080411 with your ImportantID BUT remove the 0 next to x. (Example: 0x01234567 to 0x1234567)

const v2, [COLOR="red"]ImportantID[/COLOR]

11.) Recompile framework-res.apk and android.policy.jar.

12.) Decompile SystemUI.apk.

13.) Download UI_MusicInfo.zip in attachment and extract it to smali folder.

14.) Go to res/layout/status_bar.xml and below:

xmlns:android="http://schemas.android.com/apk/res/android">

[COLOR="red"]<com.tenten.MusicHelper android:layout_width="0.0dip" android:layout_height="0.0dip" />[/COLOR]

<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.LenoxStatusBarView android:orientation="vertical" android:background="#ff000000" android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:orientation="horizontal" android:id="@id/icons" android:layout_width="fill_parent" android:layout_height="fill_parent">
[COLOR="red"]<com.tenten.MusicHelper android:layout_width="0.0dip" android:layout_height="0.0dip" />[/COLOR]

15.) Recompile SystemUI.apk.

16.) Finally, zip your recompiled android.policy.jar, framework-res.apk, SystemUI.apk and flash it.

17.) download and Install CustomizableParts.apk in attachment to control the informations :D

18.) If it works, jump. If no, tell me ;)

Description: Fullscreen Album art in lockscreen like kitkat, all lockscreens are affected except circle lock. (It has no main layout :crying:) Sorry but no screenshot, you can imagine it by the title itself. :D (But actually, Im lazy. xD )

NOTE: This will work on lockscreens that has mainlayout and its main parent must be relativelayout.

1.) Open all of these layouts on framework-res/res/layout:

keyguard_screen_password_portrait.xml

keyguard_screen_tab_unlock.xml

keyguard_screen_unlock_portrait.xml

2.) then do this in the three layout that you have opened:

<com.tenten.AlbumArt android:layout_width="240.0px" android:layout_height="320.0px" android:background="#ff000000" android:scaleType="centerInside" />

xmlns:android="http://schemas.android.com/apk/res/android">

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout android:id="@id/patternlockscreenwallpaper_root" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<com.tenten.AlbumArt android:layout_width="240.0px" android:layout_height="320.0px" android:background="#ff000000" android:scaleType="centerInside" />

NOTE: In keyguard_screen_tab_unlock.xml, it must be below xmlns:tabunlock="http://schemas.android.com/apk/res/com.android.tabunlock">

3.) Save them and close, Then open zzz_keyguard_screen_lockscreenwallpaper.xml

4.) Then again:

<com.tenten.AlbumArt android:layout_width="240.0px" android:layout_height="320.0px" android:background="#ff000000" android:scaleType="centerInside" />

<ImageView android:id="@id/lockscreenwallpaper_image" android:layout_width="fill_parent" android:layout_height="fill_parent" android:scaleType="fitXY" />

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout android:id="@id/lockscreenwallpaper_root" android:background="#80000000" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<ImageView android:id="@id/lockscreenwallpaper_image" android:layout_width="fill_parent" android:layout_height="fill_parent" android:scaleType="fitXY" />
<com.tenten.AlbumArt android:layout_width="240.0px" android:layout_height="320.0px" android:background="#ff000000" android:scaleType="centerInside" />
</RelativeLayout>

5.) Save again all then recompile your framework-res

6.) Flash to obtain kitkat mode.

PS: Need help? Go to 2nd post.

Java Source: https://github.com/tentenponce/Music_Info_on_Lockscreen

CREDITS​

PineappleOwl@xda

CyanogenMod

AOSP

StackOverflow.com

Lenox Devs

Potato Inc

SpaceCaker@xda for inspiring me on his music lock controls :)​