[Android Apps and Games] gharrington:
Extra Guides to improve mod more

How to hide clock on lockscreen

Navigate to SystemUI/smali/com/android/systemui/statusbar/phone and open StatusBarIconController

Look for

.field private mLinearOutSlowIn:Landroid/view/animation/Interpolator;

around line 61

directly after this add

.field private mMinitClock:Lcom/android/systemui/statusbar/policy/MinitClock;

Find the constructor around line 111

.method public constructor <init>(Landroid/content/Context;Landroid/view/View;Landroid/view/View;Lcom/android/systemui/statusbar/phone/PhoneStatusBar;)V

and before it returns add

invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

move-result-object v0

const-string v1, "minitclock"

const-string v2, "id"

invoke-virtual {p1}, Landroid/content/Context;->getPackageName()Ljava/lang/String;

move-result-object v3

invoke-virtual {v0, v1, v2, v3}, Landroid/content/res/Resources;->getIdentifier(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)I

move-result v0

invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

move-result-object v0

check-cast v0, Lcom/android/systemui/statusbar/policy/MinitClock;

iput-object v0, p0, Lcom/android/systemui/statusbar/phone/StatusBarIconController;->mMinitClock:Lcom/android/systemui/statusbar/policy/MinitClock;

Find the method

.method private animateHide(Landroid/view/View;Z)V

Replace the whole method with

.method private animateHide(Landroid/view/View;Z)V
.locals 8
.param p1, "v" # Landroid/view/View;
.param p2, "flag" # Z

.prologue
const-wide/16 v6, 0xa0

const-wide/16 v4, 0x0

const/4 v2, 0x0

.line 38
invoke-virtual {p1}, Landroid/view/View;->animate()Landroid/view/ViewPropertyAnimator;

move-result-object v0

invoke-virtual {v0}, Landroid/view/ViewPropertyAnimator;->cancel()V

.line 39
iget-object v0, p0, Lcom/android/systemui/statusbar/phone/StatusBarIconController;->mMinitClock:Lcom/android/systemui/statusbar/policy/MinitClock;

invoke-virtual {v0}, Lcom/android/systemui/statusbar/policy/MinitClock;->animate()Landroid/view/ViewPropertyAnimator;

move-result-object v0

invoke-virtual {v0}, Landroid/view/ViewPropertyAnimator;->cancel()V

.line 41
if-nez p2, :cond_0

.line 42
invoke-virtual {p1, v2}, Landroid/view/View;->setAlpha(F)V

.line 43
const/4 v0, 0x4

invoke-virtual {p1, v0}, Landroid/view/View;->setVisibility(I)V

.line 44
iget-object v0, p0, Lcom/android/systemui/statusbar/phone/StatusBarIconController;->mMinitClock:Lcom/android/systemui/statusbar/policy/MinitClock;

invoke-virtual {v0, v2}, Lcom/android/systemui/statusbar/policy/MinitClock;->setAlpha(F)V

.line 45
iget-object v0, p0, Lcom/android/systemui/statusbar/phone/StatusBarIconController;->mMinitClock:Lcom/android/systemui/statusbar/policy/MinitClock;

const/16 v1, 0x8

invoke-virtual {v0, v1}, Lcom/android/systemui/statusbar/policy/MinitClock;->setVisibility(I)V

.line 63
:goto_0
return-void

.line 48
:cond_0
invoke-virtual {p1}, Landroid/view/View;->animate()Landroid/view/ViewPropertyAnimator;

move-result-object v0

invoke-virtual {v0, v2}, Landroid/view/ViewPropertyAnimator;->alpha(F)Landroid/view/ViewPropertyAnimator;

move-result-object v0

invoke-virtual {v0, v6, v7}, Landroid/view/ViewPropertyAnimator;->setDuration(J)Landroid/view/ViewPropertyAnimator;

move-result-object v0

invoke-virtual {v0, v4, v5}, Landroid/view/ViewPropertyAnimator;->setStartDelay(J)Landroid/view/ViewPropertyAnimator;

move-result-object v0

sget-object v1, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->ALPHA_OUT:Landroid/view/animation/Interpolator;

invoke-virtual {v0, v1}, Landroid/view/ViewPropertyAnimator;->setInterpolator(Landroid/animation/TimeInterpolator;)Landroid/view/ViewPropertyAnimator;

move-result-object v0

new-instance v1, Lcom/android/systemui/statusbar/phone/StatusBarIconController$1;

invoke-direct {v1, p0, p1}, Lcom/android/systemui/statusbar/phone/StatusBarIconController$1;-><init>(Lcom/android/systemui/statusbar/phone/StatusBarIconController;Landroid/view/View;)V

invoke-virtual {v0, v1}, Landroid/view/ViewPropertyAnimator;->withEndAction(Ljava/lang/Runnable;)Landroid/view/ViewPropertyAnimator;

.line 55
iget-object v0, p0, Lcom/android/systemui/statusbar/phone/StatusBarIconController;->mMinitClock:Lcom/android/systemui/statusbar/policy/MinitClock;

