I recently tried to disable bloatware in my cheap Vivo and Oppo smartphones. These apps named Themes, Game Center, etc. keep giving me notifications that can't be disabled through the UI. The notification settings are on by default and greyed out (can't be changed).
Edit: Digital Wellbeing's Focus Mode and Dashboard (0 allowed minute) can mostly suppress the notifications with some weird effects, because these bloatwares are considered as the "default applications" for things you do with the phone. For example, opening play store links by default opens these manufacturers' own app marketplace. Even though Google's Play Store is installed. Another example, trying to interact with files, images will trigger these manufacturers' built-in file managers and gallery, even though alternatives are installed. Of course these attempts failed, because the 0 minute restriction from Digital Wellbeing. Making you unable to do what you meant to do. Btw disabling their ability to open the relevant links under Default Applications doesn't work. Simply awful.
Using ADB, I tried the usually recommended commands such as pm disable-user --user 0 com.bbk.theme
and got hit with:
Exception occurred while executing 'disable-user':
java.lang.SecurityException: Cannot disable com.bbk.theme no root permission
I was confused, and googled the issue. Based on XDA and Reddit threads I read, the claim that ADB being able to disable/uninstall everything without root is a myth. Although I found different errors such as
Failure [DELETE_FAILED_OWNER_BLOCKED]
or
Failure [DELETE_FAILED_USER_RESTRICTED]
For certain apps, manufacturers have disabled this method and several other workarounds. Like the workarounds mentioned in https://stackoverflow.com/questions/72006988/pm-uninstall-k-user-0-failure-delete-failed-user-restricted . None of them works anymore, even the freezing/ignore RUN_IN_BACKGROUND one.
So I wonder, why can't I uninstall/disable all bloatware through ADB without root, even though most people online keep insisting that this works? For example, on threads about Canta/Shizuku, which is yet another workaround when ADB commands don't work. This method btw doesn't work for my phones. Canta says they are uninstalled (and installed at the same time). But Themes, etc. still show up in the phone.
Some of my guesses for the reason:
The method still works with popular brands like Samsung. I haven't tried doing this with Samsung though.
Only the cheaper models have this issue. Because these bloatwares offset a lot of the manufacturing costs.
Regional difference. Perhaps some laws like EU's DMA prevent this issue.
The method still works on some bloatware. So people just assume it works for everything.
The internet commenters have older phones. Perhaps the manufacturers didn't disable this method back then.
Perhaps someone more knowledgeable knows the actual answer.
pm disable-user --user 0 <packagename>
works.