Skip to content

Latest commit

 

History

History
57 lines (39 loc) · 1.48 KB

README_en.md

File metadata and controls

57 lines (39 loc) · 1.48 KB

中文 | English

  • AndroidApexTools

    A tool to help unpack and repack Android apex packages

    Project address: https://github.com/wcedla/AndroidApexTools

    Features

    Currently only supports Linux and WSL subsystem, tested on Ubuntu 22.04 in WSL2 on Win10

    1. Install Python 3 and Dependencies

    First, grant execute permissions to the folder.

    cd path/to/script
    chmod -R a+x .

    Then, install Python 3.

    sudo apt-get update
    sudo apt-get install python3

    Next, install Python 3-pip.

    sudo apt-get install python3-pip

    After that, install Protobuf.

    pip3 install protobuf==3.17.3
    sudo pip3 install protobuf==3.17.3

    2. Unpack

    cd path/to/script
    sudo python3 ./deapexer.py extract ./foo.apex

    After unpacking, manifest and payload folders will be generated under the script path. The manifest folder contains metadata that usually doesn't need modification. The payload folder contains the extracted img files from the original apex, which can be modified.

    23. Repack

    cd path/to/script
    sudo python3 ./apexer.py --api 33 ./bar.apex

    Make sure there are manifest and payload folders under the current path. The api parameter specifies the Android api version for this apex and is required.

    Note: The repacked apex will have a different signature from the system signature and needs core patch to work.