invoke-virtual {v0}, Lcom/android/systemui/statusbar/policy/MinitClock;->animate()Landroid/view/ViewPropertyAnimator;

move-result-object v0

invoke-virtual {v0, v2}, Landroid/view/ViewPropertyAnimator;->alpha(F)Landroid/view/ViewPropertyAnimator;

move-result-object v0

invoke-virtual {v0, v6, v7}, Landroid/view/ViewPropertyAnimator;->setDuration(J)Landroid/view/ViewPropertyAnimator;

move-result-object v0

invoke-virtual {v0, v4, v5}, Landroid/view/ViewPropertyAnimator;->setStartDelay(J)Landroid/view/ViewPropertyAnimator;

move-result-object v0

sget-object v1, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->ALPHA_OUT:Landroid/view/animation/Interpolator;

invoke-virtual {v0, v1}, Landroid/view/ViewPropertyAnimator;->setInterpolator(Landroid/animation/TimeInterpolator;)Landroid/view/ViewPropertyAnimator;

move-result-object v0

new-instance v1, Lcom/android/systemui/statusbar/phone/StatusBarIconController$99;

invoke-direct {v1, p0, p1}, Lcom/android/systemui/statusbar/phone/StatusBarIconController$99;-><init>(Lcom/android/systemui/statusbar/phone/StatusBarIconController;Landroid/view/View;)V

invoke-virtual {v0, v1}, Landroid/view/ViewPropertyAnimator;->withEndAction(Ljava/lang/Runnable;)Landroid/view/ViewPropertyAnimator;

goto :goto_0
.end method

Find the method

.method private animateShow(Landroid/view/View;Z)V

Replace the whole method with

.method private animateShow(Landroid/view/View;Z)V
.locals 8
.param p1, "view" # Landroid/view/View;
.param p2, "flag" # Z

.prologue
const-wide/16 v6, 0xa0

const-wide/16 v4, 0x32

const/4 v3, 0x0

const/4 v1, 0x0

const/high16 v2, 0x3f800000 # 1.0f

.line 67
invoke-virtual {p1}, Landroid/view/View;->animate()Landroid/view/ViewPropertyAnimator;

move-result-object v0

invoke-virtual {v0}, Landroid/view/ViewPropertyAnimator;->cancel()V

.line 68
invoke-virtual {p1, v1}, Landroid/view/View;->setVisibility(I)V

.line 69
iget-object v0, p0, Lcom/android/systemui/statusbar/phone/StatusBarIconController;->mMinitClock:Lcom/android/systemui/statusbar/policy/MinitClock;

invoke-virtual {v0}, Lcom/android/systemui/statusbar/policy/MinitClock;->animate()Landroid/view/ViewPropertyAnimator;

move-result-object v0

invoke-virtual {v0}, Landroid/view/ViewPropertyAnimator;->cancel()V

.line 70
iget-object v0, p0, Lcom/android/systemui/statusbar/phone/StatusBarIconController;->mMinitClock:Lcom/android/systemui/statusbar/policy/MinitClock;

invoke-virtual {v0, v1}, Lcom/android/systemui/statusbar/policy/MinitClock;->setVisibility(I)V

.line 71
if-nez p2, :cond_1

.line 73
invoke-virtual {p1, v2}, Landroid/view/View;->setAlpha(F)V

.line 74
iget-object v0, p0, Lcom/android/systemui/statusbar/phone/StatusBarIconController;->mMinitClock:Lcom/android/systemui/statusbar/policy/MinitClock;

invoke-virtual {v0, v2}, Lcom/android/systemui/statusbar/policy/MinitClock;->setAlpha(F)V

.line 86
:cond_0
:goto_0
return-void

.line 77
:cond_1
invoke-virtual {p1}, Landroid/view/View;->animate()Landroid/view/ViewPropertyAnimator;

move-result-object v0

invoke-virtual {v0, v2}, Landroid/view/ViewPropertyAnimator;->alpha(F)Landroid/view/ViewPropertyAnimator;

move-result-object v0

invoke-virtual {v0, v6, v7}, Landroid/view/ViewPropertyAnimator;->setDuration(J)Landroid/view/ViewPropertyAnimator;

move-result-object v0

sget-object v1, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->ALPHA_IN:Landroid/view/animation/Interpolator;

invoke-virtual {v0, v1}, Landroid/view/ViewPropertyAnimator;->setInterpolator(Landroid/animation/TimeInterpolator;)Landroid/view/ViewPropertyAnimator;

move-result-object v0

invoke-virtual {v0, v4, v5}, Landroid/view/ViewPropertyAnimator;->setStartDelay(J)Landroid/view/ViewPropertyAnimator;

move-result-object v0

invoke-virtual {v0, v3}, Landroid/view/ViewPropertyAnimator;->withEndAction(Ljava/lang/Runnable;)Landroid/view/ViewPropertyAnimator;

.line 78
iget-object v0, p0, Lcom/android/systemui/statusbar/phone/StatusBarIconController;->mMinitClock:Lcom/android/systemui/statusbar/policy/MinitClock;

