總網頁瀏覽量

2014年6月14日 星期六

[An 4.4.2] Sony Xperia Z Ultra - 在狀態欄左方顯示網絡供應商名稱

有時覺得狀態欄右方的鬧鐘、Wi-Fi、網絡訊號、電量、時間,令左方總是空空的。
現在只要修改 SystemUI.apk,就能在狀態欄左方顯示網絡供應商名稱。

首先,將 SystemUI.apk 反編譯 (Decompile),
開啟 /SystemUI/res/layout/status_bar.xml,
找尋以下字句:

<com.sonymobile.systemui.statusbar.operator.OperatorLabel android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:ellipsize="marquee" android:gravity="start|center" android:id="@id/operator" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:paddingStart="6.0dip" android:paddingEnd="4.0dip" />

將 android:visibility="gone" 刪除並儲存。

接著,開啟 /SystemUI/res/value/bools.xml,
找尋以下字句:

<bool name="config_showOperatorNameInStatusBar">false</bool>

將 false 改為 true,並且儲存。

最後重編譯 SystemUI,將 SystemUI.apk 放到手機的 /system/priv-app,
並設定 644 權限,重啟後就能顯示服務供應商名稱。

不過有一件事要注意,服務供應商名稱只會在沒有任何通知圖示下,才會顯示。


沒有留言:

張貼留言