[Sprint Samsung Galaxy Note II] digiblur:
Please give thanks/credit if you use this in your ROM

- Donations are also appreciated!

This one really aggravated me with the latest update since it stayed on the statusbar all the time. You can of course just turn off the Smartstay or Smartrotation but that wouldn't be any fun. You can also cheat and mess with the icon file itself but that's not any fun either. I will admit this method is a little aggressive as I just boss hogged through the module and removed the icon usage all through it. I'm sure there are several other methods as well.

Yes, I could have attached the smali files themselves but that's not the point of How-To threads. Plus you'll need to learn for the next ROM base anyways ;)

SystemUI/smali/com/android/systemui/statusbar/policy/FaceDetectionController$SmartRotationObserver.smali

invoke-static {v2}, Lcom/android/systemui/statusbar/policy/FaceDetectionController;->access$300(Lcom/android/systemui/statusbar/policy/FaceDetectionController;)Z

move-result v2

[COLOR="Red"] --invoke-virtual {v0, v1, v2}, Landroid/app/StatusBarManager;->setIconVisibility(Ljava/lang/String;Z)V[/COLOR]

.line 97
return-void

.line 93
:cond_1
iget-object v0, p0, Lcom/android/systemui/statusbar/policy/FaceDetectionController$SmartRotationObserver;->this$0:Lcom/android/systemui/statusbar/policy/FaceDetectionController;

#setter for: Lcom/android/systemui/statusbar/policy/FaceDetectionController;->mEnableDetect:Z
invoke-static {v0, v4}, Lcom/android/systemui/statusbar/policy/FaceDetectionController;->access$302(Lcom/android/systemui/statusbar/policy/FaceDetectionController;Z)Z

goto :goto_0
.end method

SystemUI/smali/com/android/systemui/statusbar/policy/FaceDetectionController$SmartStayObserver.smali

#getter for: Lcom/android/systemui/statusbar/policy/FaceDetectionController;->mEnableDetect:Z
invoke-static {v2}, Lcom/android/systemui/statusbar/policy/FaceDetectionController;->access$300(Lcom/android/systemui/statusbar/policy/FaceDetectionController;)Z

move-result v2

[COLOR="Red"] --invoke-virtual {v0, v1, v2}, Landroid/app/StatusBarManager;->setIconVisibility(Ljava/lang/String;Z)V[/COLOR]

.line 78
return-void

.line 74
:cond_1
iget-object v0, p0, Lcom/android/systemui/statusbar/policy/FaceDetectionController$SmartStayObserver;->this$0:Lcom/android/systemui/statusbar/policy/FaceDetectionController;

#setter for: Lcom/android/systemui/statusbar/policy/FaceDetectionController;->mEnableDetect:Z
invoke-static {v0, v4}, Lcom/android/systemui/statusbar/policy/FaceDetectionController;->access$302(Lcom/android/systemui/statusbar/policy/FaceDetectionController;Z)Z

goto :goto_0
.end method

SystemUI/smali/com/android/systemui/statusbar/policy/FaceDetectionController.smali

Starting at line 118 (take note that your line numbers may change as we work down the file deleting lines)

const-string v2, "face"

iget v3, p0, Lcom/android/systemui/statusbar/policy/FaceDetectionController;->mStopIconId:I

const/4 v4, 0x0

[COLOR="Red"] --invoke-virtual {v1, v2, v3, v5, v4}, Landroid/app/StatusBarManager;->setIcon(Ljava/lang/String;IILjava/lang/String;)V[/COLOR]

.line 105
iget-object v1, p0, Lcom/android/systemui/statusbar/policy/FaceDetectionController;->mService:Landroid/app/StatusBarManager;

const-string v2, "face"

[COLOR="Red"] --invoke-virtual {v1, v2, v5}, Landroid/app/StatusBarManager;->setIconVisibility(Ljava/lang/String;Z)V[/COLOR]

.line 107
iget-object v1, p0, Lcom/android/systemui/statusbar/policy/FaceDetectionController;->mContext:Landroid/content/Context;

Starting at about Line 176

.line 116
:goto_0
iget v1, p0, Lcom/android/systemui/statusbar/policy/FaceDetectionController;->mStopIconId:I

iget-boolean v2, p0, Lcom/android/systemui/statusbar/policy/FaceDetectionController;->mEnableDetect:Z

[COLOR="Red"] --invoke-direct {p0, v1, v2}, Lcom/android/systemui/statusbar/policy/FaceDetectionController;->updateIconView(IZ)V[/COLOR]

.line 117
iget-object v1, p0, Lcom/android/systemui/statusbar/policy/FaceDetectionController;->mService:Landroid/app/StatusBarManager;

const-string v2, "face"

iget-boolean v3, p0, Lcom/android/systemui/statusbar/policy/FaceDetectionController;->mEnableDetect:Z

[COLOR="Red"] --invoke-virtual {v1, v2, v3}, Landroid/app/StatusBarManager;->setIconVisibility(Ljava/lang/String;Z)V[/COLOR]

.line 119
new-instance v1, Lcom/android/systemui/statusbar/policy/FaceDetectionController$SmartStayObserver;

Starting at about Line 372

.method static synthetic access$500(Lcom/android/systemui/statusbar/policy/FaceDetectionController;IZ)V
.locals 0
.parameter "x0"
.parameter "x1"
.parameter "x2"

.prologue
.line 35
[COLOR="Red"] --invoke-direct {p0, p1, p2}, Lcom/android/systemui/statusbar/policy/FaceDetectionController;->updateIconView(IZ)V[/COLOR]

return-void
.end method

