Skip to main content

DemodAPK CLI for modify APK resources by config

Project description

DemodAPK

DemodAPK is a tool for modifying and editing an apk that has been decoded by APKEditor.

Features

  • Commands: Automatically decodes and builds APKs, with the ability to run commands after decoding and building.
  • Package Renaming: Easily rename package names in APK files.
  • Resource Modification: Modify resources in APK files as needed.
  • Facebook API Updates: Automatically replaces Facebook App details in the appropriate XML files.
  • Metadata Adjustment: Update application metadata in the AndroidManifest.xml file.
  • Configurable Settings: Store and manage settings in a JSON configuration file.
  • For educational purposes: You're learning how APK files work or exploring reverse engineering ethically.

Requirements

  • Python v3.x or higher.
  • Java v8 or higher.
  • Necessary libraries specified in requirements.txt.

Install

pip install demodapk

Build from Source

Clone the repository and install manually:

git clone https://github.com/Veha0001/DemodAPK.git
cd DemodAPK
# Run git fetch and git pull for latest change.
pip install .

Usage

Run the script with the following command:

demodapk [Options] <apkdir_decoded/apk_file>

For more about options run the command with -h.

Example

This is a `config.json` example file:
{
  "DemodAPK": {
    "com.overpower.game": {
      "app_name": "OMYRPG"
      "apkeditor": {
          "jarpath": "~/.apkeditor/apkeditor.jar",
          "javaopts": "-Xmx8G",
          "output": "omyrpg"
          "dex": true
      },
      "log": true,
      "commands": {
        "quietly": true,
        "begin": [
          {
            "run": "hexsaly -c beta.json open $BASE/root/lib/arm64-v8a/libil2cpp.so -i 0",
            "quiet": false
          },
          "rm -r $BASE/root/lib/armeabi-v7a"
        ],
        "end": [
          {
              "run": "apksigner sign --key ./assets/keys/android.pk8 --cert ./assets/keys/android.x509.pem $BUILD",
              "title": "Signing Build"
          }
        ]
      },
      "level": 2,
        "package": "com.super.gamerpg",
      "facebook": {
        "app_id": "0000000000000",
        "client_token": "dj2025id828018ahzl11",
        "login_protocol_scheme": "fb0000000000000"
      },
      "files": {
        "replace": {
            "patches/beta/libil2cpp_patched.so": "root/lib/arm64-v8a/libil2cpp.so"
        },
        "copy": {
            "assets/background.png": "res/drawable/background.png"
        }
      },
      "manifest": {
        "remove_metadata": [
          "com.google.android.gms.games.APP_ID"
        ]
      }
    }
  }

Follow the prompts to select the APK file and modify its contents according to your preferences.

License

This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.

Contributing

Contributions are welcome! Please open an issue or submit a pull request for any improvements or features.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

demodapk-1.1.5.tar.gz (32.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

demodapk-1.1.5-py3-none-any.whl (24.9 kB view details)

Uploaded Python 3

File details

Details for the file demodapk-1.1.5.tar.gz.

File metadata

  • Download URL: demodapk-1.1.5.tar.gz
  • Upload date:
  • Size: 32.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.32.4

File hashes

Hashes for demodapk-1.1.5.tar.gz
Algorithm Hash digest
SHA256 048cb168b3eb4347fe623ed794a2c0deb9ab5c7278f7357c9fa6c4e0129cad9f
MD5 9db4138cfc0de04cff704e74710c1437
BLAKE2b-256 cb72ee99efc99d609a4b03ad1cbb06ac0c0309a29a68d88b4a32e49d21842edd

See more details on using hashes here.

File details

Details for the file demodapk-1.1.5-py3-none-any.whl.

File metadata

  • Download URL: demodapk-1.1.5-py3-none-any.whl
  • Upload date:
  • Size: 24.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.32.4

File hashes

Hashes for demodapk-1.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 d28e003a9c3e4472055cc58d5236fce1bf22da288a4e3c6c942b108d9b8e7ca4
MD5 d216269176a242605f3dbd974218cb73
BLAKE2b-256 1ca3f7b532fc7ef25c74af9d5bcba9265c052202c32b1f80a458cb15c782c88c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page