- decompile secsettings.apk (deodex only)
- mở file arrays.xml (res/values). kiểm tra xem có đoạn này chưa, nếu chưa có thì thêm vào:
Mã:
<string-array name="torchlight_timeout_entries">
<item>15 seconds</item>
<item>30 seconds</item>
<item>1 minute</item>
<item>2 minutes</item>
<item>10 minutes</item>
</string-array>
<string-array name="torchlight_timeout_values">
<item>15000</item>
<item>30000</item>
<item>60000</item>
<item>120000</item>
<item>600000</item>
</string-array>
tượng tự với plurals.xml và strings.xml
plurals.xml:
Mã:
<plurals name="torchlight_timeout_minutes">
<item quantity="other">%d minutes</item>
<item quantity="one">1 minute</item>
</plurals>
<plurals name="torchlight_timeout_seconds">
<item quantity="other">%d seconds</item>
<item quantity="one">1 second</item>
</plurals>
strings.xml
Mã:
<string name="torchlight_settings">torch light</string>
<string name="torchlight_settings_title">torch light</string>
<string name="torchlight_summary">turn on the torch light by pressing and holding the volume up key while the screen is off.</string>
<string name="torchlight_timeout_title">torch light time-out</string>
<string name="torchlight_timeout_summary">after %1$s</string>
hướng mod nhấn giữ nút âm lượng để bật đèn pin trên rom lollipop. bài viết thực hiện bởi [img]data/avatars/s/6/6902.jpg?1467795339[/img]@mạnh_it - choimobille.vn
- tải file torchlight_lollipop_**************.zip (pass: **************) về, giải nén ra. copy smali vào smali, res vào res (chú ý phải đúng đường dẫn)
- compile secsettings lại (chứ axong nhé, để lấy id thôi)
- decompile file secsettings.apk mới và vừa compile (decompile ra một thư mục khác ví vụ: settings_new để tránh nhầm lẫn)
- mở file public.xml (settings_new/res/values), torchlightsettings.smali (settings_new/smali/com/android/settings/torchlight/)
- sửa torchlightsettings.smali (settings_new/smali/com/android/settings/torchlight/)
tìm trong public.xml
Mã:
<public type="plurals" name="torchlight_timeout_minutes"
lấy id của nó thay cho 0x7f11000e (dòng 101)
Mã:
<public type="plurals" name="torchlight_timeout_seconds"
thay cho 0x7f11000f (dòng 181)
Mã:
<public type="string" name="torchlight_timeout_summary"
thay cho 0x7f0a19ed (dòng 270)
Mã:
<public type="dimen" name="action_bar_switch_padding"
thay cho 0x7f0f0053 (dòng 357)
Mã:
<public type="xml" name="torchlight_settings"
thay cho 0x7f070105 (dòng 443)
Mã:
<public type="layout" name="torchlight_help"
thay cho 0x7f040291 (dòng 465)
- compile. xong!
bài viết thực hiện bởi [img]data/avatars/s/6/6902.jpg?1467795339[/img]@mạnh_it - choimobille.vn
View more random threads:
- Thêm full tiếng Việt cho các máy Samsung Rom 4.1.x trở lên chỉ trong nốt nhạc !
- [Port] Bàn phím và trình duyệt S6 cho S5, N3, N4, S4...
- Cách đóng gói rom Samsung [ Phần 1 ]
- Mod Mms (Tin Nhắn) Lollipop/Kitkat Full
- Android 6.0.1 - Tổng hợp, thảo luận, Mods Rom Samsung Android 6.0.1
- [Quan trọng] Các vấn đề về Up Rom, CSC, Root, fix flash Rom Odin failed,... Android 5.1.1 trở lên
- Team build rom tar , dịch rom no root, add việt hóa.
- New Odin3 v3.11.1: Hỗ trợ flash HOME_CSC file Galaxy S7, S7 edge,... 2016 !
- Tạo Rom ZIP - Một số lệnh cơ bản updater-script
- [Rom][Big Update][2015] SpaceX Lollipop Galaxy S5, S5 LTE-A, Note 3, J(SC-02F)
Đại lý thiết bị tự động hóa chuyên cung cấp Mô đun giám sát Mayr Roba tại Việt Nam. Mayr Roba là nhà sản xuất hàng đầu về mô đun, phanh an toàn, khớp nối an toàn và khớp nối trục. Danh mục sản...
Mô đun giám sát Mayr Roba Việt Nam