Showing posts with label hide status bar on lockscreen. Show all posts
Showing posts with label hide status bar on lockscreen. Show all posts

Saturday, 26 December 2015

Hide Status Bar On LockScreen

Tools Required;

1. APKTOOL 1.5.2
2. Signapk/one click signer
3. Notepad ++
4. android.policy.jar

Procedure;

1) Decompile android.policy.jar

2. Open com/android/internal/policy/impl/KeyguardViewManager.smali

3. Search this

.method public declared-synchronized show()V

Scroll down until you see this  0x100800

edit this 0x100800 and change it to like this 0x10900

4. Search this

.method public declared-synchronized show()V

5. Scroll until you see lines like this;

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

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

6. Add these lines below it

     const/4 v2, 0x0

    invoke-virtual {p0, v2}, Lcom/android/internal/policy/impl/KeyguardViewManager;->setStatusBarShow(Z)V

7. Now the whole editted portion looks like this

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

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

     const/4 v2, 0x0

    invoke-virtual {p0, v2}, Lcom/android/internal/policy/impl/KeyguardViewManager;->setStatusBarShow(Z)V

    .line 180
    iget-object v1, p0, Lcom/android/internal/policy/impl/KeyguardViewManager;->mKeyguardView:Lcom/android/internal/policy/impl/KeyguardViewBase;

8. Recompile and sign android.policy.jar

9. Push it to system/framework folder using root explorer.

10. Reboot and enjoy :D