SIM popup messages keep the screen on indefinitely (Samsung A30s)


Question

A little background: In my country, carriers keep sending those annoying pop-up messages (I think they're called class-0 messages?). This has been the case for a couple of years and they won't stop no matter what you do. Anyway, it wasn't a big deal with my previous phones; I just learned to ignore them.


However, with my A30s (which I've had for a few months), I'm facing a critical issue where the screen will turn on for the message and never turn off unless I close the pop-up or manually turn it off by pressing the power button. There are basically two types of those messages:



  1. Ones that show up after a call is ended (very annoying but avoidable if I remember to close the message after ending the call):


    Messages that show up after call



  2. Ones that show up randomly (sometimes at night while I'm asleep. Screen stays on overnight and drains the battery):


    Message that pop up randomly




I couldn't even tell which app is responsible for displaying those messages. Here's what I've tried:



  • Checked the permissions for the Messages app and the Phone app to see if there's something that controls this.



  • Disabled the "draw over other apps" permission for the Messages app.



  • Installed Google's Messages app and set it as default (since I can't uninstall or disable the main one).



  • I also checked the permissions for the "SIM toolkit" app but there were none. I tried disabling the notifications but the option was grayed out.




None of the above helped.


Does anyone know how to get rid of these messages?


Note: I want to avoid rooting the device or installing a custom rom.


I tried reporting this to Samsung but they weren't very helpful.


Answer

Download Automate app and make a flow like this..


IMG:


Allow the permissions And then configure it like this. Notice the option "When UI element appear".


IMG:


Then click on record. Now, make a call and end/hang up it so that you get the dialog-box. Click on Cancel in the dialog box, see the details and try to understand if the interaction has been recorded. If yes, then click OK.


What it does is that it automatically clicks the Cancel button as soon as it appears on the screen.


I haven't received any dialog box for years so I don't know if that's gonna work. If it doesn't, just see the options from + icon and try to do something else. There are like a hundred options. If that too doesn't work then let me know.


Topics


2D Engines   3D Engines   9-Patch   Action Bars   Activities   ADB   Advertisements   Analytics   Animations   ANR   AOP   API   APK   APT   Architecture   Audio   Autocomplete   Background Processing   Backward Compatibility   Badges   Bar Codes   Benchmarking   Bitmaps   Bluetooth   Blur Effects   Bread Crumbs   BRMS   Browser Extensions   Build Systems   Bundles   Buttons   Caching   Camera   Canvas   Cards   Carousels   Changelog   Checkboxes   Cloud Storages   Color Analysis   Color Pickers   Colors   Comet/Push   Compass Sensors   Conferences   Content Providers   Continuous Integration   Crash Reports   Credit Cards   Credits   CSV   Curl/Flip   Data Binding   Data Generators   Data Structures   Database   Database Browsers   Date &   Debugging   Decompilers   Deep Links   Dependency Injections   Design   Design Patterns   Dex   Dialogs   Distributed Computing   Distribution Platforms   Download Managers   Drawables   Emoji   Emulators   EPUB   Equalizers &   Event Buses   Exception Handling   Face Recognition   Feedback &   File System   File/Directory   Fingerprint   Floating Action   Fonts   Forms   Fragments   FRP   FSM   Functional Programming   Gamepads   Games   Geocaching   Gestures   GIF   Glow Pad   Gradle Plugins   Graphics   Grid Views   Highlighting   HTML   HTTP Mocking   Icons   IDE   IDE Plugins   Image Croppers   Image Loaders   Image Pickers   Image Processing   Image Views   Instrumentation   Intents   Job Schedulers   JSON   Keyboard   Kotlin   Layouts   Library Demos   List View   List Views   Localization   Location   Lock Patterns   Logcat   Logging   Mails   Maps   Markdown   Mathematics   Maven Plugins   MBaaS   Media   Menus   Messaging   MIME   Mobile Web   Native Image   Navigation   NDK   Networking   NFC   NoSQL   Number Pickers   OAuth   Object Mocking   OCR Engines   OpenGL   ORM   Other Pickers   Parallax List   Parcelables   Particle Systems   Password Inputs   PDF   Permissions   Physics Engines   Platforms   Plugin Frameworks   Preferences   Progress Indicators   ProGuard   Properties   Protocol Buffer   Pull To   Purchases   Push/Pull   QR Codes   Quick Return   Radio Buttons   Range Bars   Ratings   Recycler Views   Resources   REST   Ripple Effects   RSS   Screenshots   Scripting   Scroll Views   SDK   Search Inputs   Security   Sensors   Services   Showcase Views   Signatures   Sliding Panels   Snackbars   SOAP   Social Networks   Spannable   Spinners   Splash Screens   SSH   Static Analysis   Status Bars   Styling   SVG   System   Tags   Task Managers   TDD &   Template Engines   Testing   Testing Tools   Text Formatting   Text Views   Text Watchers   Text-to   Toasts   Toolkits For   Tools   Tooltips   Trainings   TV   Twitter   Updaters   USB   User Stories   Utils   Validation   Video   View Adapters   View Pagers   Views   Watch Face   Wearable Data   Wearables   Weather   Web Tools   Web Views   WebRTC   WebSockets   Wheel Widgets   Wi-Fi   Widgets   Windows   Wizards   XML   XMPP   YAML   ZIP Codes