[Galaxy Y GT-S5360 General] PineappleOwl:
Good day here I am again with another guide. Since many galaxy y user ask me and told me to teach them how I manage to made the two lockscreen at LenoxEvolutionV2, I made a guide so that they will not PM me every now and then.

Screen shot:

Instruction:

After finishing the guide of pratyush.creed, we will start it. Backup first! We will be modyfing framework.

A. Framework

1. Decompile your framework.jar.

2.Go to com/android/internal/widget/ and paste the file "LockPatternUtils$NotiMode.smali" from the lockscreen_epic_fascinate_lidroidlock.zip I gave.

3. And open the file "LockPatternUtils.smali" from that folder. and modify it

3.a. Below .source "LockPatternUtils.java" add two spaces and from there add this,

# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/android/internal/widget/LockPatternUtils$NotiMode;
}
.end annotation

and it will be like this

.class public Lcom/android/internal/widget/LockPatternUtils;
.super Ljava/lang/Object;
.source "LockPatternUtils.java"

[COLOR="Red"]# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/android/internal/widget/LockPatternUtils$NotiMode;
}
.end annotation[/COLOR]

# static fields
.field public static final FAILED_ATTEMPTS_BEFORE_RESET:I = 0x14

.field public static final FAILED_ATTEMPTS_BEFORE_TIMEOUT:I = 0x5

.field public static final FAILED_ATTEMPT_COUNTDOWN_INTERVAL_MS:J = 0x3e8L

3.b. Now below the "# virtual method"

add these

.method public getIntentMissedEvent(Lcom/android/internal/widget/LockPatternUtils$NotiMode;)Landroid/app/PendingIntent;
.locals 7
.parameter "mode"

.prologue
const/4 v6, 0x0

.line 1304
const/4 v0, -0x1

.line 1305
.local v0, index:I
const/4 v3, 0x1

.line 1306
.local v3, reqNum:I
const-string v2, "com.android.phone"

.line 1309
.local v2, pkg:Ljava/lang/String;
iget-object v4, p0, Lcom/android/internal/widget/LockPatternUtils;->mContext:Landroid/content/Context;

const-string v5, "notification"

invoke-virtual {v4, v5}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

move-result-object v1

check-cast v1, Landroid/app/NotificationManager;

.line 1312
.local v1, mNM:Landroid/app/NotificationManager;
sget-object v4, Lcom/android/internal/widget/LockPatternUtils$NotiMode;->MissedCall:Lcom/android/internal/widget/LockPatternUtils$NotiMode;

if-ne p1, v4, :cond_0

const-string v2, "com.android.phone"

.line 1317
:goto_0
invoke-virtual {v1, v2, v3}, Landroid/app/NotificationManager;->getEventIndexWithReq(Ljava/lang/String;I)I

move-result v0

.line 1319
const/4 v4, -0x1

if-ne v0, v4, :cond_3

move-object v4, v6

.line 1320
:goto_1
return-object v4

.line 1313
:cond_0
sget-object v4, Lcom/android/internal/widget/LockPatternUtils$NotiMode;->MissedMsg:Lcom/android/internal/widget/LockPatternUtils$NotiMode;

if-ne p1, v4, :cond_1

const-string v2, "com.android.mms"

const/16 v3, 0x7b

goto :goto_0

.line 1314
:cond_1
sget-object v4, Lcom/android/internal/widget/LockPatternUtils$NotiMode;->MissedEMail:Lcom/android/internal/widget/LockPatternUtils$NotiMode;

if-ne p1, v4, :cond_2

const-string v2, "com.android.email"

goto :goto_0

:cond_2
move-object v4, v6

.line 1315
goto :goto_1

.line 1320
:cond_3
invoke-virtual {v1, v0}, Landroid/app/NotificationManager;->getEventIntent(I)Landroid/app/PendingIntent;

move-result-object v4

goto :goto_1
.end method

.method public getNumMissedEvent(Lcom/android/internal/widget/LockPatternUtils$NotiMode;)I
.locals 8
.parameter "mode"

.prologue
const/4 v7, 0x0

.line 1330
const/4 v1, -0x1

.line 1331
.local v1, index:I
const/4 v4, 0x1

