Kết quả 1 đến 7 của 7
  1. #1
    congi_bobox1x Guest

    TUT - Mod nhấn giữ nút âm lượng để bật đèn pin trên rom Lollipop

    - 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:


  2. #2
    anlvt181 Guest
    :d hay à nha. làm cho 4.4.2 đi e ^^

  3. #3
    uyenxinhj2 Guest
    mấy anh toàn dấu nghề

  4. #4
    black.7641 Guest
    bài viết này của a mạnh văn thiệu . phải edit thêm vào display setting

  5. #5
    pimouse Guest
    sao mình tải torchlight. zip và chép đúng đường dẫn chưa edit gì cả mà đóng gói cứ bị lỗi. mạnh cho hỏi là các code trên chèn vào chỗ nào của xml và phải gõ trực tiếp hay copy từ web vào tks bạn

  6. #6
    shoptonghopvn Guest
    bác [img]data/avatars/s/6/6902.jpg?1467795339[/img]@mạnh_it xem lại tut này giúp em với. em làm theo hướng dẫn mà ko được. thấy bác [img]data/avatars/s/100/100165.jpg?1467795339[/img]@vietanh.cn8 bảo phải edit thêm vào display setting là gì ấy ạ?

  7. #7
    thanhtung116 Guest
    Trích dẫn Gửi bởi vietanh.cn8
    bài viết này của a mạnh văn thiệu . phải edit thêm vào display setting
    bác cho em hỏi là thêm gì ạ?

Quyền viết bài

  • Bạn Không thể gửi Chủ đề mới
  • Bạn Không thể Gửi trả lời
  • Bạn Không thể Gửi file đính kèm
  • Bạn Không thể Sửa bài viết của mình
  •