How to test android.intent.action.MY_PACKAGE_REPLACED

adb, android, android-intent, android-service

Solution

`am broadcast -a android.intent.action.MY_PACKAGE_REPLACED`

Problem

I'd like to be able to test the BroadcastReceiver for MY_PACKAGE_REPLACED. Can I accomplish this with an adb command? Does the emulator accomplish this when I launch an app from the IDE (Android studio)?

Original source

Related problems