Delete Android Activity to Disable Google Voice Recording
In this article
Yes, you can delete or disable the Android activity that launches Google’s voice recording by using the built‑in app settings or ADB commands, and then confirming the change in the system’s app list.
What You’ll Need
- A computer running Windows, macOS, or Linux with Android Platform‑Tools (ADB) installed.
- A USB cable that can transfer data (not just charge) and a USB‑debugging‑enabled Android phone.
- Basic familiarity with command‑line interfaces.
- Optional: Access to the device’s Settings app if you prefer a graphical approach.
Step‑by‑Step
- Enable Developer Options on your phone.
Open Settings → About phone and tap Build number seven times. You’ll see a toast that says “You are now a developer.” - Turn on USB debugging.
Go back to the main Settings screen, open System (or Developer options on some devices), find USB debugging and toggle it on. Confirm any security prompts. - Connect the phone to your computer with the USB cable.
When prompted on the phone, allow the computer to access the device (tap “Allow”). - Open a terminal (Command Prompt, PowerShell, or macOS/Linux shell) and verify the connection.
Run:adb devices. Your device’s serial number should appear under “List of devices attached.” If not, reinstall the drivers or try a different cable. - Identify the exact component that starts Google’s voice recording.
Run the following command to list activities that contain the word “voice” in the Google app package:adb shell pm dump com.google.android.googlequicksearchbox | grep -i voice
This will output lines likeActivityRecord{... com.google.android.googlequicksearchbox/.VoiceSearchActivity}. Note the full component name after the slash. - Disable the activity using the package manager.
ReplaceComponentNamewith the value you noted, for example:adb shell pm disable-user --user 0 com.google.android.googlequicksearchbox/.VoiceSearchActivity
The command returns “Package com.google.android.googlequicksearchbox new state: disabled‑user.” This tells the system to block the activity for the current user. - Verify that the activity is disabled.
Run:adb shell pm list packages -d | grep com.google.android.googlequicksearchbox
If the package appears in the disabled list, the activity is successfully blocked. - Test the change.
Attempt to invoke Google voice search (e.g., say “Hey Google” or press the microphone icon in the Google app). The voice UI should no longer appear; instead you may see a toast that the feature is unavailable. - If you prefer a graphical method, you can also block the microphone permission for the Google app.
On the phone, go to Settings → Apps → Google → Permissions → Microphone and toggle it off. This stops recording but does not delete the activity itself. - Re‑enable the activity (optional).
If you later decide you want voice recording back, run:adb shell pm enable --user 0 com.google.android.googlequicksearchbox/.VoiceSearchActivity
or simply toggle the microphone permission back on in Settings.
Common Mistakes
- Using the wrong component name. The Google app has many voice‑related activities; disabling the wrong one may have no effect or break other features. Always copy the exact string after the slash from the
pm dumpoutput. - Skipping USB‑debugging confirmation. If you deny the “Allow USB debugging?” prompt, ADB will not see the device, and the commands will fail.
- Running the command without the
--user 0flag. On multi‑user devices (including work profiles), omitting the flag may disable the activity for the wrong user, leaving the primary profile unaffected. - Expecting a full app uninstall. Disabling an activity only blocks that entry point; the Google app itself remains installed and can still receive updates.
Tips
- Keep a backup of the original component name in a text file. If you need to revert, you’ll have it handy.
- After disabling, clear the Google app’s cache (Settings → Apps → Google → Storage → Clear cache) to remove any lingering voice‑search UI elements.
- If you use a custom launcher, add a shortcut to the ADB command (via a terminal widget) for one‑click re‑enabling.
- For devices that lock the microphone permission behind a “Voice & Audio Activity” toggle, make sure that toggle is also off.
Troubleshooting
If the device does not appear after adb devices: Try a different USB port, enable “File Transfer” mode instead of “Charging only,” and reinstall the platform‑tools drivers (Windows) or use adb kill-server && adb start-server.
If the pm dump command returns no results: The Google app may have been renamed in newer Android versions (e.g., “com.google.android.apps.gsa”). Replace the package name accordingly and repeat the search.
If the activity re‑enables after a system update: System updates often reset disabled components. Re‑run the disable command after each update, or consider creating a simple script that runs on boot (via adb shell or a Tasker profile) to re‑apply the setting automatically.
If the microphone still records despite the activity being disabled: Some devices route voice input through the “Google Assistant” service rather than the activity. Disable the “Assistant” service in Settings → Apps → Google → Permissions → Phone (or turn off “Assistant” under Google → Settings for Google apps → Search, Assistant & Voice).
Frequently Asked Questions
Will disabling the voice activity affect other Google services?
Only features that rely on the disabled activity—primarily voice search and “Hey Google” activation—will stop working. Text search, Maps, and other non‑voice functions remain intact.
Do I need to root my phone to delete the activity?
No. The pm disable-user command works on standard, non‑rooted devices for the current user profile.
Can I permanently remove the activity instead of just disabling it?
The Android package manager does not support permanent deletion of a single activity without uninstalling the entire app. Disabling is the safest and supported method.
What if I use a device with a work profile?
Run the disable command with the work‑profile user ID (you can discover it via adb shell pm list users). Use the appropriate --user flag for that profile.
Will this void my warranty?
No. Using ADB to disable a component is a standard, reversible operation and does not modify the device’s firmware.
Is there a way to schedule the activity to be disabled only at night?
Android does not provide a built‑in scheduler for component states. You could use third‑party automation apps (e.g., Tasker) to run the ADB command at specific times, but that requires additional setup outside the scope of this guide.