.line 1332
.local v4, reqNum:I
const/4 v0, 0x0

.line 1333
.local v0, count:I
const-string v3, "com.android.phone"

.line 1335
.local v3, pkg:Ljava/lang/String;
iget-object v5, p0, Lcom/android/internal/widget/LockPatternUtils;->mContext:Landroid/content/Context;

const-string v6, "notification"

invoke-virtual {v5, v6}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

move-result-object v2

check-cast v2, Landroid/app/NotificationManager;

.line 1336
.local v2, mNM:Landroid/app/NotificationManager;
if-nez v2, :cond_0

move v5, v7

.line 1353
:goto_0
return v5

.line 1340
:cond_0
sget-object v5, Lcom/android/internal/widget/LockPatternUtils$NotiMode;->MissedCall:Lcom/android/internal/widget/LockPatternUtils$NotiMode;

if-ne p1, v5, :cond_1

const-string v3, "com.android.phone"

.line 1345
:goto_1
invoke-virtual {v2, v3, v4}, Landroid/app/NotificationManager;->getEventIndexWithReq(Ljava/lang/String;I)I

move-result v1

.line 1349
const/4 v5, -0x1

if-ne v1, v5, :cond_4

move v5, v7

goto :goto_0

.line 1341
:cond_1
sget-object v5, Lcom/android/internal/widget/LockPatternUtils$NotiMode;->MissedMsg:Lcom/android/internal/widget/LockPatternUtils$NotiMode;

if-ne p1, v5, :cond_2

const-string v3, "com.android.mms"

const/16 v4, 0x7b

goto :goto_1

.line 1342
:cond_2
sget-object v5, Lcom/android/internal/widget/LockPatternUtils$NotiMode;->MissedEMail:Lcom/android/internal/widget/LockPatternUtils$NotiMode;

if-ne p1, v5, :cond_3

const-string v3, "com.android.email"

goto :goto_1

:cond_3
move v5, v7

.line 1343
goto :goto_0

.line 1351
:cond_4
invoke-virtual {v2, v1}, Landroid/app/NotificationManager;->getEventCount(I)I

move-result v0

move v5, v0

.line 1353
goto :goto_0
.end method

4. Save it and recopile your framework.jar

B. Android.policy.jar

1. Decompile your android.policy.jar

2. Go to this folder "com/android/internal/policy/impl/" of yours and copy the files from my lockscreen_epic_fascinate_lidr…idlock.zip at the folder android.policy and paste it in.

3. After pasting it, open your "LockPatternKeyguardView.smali" inside "com/android/internal/policy/impl/"

and find these method

.method createLockScreen()Landroid/view/View;

Replace the method to the method i modified

.method createLockScreen()Landroid/view/View;
.locals 6

.prologue
.line 890
const/4 v2, 0x0

const/4 v0, 0x0

iget-object v3, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mContext:Landroid/content/Context;

invoke-virtual {v3}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v3

const-string v4, "lockscreen_style_pref"

invoke-static {v3, v4, v2}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

move-result v0

const/4 v2, 0x1

if-eq v2, v0, :cond_3

const/4 v2, 0x2

if-eq v2, v0, :cond_3

const/4 v2, 0x3

if-eq v2, v0, :cond_3

const/4 v2, 0x4

if-eq v2, v0, :cond_3

const/4 v2, 0x5

if-eq v2, v0, :cond_3

if-eqz v0, :cond_0

.line 869
const/4 v2, 0x0

const/4 v0, 0x0

iget-object v3, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mContext:Landroid/content/Context;

invoke-virtual {v3}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v3

const-string v4, "lockscreen_style_pref"

invoke-static {v3, v4, v2}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

move-result v0

const/4 v2, 0x6

if-eq v2, v0, :cond_2

const/4 v2, 0x7

if-eq v2, v0, :cond_1

const v2, 0x8

if-eq v2, v0, :cond_6

const v2, 0x9

if-eq v2, v0, :cond_7

:cond_0
new-instance v0, Lcom/android/internal/policy/impl/LockScreen;

iget-object v1, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mContext:Landroid/content/Context;

