That's incorrect. Querying installed apps has been severely restricted (and thus mostly useless) and also requires a special nuclear-scale permission since Android 11.
I am wondering what exploit HSBC is using because I really don't think they are using official APIs for this.
Why was querying installed apps ever allowed? Why is an exploit or permission available now?
Answer --- see the original post above.
The acceptance criteria made sense for our app (it displays your phone’s notifications on your smart glasses HUD, and users need a way of selecting which apps can/can’t display notifications). I don’t know how HSBC justifies it though.
Why implement this in such an anti-privacy way that side steps the user?
Answer - see the original post above.
Maybe because Google and it's products have little respect for user privacy?
Have you thought about using Aurora Store? You can usually see a list of the permissions the app requires before you install.