how to block an OS app popup?


Question

Something on my smartphone sends a message once a day, sometimes I see a tiny fast dark background popup on the bottom saying it is doing so.



Such application seems related to the SIM card, as the popup I receive is from my cell phone provider/carrier/operator.



One second later I receive this:



screenshot



The app name is "Serviços TIM".

That app package name is "com.android.stk" (I found that using Brevent).

It is an OS App.

It has the exactly same version of "SIM ToolKit" (I guess .stk means that), but at apps list it is in an independent entry with it's own options.



The real huge problem is that, when that popup shows and the screen is locked and remains like that for 8h+, the screen WILL NOT TURN OFF and will spend my battery from 100% to 40% or less and I may depend on having the battery at that time! :(. I usually let it out of the charger, and without that popup it would only spend about 5-10% of the battery.



My smartphone J7 is not rooted, I wonder if that would be the only option?






update:



enter image description here



This other app I think is the culprit from sending the message. It already had SMS disabled but not the phone permission! (I have other app to let me read/send SMS btw)

enter image description here



also the SIM toolkit, I force stop it (and disabled all notifications now 2019):

enter image description here






Final result is: none of these actions above worked, the popup still happens :(


Answer

First get the stk and stk2 package name and path, then back them up with pull :


adb shell pm list packages | grep stk

adb shell pm path com.android.stk
adb pull /system/app/Stk/Stk.apk

adb shell pm path com.android.stk2
adb pull /system/app/Stk2/Stk2.apk

Next we uninstall both :


adb shell pm uninstall -k --user 0 com.android.stk
adb shell pm uninstall -k --user 0 com.android.stk2

Additional Info :


I managed to minimize the problem by using the "do not disturb" feature.

By "minimize" I mean that if I am using the phone the popup will still show up, otherwise it wont mess it's battery (neither show up).

I can allow all exceptions least "reminders" apparently.

Obs.: "do not disturb" is not 100%, I think about 10% of the times it will still allow that abusive popup to keep the screen ON for many hours!


The simToolkit app package "com.android.stk" (which I found out using Brevent), is called "Serviços TIM" and seems to be a mirroed/dup (???) package from the default simToolkit.


My next step (as soon that popup annoys me enough) is to try to uninstall that package by using this tip by @Izzy, thx!

How to remove the SIM Toolkit from my phone? (Without root or flashing any ROM)


adb uninstall failed

Uninstall via adb without root

How to disable Google Apps in Mi Phones


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