-
27-05-2014, 02:37 AM #1VN63516Ml1 Guest
Hướng dẫn Mod ROM cho máy Sky, LG, Samsung
bài viết mình copy của thành viên thanhfhuongf bên tinhte. nếu bác đi qua thì cho em xin phép nhé
topic bao gồm 3 phần chính.
1. cách mod các app system( thay ảnh và mod code)
- do các mod bây giờ rất nhiều. nên các bạn muốn mod j thì mình sẽ update dần dần nhé.
1 lúc không thể chia sẻ hết được.
2. cách tạo file zip để flash qua recovery và tạo tool aroma
- chủ yếu là dựa vào các file zip flash có sẵn. mình chỉ tuỳ biến nó thành của mình thôi.
3. cách cook rom.
- cái này thì khó. mình chỉ hướng dẫn đơn giản để cook rom. còn lại ae sẽ trao đổi và thảo luận thêm.
vì cook 1 bản rom đơn thuần thì không khó. nhưng cook 1 bản rom tốt thì rất khó. cái này cần có kinh nghiệm và trình của các dev.
xin cám ơn tất cả mọi người !!!
menu bài viết
i/ cách mod các app system( thay ảnh và mod code)
1. thay ảnh app system ( đã xong )
2. mod code app system ( update liên tục các mod )
- mod lock home hiện ( by [img]data/avatars/s/19/19288.jpg?1467792915[/img]@nguyenxuanhoa )
- mod các phím tắt vào notification (by [img]data/avatars/s/19/19288.jpg?1467792915[/img]@nguyenxuanhoa)
- mod lock home ẩn (by [img]data/avatars/s/77/77626.jpg?1467792915[/img]@thanhfhuongf + [img]data/avatars/s/39/39489.jpg?1467792915[/img]@ch3mistry )
- move icon sóng + wifi sang trái
- move nút end call trong cuộc gọi
- thay nút call video bằng nút sms trong bàn phím cuộc gọi
- mod hiện tên nhà mạng lên statusbar.
- add file ảnh vào setting
- mod đèn pin vào setting ( nhấn volume up khi màn hình tắt sẽ bật đèn pin)
- mod clock giữa không bị thông báo đè by [img]data/avatars/s/19/19288.jpg?1467792915[/img]@nguyenxuanhoa
http://**************/threads/huong-dan-mod-rom-cho-may-sky-lg-samsung.25480/page-2#post-541455
11. sense recent app for 4.3
12. mod trong suốt all rom
13. mod icon pin chuyển động liên tục
14. mod ogbattery : lựa chọn thay bao nhiêu icon pin tùy thik
15. mod ogbattery : lựa chọn thay bao nhiêu icon pin tùy thik (phần 2) - by [img]data/avatars/s/40/40215.jpg?1467792915[/img]@quangminh12
16. mod âm lịch cho splanner
17. add app hay dùng vào notification
18. mod tốc độ mạng lên status3 by [img]data/avatars/s/52/52834.jpg?1467792915[/img]@giaanlove
19. trong suốt notification
20. mod hiển thị cpu trong notification
21. mod âm lịch vào notification.
mod launcher
mod keyboard.
mod cho kitkat 4.4
- mod đưa battery về 4.3
- mod setting mang giao diện giống s5 ( chỉ dành cho 4.4) by [img]data/avatars/s/19/19288.jpg?1467792915[/img]@nguyenxuanhoa
- mod ghi âm cuộc gọi
- mod sms v2
1.tắt tự động sms sang mms khi viết quá 3 trang và
2.tắt tự động sms sang mms khi add kí tự mặt cười emoij.
3.tắt sms log trong call log
4. bật backup/restore sms. - continue..............................
1. tạo file zip flash để backup các app system khi test các mod( đã xong )
2. tạo tool aroma để tổng hợp các mod hay theme trong 1 file zip flash duy nhất( đã xong )
iii/ cách cook rom.
1.cách cook rom ( tạm xong các bước cơ bản. )
2. continueView more random threads:
- Những lý do khiến bạn bị khóa tài khoản Facebook
- Các ứng dụng Android hỗ trợ root máy
- ApkTool, Smali, Baksmali - Hướng Dẫn Tự Build (Đã Hỗ Trợ Lollipop)
- Android Debug Bridge (adb) - Hướng dẫn sử dụng các lệnh cơ bản
- Tool và cách việt hóa ROM MIUIv5
- LOCKSCREEN GALAXY S4 - NOTE 3 cho mọi máy nhé
- Root cho tất cả LG OPTIMUS G + G pro + Gk
- [Help] Fix 80 ký tự E300, E250L
- Nhờ các cao thủ port trình nhắn tin này cho Su640 stock 4.1.2
- Hỏi tí về vấn đề việt hóa
-
27-05-2014, 02:38 AM #2seoquanghung Guest
i. thay ảnh cho các app system.
mình sẽ hướng dẫn dùng trên đt cho tiện. không cần dùng đến pc.
cách 1 : thay thủ công
cách 2 : dùng universal tool( dành cho các themer). mình sẽ hướng dẫn ở phần sau vì nó khó với người mới bắt đầu
1. download app x-plore trên chplay hoặc appstore
- cài đặt app x-plore như thế này
2. mình sẽ làm vd với việc thay icon sóng của statusbar
- ta cần thay icon này
a/ mẹo thay icon là nhìn xem nó hình như thế nào thì tìm trong app system hình như thế là nó.
với vd trên thì app systemui.apk là app chứa file icon của sóng trên statusbar
bạn tìm trong nó là thấy
đường dẫn sẽ là : root/system/app/systemui.apk
b/ bg bạn cop file systemui.apk ra ngoài sdcard hoặc thẻ nhớ để thay ảnh nhé.
ko làm trên system được đâu.
với x-plore sẽ có 2 cửa sổ để bạn thao tác. bạn vuốt trái hoặc phải để thay đổi cửa sổ làm việc
c/ với vd trên mình chọn cửa sổ 2 ( bên phải ) làm đích đến. còn cửa sổ 1 (bên trái) làm lệnh coppy nhé.
các bạn tích chọn file systemui.apk rồi coppy là xong. nhớ là cửa sổ 2 phải chọn đích nhé. mình chọn là folder test
d/ vậy là xong thao tác coppy. giờ là lúc các bạn tìm file ảnh sóng để thay nhé
đường dẫn sẽ là như thế này : systemui.apk/res/drawable-xhdpi
với các máy khác như s4 hay note3 thì sẽ là drawable-xxhdpi
e/ giờ tìm icon của sóng
nó sẽ giống icon mình cần thay
f/ ở đây mình sẽ thấy 5 file ảnh quyết định icon sóng
stat_sys_signal.0.png
stat_sys_signal.1.png
stat_sys_signal.2.png
stat_sys_signal.3.png
stat_sys_signal.4.png
mình sẽ thay icon khác mà mình thích.
yêu cầu đúng kích thước và tên nhé. kích thước mình có thể thay đổi cho đẹp cũng được. tuỳ bạn thôi.
coppy file ảnh icon khác vào thay thế 5 file trên
nhớ là cửa sổ đích phải chỉ vào folder cần thay
như vd là cửa sổ 2 mình sẽ chỉ vào folder drawable-xhdpi
còn cửa sổ 1 sẽ chọn icon muốn thay thế vào
g/ vậy là đã coppy xong icon.
bg là cop app systemui.apk vừa thay icon xong trở lại đường dẫn hệ thống ban đầu lúc mà mình lấy nó ra ấy.( root/system/app/ )
quan trọng các bạn nhớ set quyền cho nó nhé. cach set như hình
phần 2 mình sẽ hướng dẫn cách tạo file zip flash. các bạn sẽ không cần phải set quyền nữa.
h/ xong reboot máy và hưởng thành quả
*** trên pc thì các bạn cũng thao tác như trên đt với cửa sổ winrar. dùng thao tác kéo thả thay thế. không giải nén file apk nhé. các bạn tư duy 1 chút là làm được liền.
-
27-05-2014, 02:39 AM #3viet1410 Guest
ii. mod code cho các app system
- các thứ cần chuẩn bị , anh em down về nhé :
1. jdk/java link tải: http://www.java.com/en/
2. super apk tool v2.1: http://mobilelife.vn/resources/supe...nh-sua-apk-bang-giao-dien-cuc-manh.11/history
3.notepad++:http://download.tuxfamily.org/notepadplus/6.2.3/npp.6.2.3.installer.exe
4. winrar
+ bước 1 : giải nén superapktoolv2.1 vào ổ c:
tạo 1 folder trong superapktoolv2.1 với tên bất kỳ.
vd : superapktoolv2.1/thanhfhuongf/
cop 2 file cần để superapktoolv2.1 hoạt động trong máy của bạn là
root/system/framework/framework-res.apk
root/system/framework/twframework-res.apk
vào folder vừa tạo.
bạn có thể dùng x-plore để cop sang thẻ rồi cop vào pc
+ bước 2 : chạy superapktool_v2.1.0.exe (32bit) hoặc superapktool_2.1.0_x64.exe(64bit)
vào framework / install framework với 2 file vừa cop bên trên
kết quả như hình
xong phần khởi tạo các điều kiện cần. giờ tới việc decomplie các file cần mod.
- việc so sánh các file xml hay smali rất cần thiết trong việc tìm hiểu các mod.
các bạn nên cài nhé
http://**************/threads/so-sanh-2-file-text-hay-source-code-bang-notepad.25481/
cop file systemui.apk vào folder mình tạo bên trên để dễ quản lý.
chạy superapktool. chọn project. chọn new project. chọn file systemui.apk vừa cop
được như hình là ok.
giờ tới việc mod code nhé.
vào superapktoolv2.1/projects/com.android.systemui/code/res/layout/status_bar.xml
chọn chuột phải lên status_bar.xml. chọn edit with notepad++ nhé
chèn code này vào chỗ 1
Mã:<com.android.systemui.statusbar.policy.keybuttonview android:id="@id/home" android:paddingright="0.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/vnhome" android:contentdescription="@string/accessibility_home" systemui:keycode="3" systemui:glowbackground="@drawable/ic_sysbar_highlight" />
Mã:<com.android.systemui.statusbar.policy.keybuttonview android:id="@id/back" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginleft="0.0dip" android:src="@drawable/vnlock" android:singleline="true" android:layout_torightof="@id/recent_apps" android:layout_alignparentleft="true" android:contentdescription="@string/accessibility_back" systemui:keycode="26" systemui:glowbackground="@drawable/ic_sysbar_highlight" />
save file lại.
+ down 2 file ảnh lock và home về.
https://www.dropbox.com/sh/2msn36wrhm2zo6t/xdxryotrfj
cop vào com.android.systemui/code/res/drawable-xhdpi
+ xong và recompile.
vào superapktool. chọn run. chọn build
kết quả báo như hình là ok
sẽ có thư mục dist trong com.android.systemui
+ bước cuối vào com.android.systemui/dist/
đổi tên file lại như ban đầu.
com.android.systemui.apk thành systemui.apk ( nhớ là phải đúng tên với file gốc trước khi decomplie nhé. cả chữ hoa cũng phải chuẩn)
các bạn cop lại vào system của máy rồi set quyền hoặc cop vào file zip flash cũng được. mình hay cop luôn vào zip flash cho nhanh. ( xem hướng dẫn ở phần 2- cách tạo file zip flash)
bước tiếp theo bạn mở file status_bar_expanded.xml tại mục systemui
es\layout
coppy đường dẫn này
Mã:<linearlayout android:orientation="horizontal" android:background="#00000000" android:layout_width="fill_parent" android:layout_height="wrap_content" android:baselinealigned="false"> <com.android.systemui.statusbar.policy.keybuttonview android:id="@id/recent_apps" android:background="@drawable/vn_ic_task" android:paddingright="60.0dip" android:layout_width="60.0dip" android:layout_height="60.0dip" android:layout_torightof="@id/settings_button" android:contentdescription="@string/accessibility_recent" systemui:keycode="187" systemui:keyrepeat="false" systemui:glowbackground="@drawable/vn_ic_btn_press" /> <com.android.systemui.statusbar.policy.keybuttonview android:id="@id/back" android:background="@drawable/vn_ic_calllog" android:paddingright="60.0dip" android:layout_width="60.0dip" android:layout_height="60.0dip" android:layout_torightof="@id/recent_apps" android:contentdescription="@string/accessibility_back" systemui:keycode="5" systemui:keyrepeat="false" systemui:glowbackground="@drawable/vn_ic_btn_press" /> <com.android.systemui.statusbar.policy.keybuttonview android:id="@id/back" android:background="@drawable/vn_ic_music" android:paddingright="60.0dip" android:layout_width="60.0dip" android:layout_height="60.0dip" android:layout_torightof="@id/recent_apps" android:contentdescription="@string/accessibility_back" systemui:keycode="79" systemui:keyrepeat="false" systemui:glowbackground="@drawable/vn_ic_btn_press" /> <com.android.systemui.statusbar.policy.keybuttonview android:id="@id/back" android:background="@drawable/vn_ic_music_1" android:paddingright="60.0dip" android:layout_width="60.0dip" android:layout_height="60.0dip" android:layout_torightof="@id/recent_apps" android:contentdescription="@string/accessibility_back" systemui:keycode="25" systemui:keyrepeat="false" systemui:glowbackground="@drawable/vn_ic_btn_press" /> <com.android.systemui.statusbar.policy.keybuttonview android:id="@id/back" android:background="@drawable/vn_ic_music_2" android:paddingright="60.0dip" android:layout_width="60.0dip" android:layout_height="60.0dip" android:layout_torightof="@id/recent_apps" android:contentdescription="@string/accessibility_back" systemui:keycode="24" systemui:keyrepeat="false" systemui:glowbackground="@drawable/vn_ic_btn_press" /> <com.android.systemui.statusbar.policy.keybuttonview android:id="@id/back" android:background="@drawable/vn_ic_lock" android:paddingright="60.0dip" android:layout_width="60.0dip" android:layout_height="60.0dip" android:layout_torightof="@id/recent_apps" android:contentdescription="@string/accessibility_back" systemui:keycode="26" systemui:keyrepeat="false" systemui:glowbackground="@drawable/vn_ic_btn_press" /> </linearlayout>
nhũng chỗ mình đánh dấu vàng đó là các icon bạn tự tạo và đổi tên theo bạn muốn.
vn_ic_task
vn_ic_calllog
vn_ic_music
vn_ic_music_1
vn_ic_music_2
vn_ic_lock
vn_ic_btn_press ( cái icon này ở cuối để cho hiệu ứng mầu khi ấn vào nó hiện mầu )
tiếp theo bạn vào systemui
es\values mở file public.xml
tìm đến cuối đoạn drawable
sau đó thê vào như hình
bạn chú ý chánh trùng mã số 0x7f020287 bạn lên tìm cái số cuối cùng tại drawable là bao nhiêu sau đó bạn viết tiếp vào là đc..
thứ tự của nó mình ví dụ như sau
0x7f020280 đến 0x7f020289 từ 0x7f020289 là 0x7f02028a đến 0x7f02028f
đó giờ bạn có thể mò xem có đc ko..
thực sự viết 1 bài hướng dẫn ko hề đơn giản :
là 1 biến thể của lock home hiện mà thôi.
1. decomplie systemui.apk nhé
- systemui.apk/res/layout/status_bar.xml
cop code này vào vị trí như hình
Mã:<linearlayout android:gravity="left" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent"> <com.android.systemui.statusbar.policy.keybuttonview android:id="@id/home" android:paddingright="0.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/vnhome" android:contentdescription="@string/accessibility_home" systemui:keycode="3" systemui:glowbackground="@drawable/ic_sysbar_highlight" /> </linearlayout> <linearlayout android:gravity="right" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent"> <com.android.systemui.statusbar.policy.keybuttonview android:id="@id/back" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginleft="0.0dip" android:src="@drawable/vnlock" android:singleline="true" android:layout_torightof="@id/recent_apps" android:layout_alignparentleft="true" android:contentdescription="@string/accessibility_back" systemui:keycode="26" systemui:glowbackground="@drawable/ic_sysbar_highlight" /> </linearlayout>
save.
2. down 2 file này về
https://www.dropbox.com/sh/4lrb2n82k7xbw3q/5mlxoawesv
cho vào systemui.apk/res/drawable-xhdpi/
3. xong recomplie
1. systemui.apk/res/layout/status_bar.xml
move( không phải là cop nhé) dòng code này lên vị trí như hình
2. muốn icon wifi sang phải icon sóng thì move như hình
- systemui.apk/res/layout/signal_cluster_view.xml
các bạn để ý ô màu xanh là mình thay code để chỉnh icon wifi nếu bị lỗi nó trèo cao quá nhé.
cái này lần đầu các bạn ko cần mod vội. nếu bị mới sửa code đấy
3. muốn icon 3g(h+) trên icon sóng như này thì sửa như sau
- trước
- sau
secphone
es\layout\incall_button_view.xml
move code như hình
trước
sau
seccontacts
es\layout-sw359dp-xxhdpi\dialpad_additional_buttons.xml
chỉ move code trong ô khoanh đỏ như hình
trước
sau
1. tư duy 1 chút nhé. có thể áp dụng cách lấy code của các mod khác.
2. đầu tiên tìm code mạng nó nằm ở đâu
mình sẽ tìm thấy trong file
systemui/res/layout/carrier_label.xml
3. cop dòng code mạng đó và sửa đổi cho phù hợp. bạn cần 1 chút kiến thức về code. học theo a google là có hết
Mã:<textview android:textappearance="@style/textappearance.statusbar.expanded.network" android:textcolor="#ffffffff" android:layout_gravity="center" android:id="@id/carrier_label" android:layout_width="fill_parent" android:layout_height="wrap_content" />
các bạn muốn để vào chỗ nào tuỳ các bạn muốn nó hiển thị ở đâu.
vd mình muốn nó như hình thì chèn code vào chỗ như thế này
4. xong
1. secsettings/res/xml/device_info_settings.xml
add code này vào vị trí như hình.
Mã:<preferencecategory android:layout="@layout/thanhfhuongf" android:title="" android:key="blah" />
2. down 2 file này về
https://www.dropbox.com/sh/sodjesbm356x60e/rbf0dp9o6i
file xml thì cho vào secsettings/res/layout/
file ảnh png thì cho vào secsettings/res/drawable/
các bạn thay ảnh với kích thước như thế bằng file ảnh của riêng bạn nhé.
3. xong
1. secsettings\code
es\xml/display_settings_2013.xml
chèn code như hình
<preferencescreen android:title="torchlight" android:key="torchlight" android:fragment="com.android.settings.torchlight. torchlightsettings" />
2. secsettings\code
es\xml/display_settings.xml
chèn code như hình
Mã:<preferencescreen android:title="torchlight" android:key="torchlight" android:fragment="com.android.settings.torchlight.torchlightsettings" />
3. xong
1. systemui/res/layout/status_bar.xml
tìm code
Mã:<imageview android:id="@id/black_bg" android:background="#ff000000" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="fill_parent" />
thay bằng
Mã:<linearlayout android:id="@id/black_bg" android:background="#ff000000" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="fill_parent"> <linearlayout android:id="@id/black_bg_pattern_layout" android:layout_width="fill_parent" android:layout_height="fill_parent" android:alpha="1.0"> <imageview android:id="@id/black_bg_pattern" android:background="#ff000000" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="fill_parent" /> </linearlayout> </linearlayout>
tìm code
Mã:<linearlayout android:orientation="horizontal" android:id="@id/system_icon_area" android:layout_width="wrap_content" android:layout_height="fill_parent" android:alpha="@dimen/system_icon_area_alpha"> <linearlayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusicons" android:layout_width="wrap_content" android:layout_height="fill_parent" /> <linearlayout android:gravity="center" android:orientation="horizontal" android:id="@id/signal_battery_cluster" android:paddingleft="2.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent">
thay bằng
Mã:<linearlayout android:gravity="right|center" android:orientation="horizontal" android:id="@id/system_icon_area" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" android:layout_alignparentright="true" android:alpha="0.8"> <linearlayout android:gravity="right|center" android:orientation="horizontal" android:id="@id/statusicons" android:layout_width="wrap_content" android:layout_height="fill_parent" /> <linearlayout android:gravity="right|center" android:orientation="horizontal" android:id="@id/signal_battery_cluster" android:paddingleft="2.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent">
xoá code
Mã:<com.android.systemui.statusbar.policy.clock android:textsize="@dimen/status_bar_clock_text_size" android:textcolor="#ffffffff" android:ellipsize="none" android:gravity="left|center" android:id="@id/clock" android:paddingleft="3.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleline="true" android:includefontpadding="false" />
thêm code vào vị trí như hình
Mã:<linearlayout android:gravity="center" android:orientation="horizontal" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:alpha="0.8"> <com.android.systemui.statusbar.policy.clock android:textsize="@dimen/status_bar_clock_text_size" android:textcolor="#ffffffff" android:gravity="center" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleline="true" /> </linearlayout>
2. systemui/res/values/ids.xml
thêm code như hình
Mã:<item type="id" name="black_bg_pattern">false</item> <item type="id" name="black_bg_pattern_layout">false</item>
3. xong
-
28-05-2014, 01:19 PM #4sup9333 Guest
mod cho kitkat 4.4
- mod đưa battery về 4.3
- mod setting mang giao diện giống s5 ( chỉ dành cho 4.4) by @@nguyenxuanhoa
- mod ghi âm cuộc gọi
- mod sms v2
1.tắt tự động sms sang mms khi viết quá 3 trang và
2.tắt tự động sms sang mms khi add kí tự mặt cười emoij.
3.tắt sms log trong call log
4. bật backup/restore sms.
1. down file này về
https://www.dropbox.com/s/bmki3vrdrcfo775/pin kitkat.rar
giải nén :
- 2 folder drawable, drawable-xxhdpi thì chép vào đường dẫn như thế của systemui. ( note 2 và s3 thì chép cả icon battery vào drawable-xhdpi nữa nhé)
- file batterycontroller.smali trong folder smali thì chép vào systemui\smali\com\android\systemui\statusbar\poli cy\
(file batterycontroller.smali này mình sẽ sửa lại lần nữa sau nhé. vì mình cần id trong public.xml)
2. systemui
es\layout\status_bar.xml
tìm code này
Mã:<com.android.systemui.batterymeterview android:id="@id/battery" android:layout_width="@dimen/battery_icon_width" android:layout_height="@dimen/battery_icon_height" android:layout_marginbottom="0.33000004dip" android:layout_marginstart="5.0dip" />
thay bằng
Mã:<imageview android:gravity="center" android:id="@id/battery" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginbottom="1.0dip" android:layout_marginstart="2.0dip" />
3. systemui\smali\com\android\systemui\statusbar\poli cy\batterycontroller$batterystatechangecallback.sm ali
tìm code này ( hình màu đỏ )
Mã:.method public abstract onbatterylevelchanged(iz)v
Mã:.method public abstract onbatterylevelchanged(izi)v
4. systemui\smali\com\android\systemui\statusbar\phon e\phonestatusbar.smali
- tìm code này
Mã:lcom/android/systemui/statusbar/phone/phonestatusbar;->mbatterycontroller
- chèn thêm code này dưới nó ( khung màu xanh )
Mã:move-object/from16 v0, p0 iget-object v0, v0, lcom/android/systemui/statusbar/phone/phonestatusbar;->mbatterycontroller:lcom/android/systemui/statusbar/policy/batterycontroller; move-object/from16 v26, v0 move-object/from16 v0, p0 iget-object v0, v0, lcom/android/systemui/statusbar/phone/phonestatusbar;->mstatusbarview:lcom/android/systemui/statusbar/phone/phonestatusbarview; move-object/from16 v25, v0 const v27, 0x7f070051 move-object/from16 v0, v25 move/from16 v1, v27 invoke-virtual {v0, v1}, lcom/android/systemui/statusbar/phone/phonestatusbarview;->findviewbyid(i)landroid/view/view; move-result-object v25 check-cast v25, landroid/widget/imageview; move-object/from16 v0, v26 move-object/from16 v1, v25 invoke-virtual {v0, v1}, lcom/android/systemui/statusbar/policy/batterycontroller;->addiconview(landroid/widget/imageview;)v
- tìm code này
Mã:iput-object v0, v1, lcom/android/systemui/statusbar/phone/phonestatusbar;->mbatterytext
- chèn thêm code này dưới nó
Mã:move-object/from16 v0, p0 iget-object v0, v0, lcom/android/systemui/statusbar/phone/phonestatusbar;->mbatterycontroller:lcom/android/systemui/statusbar/policy/batterycontroller; move-object/from16 v25, v0 move-object/from16 v0, p0 iget-object v0, v0, lcom/android/systemui/statusbar/phone/phonestatusbar;->mbatterytext:landroid/widget/textview; move-object/from16 v26, v0 invoke-virtual/range {v25 .. v26}, lcom/android/systemui/statusbar/policy/batterycontroller;->addlabelview(landroid/widget/textview;)v
5. recomplie systemui. chưa xong đâu build để lấy id trong pulic.xml thôi.
6. tiếp tục decomplie lần 2 file systemui vừa build xong.
systemui
es\values\public.xml
tìm 5 thằng này vừa mới xuất hiện. trước khi bạn build thì ko có đâu nhé. mục đích mẹo của mình là vậy. nếu thêm id ban đầu sẽ rất khó để set được id. vậy nên ta cho nó tự tạo id.
7. systemui\smali\com\android\systemui\statusbar\poli cy\batterycontroller.smali
sửa id theo pulic.xml cuả bạn nhé.
- dòng 85 sửa id theo
Mã:<public type="drawable" name="tw_stat_sys_battery" id="................." />
tương tự các dòng khác
- dòng 90
Mã:<public type="drawable" name="tw_stat_sys_battery_charge" id=".........." />
Mã:<public type="drawable" name="tw_stat_sys_battery_red" id="............" />
Mã:<public type="drawable" name="tw_stat_sys_battery_incompatible_vzw" id="............." />
Mã:<public type="string" name="accessibility_battery_level" id="..............." />
Mã:<public type="drawable" name="tw_stat_sys_battery_usb_not_charge" id=" .............." />
Mã:<public type="drawable" name="tw_stat_sys_battery_not_charge" id="............" />
Mã:<public type="string" name="status_bar_settings_battery_meter_format" id="............" />
-
28-05-2014, 02:59 PM #5tonlee Guest
híc
-
28-05-2014, 03:02 PM #6idiot1 Guest
đây cụ ơi em dùng cái tool này mà cứ bung ra gói vào là đã lỗi rồi,cụ xem giúp em đi cái super này đây
-
28-05-2014, 09:17 PM #7hoatam_kids Guest
ngon
gửi từ im-a900k trên app choimobile.
-
29-05-2014, 03:01 AM #8muabantk GuestGửi bởi dokyson
-
29-05-2014, 04:18 AM #9phatmocgia GuestGửi bởi hoanqv3
-
29-05-2014, 05:42 AM #10websitebanhang.vn GuestGửi bởi dokyson
sốt ruột
Ngọc Bích xanh thực chất thuộc dòng đá đá hoa (jade). Và cẩm thạch là tên gọi chung của ngọc bích. Vì thực chất chúng thuộc dòng đá đa khoáng được hình thành từ chất Silicat dưới dạng dioxy. Ngọc...
Thảo luận Vòng tay ngọc bích xanh...