1. Hiện tại trang web đang trong quá hình chuyển đổi và tái cấu trúc lại chuyên mục nên có thể một vài chức năng chưa hoàn thiện, một số bài viết và chuyên mục sẽ thay đổi. Nếu sự thay đổi này làm bạn phiền lòng, mong bạn thông cảm. Chúng tôi luôn hoan nghênh mọi ý kiến đóng góp để chúng tôi hoàn thiện và phát triển. Cảm ơn

Tổng Hợp Mọi Thứ Về Chỉnh Sửa File APK ( Cơ Bản ) !

Thảo luận trong 'ANDROID - KỸ THUẬT CHUNG' bắt đầu bởi Taki7610, 14/9/14.

  1. Taki7610

    Taki7610 Unlock_GSM

    Bài viết:
    5,010
    Đã được thích:
    3,188
    Điểm thành tích:
    113
    1.Hướng Dẫn Decompile và Compile File APK ( Cơ Bản )


    - Hiện tại tình hình chỉnh sửa các file APK từ các bản ROM hay Firmware ở các dòng điện thoại Android khá phổ biến. Mình hướng dẫn cơ bản các bước để chỉnh sửa các tập tin APK một cách đơn giản dành cho anh em nào chưa hiểu hay muốn tự mình chỉnh sửa file APK từ cơ bản và nâng cao Build ROM .


    [​IMG]
     
  2. Taki7610

    Taki7610 Unlock_GSM

    Bài viết:
    5,010
    Đã được thích:
    3,188
    Điểm thành tích:
    113
    Hướng Dẫn Decompile và Compile File APK ( Cơ Bản ) !

    - Decompile APK : Xả file APK .

    - Compile APK : Đóng gói file APK .

    - Muốn thực hiện xả và đóng gói file APK, PC cần có :

    . JAVA SDK and JRE
    . Android SDK
    . Apktool core tool



    - Khi đã có đầy đủ các thành phần trên, ta thực hiện lệnh xả và đóng file APK bằng Apktool :

    [​IMG]

    - Xả file APK theo lệnh sau : C:\apktool_1.5.1\apktool>apktool d name.apk

    Mã:
    C:\apktool_1.5.1\apktool>apktool d "D:\Dien_Thoai\Android\Samsung\Galaxy Note 3\
    N9002-2sim\apk-edit-private\SecSettings.apk"
    I: Using Apktool 2.0.0-Beta9 on SecSettings.apk
    I: Loading resource table...
    I: Loading resource table...
    I: Decoding AndroidManifest.xml with resources...
    I: Loading resource table from file: C:\Users\Dell_64\apktool\framework\1.apk
    I: Regular manifest package...
    I: Decoding file-resources...
    I: Loading resource table from file: C:\Users\Dell_64\apktool\framework\2.apk
    Cleaning up unclosed ZipFile for archive C:\Users\Dell_64\apktool\framework\2.ap
    k
    S: Could not decode file, replacing by FALSE value: xml-vi/timezones.xml
    I: Decoding values */* XMLs...
    I: Copying assets and libs...
    I: Copying unknown files/dir...
    I: Copying original files...


    -Đóng gói file APK theo lệnh sau : C:\apktool_1.5.1\apktool>apktool b name.apk

    Mã:
    C:\apktool_1.5.1\apktool>apktool b C:\apktool_1.5.1\apktool\SecSettings
    I: Using Apktool 2.0.0-Beta9 on SecSettings
    W: Could not find sources
    I: Checking whether resources has changed...
    I: Building resources...
    aapt: warning: string 'accessibility_script_injection_allowed' has no default tr
    anslation in C:\apktool_1.5.1\apktool\SecSettings\res; found: vi
    aapt: warning: string 'accessibility_script_injection_button_allow' has no defau
    lt translation in C:\apktool_1.5.1\apktool\SecSettings\res; found: vi
    aapt: warning: string 'accessibility_script_injection_button_disallow' has no de
    fault translation in C:\apktool_1.5.1\apktool\SecSettings\res; found: vi
    aapt: warning: string 'accessibility_script_injection_disallowed' has no default
     translation in C:\apktool_1.5.1\apktool\SecSettings\res; found: vi
    aapt: warning: string 'cell_broadcast_settings_summary' has no default translati
    on in C:\apktool_1.5.1\apktool\SecSettings\res; found: vi
    aapt: warning: string 'development_warning_msg' has no default translation in C:
    \apktool_1.5.1\apktool\SecSettings\res; found: vi
    aapt: warning: string 'direct_access_actions_negative_mode_off' has no default t
    ranslation in C:\apktool_1.5.1\apktool\SecSettings\res; found: en_US ko zh_CN
    aapt: warning: string 'direct_access_actions_negative_mode_on' has no default tr
    anslation in C:\apktool_1.5.1\apktool\SecSettings\res; found: en_US ko zh_CN
    aapt: warning: string 'exit_setup' has no default translation in C:\apktool_1.5.
    1\apktool\SecSettings\res; found: vi
    aapt: warning: string 'gadget_gps' has no default translation in C:\apktool_1.5.
    1\apktool\SecSettings\res; found: vi
    aapt: warning: string 'samba_config_cancle' has no default translation in C:\apk
    tool_1.5.1\apktool\SecSettings\res; found: vi
    aapt: warning: string 'samba_config_ok' has no default translation in C:\apktool
    _1.5.1\apktool\SecSettings\res; found: vi
    aapt: warning: string 'samba_configname' has no default translation in C:\apktoo
    l_1.5.1\apktool\SecSettings\res; found: vi
    aapt: warning: string 'samba_configure' has no default translation in C:\apktool
    _1.5.1\apktool\SecSettings\res; found: vi
    aapt: warning: string 'samba_delete' has no default translation in C:\apktool_1.
    5.1\apktool\SecSettings\res; found: vi
    aapt: warning: string 'samba_delete_log' has no default translation in C:\apktoo
    l_1.5.1\apktool\SecSettings\res; found: vi
    aapt: warning: string 'samba_done' has no default translation in C:\apktool_1.5.
    1\apktool\SecSettings\res; found: vi
    aapt: warning: string 'samba_network' has no default translation in C:\apktool_1
    .5.1\apktool\SecSettings\res; found: vi
    aapt: warning: string 'samba_network_not' has no default translation in C:\apkto
    ol_1.5.1\apktool\SecSettings\res; found: vi
    aapt: warning: string 'samba_passwd' has no default translation in C:\apktool_1.
    5.1\apktool\SecSettings\res; found: vi
    aapt: warning: string 'samba_popup_ok' has no default translation in C:\apktool_
    1.5.1\apktool\SecSettings\res; found: vi
    aapt: warning: string 'samba_show_passwd' has no default translation in C:\apkto
    ol_1.5.1\apktool\SecSettings\res; found: vi
    aapt: warning: string 'samba_username_dialog' has no default translation in C:\a
    pktool_1.5.1\apktool\SecSettings\res; found: vi
    aapt: warning: string 'show_hw_overdraw' has no default translation in C:\apktoo
    l_1.5.1\apktool\SecSettings\res; found: vi
    aapt: warning: string 'show_hw_overdraw_summary' has no default translation in C
    :\apktool_1.5.1\apktool\SecSettings\res; found: vi
    aapt: warning: string 'user_dict_multiple_settings_title' has no default transla
    tion in C:\apktool_1.5.1\apktool\SecSettings\res; found: vi
    aapt: warning: string 'user_dict_settings_titlebar' has no default translation i
    n C:\apktool_1.5.1\apktool\SecSettings\res; found: vi
    aapt: warning: string 'user_dict_single_settings_title' has no default translati
    on in C:\apktool_1.5.1\apktool\SecSettings\res; found: vi
    aapt: warning: string 'user_summary_active' has no default translation in C:\apk
    tool_1.5.1\apktool\SecSettings\res; found: vi
    aapt: warning: string 'user_summary_inactive' has no default translation in C:\a
    pktool_1.5.1\apktool\SecSettings\res; found: vi
    aapt: warning: string 'wfd_settings_cannot_proceed_cause_drm' has no default tra
    nslation in C:\apktool_1.5.1\apktool\SecSettings\res; found: vi
    aapt: warning: string 'wfd_settings_cannot_proceed_cause_hdmi_busy' has no defau
    lt translation in C:\apktool_1.5.1\apktool\SecSettings\res; found: vi
    aapt: warning: string 'wfd_settings_cannot_proceed_cause_hotspot_busy' has no de
    fault translation in C:\apktool_1.5.1\apktool\SecSettings\res; found: vi
    aapt: warning: string 'wfd_settings_cannot_proceed_cause_max_res' has no default
     translation in C:\apktool_1.5.1\apktool\SecSettings\res; found: vi
    aapt: warning: string 'wfd_settings_cannot_proceed_cause_p2p_busy' has no defaul
    t translation in C:\apktool_1.5.1\apktool\SecSettings\res; found: vi
    aapt: warning: string 'wfd_settings_cannot_proceed_cause_sbeam_busy' has no defa
    ult translation in C:\apktool_1.5.1\apktool\SecSettings\res; found: vi
    aapt: warning: string 'wfd_settings_my_device' has no default translation in C:\
    apktool_1.5.1\apktool\SecSettings\res; found: vi
    aapt: warning: string 'wfd_settings_ongoing_restart' has no default translation
    in C:\apktool_1.5.1\apktool\SecSettings\res; found: vi
    aapt: warning: string 'wfd_settings_restart' has no default translation in C:\ap
    ktool_1.5.1\apktool\SecSettings\res; found: vi
    aapt: warning: string 'wfd_settings_terminates_scan' has no default translation
    in C:\apktool_1.5.1\apktool\SecSettings\res; found: vi
    aapt: warning: string 'wfd_settings_update_dongle' has no default translation in
     C:\apktool_1.5.1\apktool\SecSettings\res; found: vi
    aapt: warning: string 'wfd_settings_update_process' has no default translation i
    n C:\apktool_1.5.1\apktool\SecSettings\res; found: vi
    aapt: warning: string 'wifi_setup_screentext1' has no default translation in C:\
    apktool_1.5.1\apktool\SecSettings\res; found: vi
    aapt: warning: string 'wifi_setup_screentext1_scamera' has no default translatio
    n in C:\apktool_1.5.1\apktool\SecSettings\res; found: vi
    aapt: warning: string 'wifi_setup_screentitle' has no default translation in C:\
    apktool_1.5.1\apktool\SecSettings\res; found: vi
    aapt: warning: string 'wimax_settings_summary' has no default translation in C:\
    apktool_1.5.1\apktool\SecSettings\res; found: vi
    I: Building apk file...
    I: Copying unknown files/dir...
     
  3. Taki7610

    Taki7610 Unlock_GSM

    Bài viết:
    5,010
    Đã được thích:
    3,188
    Điểm thành tích:
    113
    Hướng Dẫn Cách Thêm Một Ngôn Ngữ Vào File APK Gốc !

    Hướng Dẫn Cách Thêm Một Ngôn Ngữ Vào File APK Gốc !


    .Tiếp bài trên,

    1. Sau khi ta đã có 1 file xả APK từ ROM hoặc từ Phone Android, ta tiếp tục chép thư mục có chứa file ngôn ngữ vào thư mục Res trong file APK.


    [​IMG]

    2. Thư mục chứa các file ngôn ngữ .

    [​IMG][​IMG]

    3. Đóng gói lại với một gói ngôn ngữ mới bên trong .

    [​IMG][​IMG]

    Mã:
    C:\apktool_1.5.1\apktool>apktool b C:\apktool_1.5.1\apktool\SecSettings
    I: Using Apktool 2.0.0-Beta9 on SecSettings
    W: Could not find sources
    I: Checking whether resources has changed...
    I: Building resources...
    aapt: warning: string 'accessibility_script_injection_allowed' has no default tr
    anslation in C:\apktool_1.5.1\apktool\SecSettings\res; found: vi
    aapt: warning: string 'accessibility_script_injection_button_allow' has no defau
    lt translation in C:\apktool_1.5.1\apktool\SecSettings\res; found: vi
    aapt: warning: string 'accessibility_script_injection_button_disallow' has no de
    fault translation in C:\apktool_1.5.1\apktool\SecSettings\res; found: vi
    aapt: warning: string 'accessibility_script_injection_disallowed' has no default
     translation in C:\apktool_1.5.1\apktool\SecSettings\res; found: vi
    aapt: warning: string 'cell_broadcast_settings_summary' has no default translati
    on in C:\apktool_1.5.1\apktool\SecSettings\res; found: vi
    aapt: warning: string 'development_warning_msg' has no default translation in C:
    \apktool_1.5.1\apktool\SecSettings\res; found: vi
    aapt: warning: string 'direct_access_actions_negative_mode_off' has no default t
    ranslation in C:\apktool_1.5.1\apktool\SecSettings\res; found: en_US ko zh_CN
    aapt: warning: string 'direct_access_actions_negative_mode_on' has no default tr
    anslation in C:\apktool_1.5.1\apktool\SecSettings\res; found: en_US ko zh_CN
    aapt: warning: string 'exit_setup' has no default translation in C:\apktool_1.5.
    1\apktool\SecSettings\res; found: vi
    aapt: warning: string 'gadget_gps' has no default translation in C:\apktool_1.5.
    1\apktool\SecSettings\res; found: vi
    aapt: warning: string 'samba_config_cancle' has no default translation in C:\apk
    tool_1.5.1\apktool\SecSettings\res; found: vi
    aapt: warning: string 'samba_config_ok' has no default translation in C:\apktool
    _1.5.1\apktool\SecSettings\res; found: vi
    aapt: warning: string 'samba_configname' has no default translation in C:\apktoo
    l_1.5.1\apktool\SecSettings\res; found: vi
    aapt: warning: string 'samba_configure' has no default translation in C:\apktool
    _1.5.1\apktool\SecSettings\res; found: vi
    aapt: warning: string 'samba_delete' has no default translation in C:\apktool_1.
    5.1\apktool\SecSettings\res; found: vi
    aapt: warning: string 'samba_delete_log' has no default translation in C:\apktoo
    l_1.5.1\apktool\SecSettings\res; found: vi
    aapt: warning: string 'samba_done' has no default translation in C:\apktool_1.5.
    1\apktool\SecSettings\res; found: vi
    aapt: warning: string 'samba_network' has no default translation in C:\apktool_1
    .5.1\apktool\SecSettings\res; found: vi
    aapt: warning: string 'samba_network_not' has no default translation in C:\apkto
    ol_1.5.1\apktool\SecSettings\res; found: vi
    aapt: warning: string 'samba_passwd' has no default translation in C:\apktool_1.
    5.1\apktool\SecSettings\res; found: vi
    aapt: warning: string 'samba_popup_ok' has no default translation in C:\apktool_
    1.5.1\apktool\SecSettings\res; found: vi
    aapt: warning: string 'samba_show_passwd' has no default translation in C:\apkto
    ol_1.5.1\apktool\SecSettings\res; found: vi
    aapt: warning: string 'samba_username_dialog' has no default translation in C:\a
    pktool_1.5.1\apktool\SecSettings\res; found: vi
    aapt: warning: string 'show_hw_overdraw' has no default translation in C:\apktoo
    l_1.5.1\apktool\SecSettings\res; found: vi
    aapt: warning: string 'show_hw_overdraw_summary' has no default translation in C
    :\apktool_1.5.1\apktool\SecSettings\res; found: vi
    aapt: warning: string 'user_dict_multiple_settings_title' has no default transla
    tion in C:\apktool_1.5.1\apktool\SecSettings\res; found: vi
    aapt: warning: string 'user_dict_settings_titlebar' has no default translation i
    n C:\apktool_1.5.1\apktool\SecSettings\res; found: vi
    aapt: warning: string 'user_dict_single_settings_title' has no default translati
    on in C:\apktool_1.5.1\apktool\SecSettings\res; found: vi
    aapt: warning: string 'user_summary_active' has no default translation in C:\apk
    tool_1.5.1\apktool\SecSettings\res; found: vi
    aapt: warning: string 'user_summary_inactive' has no default translation in C:\a
    pktool_1.5.1\apktool\SecSettings\res; found: vi
    aapt: warning: string 'wfd_settings_cannot_proceed_cause_drm' has no default tra
    nslation in C:\apktool_1.5.1\apktool\SecSettings\res; found: vi
    aapt: warning: string 'wfd_settings_cannot_proceed_cause_hdmi_busy' has no defau
    lt translation in C:\apktool_1.5.1\apktool\SecSettings\res; found: vi
    aapt: warning: string 'wfd_settings_cannot_proceed_cause_hotspot_busy' has no de
    fault translation in C:\apktool_1.5.1\apktool\SecSettings\res; found: vi
    aapt: warning: string 'wfd_settings_cannot_proceed_cause_max_res' has no default
     translation in C:\apktool_1.5.1\apktool\SecSettings\res; found: vi
    aapt: warning: string 'wfd_settings_cannot_proceed_cause_p2p_busy' has no defaul
    t translation in C:\apktool_1.5.1\apktool\SecSettings\res; found: vi
    aapt: warning: string 'wfd_settings_cannot_proceed_cause_sbeam_busy' has no defa
    ult translation in C:\apktool_1.5.1\apktool\SecSettings\res; found: vi
    aapt: warning: string 'wfd_settings_my_device' has no default translation in C:\
    apktool_1.5.1\apktool\SecSettings\res; found: vi
    aapt: warning: string 'wfd_settings_ongoing_restart' has no default translation
    in C:\apktool_1.5.1\apktool\SecSettings\res; found: vi
    aapt: warning: string 'wfd_settings_restart' has no default translation in C:\ap
    ktool_1.5.1\apktool\SecSettings\res; found: vi
    aapt: warning: string 'wfd_settings_terminates_scan' has no default translation
    in C:\apktool_1.5.1\apktool\SecSettings\res; found: vi
    aapt: warning: string 'wfd_settings_update_dongle' has no default translation in
     C:\apktool_1.5.1\apktool\SecSettings\res; found: vi
    aapt: warning: string 'wfd_settings_update_process' has no default translation i
    n C:\apktool_1.5.1\apktool\SecSettings\res; found: vi
    aapt: warning: string 'wifi_setup_screentext1' has no default translation in C:\
    apktool_1.5.1\apktool\SecSettings\res; found: vi
    aapt: warning: string 'wifi_setup_screentext1_scamera' has no default translatio
    n in C:\apktool_1.5.1\apktool\SecSettings\res; found: vi
    aapt: warning: string 'wifi_setup_screentitle' has no default translation in C:\
    apktool_1.5.1\apktool\SecSettings\res; found: vi
    aapt: warning: string 'wimax_settings_summary' has no default translation in C:\
    apktool_1.5.1\apktool\SecSettings\res; found: vi
    I: Building apk file...
    I: Copying unknown files/dir...
    
    C:\apktool_1.5.1\apktool>
    


    4. Cuối cùng ta chép đè file resources.arsc đã build thành công từ thư mục APK vào file APK gốc được trích xuất ROM hoặc Phone.

    [​IMG][​IMG]
     

Chia sẻ trang này