Starting at about Line 396

.method private final updateFaceIconVisibility(Z)V
.locals 2
.parameter "visible"

.prologue
.line 149
iget-object v0, p0, Lcom/android/systemui/statusbar/policy/FaceDetectionController;->mService:Landroid/app/StatusBarManager;

const-string v1, "face"

[COLOR="Red"] --invoke-virtual {v0, v1, p1}, Landroid/app/StatusBarManager;->setIconVisibility(Ljava/lang/String;Z)V[/COLOR]

.line 150
return-void
.end method

Starting at about Line 446

.line 144
if-eqz p2, :cond_0

const/4 v3, 0x0

:goto_1
[COLOR="Red"] --invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setVisibility(I)V[/COLOR]

.line 141
add-int/lit8 v1, v1, 0x1

Starting at about Line 472

# virtual methods
.method public addIconView(Landroid/widget/ImageView;)V
.locals 1
.parameter "v"

.prologue
.line 136
iget-object v0, p0, Lcom/android/systemui/statusbar/policy/FaceDetectionController;->mIconViews:Ljava/util/ArrayList;

[COLOR="Red"] --invoke-virtual {v0, p1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z[/COLOR]

.line 137
return-void
.end method

Starting at about Line 552

if-eqz v1, :cond_1

.line 157
iget v1, p0, Lcom/android/systemui/statusbar/policy/FaceDetectionController;->mStartIconId:I

[COLOR="Red"] --invoke-direct {p0, v1, v4}, Lcom/android/systemui/statusbar/policy/FaceDetectionController;->updateIconView(IZ)V[/COLOR]

.line 158
iget-object v1, p0, Lcom/android/systemui/statusbar/policy/FaceDetectionController;->mService:Landroid/app/StatusBarManager;

const-string v2, "face"

iget v3, p0, Lcom/android/systemui/statusbar/policy/FaceDetectionController;->mStartIconId:I

[COLOR="Red"] --invoke-virtual {v1, v2, v3, v5, v6}, Landroid/app/StatusBarManager;->setIcon(Ljava/lang/String;IILjava/lang/String;)V[/COLOR]

.line 174
:cond_0
:goto_0

Starting at about Line 579

move-result v1

if-eqz v1, :cond_2

.line 160
iget v1, p0, Lcom/android/systemui/statusbar/policy/FaceDetectionController;->mStopIconId:I

[COLOR="Red"] --invoke-direct {p0, v1, v4}, Lcom/android/systemui/statusbar/policy/FaceDetectionController;->updateIconView(IZ)V[/COLOR]

.line 161
iget-object v1, p0, Lcom/android/systemui/statusbar/policy/FaceDetectionController;->mService:Landroid/app/StatusBarManager;

const-string v2, "face"

iget v3, p0, Lcom/android/systemui/statusbar/policy/FaceDetectionController;->mStopIconId:I

[COLOR="Red"] --invoke-virtual {v1, v2, v3, v5, v6}, Landroid/app/StatusBarManager;->setIcon(Ljava/lang/String;IILjava/lang/String;)V[/COLOR]

goto :goto_0

Starting at about Line 614

iget v1, p0, Lcom/android/systemui/statusbar/policy/FaceDetectionController;->isSmartStayMode:I

if-eq v1, v4, :cond_3

.line 164
iget v1, p0, Lcom/android/systemui/statusbar/policy/FaceDetectionController;->mStopIconId:I

[COLOR="Red"] --invoke-direct {p0, v1, v4}, Lcom/android/systemui/statusbar/policy/FaceDetectionController;->updateIconView(IZ)V[/COLOR]

.line 168
:goto_1
iget-object v1, p0, Lcom/android/systemui/statusbar/policy/FaceDetectionController;->mService:Landroid/app/StatusBarManager;

const-string v2, "face"

iget v3, p0, Lcom/android/systemui/statusbar/policy/FaceDetectionController;->mStopIconId:I

[COLOR="Red"] --invoke-virtual {v1, v2, v3, v5, v6}, Landroid/app/StatusBarManager;->setIcon(Ljava/lang/String;IILjava/lang/String;)V[/COLOR]

goto :goto_0

.line 166
:cond_3
iget v1, p0, Lcom/android/systemui/statusbar/policy/FaceDetectionController;->mFailIconId:I

[COLOR="Red"] --invoke-direct {p0, v1, v4}, Lcom/android/systemui/statusbar/policy/FaceDetectionController;->updateIconView(IZ)V[/COLOR]

goto :goto_1

.line 169
:cond_4
const-string v1, "android.intent.action.SCREEN_OFF"

Starting at about Line 653

.line 170
iget v1, p0, Lcom/android/systemui/statusbar/policy/FaceDetectionController;->mStopIconId:I

[COLOR="Red"] --invoke-direct {p0, v1, v4}, Lcom/android/systemui/statusbar/policy/FaceDetectionController;->updateIconView(IZ)V[/COLOR]

.line 171
iget-object v1, p0, Lcom/android/systemui/statusbar/policy/FaceDetectionController;->mService:Landroid/app/StatusBarManager;

const-string v2, "face"

iget v3, p0, Lcom/android/systemui/statusbar/policy/FaceDetectionController;->mStopIconId:I

[COLOR="Red"] --invoke-virtual {v1, v2, v3, v5, v6}, Landroid/app/StatusBarManager;->setIcon(Ljava/lang/String;IILjava/lang/String;)V[/COLOR]

goto :goto_0
.end method

If you like this MOD and would like to see others please consider a donation via my profile. I encourage other developers to share their work in How-To's as well.