MCPcopy Index your code
hub / github.com/Schwartzblat/WhatsAppPatcher

github.com/Schwartzblat/WhatsAppPatcher @2.0.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release 2.0.1 ↗ · + Follow
94 symbols 208 edges 19 files 3 documented · 3%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

WhatsApp Patcher

WhatsApp patcher is a program that patches WhatsApp apk.

Features

Feature Availability
Signature Verifier Bypass
Enable all AB tests X
Keep revoked for all messages
Disable read receipts x
Option to save view once media
Profile Picture Screenshot

There is support for apks, apkm and xapk files.

Requirements

  1. Python 3.11
  2. Java installed

Installation

git clone https://github.com/Schwartzblat/WhatsAppPatcher.git

cd WhatsAppPatcher

git submodule update --init --recursive

Requirements installation:

pip install -r requirements.txt
# Until stitch is available on PyPI
pip install --index-url https://test.pypi.org/simple/ stitch-test -U

Usage

python whatsapp_patcher/main.py -p ./WhatsApp.apk -o PatchedWhatsApp.apk -g YOUR_GOOGLE_API_KEY

You don't have to provide a Google API key, only if you want to patch the OAuth bypass feature.

This will determinate if you could use the Google Maps features inside WhatsApp.

Google API Key

To get a Google API key, follow these steps:

  1. Go to the Google Cloud Console.
  2. Create a new project or select an existing one.
  3. Navigate to the "APIs & Services" section.
  4. Click on "Enable APIs and Services" and search for the "Maps SDK for Android" and for "Places API".
  5. Enable the API for your project.
  6. Go to the "Credentials" tab and click on "Create Credentials".
  7. Select "API Key" from the dropdown menu.
  8. Copy the generated API key and use it in the Moovit Patcher.
  9. Make sure to restrict the API key to your app's package name and SHA-1 certificate fingerprint for security.

Contributing

If you want to add patches you can open an issue and I will implement it, or you can add patches yourself and open pull request.

Disclaimer

For educational purpose only or something like that. I am not responsible for any misuse of this software.

Extension points exported contracts — how you extend this code

Hook (Interface)
(no doc) [10 implementers]
smali_generator/app/src/main/java/com/smali_generator/Hook.java
Wrapper (Interface)
(no doc) [2 implementers]
smali_generator/app/src/main/java/com/smali_generator/Wrapper.java

Core symbols most depended-on inside this repo

get_package_info_hook_backup
called by 4
smali_generator/app/src/main/java/com/smali_generator/patches/PackageManagerHook.java
load
called by 2
smali_generator/app/src/main/java/com/smali_generator/Hook.java
get_entry_hook_backup
called by 2
smali_generator/app/src/main/java/com/smali_generator/patches/ZipFileHook.java
get_args
called by 1
main.py
main
called by 1
main.py
findFieldUsingFilter
called by 1
smali_generator/app/src/main/java/com/smali_generator/utils/ReflectionUtils.java
initArray
called by 1
smali_generator/app/src/main/java/com/smali_generator/utils/ReflectionUtils.java
getDefaultValue
called by 1
smali_generator/app/src/main/java/com/smali_generator/utils/ReflectionUtils.java

Shape

Method 75
Class 14
Function 3
Interface 2

Languages

Java76%
Python24%

Modules by API surface

smali_generator/app/src/main/java/com/smali_generator/utils/ReflectionUtils.java27 symbols
smali_generator/app/src/main/java/com/smali_generator/patches/DecryptProtobuf.java9 symbols
smali_generator/app/src/main/java/com/smali_generator/patches/ActivityHook.java6 symbols
smali_generator/app/src/main/java/com/smali_generator/patches/ZipFileHook.java5 symbols
smali_generator/app/src/main/java/com/smali_generator/patches/PackageManagerHook.java5 symbols
smali_generator/app/src/main/java/com/smali_generator/patches/FirebaseParams.java5 symbols
smali_generator/app/src/main/java/com/smali_generator/wrappers/FMessage.java4 symbols
artifactory_generator/signature_finder.py4 symbols
artifactory_generator/fmessage.py4 symbols
artifactory_generator/firebase_params.py4 symbols
artifactory_generator/dex_copier.py4 symbols
artifactory_generator/decrypt_protobuf_finder.py4 symbols

For agents

$ claude mcp add WhatsAppPatcher \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page