[Android General] hilary trump:
I was confused because file status_bar_expanded.xml from my note 9 running pie looks a bit different

Can you take a look at that

<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.NotificationPanelView android:id="@id/notification_panel" android:background="@android:color/transparent" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="[url]http://schemas.android.com/apk/res/android"[/url] xmlns:systemui="[url]http://schemas.android.com/apk/res-auto">[/url]
<include android:visibility="gone" layout="@layout/keyguard_servicebox_container" />
<ViewStub android:id="@id/keyguard_biometric_small_view_stub" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<ViewStub android:id="@id/notification_preview_icon_layout_stub" android:inflatedId="@id/notification_preview_icon_slot_view" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ViewStub android:id="@id/notification_detail_container" android:inflatedId="@id/notification_detail" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<FrameLayout android:id="@id/notification_contents_root" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.phone.NotificationsQuickSettingsContainer android:layout_gravity="@integer/notification_panel_layout_gravity" android:id="@id/notification_container_parent" android:layout_width="fill_parent" android:layout_height="fill_parent">
<FrameLayout android:layout_gravity="@integer/notification_panel_layout_gravity" android:id="@id/qs_frame" android:clipChildren="false" android:clipToPadding="false" android:layout="@layout/qs_panel" android:layout_width="@dimen/qs_panel_width" android:layout_height="fill_parent" systemui:viewType="com.android.systemui.plugins.qs.QS" />
<com.android.systemui.statusbar.stack.NotificationStackScrollLayout android:layout_gravity="@integer/notification_panel_layout_gravity" android:id="@id/notification_stack_scroller" android:tag="notiStackScroller" android:layout_width="@dimen/notification_panel_width" android:layout_height="fill_parent" android:layout_marginTop="@dimen/notification_panel_margin_top" android:layout_marginBottom="@dimen/close_handle_underlap" />
<include android:id="@id/ambient_indication_container" layout="@layout/ambient_indication" />
<ViewStub android:id="@id/keyguard_user_switcher" android:layout="@layout/keyguard_user_switcher" android:layout_width="fill_parent" android:layout_height="fill_parent" />
<include android:visibility="invisible" layout="@layout/keyguard_status_bar" />
<Button android:id="@id/report_rejected_touch" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="@dimen/status_bar_header_height_keyguard" android:text="@string/report_rejected_touch" />
</com.android.systemui.statusbar.phone.NotificationsQuickSettingsContainer>
<ViewStub android:id="@id/keyguard_bottom_area_switcher" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="fill_parent" />
<com.android.systemui.statusbar.AlphaOptimizedView android:layout_gravity="bottom" android:id="@id/qs_navbar_scrim" android:background="@drawable/qs_navbar_scrim" android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="96.0dip" />
</FrameLayout>
<LinearLayout android:gravity="center_vertical" android:layout_gravity="bottom" android:orientation="horizontal" android:id="@id/layout_area_carrier_label" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="@dimen/notification_panel_carrier_label_height_zvv" android:weightSum="1.0">
<LinearLayout android:gravity="center" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="0.5">
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.CarrierLabelZVV" android:ellipsize="marquee" android:gravity="center" android:id="@id/text_slot1" android:focusable="false" android:layout_width="wrap_content" android:layout_height="fill_parent" android:scrollHorizontally="true" android:singleLine="false" android:drawableLeft="@drawable/quick_panel_icon_preffered_slot_1" android:drawablePadding="5.0dip" android:marqueeRepeatLimit="marquee_forever" />
</LinearLayout>
<LinearLayout android:gravity="center" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="0.5">
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.CarrierLabelZVV" android:ellipsize="marquee" android:gravity="center" android:id="@id/text_slot2" android:focusable="false" android:layout_width="wrap_content" android:layout_height="fill_parent" android:scrollHorizontally="true" android:singleLine="false" android:drawableLeft="@drawable/quick_panel_icon_preffered_slot_2" android:drawablePadding="5.0dip" android:marqueeRepeatLimit="marquee_forever" />
</LinearLayout>
</LinearLayout>
</com.android.systemui.statusbar.phone.NotificationPanelView>

As I understand, the steps to add device info to notification panel

1. Following daxgirl's instruction:

+ Edit /smali/com/android/systemui/SystemUIApplication.smali

+ Drop the smali file into /smali/com/android/wubydax. Drop the layout file gear_info_item_layout.xml into /res/layout

+ Add arrays to res/values/arrays.xml; ids to res/values/ids.xml

+ Edit status_bar_expanded.xml

2 . Following a.raul's instruction:

+ Edit smali NotificationPanelViewCarrierLabelManager.smali

Please correct me if i did wrong ( i'm sure I mess up something :D )

Thank all of you so much