Skip to content

Releases: D4vRAM369/WhatsMicFix-LSPosed

WhatsMicFix v1.4

27 Oct 20:01
a1aa8b3

Choose a tag to compare

WhatsMicFix icon

🎧 WhatsMicFix v1.4


✨ What's New in v1.4

  • Full stability: boost and compressor are now prepared before recording starts, completely eliminating the race condition that caused audio without effects.
  • Triple protection layer:
    • Early format detection (AudioFormat.ENCODING_PCM_16BIT) before the first read().
    • Permissive mode: if WhatsApp returns an unknown format, the module assumes PCM16.
    • Automatic fallback to prevent rejections or initialization errors.
  • Smart compressor reset on every session → prevents inheriting low gain from previous audio.
  • Black splash screen when opening the app (clean start, no flicker).
  • Improved performance: lower CPU load, faster startup and consistent behavior.
  • New support section in the README to collaborate and give stars ⭐.

🚀 Usage

  1. Install the APK as an LSPosed module and enable it for:
    • WhatsApp (com.whatsapp)
    • System Framework (system)
    • Android System (android)

    If you don't see “system” or “android” in the scope list: go to LSPosed Settings → (top right icon) → Hide and uncheck “System apps”.

  2. Open WhatsMicFix and adjust preferences:
    • Gain in dB (–6 dB … +12 dB, up to ×4.0)
    • Optional pre-boost
    • AGC and Noise Suppression
    • Force internal microphone
  3. Adjust the gain with the slider (recommended: 1.5× – 3.0×).
  4. (Optional) Force stop WhatsApp after changing settings:
    • System Settings → Apps → WhatsApp → Force stop, then reopen WhatsApp.
  5. Open WhatsApp and record an audio note.
    • If you only close it from Recents, the process may remain active and changes won't apply.
    • Wait about 5 seconds for WhatsApp to initialize AudioRecord and for the hooks to work properly.

Note: v1.4 supports hot changes, but force stopping ensures full activation of new parameters.


⚙️ Advanced Configuration

  • Respect format: keeps the audio format requested by the app (recommended).
  • Force MIC source: use only if the microphone isn't switching correctly.
  • AGC / Noise suppressor: extra input quality improvement.
  • Debug logs: visible with adb logcat | grep WhatsMicFix.

📊 Technical Improvements

  • updateGlobalBoostFactor() moved to beforeHookedMethod() → boost applied before recording.
  • Early format detection of PCM16 and thread-safe caching with ConcurrentHashMap.
  • Compressor reset per session: prevents residual gain states.
  • Permissive mode in ensurePcm16() → processes even if WhatsApp delays format reporting.
  • Full audio pipeline validation for maximum compatibility.

🛠️ Fixes

  • Removed bug causing first audio without boost.
  • Fixed invalid format detection (AudioFormat.ENCODING_INVALID).
  • Prevented inheritance of old compressor values.
  • No false negatives or hook rejections.

🔹 Technical Comparison

Aspect v1.3 v1.4 (current)
First audio stable ~90 % ✅ 100 %
Consecutive audios OK ~95 % ✅ 100 %
“Invalid format” alerts 1–2 per session 🚫 0
Hook timing Variable ⚡ Consistent

📚 Technical Notes

WhatsMicFix was developed using the Project-Based Learning (PBL) method, combining hands-on learning with real-world development.

The module hooks and modifies AudioRecord to improve the input signal in WhatsApp, especially on Pixel devices where microphone volume is often low.

This v1.4 version marks the transition from an experimental fix to a professional-grade audio module, with major gains in stability, compatibility, and efficiency.


💬 Support the Project

If this module has been useful to you, please consider supporting it:


💡 Developed by D4vRAM using PBL and collaborative AI.
💚 License: GPLv3 – Free, open-source, and transparent software.


WhatsMicFix v1.3

04 Sep 18:26
4051820

Choose a tag to compare


✨ What's New in v1.3

  • Extended gain range: 0.5× to 4.0× (previously 0.5× to 2.5×).
  • dB range: approx. –6 dB to +12 dB.
  • Dynamic compression + soft limiting to prevent distortion and smooth out peaks.
  • Improved stability: much less need to force-stop WhatsApp, and much more consistent behavior (previous versions were randomly working / not working).
  • Reload system: configuration changes are now applied automatically.

🚀 Usage

  1. Install the APK as an LSPosed module and enable it for:
    • WhatsApp (com.whatsapp)
    • System Framework (system)
    • Android System (android)

    If you don't see “system” or “android” in the scope list: go to LSPosed Settings → (top right corner icon) → Hide and uncheck “System apps” to show them.

  2. Open WhatsMicFix and adjust the preferences:
    • Gain in dB (–6 dB … +12 dB)
    • Optional pre-boost
    • AGC and Noise Suppression
    • Force internal microphone
  3. Adjust the gain using the slider (recommended: 1.5× – 3.0×).
  4. Optional (but recommended when changing settings): System Settings → Apps → WhatsApp → Force stop, then reopen WhatsApp.
  5. Open WhatsApp and record a voice note.
    • If you only swipe it away from Recents, the process may stay alive and not apply changes.
    • After opening, wait ~5 seconds for WhatsApp to initialize AudioRecord and for the hooks to take effect properly.