iget-object v2, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mConfiguration:Landroid/content/res/Configuration;

iget-object v3, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mLockPatternUtils:Lcom/android/internal/widget/LockPatternUtils;

iget-object v4, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mUpdateMonitor:Lcom/android/internal/policy/impl/KeyguardUpdateMonitor;

iget-object v5, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mKeyguardScreenCallback:Lcom/android/internal/policy/impl/KeyguardScreenCallback;

invoke-direct/range {v0 .. v5}, Lcom/android/internal/policy/impl/LockScreen;-><init>(Landroid/content/Context;Landroid/content/res/Configuration;Lcom/android/internal/widget/LockPatternUtils;Lcom/android/internal/policy/impl/KeyguardUpdateMonitor;Lcom/android/internal/policy/impl/KeyguardScreenCallback;)V

goto :goto_0

:cond_1
new-instance v0, Lcom/android/internal/policy/impl/LockScreen;

iget-object v1, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mContext:Landroid/content/Context;

iget-object v2, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mConfiguration:Landroid/content/res/Configuration;

iget-object v3, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mLockPatternUtils:Lcom/android/internal/widget/LockPatternUtils;

iget-object v4, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mUpdateMonitor:Lcom/android/internal/policy/impl/KeyguardUpdateMonitor;

iget-object v5, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mKeyguardScreenCallback:Lcom/android/internal/policy/impl/KeyguardScreenCallback;

invoke-direct/range {v0 .. v5}, Lcom/android/internal/policy/impl/LockScreen;-><init>(Landroid/content/Context;Landroid/content/res/Configuration;Lcom/android/internal/widget/LockPatternUtils;Lcom/android/internal/policy/impl/KeyguardUpdateMonitor;Lcom/android/internal/policy/impl/KeyguardScreenCallback;)V

goto :goto_0

:cond_2
iget-boolean v0, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->GLASSLOCK_MODE:Z

if-eqz v0, :cond_4

.line 891
new-instance v0, Lcom/android/internal/policy/impl/GlassLockScreen;

iget-object v1, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mContext:Landroid/content/Context;

iget-object v2, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mConfiguration:Landroid/content/res/Configuration;

iget-object v3, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mLockPatternUtils:Lcom/android/internal/widget/LockPatternUtils;

iget-object v4, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mUpdateMonitor:Lcom/android/internal/policy/impl/KeyguardUpdateMonitor;

iget-object v5, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mKeyguardScreenCallback:Lcom/android/internal/policy/impl/KeyguardScreenCallback;

invoke-direct/range {v0 .. v5}, Lcom/android/internal/policy/impl/GlassLockScreen;-><init>(Landroid/content/Context;Landroid/content/res/Configuration;Lcom/android/internal/widget/LockPatternUtils;Lcom/android/internal/policy/impl/KeyguardUpdateMonitor;Lcom/android/internal/policy/impl/KeyguardScreenCallback;)V

.line 905
:goto_0
return-object v0

:cond_3
new-instance v0, Lcom/android/internal/policy/impl/CyanogenLockScreen;

iget-object v1, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mContext:Landroid/content/Context;

iget-object v2, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mConfiguration:Landroid/content/res/Configuration;

iget-object v3, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mLockPatternUtils:Lcom/android/internal/widget/LockPatternUtils;

iget-object v4, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mUpdateMonitor:Lcom/android/internal/policy/impl/KeyguardUpdateMonitor;

iget-object v5, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mKeyguardScreenCallback:Lcom/android/internal/policy/impl/KeyguardScreenCallback;

invoke-direct/range {v0 .. v5}, Lcom/android/internal/policy/impl/CyanogenLockScreen;-><init>(Landroid/content/Context;Landroid/content/res/Configuration;Lcom/android/internal/widget/LockPatternUtils;Lcom/android/internal/policy/impl/KeyguardUpdateMonitor;Lcom/android/internal/policy/impl/KeyguardScreenCallback;)V

goto :goto_0

.line 897
:cond_4
iget-boolean v0, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->CIRCLELOCK_MODE:Z

if-eqz v0, :cond_5

.line 898
new-instance v0, Lcom/android/internal/policy/impl/GlassLockScreen;

