The problem is that out of the 3 main bodies in any country - politicians, bureaucrats, and the armed forces - India has always had a nexus amongst the first two. Although this is much better than politicians+armed forces, it still is a problem. I won't go so far to say that we are descending into a Banana republic as yet; but if the alarming rate at which income inequality is growing right now is not checked, then yes that day wont be far.
India's Police system and the laws such as Criminal Procedure Laws were formulated by British. The objective was to keep citizens completely depended on goodwill of police and politicians to be free and safe. The exact same laws have continued.