- 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ồng tin về dm-verity, DRK (Device Root Key), fix bootloop - Cách build kernel Root Android 6.0.1
- [Rom][Big Update][2015] SpaceX Lollipop Galaxy S5, S5 LTE-A, Note 3, J(SC-02F)
- Hỗ trợ Root Android 5.1.1 trở lên cho các thiết bị Samsung tại đây!
- Tạo Rom ZIP - Một số lệnh cơ bản updater-script
- [Port] Apps Galaxy S6 cho Galaxy S5, Note4, Note3, S4...
- Bảng giá điện thoại Samsung giá rẻ tại NewTechShop
- Hướng Dẫn Việt Hóa, Build Rom tar.md5 Samsung
- Hỗ trợ firmware, Stock Rom, Rom full, file PIT mới nhất cho mọi thiết bị Samsung Android tại đây!
- Trang web tải stock firmware cực nhanh của Samsung
- Hướng dẫn fix lỗi không hiện thị icon mạng H/H+ cho các máy Hàn (S/L/K)
Introducing the Rattan Pagoda Lantern—an exquisite fusion of traditional craftsmanship and modern design that adds warmth and sophistication to any setting. Crafted from natural rattan materials,...
Illuminate Your Space with...