This code is used to set my app as the default SMS app. On Android versions 12 and below, it works perfectly — the app successfully becomes the default SMS app, and the log prints: ✅ Successfully became default SMS app. However, on Android 13 and above, the same code prints: ❌ Failed to become default SMS app. Even though, when I check the system settings → Default apps, it shows that my app is already set as the default SMS app. Because of this...
Originally asked by Nehal Shinde on Stack Exchange (stackoverflow) (CC BY-SA 4.0).