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.
  • Metadata Adjustment: Update application metadata in the AndroidManifest.xml file.
  • Configurable Settings: Store and manage settings in a JSON configuration file.
  • Facebook Integration Configuration: Supports updating Facebook App settings in your decoded APK.
  • For educational purposes: Intended for learning about Android app structure and reverse engineering in legal, ethical contexts.

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.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.7.tar.gz (32.6 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.7-py3-none-any.whl (25.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for demodapk-1.1.7.tar.gz
Algorithm Hash digest
SHA256 51b64cd9c6ecd173b956a8efec55aad4fee0fa8526768008793d022df0c75a42
MD5 ab25de4d49665b0cf3f1e18ae838a6dc
BLAKE2b-256 04efd1b9f99dc937a9fa513ac7c3c67ff5c01aca3c859729086308d4e0e25aef

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for demodapk-1.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 4e23bc3679cc45a50be54f02bd92d3bade26807ec5992d0002372b6fdbe92231
MD5 5859aa607aa294c6e5281f33f4189e7b
BLAKE2b-256 957bde716ec8876ff18304b3a93b5ea388b2677aae44602c652ea3152dd88d32

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