As a share of GDP, India spends less than almost any other country on criminal justice. The legal system is plagued with almost absurd delays, with many cases taking over a decade to come to trial. India is the most corrupt country in Asia and one of the most corrupt in the world; bribing police officers is the norm rather than the exception. Extrajudicial killings by police are organised, commonplace and are ignored or condoned by politicians and the judiciary.
I can't think of any part of the Indian criminal justice system that isn't severely dysfunctional.
https://www.firstpost.com/long-reads/indias-criminal-justice...
https://www.forbes.com/sites/suparnagoswami/2017/03/08/study...
https://www.economist.com/asia/2018/08/18/the-shortcomings-o...