This was an attempt to debloat the stock global ROM without using xiaomi.eu ROM and root
Unfortunately using ADB to uninstall or even attempt to freeze apps will not work on all apps
I highly recommend to just unlock the bootloader and install xiaomi.eu ROM
Originally made by serajr on XDA for Xperia XZ2 and XA2 devices, this has been edited for Redmi Note 12 4G which deletes unneeded apps, aka. bloatware. https://forum.xda-developers.com/xperia-xz2/development/oreo-debloat-script-v1-0-t3798979
This script actually doesn't delete them, just disables them, this way it won't be running in the background which would eat RAM. Some apps may reenable themselves, I haven't found a solution for this yet, atleast not for non-rooted phones.
In the link above you can find a .zip called "List Installed Apps Info" which was made by serajr too, which will basically gather all the installed apps, this includes user installed apps too and imports them into a .txt file you can check later. Using that .txt file you can then edit the .sh file inside the "files" folder.
If you have found bloatware that aren't on this list, you can do a pull request, or create a new issue.