[Galaxy Note II Themes and Apps] josephpatrick:
Steps for lollipop style lockscreen notification (missed sms and calls only)

steps to decompile and recompile will not be covered...its too difficult to explain to everyone...you can find a lot of posts relating to this broader topic.

1) Decompile secmms.apk. if successful, you need to look for 2 png files in drawable files. 'lock_missedevent_bg.9.png' (original transparent black image) and 'lock_missedevent_default.png' (this the missed event icon that appears in the left side). i found them under "drawable-xxhdpi" folder

2) if you want to get the style i have put in the screenshot, you need to delete 'lock_missedevent_bg.9.png' . You need to replace this with an XML file in "drawable" folder. First you need to get the name of the XML that you need to have. To get this, go to res\layout folder and look for file "messages_lockscreen.xml". in this file, look for the following line.

<?xml version="1.0" encoding="utf-8"?>

<LinearLayout android:orientation="horizontal" android:id="@id/messages_lockscreen_root" android:background="@drawable/lock_missedevent_bg"

Notice the bold section for background file. This matches the file that we deleted in the last step. ignore the .9. at the end of the file name. It is only a different png format.

So, your new XML file that you create in drawable folder should have the name "lock_missedevent_bg.xml" and i have attached the file that you can use (this file was borrowed for copied from one one of the Lollipop style systemui). If you look at the file i have provided, there are 4 values each of 5.0px The original value was 13.0px and that gave the background image the rounded edge.

I tried reducing that to 5.0px to make it more squarish. You can try playing around with different values.

4) Finally, you need to replace 'lock_missedevent_default.PNG' with the one you want. i have attached the one i am using, modified it manually using 2 png's and also modified color.

5) Recompile and sign.

Note: to reduce the width of the background image, maybe you should try modifying this line in "messages_lockscreen.xml" from "fill_parent" for width to some fixed value.

<LinearLayout android:orientation="horizontal" android:id="@id/messages_lockscreen_root" android:background="@drawable/lock_missedevent_bg" android:layout_width="fill_parent" android:layout_height="wrap_content"

update for missed calls (secteleservice)......

procedure remains almost identical except the file names and few png additional files that need to be replaced.

1) decompile secteleservice

2) look for "lock_missedcall.qmg", "lock_missedevent_bg.9.png", "lock_missedevent_profile_01.webp", "noti_event_icon_large_call_missed_carmode.webp". Replace all these with the missed call png attached. Delete the original files, replace each file with the same png file, renaming it each time to match the deleted file (including .webp)

3) Moving to layout folder , look for "contextual_missed_call_photo.xml" and note the following line at the top.

<LinearLayout android:orientation="horizontal" android:id="@id/contextual_missed_call_photo" android:background="@drawable/lock_missedevent_bg" android:layout_width="fill_parent" android:layout_height="wrap_content"

4) the background is a png file, which is the default blank transparent image. I will delete this file "lock_missedevent_bg.9.png" from drawable folder (it could be any one of the drawable folders, for me it was in 'drawable' folder)

5) i need to replace this png with a xml file in the same 'drawable' folder. The name of the xml file will be "lock_missedevent_bg.xml" (have attached sample, in zip file). again you notice the 4 values, default was 13 which i prefer but modified it to 5 for squarish look.

6) Finally, replace "lock_missedcall.qmg" from "drawable-sw360dp-xxxhdpi" folder with the same image of step 2, ensuring that the file name remains the same as original file.

7) Also, perform step 6 for folder "drawable-xxxhdpi" if "lock_missedcall.qmg" exists

8) finally recompile and sign.

Replace both the modified files in system\priv-app with right permissions and reboot.

To avoid overlap of text with the icons, i had to make few changes to margins in "contextual_missed_call_photo.xml" and "messages_lockscreen.xml"

<LinearLayout android:orientation="vertical" android:id="@id/screen_right_layout" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginLeft="13.0dip" android:layout_marginTop="5.0dip" android:layout_marginRight="13.0dip">

You could replace the original line with the one i provided. Both xml files have the same line, i remember changing margin end to margine right and margin start to margin left. Did too many things since i was trying too hard. Use the line i provided and it should be fine.

Hope it is not too complicated....

P.S: the screenshot shows preview of value 5 as well as original value of 13. In actual, it looks much better than the screenshot. Screenshot seems to cut off the right and left ends.

To change the text color of the sms and missed calls from white to black, follow these steps:

in the layout xml files 'contextual_missed_call_photo.xml ' and 'messages_lockscreen.xml ', look for the bold text color and modify all similar lines you find in the file with [MENTION=5711379]ANDROID[/MENTION]:color/black" or "#ff000000" or modify the color to some color from colors.xml that is equal to '#ff000000".

<TextView android:textSize="21.0dip" android:textColor="@color/conversation_item_unread_count_color" android:id="@id/recipient_info" android:layout_width="0.0dip" android:layout_height="wrap_content" android:singleLine="true" android:shadowColor="@color/lock_screen_text_shadow_color" android:shadowDy="2.0" android:layout_weight="1.0" />

<TextView android:textSize="15.0dip" android:textColor="@color/conversation_item_unread_count_color" android:layout_gravity="center_vertical" android:id="@id/unread_count" android:background="@drawable/noti_list_badge" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:includeFontPadding="false" />

-----

<TextView android:textSize="21.0dip" android:textColor= [MENTION=5711379]ANDROID[/MENTION]:color/black" android:id="@id/missed_call_title" android:layout_width="0.0dip" android:layout_height="wrap_content" android:text="@string/notification_missedCallTitle" android:singleLine="true" android:shadowColor="@color/lock_screen_text_shadow_color" android:shadowDy="2.0" android:layout_weight="1.0" />

<TextView android:textSize="15.0dip" android:textColor= [MENTION=5711379]ANDROID[/MENTION]:color/black" android:layout_gravity="center_vertical" android:id="@id/unread_count" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:includeFontPadding="false" android:layout_marginStart="8.0dip" />

You may have 4 such lines in both these XML files. For me, secteleservice had value [MENTION=5711379]ANDROID[/MENTION]:color/white and i changed it to [MENTION=5711379]ANDROID[/MENTION]:color/black'. for secmms, i changed the conversation_item_unread_count_color in colors.xml to 'ff000000"