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.cotcat.gitboxdemo": {
      "app_name": "CGitbox"
      "apkeditor": {
          "jarpath": "~/.apkeditor/apkeditor.jar",
          "javaopts": "-Xmx8G",
          "output": "./build/CuteGitbox"
          "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.cotcat.gitbox",
      "facebook": {
        "app_id": "2000000000001",
        "client_token": "dj2025id828018freekun11",
        "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.6.tar.gz (32.4 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.6-py3-none-any.whl (24.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for demodapk-1.1.6.tar.gz
Algorithm Hash digest
SHA256 070ea8d6c7d3d72bcfae5e5561eb7dfbb11be9d8b73b0fd231791ce40c7e24e2
MD5 ae56a98e37e3e567e9ff76019f3e1b43
BLAKE2b-256 83783756feca5f7d7d0fe875dbe27d327677782699a027ac213d2c60b1d13e8c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: demodapk-1.1.6-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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 37d343a08263d24d05ee9ceae98da692be5e086ec6cbd449c28d21eaa06e5ebf
MD5 861b3d302cadbed7f4d1b6d8991561e4
BLAKE2b-256 64af4461533dacad7ba487e88ae72e251bce6a7eaac1fc8127f3e96d0a0741fb

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