Searching...
Chủ Nhật, 11 tháng 10, 2015

Hướng dẫn mod Stt bar 2 dòng

12:55
Hướng dẫn mod Stt bar 2 dòng
Hôm nay mình hướng dẫn cho các bạn mod stt 2 dòng k bị thông báo đè..đơn giản
Tải về icon đồng hồ

StatusBar hai dòng với đồng hồ kim ở giữa không bị thông báo đè

1.Decompile framework-res.apk
  -Mở framework-res_src/res/values/dimens.xml
tìm code

    <dimen name="status_bar_height">25.0dip</dimen>
 
và sửa lại thành
    <dimen name="status_bar_height">50.0dip</dimen>

2.recompile framework-res_src

3.decompile SystemUI.apk

Mở SystemUI_src/res/layouts/status_bar.xml ( một số máy là tw_status_bar.xml/gemini_status_bar.xml/asus_status_bar.xml v.v...)
-tìm code :

    <include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_view" /> (một số máy là ...layout="@layout/tw_signal_cluster_view" / "@layout/gemini_signal_cluster_view" ... )
 
cắt và dán nó lên nằm phía trên code :

    <com.android.systemui.statusbar.StatusBarIconView android:id="@id/moreIcon".... />
 
-tìm và xóa  code này :

    <com.android.systemui.statusbar.phone.IconMerger... android:id="@id/notificationIcons " ... />
 
-tìm và xóa code này :

    <com.android.systemui.statusbar.policy.Clock ... android:id="@id/clock"... /> (*)
 
-tìm code :
    <LinearLayout android:orientation="horizontal" android:id="@id/status_bar_contents"  ... >
 
    (lưu ý: một số máy không có code này, thay vào đó là code <LinearLayout ... android:id="@id/icons" ... /> )
 
và dán 3 code này ngay dưới nó :

    <FrameLayout android:layout_width="fill_parent" android:layout_height="fill_parent">
    <LinearLayout android:background="@drawable/ria_sakurai" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="50.0dip">
        <LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="24.0dip">
     
-Tìm code :

    <LinearLayout ... android:id="@id/ticker"... />

và dán các code này nằm ở phía trên nó :

    <LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="24.0dip">
        <com.android.systemui.statusbar.phone.IconMerger android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/notificationIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_alignParentLeft="true" />
        <TextView android:textSize="14.0dip" android:textColor="#ffffffff" android:gravity="right" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginRight="8.0dip" android:text="@string/kotext_xteen" android:singleLine="true" />
    </LinearLayout>
    </LinearLayout>
    <LinearLayout android:gravity="center" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent">
        <com.android.systemui.statusbar.policy.Clock android:textColor="#ffffffff" android:ellipsize="none" android:gravity="left|center" android:id="@id/clock" android:paddingLeft="0.0dip" android:layout_width="0.0dip" android:layout_height="0.0dip" android:singleLine="true" android:includeFontPadding="false" />
        <AnalogClock android:gravity="center" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:dial="@drawable/a_circle" android:hand_hour="@drawable/a_hour" android:hand_minute="@drawable/a_minute" android:layout_centerVertical="true" />
    </LinearLayout>
    </FrameLayout>
    </LinearLayout>
 
-Save

-Tìm code

    <com.android.systemui.statusbar.policy.KeyButtonView  ... />
 
cắt và dán nó đến nằm ngay phía trên code

   <LinearLayout android:background="@drawable/ria_sakurai" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="50.0dip">
   
với một số máy không có code này thì bỏ qua
save

-tải fil e icon đồng hồ ở trên về, dùng Xproler giải nén và chép vào trong SystemUI_src/res/drawable hpdi ( hoặc xhpdi, tùy độ phân giải của máy, bạn mod icon pin sóng ở mục nào thì chép vào mục đấy)
Tải icon đồng hồ ở đây
 
4.recompile SystemUI_src

5.dùng Xproler chép Meta-inf và AndroidManifest từ framework-res.apk sang framework-res_src.apk , từ SystemUI.apk sang SystemUI_src.apk

6.dùng mọi thủ đoạn đổi lại tên framework-res_src.apk , SystemUI_src.apk và đưa chúng vào hệ thống.

7.reboot

0 nhận xét:

Đăng nhận xét