[Galaxy S II Android Development] mythtrandyr:
Hello xda'ers,

I post this thread to help people who want JB AOSP LockScreen in their I9100...

How to:

1. Decompile android.policy.jar and go to smali/com/android/internal/policy/impl/KeyguardViewManager.smali

Green line - add

Red line - delete

or-int/lit8 v1, v1, 0x8

iput v1, v0, Landroid/view/WindowManager$LayoutParams;->privateFlags:I

.line 144
[COLOR="Green"] iget v1, v0, Landroid/view/WindowManager$LayoutParams;->systemUiVisibility:I

or-int/lit8 v1, v1, 0x8

iput v1, v0, Landroid/view/WindowManager$LayoutParams;->systemUiVisibility:I

const/4 v2, 0x1

iput v2, v0, Landroid/view/WindowManager$LayoutParams;->screenOrientation:I

.line 145[/COLOR]
const-string v1, "Keyguard"

invoke-virtual {v0, v1}, Landroid/view/WindowManager$LayoutParams;->setTitle(Ljava/lang/CharSequence;)V

[COLOR="Red"].line 145[/COLOR]
[COLOR="Green"].line 146[/COLOR]
iput-object v0, p0, Lcom/android/internal/policy/impl/KeyguardViewManager;->mWindowLayoutParams:Landroid/view/WindowManager$LayoutParams;

.line 147
iget-object v1, p0, Lcom/android/internal/policy/impl/KeyguardViewManager;->mViewManager:Landroid/view/ViewManager;

iget-object v2, p0, Lcom/android/internal/policy/impl/KeyguardViewManager;->mKeyguardHost:Landroid/widget/FrameLayout;

invoke-interface {v1, v2, v0}, Landroid/view/ViewManager;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

.line 150
.end local v0 #lp:Landroid/view/WindowManager$LayoutParams;
.end local v4 #flags:I
.end local v8 #stretch:I
:cond_5
if-eqz v6, :cond_9

.line 152
iget-object v1, p0, Lcom/android/internal/policy/impl/KeyguardViewManager;->mWindowLayoutParams:Landroid/view/WindowManager$LayoutParams;

[COLOR="Green"]const/4 v2, 0x1[/COLOR]
[COLOR="Red"]const/4 v2, 0x4[/COLOR]

iput v2, v1, Landroid/view/WindowManager$LayoutParams;->screenOrientation:I

.line 158

.line 155
.end local v9 #visFlags:I
:cond_9
:try_start_1
iget-object v1, p0, Lcom/android/internal/policy/impl/KeyguardViewManager;->mWindowLayoutParams:Landroid/view/WindowManager$LayoutParams;

[COLOR="Green"]const/4 v2, 0x1[/COLOR]
[COLOR="Red"]const/4 v2, 0x5[/COLOR]

iput v2, v1, Landroid/view/WindowManager$LayoutParams;->screenOrientation:I
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0

goto/16 :goto_0

.line 110
.end local v6 #enableScreenRotation:Z
.end local v7 #res:Landroid/content/res/Resources;
:catchall_0
move-exception v1

monitor-exit p0

throw v1

.line 184

2. Go to smali/com/android/internal/policy/impl/LockPatternKeyguardView.smali

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

.prologue
.line 1319
[COLOR="Red"]new-instance v0, Lcom/android/internal/policy/impl/sec/CircleLockScreen;[/COLOR]
[COLOR="Green"]new-instance v0, Lcom/android/internal/policy/impl/LockScreen;[/COLOR]

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;

[COLOR="Red"]invoke-direct/range {v0 .. v5}, Lcom/android/internal/policy/impl/sec/CircleLockScreen;-><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[/COLOR]
[COLOR="Green"]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[/COLOR]

.line 1325
.local v0, lockView:Landroid/view/View;
invoke-direct {p0, v0}, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->initializeTransportControlView(Landroid/view/View;)V

.line 1326
return-object v0
.end method

.method public isGlanceScreenVisible()Z
.locals 2

.prologue
.line 633
const-string v0, "LockPatternKeyguardView"

const-string v1, "isGlanceScreenVisible()"

invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

.line 634
const/4 v0, 0x0

return v0
.end method

[COLOR="Red"].method protected onConfigurationChanged(Landroid/content/res/Configuration;)V
.locals 4
.parameter "newConfig"

.prologue
.line 1006
invoke-virtual {p0}, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->getResources()Landroid/content/res/Resources;

move-result-object v0

.line 1007
.local v0, resources:Landroid/content/res/Resources;
const v1, 0x111001f

invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getBoolean(I)Z

move-result v1

iput-boolean v1, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mShowLockBeforeUnlock:Z

.line 1008
iput-object p1, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mConfiguration:Landroid/content/res/Configuration;

.line 1010
invoke-direct {p0}, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->saveWidgetState()V

.line 1013
iget-boolean v1, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mIsWaterRipple:Z

if-eqz v1, :cond_0

.line 1014
const/4 v1, 0x0

iput-boolean v1, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mLockScreenIsReady:Z

.line 1015
const-string v1, "LockPatternKeyguardView"

new-instance v2, Ljava/lang/StringBuilder;

invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

const-string v3, "!!! mLockScreenIsReady = "

invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

move-result-object v2

iget-boolean v3, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mLockScreenIsReady:Z

invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

move-result-object v2

invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

move-result-object v2

invoke-static {v1, v2}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I

.line 1019
:cond_0
iget-object v1, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mRecreateRunnable:Ljava/lang/Runnable;

invoke-virtual {p0, v1}, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->removeCallbacks(Ljava/lang/Runnable;)Z

.line 1020
const-string v1, "LockPatternKeyguardView"

const-string v2, "recreating lockscreen because config changed"

invoke-static {v1, v2}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I

.line 1021
iget-object v1, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mRecreateRunnable:Ljava/lang/Runnable;

invoke-virtual {p0, v1}, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->post(Ljava/lang/Runnable;)Z

.line 1022
return-void
.end method[/COLOR]

.method protected onDetachedFromWindow()V
.locals 2

Recompile android.policy.jar

it's all :)

Download flashable zip for Deodex XXLSJ: View attachment 1533530