I'm trying to see if it's possible to programmatically disable "Wireless Emergency Alerts" such as Amber Alerts and other emergency alerts. Has anyone been able to accomplish this, or have any helpful information that can point me in the right direction?
After doing a bit of digging, this may be a possible solution if you're willing to install ADB, connect your device to a computer, and uninstall the Wireless Emergency Alert package manually via ADB.
I'm going to address this question in a manual way, however there is no reason at least some of it can't be scripted, and done so programmatically.
You'll need to do about 3 major steps:
a) Download the SDK Platform Tools package for your platform. You can find them linked here: https://developer.android.com/studio/releases/platform-tools
b) Go into developer mode on your device, and authorize your computer. Here are the steps to do so here: https://developer.android.com/studio/command-line/adb#Enabling
c) Remove the com.android.cellbroadcastreceiver package, using adb shell, and the pm command, as described here: https://www.reddit.com/r/alberta/comments/qw9bmj/how_to_disable_emergency_alerts/
It's good to go over all of that individually, as each of those major steps have many smaller steps in between. I'll try to break them down below for easy consumption, as a step-by-step guide.
- Download the (and install) SDK Platform Tools package for your platform. You can find them linked here: https://developer.android.com/studio/releases/platform-tools
- As an administrator using the shell/terminal for your system, navigate to the folder, and prepare to run the adb command.
- On your device, navigate, following the instructions linked in step 'b' above, to your Build number, and tap it repeatedly until it informs you developer mode is enabled (or requests your PIN to enable developer mode).
- Navigate to the first page of your settings app, and you will have a new menu option titled "Developer options" that you must select.
- From the Developer options menu, enable the "USB debugging" option (or alternatively you can read the linked docs above to use wireless debugging instead), and confirm that you wish to enable USB debugging when prompted.
- Connect your device to your computer, and allow any needed drivers to complete installing. You may need to disconnect and re-connect your device from your computer once the driver are installed. If prompted on your device, permit your computer to connect to your device, and optionally select the Always allow option.
- Using the shell we opened in step 2 and the appropriate syntax for your computer's platform, use ADB command to interrogate devices. (e.g. in Windows PowerShell,
.\adb.exe devices
in Linux or MacOSsudo adb devices
) Be sure that your device is listed in the results, and is listed as a 'device' and not as 'unauthorized'. If it is listed as unauthorized, be sure you allowed USB debugging on your device when you were prompted. If it's not listed at all, check your connections, or possibly try one of the alternate connections methods listed in the linked articles. - Using the ADB command, connect to your devices shell. (e.g.
.\adb.exe shell
orsudo adb shell
) - Once in the ADB shell in your device, if on Android 12 run the command
pm uninstall -k --user 0 com.android.cellbroadcastreceiver
orpm uninstall -k --user 0 com.google.android.cellbroadcastreceiver
on Android 13. The pm command is Android's built in package manager, which you are instructing to 'uninstall' and '-k' but keep user data for '--user 0' for the package/app 'com.android.cellbroadcastreceiver'. - Once the package is removed, you can use the 'exit' command to disconnect from your device, you can revoke any connected devices, and you can turn off Developer mode if you wish. It might also be a good idea to reboot your device.
That's pretty much it.
A word of warning: It seems some handset makers handle Wireless Emergency Alerts differently and not all use the com.android.cellbroadcastreceiver
package, and while Samsung was called out as being one of those handset manufacturers, on my S10 running Android 12, that package was there and was indeed responsible for Wireless Emergency Alerts.
If 'com.android.cellbroadcastreceiver' is not an installed package on your device, you might need to target a different package or disable it some other way. In Android 13, the package seems to be renamed 'com.google.android.cellbroadcastreceiver'
Good luck!
com.android.cellbroadcastreceiver
. The instructions from the linked Reddit post about revoking permissions from the Samsung Messages app looks like it should work (won't know until the next annoying useless 'emergency' alert my government sends out). –
Society if you get pm uninstall ... errors sometimes you need to start adb shell before removing packages
on S22 android 13 it was
pm uninstall -k --user 0 com.google.android.cellbroadcastreceiver
I don't think is possible to really uninstall/deactivate such alerts. I uninstalled all on nothing (1), still alerts are coming. But, you can try other non-android phones, as pinephone/librem/volla
© 2022 - 2025 — McMap. All rights reserved.