1, Mod lịch âm: Chú ý: dùng apktool 2.0 RC3 - Decompile SystemUI.apk - Mở file status_bar_expanded_header.xml (/SystemUI/res/layout) bằng notepad++ - Tìm dòng sau: Code: <RelativeLayout android:id="@id/datetime" android:background="@drawable/ic_notify_button_bg" android:focusable="true" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_toRightOf="@id/expanded_divider_1"> <com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Clock" android:textColor="@color/notification_header_clock_color" android:gravity="bottom" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/notification_panel_header_clock_margin_left" android:singleLine="true" systemui:ampmSmall="true" /> <com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Date" android:textColor="@color/notification_header_date_color" android:gravity="bottom" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginLeft="@dimen/notification_panel_header_date_margin_left" android:layout_marginRight="@dimen/notification_panel_header_date_margin_right" android:layout_marginBottom="@dimen/notification_panel_header_date_margin_bottom" android:layout_toEndOf="@id/clock" /> </RelativeLayout> - Thay thế nò bằng đoạn này: Code: <RelativeLayout android:id="@id/datetime" android:background="@drawable/ic_notify_button_bg" android:focusable="true" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_toRightOf="@id/expanded_divider_1"> <com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Clock" android:textColor="@color/notification_header_clock_color" android:gravity="bottom" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/notification_panel_header_clock_margin_left" android:singleLine="true" systemui:ampmSmall="true" /> <com.android.manhit.Amlich.DuongLich2AmLich android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Date" android:textColor="@color/notification_header_date_color" android:gravity="top" android:id="@+id/amlich" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginLeft="2.0dip" android:layout_marginTop="-14.0dip" android:layout_marginRight="@dimen/notification_panel_header_date_margin_right" android:layout_toEndOf="@id/clock" /> <com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Date" android:textColor="@color/notification_header_date_color" android:gravity="bottom" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginLeft="@dimen/notification_panel_header_date_margin_left" android:layout_marginRight="@dimen/notification_panel_header_date_margin_right" android:layout_marginBottom="@dimen/notification_panel_header_date_margin_bottom" android:layout_toEndOf="@id/clock" /> </RelativeLayout> Chú ý đoạn này: android:layout_marginLeft="2.0dip" android:layout_marginTop="-14.0dip" trong dòng Code: <com.android.manhit.Amlich.DuongLich2AmLich android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Date" android:textColor="@color/notification_header_date_color" android:gravity="top" android:id="@+id/amlich" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginLeft="2.0dip" android:layout_marginTop="-14.0dip" android:layout_marginRight="@dimen/notification_panel_header_date_margin_right" android:layout_toEndOf="@id/clock" /> android:layout_marginLeft = lề trái ; android:layout_marginTop = lề trên Mỗi máy có một màn hình hình độ phân phân giải khác nhau tùy chỉnh để cho cân đối và đjep hợn nhé! - Save lại. - Tải file lich_am.zip về giải nén ra được thư mục manhit, copy thư mục này vào /SystemUI/smali/com/android/. - Compile SystemUI lại. Mở file SystemUI.apk gốc bằng winzar hoặc 7zip. Thay thế các mục sau trong SystemUI/build/apk vào file SystemUI.apk gốc - status_bar_expanded_header.xml (/SystemUI/build/apk/res/layout) vào SystemUI.apk (/res/layout) - classes.dex vào SystemUI.apk 2, Mod nút home & nút power: Đang update, vui lòng trờ...! 3, Mod hiện tốc độ mạng: Đang update, vui lòng trờ...! Các mod trên đây mình làm trên SystemUI cả Galaxy J, các dòng may khác tùy cơ ứng biến nhé! Đây là file SystemUI của Galaxy J mình đã mod sẵn (Only SphinX V1c Rom): http://www.fshare.vn/file/TFK2M3TVHT/ .
sao mình làm như trên mà báo lỗi ..\3-Out\SystemUI.apk\smali\com\android\Amlich\DuongLich2AmLich$1.smali[39,4] Error for input '.parameter': Invalid directive ..\3-Out\SystemUI.apk\smali\com\android\Amlich\DuongLich2AmLich$1.smali[39,15] mismatched input '"paramAnonymousMessage"' expecting END_METHOD_DIRECTIVE Exception in thread "main" brut.androlib.AndrolibException: Could not smali file: com/android/Amlich/DuongLich2AmLich$1.smali at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:72) at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:56) at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:41) at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:342) at brut.androlib.Androlib.buildSources(Androlib.java:303) at brut.androlib.Androlib.build(Androlib.java:289) at brut.androlib.Androlib.build(Androlib.java:262) at brut.apktool.Main.cmdBuild(Main.java:236) at brut.apktool.Main.main(Main.java:88) là như thế nào hả thớt
Hình như bạn đã copy sai đường dẫn, bạn phải chú ý, nếu như giải nén ra được thư mục " manhit " thì kết quả chuẩn phải là: /SystemUI/smali/com/android/manhit/ trong khi đường dẫn của bạn lại là SystemUI.apk\smali\com\android\Amlich\DuongLich2AmLich$1.smali
Tình hình là mình sài rom , mà cột sóng nó lại nằm ngược bên trái, có cách nào để em nó về vih trí cũ ko ạ
Sao mình build lại báo tw_status_bar_expanded_header.xml:7: error: No resource identifier found for attribute 'layout_toEndOf' in package 'android' nên mình không thể build lại được, mong các bạn xem layout_toEndOf nó nằm ở đâu. Cám ơn.
ko comfiles được bác ơi ..\3-Out\SystemUI.apk\smali\com\android\manhit\Amlich\DuongLich2AmLich$1.smali[39,4] Error for input '.parameter': Invalid directive ..\3-Out\SystemUI.apk\smali\com\android\manhit\Amlich\DuongLich2AmLich$1.smali[39,15] mismatched input '"paramAnonymousMessage"' expecting END_METHOD_DIRECTIVE Exception in thread "main" brut.androlib.AndrolibException: Could not smali file: com/android/manhit/Amlich/DuongLich2AmLich$1.smali at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:72) at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:56) at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:41) at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:342) at brut.androlib.Androlib.buildSources(Androlib.java:303) at brut.androlib.Androlib.build(Androlib.java:289) at brut.androlib.Androlib.build(Androlib.java:262) at brut.apktool.Main.cmdBuild(Main.java:236) at brut.apktool.Main.main(Main.java:88)
mình dùng Advanced ApkTool v4.1.0 By BDFreak baseband 2.0.0rc 3 cũng vậy Log For : SystemUI.apk Log Type : Recompiling Log Recorded At : Sat 28-02-2015 21:34:56.67 Log Recorded By : Advanced ApkTool v4.1.0 By BDFreak ------------------------------------------------------ ..\3-Out\SystemUI.apk\smali\com\android\manhit\Amlich\DuongLich2AmLich$1.smali[39,4] Error for input '.parameter': Invalid directive ..\3-Out\SystemUI.apk\smali\com\android\manhit\Amlich\DuongLich2AmLich$1.smali[39,15] mismatched input '"paramAnonymousMessage"' expecting END_METHOD_DIRECTIVE Exception in thread "main" brut.androlib.AndrolibException: Could not smali file: com/android/manhit/Amlich/DuongLich2AmLich$1.smali at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:71) at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:55) at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:41) at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:349) at brut.androlib.Androlib.buildSources(Androlib.java:289) at brut.androlib.Androlib.build(Androlib.java:275) at brut.androlib.Androlib.build(Androlib.java:250) at brut.apktool.Main.cmdBuild(Main.java:225) at brut.apktool.Main.main(Main.java:84)
Bộ smali mình code lại đây, hàng xịn 1 k 2 nhé https://www.fshare.vn/folder/SHTCZNZQFMO6 Pass: choimobile có 2 bộ nhìn tên thì bác sẽ biết dùng apktool nào để mod nhé!
đã comfiles ok mà đoạn này khó hiểu quá bác Mở file SystemUI.apk gốc bằng winzar hoặc 7zip. Thay thế các mục sau trongSystemUI/build/apk vào file SystemUI.apk gốc - status_bar_expanded_header.xml (/SystemUI/build/apk/res/layout) vàoSystemUI.apk (/res/layout) - classes.dex vào SystemUI.apk
SystemUI.apk gốc là files trong máy chưa chỉnh sửa phải ko bác. SystemUI/build/apk là files decomfiles nằm ở thư mục 3 out của apk tool vậy còn files systemui comfiles mời vừa làm thì bỏ à.