Skip to main content

A Demo CLI for modifying APK resources via config

Project description

DemodAPK

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

Features

  • Decode and build APKs with custom commands.
  • Rename packages and modify resources.
  • Update AndroidManifest metadata.
  • Manage settings via JSON config.
  • Configure Facebook App integration.
  • For educational and ethical learning purposes.

Requirements

  • Python v3.10.* 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

config.json
{
  "DemodAPK": {
    "com.demodapk.lite": {
      "app_name": "DemodAPK"
      "apkeditor": {
          "jarpath": "~/.apkeditor/apkeditor.jar",
          "javaopts": "-Xmx8G",
          "output": "./build/DemodAPK"
          "clean": false,
          "dex": 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",
          "./scripts/fixbluebutton.sh"
        ],
        "end": [
          {
              "run": "apksigner sign --key ./assets/keys/android.pk8 --cert ./assets/keys/android.x509.pem $BUILD",
              "title": "Signing Build"
          }
        ]
      },
      "level": 2,
      "package": "com.demodapk.hyper",
      "facebook": {
        "app_id": "2000000000001",
        "client_token": "example_client_token",
        "login_protocol_scheme": "fb2000000000001"
      },
      "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.15.tar.gz (530.0 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.15-py3-none-any.whl (38.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for demodapk-1.1.15.tar.gz
Algorithm Hash digest
SHA256 3a7b386a214ee6f749414ea3014b7f624ca5c4c341f6935bf492c3d24317a216
MD5 e3f98167f92326b5583bdb9e85635e0a
BLAKE2b-256 6f285bd5b6203b9670f2c423feab234f57223eee3ea6e05f2e0ffb9f6ad1a2a7

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for demodapk-1.1.15-py3-none-any.whl
Algorithm Hash digest
SHA256 3e4a044e8d2ff062b8e39c69dd2e3fd6b2b807de4856fee1c001f1a27195ce21
MD5 55344b8099a8852d46d34ad53100bcb6
BLAKE2b-256 6b2afb87dff015c4710498b9ca4394302b5431c5099213bad1ccb2702f882ce7

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