iget-object v1, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mContext:Landroid/content/Context;

iget-object v2, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mConfiguration:Landroid/content/res/Configuration;

iget-object v3, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mLockPatternUtils:Lcom/android/internal/widget/LockPatternUtils;

iget-object v4, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mUpdateMonitor:Lcom/android/internal/policy/impl/KeyguardUpdateMonitor;

iget-object v5, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mKeyguardScreenCallback:Lcom/android/internal/policy/impl/KeyguardScreenCallback;

invoke-direct/range {v0 .. v5}, Lcom/android/internal/policy/impl/GlassLockScreen;-><init>(Landroid/content/Context;Landroid/content/res/Configuration;Lcom/android/internal/widget/LockPatternUtils;Lcom/android/internal/policy/impl/KeyguardUpdateMonitor;Lcom/android/internal/policy/impl/KeyguardScreenCallback;)V

goto :goto_0

.line 905
:cond_5
new-instance v0, Lcom/android/internal/policy/impl/LockScreen;

iget-object v1, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mContext:Landroid/content/Context;

iget-object v2, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mConfiguration:Landroid/content/res/Configuration;

iget-object v3, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mLockPatternUtils:Lcom/android/internal/widget/LockPatternUtils;

iget-object v4, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mUpdateMonitor:Lcom/android/internal/policy/impl/KeyguardUpdateMonitor;

iget-object v5, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mKeyguardScreenCallback:Lcom/android/internal/policy/impl/KeyguardScreenCallback;

invoke-direct/range {v0 .. v5}, Lcom/android/internal/policy/impl/LockScreen;-><init>(Landroid/content/Context;Landroid/content/res/Configuration;Lcom/android/internal/widget/LockPatternUtils;Lcom/android/internal/policy/impl/KeyguardUpdateMonitor;Lcom/android/internal/policy/impl/KeyguardScreenCallback;)V

goto :goto_0

:cond_6
new-instance v0, Lcom/android/internal/policy/impl/EpicLockScreen;

iget-object v1, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mContext:Landroid/content/Context;

iget-object v2, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mLockPatternUtils:Lcom/android/internal/widget/LockPatternUtils;

iget-object v3, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mUpdateMonitor:Lcom/android/internal/policy/impl/KeyguardUpdateMonitor;

iget-object v4, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mKeyguardScreenCallback:Lcom/android/internal/policy/impl/KeyguardScreenCallback;

invoke-direct {v0, v1, v2, v3, v4}, Lcom/android/internal/policy/impl/EpicLockScreen;-><init>(Landroid/content/Context;Lcom/android/internal/widget/LockPatternUtils;Lcom/android/internal/policy/impl/KeyguardUpdateMonitor;Lcom/android/internal/policy/impl/KeyguardScreenCallback;)V

goto :goto_0

:cond_7
new-instance v0, Lcom/android/internal/policy/impl/FascinateLockScreen;

iget-object v1, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mContext:Landroid/content/Context;

iget-object v2, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mLockPatternUtils:Lcom/android/internal/widget/LockPatternUtils;

iget-object v3, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mUpdateMonitor:Lcom/android/internal/policy/impl/KeyguardUpdateMonitor;

iget-object v4, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mKeyguardScreenCallback:Lcom/android/internal/policy/impl/KeyguardScreenCallback;

invoke-direct {v0, v1, v2, v3, v4}, Lcom/android/internal/policy/impl/FascinateLockScreen;-><init>(Landroid/content/Context;Lcom/android/internal/widget/LockPatternUtils;Lcom/android/internal/policy/impl/KeyguardUpdateMonitor;Lcom/android/internal/policy/impl/KeyguardScreenCallback;)V

goto :goto_0
.end method

4. Save your modified LockPaternKeyguardView.smali and recompile it

C. Flashing

at the app folder add thee following

-Lidroid Parts

at the lidroid folder add thee following

-lidroid-res.apk

-framework.jar

-android.policy.jar

Happy modding hope it helps you. :))

Credits to:

lidroid@xda

pratyush.creed@xda

d3cka@xda

Special thanks to:

LenoxDevs

GTroops

SGY.ph

Greets,

PineappleOwl@xda