invoke-virtual {v0}, Lcom/android/systemui/statusbar/policy/MinitClock;->animate()Landroid/view/ViewPropertyAnimator;

move-result-object v0

invoke-virtual {v0, v2}, Landroid/view/ViewPropertyAnimator;->alpha(F)Landroid/view/ViewPropertyAnimator;

move-result-object v0

invoke-virtual {v0, v6, v7}, Landroid/view/ViewPropertyAnimator;->setDuration(J)Landroid/view/ViewPropertyAnimator;

move-result-object v0

sget-object v1, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->ALPHA_IN:Landroid/view/animation/Interpolator;

invoke-virtual {v0, v1}, Landroid/view/ViewPropertyAnimator;->setInterpolator(Landroid/animation/TimeInterpolator;)Landroid/view/ViewPropertyAnimator;

move-result-object v0

invoke-virtual {v0, v4, v5}, Landroid/view/ViewPropertyAnimator;->setStartDelay(J)Landroid/view/ViewPropertyAnimator;

move-result-object v0

invoke-virtual {v0, v3}, Landroid/view/ViewPropertyAnimator;->withEndAction(Ljava/lang/Runnable;)Landroid/view/ViewPropertyAnimator;

.line 79
iget-object v0, p0, Lcom/android/systemui/statusbar/phone/StatusBarIconController;->mPhoneStatusBar:Lcom/android/systemui/statusbar/phone/PhoneStatusBar;

invoke-virtual {v0}, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->isKeyguardFadingAway()Z

move-result v0

if-eqz v0, :cond_0

.line 81
invoke-virtual {p1}, Landroid/view/View;->animate()Landroid/view/ViewPropertyAnimator;

move-result-object v0

iget-object v1, p0, Lcom/android/systemui/statusbar/phone/StatusBarIconController;->mPhoneStatusBar:Lcom/android/systemui/statusbar/phone/PhoneStatusBar;

invoke-virtual {v1}, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->getKeyguardFadingAwayDuration()J

move-result-wide v2

invoke-virtual {v0, v2, v3}, Landroid/view/ViewPropertyAnimator;->setDuration(J)Landroid/view/ViewPropertyAnimator;

move-result-object v0

iget-object v1, p0, Lcom/android/systemui/statusbar/phone/StatusBarIconController;->mLinearOutSlowIn:Landroid/view/animation/Interpolator;

invoke-virtual {v0, v1}, Landroid/view/ViewPropertyAnimator;->setInterpolator(Landroid/animation/TimeInterpolator;)Landroid/view/ViewPropertyAnimator;

move-result-object v0

iget-object v1, p0, Lcom/android/systemui/statusbar/phone/StatusBarIconController;->mPhoneStatusBar:Lcom/android/systemui/statusbar/phone/PhoneStatusBar;

invoke-virtual {v1}, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->getKeyguardFadingAwayDelay()J

move-result-wide v2

invoke-virtual {v0, v2, v3}, Landroid/view/ViewPropertyAnimator;->setStartDelay(J)Landroid/view/ViewPropertyAnimator;

move-result-object v0

invoke-virtual {v0}, Landroid/view/ViewPropertyAnimator;->start()V

.line 82
iget-object v0, p0, Lcom/android/systemui/statusbar/phone/StatusBarIconController;->mMinitClock:Lcom/android/systemui/statusbar/policy/MinitClock;

invoke-virtual {v0}, Lcom/android/systemui/statusbar/policy/MinitClock;->animate()Landroid/view/ViewPropertyAnimator;

move-result-object v0

iget-object v1, p0, Lcom/android/systemui/statusbar/phone/StatusBarIconController;->mPhoneStatusBar:Lcom/android/systemui/statusbar/phone/PhoneStatusBar;

invoke-virtual {v1}, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->getKeyguardFadingAwayDuration()J

move-result-wide v2

invoke-virtual {v0, v2, v3}, Landroid/view/ViewPropertyAnimator;->setDuration(J)Landroid/view/ViewPropertyAnimator;

move-result-object v0

iget-object v1, p0, Lcom/android/systemui/statusbar/phone/StatusBarIconController;->mLinearOutSlowIn:Landroid/view/animation/Interpolator;

invoke-virtual {v0, v1}, Landroid/view/ViewPropertyAnimator;->setInterpolator(Landroid/animation/TimeInterpolator;)Landroid/view/ViewPropertyAnimator;

move-result-object v0

iget-object v1, p0, Lcom/android/systemui/statusbar/phone/StatusBarIconController;->mPhoneStatusBar:Lcom/android/systemui/statusbar/phone/PhoneStatusBar;

invoke-virtual {v1}, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->getKeyguardFadingAwayDelay()J

move-result-wide v2

invoke-virtual {v0, v2, v3}, Landroid/view/ViewPropertyAnimator;->setStartDelay(J)Landroid/view/ViewPropertyAnimator;

move-result-object v0

invoke-virtual {v0}, Landroid/view/ViewPropertyAnimator;->start()V

goto/16 :goto_0
.end method

Add the smali files from the zip attached below named HideBattery.zip

Recompile and done
​