Dịch và chỉnh sửa lại code cho hợp với Zenfone : Lê Duy
Yêu cầu : Biết bung SystemUI và đóng gói
+/ Mở file AsusSystemUI/res/values/styles.xml
Copy code sau xuống cuối
+/ Mở file AsusSystemUI/res/values/ids.xml
Copy code sau xuống cuối
Mở file - AsusSystemUI/res/layout/status_bar_expanded.xml
Xóa toàn bộ code của status_bar_expanded.xml đi
Thay bằng code này
<LinearLayout android:layout_gravity="center" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"> <include layout="@layout/notif_adi" /> </LinearLayout> </com.android.systemui.statusbar.phone.NotificationPanelView>
Copy code này lên trên code như ảnh
<include layout="@layout/leduy" />
Bố trí code như ảnh
..........................
Copy code này xuống dưới code như ảnh
...................
Tải file này về giải nén ra copy theo đường dẫn bên trong file
( Với zen5 , zen6 copy ảnh vào drawable-xhdpi
https://drive.google.com/file/d/0B_v2u8ZA5UiwQ0hkR011ck92MWM/view?usp=sharing
...............
Thêm đoạn code này vào SystemUI/res/values/ids.xml
<item type="id" name="markmellarpes_multi">false</item>
<item type="id" name="lenoxpic">false</item>
<item type="id" name="profile_name">false</item>
<item type="id" name="cover">false</item>
<item type="id" name="profile_status">false</item>
<item type="id" name="profile">false</item>
<item type="id" name="lenox_label">false</item>
<item type="id" name="scroll">false</item>
.................
Thêm đoạn code này vào
SystemUI/res/values/styles.xml
<style name="InformationItemTitleStyle">
<item name="android:textSize">14.0sp</item>
<item name="android:gravity">right</item>
<item name="android:paddingLeft">16.0dip</item>
<item name="android:paddingRight">10.0dip</item>
</style>
<style name="InformationItemTabStyle">
<item name="android:paddingTop">3.0dip</item>
</style>
<style name="InformationTextStyle">
<item name="android:textSize">14.0sp</item>
<item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">wrap_content</item>
</style>
....
<item type="drawable" name="ic_contact_picture">@android:drawable/ic_contact_picture</item>
Đóng gói SystemUI ( 2 lần )
....
Lôi file SystemUI đã đóng gói thành công ra đổi tên nó thành 1.apk chẳng hạn
....
Bung file 1.apk ra
Vào đường dẫn
smali/com/b16h22/haiyan
Mở file ProfileCover$1.smali #86 0x7f020180 type="drawable" name="ic_qs_default_user"
Giaỉ thích đoạn này nhé
Mở file ProfileCover$1.smali
tìm xuống dòng 86 là #86 0x7f020180
Vào SystemUI/res/values.public Ctrl+F tìm ic_qs_default_user sẽ thấy mã của nó là 0x7f02021f
Xóa mã 0x7f020180 trong dòng #86 của ProfileCover$1.smali thay bằng mã trong ic_qs_default_user
Tiếp tục làm tương tự cho đến hết
ProfileCover.smali #25 0x7f0e00e3 type="id" name="cover" #66 0x7f020180 type="drawable" name="ic_qs_default_user" ProfileName.smali #23 0x7f0e00e2 type="id" name="profile_name" ProfilePicture$1.smali #86 0x7f02011b type="drawable" name="status_bar_expand_pressed" ProfilePicture.smali #25 0x7f0e00e5 type="id" name="profile" #66 0x7f020180 type="drawable" name="ic_qs_default_user" ProfileStatus.smali #23 0x7f0e00e4 type="id" name="profile_status" smali/com/b16h22/statusbar MultiPanelButtons.smali #54,61,68 0x7f020181 type="drawable" name="tw_btn_default_small" MultiPanelFlipper.smali #21 0x7f0e00e0 type="id" name="markmellarpes_multi" smali/com/lenox/Lenox_Label lenoxpicture.smali #21 0x7f0e00e1 type="id" name="lenoxpic" lenoxlabel.smali #25 0x7f0e00e6 type="id" name="lenox_label"
Recompile SystemUI Sign SystemUI.apk




Không có nhận xét nào:
Đăng nhận xét