Not only is your attitude highly unprofessional, it's also very immature.
First, we're not professionals.
And it's not immature, this is the correct call: call OEM's crap when they do crap and break applications.
If you look at the threads, all the the developers complained about the same issue. But everyone is too afraid to lose their revenue to call it publicly. So they cave in. We don't.
First, i have to question your abilities in programming.
Sure you can, but, a contrario to you, I have code in dozens of open source projects. And even if you don't use VLC, you're going to have my code running.
Also, a contrario to you, I don't do ad hominem attacks.
Because it would be a ridiculous easy task to check for the device manufacturer at the first launch of the application.
It is not. Because it's a combinaison of ROM, version, Device, and so many other things.
Show me the code if it is sooo easy. (Hint: you won't make it. And the SO link you give, does not work for half of the devices).
And if it's a Huawei device, you can simply popup a massage to tell the users what's going on.
And you are going to translate this message in 100 languages? That is SOOO nice of you.
And do the support on the store, for people who don't understand the settings?
Of course, you are not. But attacking the developers that do VLC on their free time, you can do.
Also Huawei give every user the ability to exclude every app from battery optimization (under Settings->Apps & Notifications->Settings(Gear Symbol)-> Special access->Ignore battery optimization->All Apps(VLC) )As an Developer especially when you are the "VideoLAN President", this is something you simply should know!
First, most users don't know about this "optimization".
But then, if Huawei was a serious OEM, they would have a request for permission for background audio playback, like you do on Android for everything: like Camera access, Contacts and so on.
It's not difficult. And that would avoid getting millions of apps that require adaptation for a specific set of devices...
Or if they don't want to do that (why?), they can have an API to know if you are allowed to be in background or not, and an API to call the correct setting.
Oooops, that makes too much sense... But that would totally destroy your story of pooor-Huawei-bullied-by-me. So I'm sure you are going to find a good reason for them not to do it...
For me this means i no longer can and don't want to support this Software Project. I removed VLC from all my Systems and I will no longer donate to this project. Which I've done for several years.
Sure, blame the victim! Huawei is doing CRAP, destroying millions of applications, we're calling them on it, and we're the bad guys?
Sorry, your love of your Huawei device is blinding you.