There are flaws and flaws, sometimes some flaws are actually more attractive.
Someone racist is not atractive at all to general society, for example, it's too big of a flaw. But a character stealing is quite accepted, even though it's also bad! In all action movies almost, the characters steal cars and clothes because they're running!
So #1- Give a reason why that character is flawed, so it becomes a bit more justified. Many characters are hated at the beginning and then you find out the reason and people usually end up loving them. Make sure it's a good reason, though or at least in proportion. Maybe that character never received love, etc.
#2- Qualities that make it likable - Maybe your character is super flawed but has a sweet side to him/her. Like the typical brother who is horrible to his brother, but does stand by him in front of bullies. Or the weird kid in school that is disgusting and mean to kids, but actually goes saving animals in need and being mean is just his way of keeping people away from his shyness.
#3 Flaws that are a escape route? - Dr House is one very flawed character (and some people can't stand him because of some seasons but still). But people like him because he was too "honest", though sometimes too cynical. The audience resonated to the honesty part because it's something they want to do but they usually don't dare to do it themselves. So they can kinda live the character's experience instead of ruining their own life themselves. I think this also happened with Breaking Bad
#4 Overcoming some of those flaws- Well, the character shouldn't change too much because it's needed to be consistent. But for character development he/she should ideally learn something (or become worse, if that's the story). That makes it even more interesting, because we see a change. Or maybe opportunities to change, and that person can't/decides not to take them. And we feel like "agh! If only ..." and feel emotionally connected to what we want the character to do.
Many people in Breaking Bad wanted Walter to ...be meaner to his wife when the writers wanted the audience to hate her, even though we knew she was usually right or better at least than her husband. Which was fascinating because people's values: sexism, respect, etc. was challenged by seeing those characters in the screen. There are essays about it on YouTube, maybe you can find some.
Hope this helps in some way >.<