Nguồn: http://www.tinhte.vn
Xin đừng nản chí hãy tự tin cố gắn sẻ thành công>>!
rất cảm ơn 2 bác @Mr.Luong™ và bác @taycuong76 đã cung cấp cho e tài liệu để làm
-Các thứ cần chuẩn bị , anh em down về nhé :
1. Jdk/java link tải: http://www.java.com/en/e (nếu có sẵn java trong máy rồi thì thôi)
2. Apktool: http://www.mediafire.com/download.php?qza7uquol5fugto/e(giải nén file apktool.zip và copy cả thư mục apktool chứ 3 file vào ổ đĩa C)
3. Notepad++:http://download.tuxfamily.org/notepadplus/6.2.3/npp.6.2.3.Installer.exe
4. Winrar hoặc 7zip (để nén, giải nén): đầy trên net
yêu cầu máy đã root + deodex nhé.cơ bản là áp dụng cho rom cook
chuẩn bị :
- file SystemUI.apk trong rom mà anh em định mod nằm trong đường dẫn system / app
-2 file framework-res.apk và twframework-res.apk nằm trong đường dẫn system / framework
- 2 icon ( là 2 file ảnh định dạng .png kích thước 64*64 là icon cho nút home và lock screen với tên lần lượt là : ic_sysbar_recent.png và ic_sysbar_lock.png
bắt đầu làm :
- Chép công cụ apktool vào thư mục c:\apktool (giải nén file apktool.zip và copy cả thư mụcapktool vừa giải nén chứa 3 file vào ổ đĩa C:\)
- Lấy 2 file framework-res.apk và twframework-res.apk từ ROM mà bạn định dùng (tại:/system/framework/) và đặt 2 file trên vào thư mục c:\apktool
- Dùng DOS trên Windows thực hiện các lệnh cần thiết: Bấm Start, chọn run, gõ: cmd (enter) rồi gõ tiếp: cd\ (enter) bạn sẽ ở thư mục gốc C:\>
- Chuyển về thư mục c:\apktool bằng cách gõ: cd apktool (enter) bạn sẽ nằm ở c:\apktool
- Cài đặt frameworks: Để file apk sau khi xử lý hoạt động với framwork nhất định, bạn cần gõ lần lượt các lệnh:
apktool if framework-res.apk (enter)
apktool if twframework-res.apk (enter)
- Decompile (dịch ngược):
- Đặt file SystemUI.apk vào thư mục c:\apktool - Gõ lệnh apktool d SystemUI.apk (enter)
Nếu làm đúng, bạn sẽ có thư mục SystemUI đã được decompile và có thể sửa theo ý muốn
-vào folder systemUI / res / layout mở file tw_status_bar.xml bằng Notepad++..... rồi anh em đọc tiếp trong file đính kèm này nhé vì các đoạn code up lên toàn hiện ra các emoticon nên .....
- công đoạn chỉnh sửa đã xong bây giờ anh em làm nốt 2 bước theo hướng dẫn của bác Taycuong lần lượt là
. Recompile (đóng gói lại):
- Gõ lệnh apktool b SystemUI (enter)Nếu làm đúng, bạn sẽ có các mục sau trong thư mục SystemUI
+ assets
+ build
+ dist
+ res
+ smali
+ AndroidManifest.xml
+ apktool.yml
và
Sign the apk:
- Mở file SystemUI.apk (file gốc đi theo ROM) trong thư mục c:\apktoolbằng winrar (hoặc 7zip) và giải nén file sau đây rồi copy chúng đến thư mục SystemUI/build/apk gồm:+ Thư mục META-INF
+ File AndroidManifest.xml (chép đè file có sẵn)
- Gõ lệnh apktool b SystemUI (enter) để sign file apk đã được sửa, và file apk thành quả sẽ nằm trong thư mục c:\apktool\SystemUI\Dist\
khi hoàn thành các bước trên anh em sẽ thu đc 1 file SystemUI.apk mới.thay nó vào rom cũ và reboot máy ----> tự sướng thôi
note :
- nút lock sreen anh em khi giữ 1 lúc sẽ hiện ra bảng menu tùy chọn shutdown-reboot....
- nút home anh em giữ 1 lúc sẽ thành tác vụ task manager
- nếu anh em thấy 2 icon có vẻ hơi nhỏ và khó thao tác có thể tăng kích thước của 2 icon đó cho to ra nhưng chú ý chiều cao phải giữ nguyên là 64 còn chiều ngang thì thoải mái nhưng to quá lại chiếm hết diện tích thanh status bar.như hình của mình thì
+ icon home-task manager : 72*64
+icon lock screen : 72*64
để như vậy dễ ấn hơn
có gì mong anh em góp ý để mình chỉnh sửa.mình cũng chỉ lấy bài của các bác đã hướng dẫn từ trước và tổng hợp lại cho mọi người thôi nên chắc 1 số chỗ k thể am hiểu cho tiết và rõ ràng được.
UPDATE CENTER CLOCK
System.apk/res/layout mở file tw_status_bar.xml lên :
- tìm dòng code
Code:
<com.android.systemui.statusbar.policy.Clock
- tìm đến dòng code
Code:
<com.android.systemui.statusbar.phone.TickerView android:id="@id/tickerText" android:paddingTop="2.0dip" android:paddingRight="10.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="1.0"> <TextView android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:id="@id/ticker_text_view_old" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" /> <TextView android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:id="@id/ticker_text_view_new" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" /> </com.android.systemui.statusbar.phone.TickerView> </LinearLayout>
Code:
<LinearLayout android:gravity="center" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent"> <com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center" android:id="@id/clock" android:background="#00000000" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" /> </LinearLayout>
Update: Thay ảnh nền
Chúng ta dùng root explorer để copy framework-res.apk lên máy tính dùng winrar mở trực tiếp không được giải nén và tìm đến thư mục: res => drawable-nodpi => tw_background_holo_dark.png đây là file ảnh chúng ta cần thay, nắm kéo ảnh cần thay bỏ vào thư mục drawable-nodpi và nhớ lả đổi tên ảnh cần thay trùng với tên ảnh này nhé: tw_background_holo_dark.png .
-----------------------------------------------------------------------------------------------------
Hướng dẫn dowload: sau khi click vào link download ở trên, 1 trang web mới xuất hiện, chúng ta cần chờ 5s ở góc trên bên phải màn hình để click vào SKIP AD, và tiến hành dowload.
HOW TO CHANGE TEXT COLOR.
Trả lờiXóares/layout :
1. tw_status bar.xml
battery text color.
Code:
<TextView android:textSize="12.0dip" android:textColor="#something"
[COLOR="rgb(112, 128, 144)"]clock text color.[/COLOR]
Code:
<com.android.systemui.statusbar.policy.Clock android:textSize="@dimen/status_bar_clock_text_size" android:textColor="#something"
change the "something" with your preferred color.
NHƯ THẾ NÀO ĐẶT PHÍM TẮT MÀN HÌNH KHOA ANDROID 4.1.2
Trả lờiXóa° Vào Cài đặt --> Màn hình khóa --> Tùy chọn màn hình khóa --> Phím tắt --> Nhấn vào dấu "+" để add thêm shortcut thứ 4 (mặc định tối đa chỉ được 3 shortcut ngoài lock screen).
POCA 2021 - Hotel and Casino, Las Vegas
Trả lờiXóaThe casino floor is expansive, with over 30,000 square 목포 출장샵 feet of 용인 출장안마 gaming 전라남도 출장안마 space, and over 500 slot machines including 의정부 출장마사지 all 대구광역 출장샵 video poker tables.