[Android General] a.raul:
Mod Device Info on Samsung Pie

Mod Device Info on Samsung Pie

How to always thank [MENTION=4714483]daxgirl[/MENTION] for giving us her wisdom, and my friend [MENTION=7393522]AbrahamGC[/MENTION], partner of fatigue and nocturnal, the help to implement the mod in Pie ...

Thanks also to the friends of Samsung, for punishing us and thank us for growing as a multinational, what would you do without us, bandits ...

Let's go to the mess

Previous step through this thread

https://xdaforums.com/showpost.php?p=67930675&postcount=8317

Go to the thread that we already know all or almost everyone and follow the steps to implement the mod in rc and necessary files.

https://xdaforums.com/showpost.php?p=67826086&postcount=8102

Now the main thing to get the mod

We go to SystemUI and the smali NotificationPanelViewCarrierLabelManager.smali

We add in # instance fields

# instance fields
.field private mCarrierLabel:Landroid/view/View;

Search in the id method, in my case it is this 0x7f0a0397:

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

.
.
.
.
.
iget-object v0, p0, Lcom/android/systemui/statusbar/phone/NotificationPanelViewCarrierLabelManager;->mPanelView:Lcom/android/systemui/statusbar/phone/NotificationPanelView;

const v1, 0x7f0a0397 ## <public type="id" name="notification_panel_carrier_label" id="0x7f0a0397" />

invoke-virtual {v0, v1}, Lcom/android/systemui/statusbar/phone/NotificationPanelView;->findViewById(I)Landroid/view/View;

move-result-object v0

check-cast v0, Landroid/widget/TextView;

iput-object v0, p0, Lcom/android/systemui/statusbar/phone/NotificationPanelViewCarrierLabelManager;->mCarrierLabel:Landroid/widget/TextView;

return-void
.end method

Change for:

const-string v0, "gear_bottom_layout"

const-string v1, "id"

invoke-static {v0, v1}, Lcom/android/wubydax/GearUtils;->getIdentifier(Ljava/lang/String;Ljava/lang/String;)I

move-result v1

iget-object v0, p0, Lcom/android/systemui/statusbar/phone/NotificationPanelViewCarrierLabelManager;->mPanelView:Lcom/android/systemui/statusbar/phone/NotificationPanelView;

invoke-virtual {v0, v1}, Lcom/android/systemui/statusbar/phone/NotificationPanelView;->findViewById(I)Landroid/view/View;

move-result-object v0

iput-object v0, p0, Lcom/android/systemui/statusbar/phone/NotificationPanelViewCarrierLabelManager;->mCarrierLabel:Landroid/view/View;

.line 59
return-void
.end method

Go to the method and eliminate the marked line:

.method public onConfigurationChanged(Landroid/content/res/Configuration;)V
.
.
invoke-virtual {v0, v1}, Landroid/widget/TextView;->post(Ljava/lang/Runnable;)Z## delete line

:cond_1
return-void
.end method

Go to the method:

.method public updateCarrierLabelAlphaAndVisibility(F)V
.locals 9

iget-object v0, p0, Lcom/android/systemui/statusbar/phone/NotificationPanelViewCarrierLabelManager;->mCarrierLabel:Landroid/widget/TextView;

if-nez v0, :cond_0

return-void
.
.
.
.
.
.
:goto_0
iget-object v1, p0, Lcom/android/systemui/statusbar/phone/NotificationPanelViewCarrierLabelManager;->mCarrierLabel:Landroid/widget/TextView;

invoke-virtual {v1, v0}, Landroid/widget/TextView;->setAlpha(F)V

const-string v1, "ZVV"

Change for:

.method public updateCarrierLabelAlphaAndVisibility(F)V
.locals 9

iget-object v0, p0, Lcom/android/systemui/statusbar/phone/NotificationPanelViewCarrierLabelManager;->mCarrierLabel:Landroid/view/View;

if-nez v0, :cond_0

return-void
.
.
.
.
.
.
:goto_0
iget-object v1, p0, Lcom/android/systemui/statusbar/phone/NotificationPanelViewCarrierLabelManager;->mCarrierLabel:Landroid/view/View;

invoke-virtual {v1, v0}, Landroid/widget/TextView;->setAlpha(F)V

const-string v1, "ZVV"

Go to the method:

.method public updateCarrierLabelVisibility()V
.locals 6

const/4 v0, 0x0

iget-object v1, p0, Lcom/android/systemui/statusbar/phone/NotificationPanelViewCarrierLabelManager;->mCarrierLabel:Landroid/widget/TextView;

const/4 v2, 0x1
.
.
.
.
.
.
:goto_0
move v0, v1

iget-object v1, p0, Lcom/android/systemui/statusbar/phone/NotificationPanelViewCarrierLabelManager;->mCarrierLabel:Landroid/widget/TextView;

if-eqz v0, :cond_3

move v5, v4

goto :goto_1

:cond_3
move v5, v3

:goto_1
invoke-virtual {v1, v5}, Landroid/widget/TextView;->setVisibility(I)V

:cond_4
const-string v1, "ZVV"

Change for:

.method public updateCarrierLabelVisibility()V
.locals 6

const/4 v0, 0x0

iget-object v1, p0, Lcom/android/systemui/statusbar/phone/NotificationPanelViewCarrierLabelManager;->mCarrierLabel:Landroid/view/View;

const/4 v2, 0x1
.
.
.
.
.
.
:goto_0
move v0, v1

iget-object v1, p0, Lcom/android/systemui/statusbar/phone/NotificationPanelViewCarrierLabelManager;->mCarrierLabel:Landroid/view/View;

if-eqz v0, :cond_3

move v5, v4

goto :goto_1

:cond_3
move v5, v3

:goto_1
invoke-virtual {v1, v5}, Landroid/widget/TextView;->setVisibility(I)V

:cond_4
const-string v1, "ZVV"

Go to the method and eliminate the marked line:

.method public updateNavHeight(I)V
.
.
.

invoke-virtual {v0, v1}, Landroid/widget/TextView;->post(Ljava/lang/Runnable;)Z## delete line

:cond_0
return-void
.end method

Let res/layout/status bar expanded.xml and after implementing our corresponding lines to get the mod...

Eliminate the line:

<com.android.systemui.simpleindicator.SimpleIndicatorTextView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.CarrierLabel" android:gravity="center" android:layout_gravity="bottom" android:id="@id/notification_panel_carrier_label" android:tag="@string/simple_indicator_tag_noti_panel_carrier_label" android:focusable="false" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="@dimen/notification_panel_carrier_label_height" android:alpha="0.0" />

Regars