How to managed this false case of 302

I am from Odisha but I have been staying surat more than 19 years and I have completed my study and engineering in surat. While In this pendamic everyone get effect i am was hitted badly coz i am suffering something which I never wish to happen someone else. Let the get to point the case was in surat, Gujarat during lockdown. In month of May while Noone guessed when lockdown lift people want to go back to their home town from Surat. For this migration other states get covid positive cases increase so Government of UP and BIHAR said that we don't allow any of our people who travelled from red zone area ( that time Gujarat has 3rd in India about covid cases of 19000 maybe) then In 3/5/2020 in lockdown in my area police has stick paper that we can't issue permit for migration for UP and BIHAR coz their pm Can't allow to enter people from another state due to corona virus Risk.( like other states AP, ODISHA, MP, are allowed their people to inter) like this step my areas some people (from UP, Bihar) goned mad and started riot (danga) for go back to their home (UP, Bihar) around 9am(when literally I was sleeping that time) on 3/5/2020 they started attack police constable also breaking public property, stone pelting. Around 12pm when I was woke up I saw it on facebook about riot so I was think that something must happened soon after 2 hour around 2pm the police come with SRF and started collecting 3-4 people's by beating them badly on every street (I don't know what they are doing and whom order they follow) they suddenly break our apartment steel door and breaking my door and say come with us by beatings us very badly my elder brother got enjury on ear then they take us to the 25-30 km away from our village and gather us in one hall room (it was a training center for police) after 3 hour they started to take our details. I said that I don't know anything coz i from Odisha and I have a ticket for my hometown by 4/5/2020. But they not attention to that and take the details of me and other 80 people's. After that 2 days of investigation on 5/5/2020 they start lodge a complaint against us without any information about our involvement coz most of us are innocent. They start lodging ipc 302 and (151- I don't know it was like stone pelting to police) I am said that plz don't do that I am not involved in this i am engineer and also from Odisha why I have to do this and main thing is I am sleeping in that time when incident happen but they forced me to hold the slate with written of my name and ipc 302,121 or 151. After a week we stay in that hall they sent us to sub jail without knowing us that we are guilty or not. After 15 days of jail I got bail So, plz help me to out this coz literally I can't understand what to do how to get out of this shit and also I don't know about my case FIR SO PLA Z HELP ME TO OUT OF THIS?????