Note: v1.3 applies changes automatically, but force-stopping WhatsApp ensures full activation of the new settings.


⚙️ Advanced Configuration

  • Respect format: Keeps the audio format requested by the app (recommended).
  • Force MIC source: Enable only if the microphone doesn't switch during recording.
  • AGC / Noise suppressor: Additional input quality improvements.

📋 Requirements

  • Android 12 or higher
  • LSPosed
  • WhatsApp (stable version recommended)

📌 Technical Notes

WhatsMicFix is developed following a Project-Based Learning (PBL) approach.
The module intercepts and modifies AudioRecord to enhance the input signal in WhatsApp.

Hook persistence depends on WhatsApp's internal behavior: in some cases certain subprocesses may interfere with the hooks, while in others they apply correctly.

WhatsMicFix v1.2

27 Aug 16:20

Choose a tag to compare


📢 WhatsMicFix v1.2

WhatsMicFix_1.2

✨ What's New

  • New gain control in dB (–6 dB to +8 dB, up to ×2.5) for more precise adjustment
  • AGC (Automatic Gain Control) and noise suppression controls
  • Option to force internal microphone as audio source
  • Built-in soft-clipper to prevent distortion and deliver a more natural sound
  • Improved user interface with clearer controls
  • Official icon added
Screenshot

⚙️ Technical Improvements

  • Optimized for 48 kHz sampling on Android 11+
  • More efficient CPU processing
  • Support for modern AudioRecord.Builder methods

🐞 Fixes

  • Encoding validation to prevent errors with invalid values
  • Removed unused parameters
  • Corrected string resources

📌 In short:
WhatsMicFix evolves from a basic booster into an advanced audio enhancement module, featuring professional controls, lower CPU usage, and better support for modern devices.


📚 Author Notes

This project — like others I plan to release sooner or later — was created using the Project-Based Learning (PBL) study method.

It's a complementary approach to traditional learning that I'm very comfortable with. It allows me to gradually build more knowledge while creating and improving features.

The main goal is to fix as stably as possible the annoying low audio volume issue in WhatsApp that affects a huge number of Pixel devices.

🔎 I've noticed that sometimes the module works with much greater stability and effect than others. My theory is that some internal WhatsApp subprocess may be interfering with or blocking the hooks at certain times, while in other cases they apply correctly — resulting in a very noticeable difference compared to having the module disabled.

➡️ Future plans: I will keep working on improving stability in upcoming versions. Contributions and ideas are very welcome to make persistence and reliability less dependent on WhatsApp's internal behavior.

WhatsMicFix v1.0

12 Aug 21:34

Choose a tag to compare

🌐 Language / Idioma: English 🇬🇧 | Español 🇪🇸


📢 WhatsMicFix v1.0 – Módulo LSPosed para mejorar audio en WhatsApp

Desarrollado por D4vRAM

Mejora la calidad y el nivel del audio enviado por WhatsApp cuando el volumen del micrófono no suena bien.
Este proyecto ha sido creado específicamente para resolver un bug —según algunos causado por WhatsApp y según otros por Google— en el que, al enviar audios desde un dispositivo Pixel, el sonido se graba con baja calidad (concretamente con volumen bajo) a pesar de que el micrófono funciona perfectamente en todo lo demás.
Cansado de este problema, decidí buscarle una solución. Espero que les ayude tanto como a mí.
Incluye un pre-boost configurable (+6.0 dB) para mejorar la captación de voz.


📌 Características

  • Pre-boost x2.00 opcional (+6.0 dB).
  • Mejora perceptible y notable en Pixel 8 (Android 16).
  • Fácil activación/desactivación desde LSPosed.
  • Compatible con Android 12 o superior.

📥 Instalación

  1. Instalar el APK como módulo LSPosed.
  2. Habilitarlo para WhatsApp desde LSPosed.
  3. Activar Pre-Boost x2.00 (+6 dB) en la interfaz del módulo.
  4. Forzar detención de WhatsApp y volver a abrirlo.

Nota: Forzar detención reinicia AudioRecord con los nuevos parámetros.


📋 Requisitos

  • Android 12 o superior.
  • LSPosed instalado y funcionando.

🛠 Estado

Probado en Pixel 8 (Android 16): al activar pre-boost x2.00 y forzar detención de WhatsApp, la mejora es perceptible y notable.
Al desactivarlo y forzar detención, vuelve al nivel por defecto.

📸 Capturas de pantalla

image image image image

Aviso
Este módulo es un proyecto independiente y no está afiliado, patrocinado ni respaldado por WhatsApp, Google o Pixel.
Úsalo bajo tu propia responsabilidad.

📜 Licencia: GPLv3 – © 2025 D4vRAM
Puedes usar, modificar y distribuir este software bajo los términos de la licencia, siempre manteniendo el código abierto.