According to this provision, Part 75 of the Criminal Procedure Law states: "If a criminal suspect, defendant and his legal representative, his near relatives or lawyers and other defenders entrusted by the criminal suspect or defendant take coercive measures against a people's court, a people's procuratorate or a public security organ beyond the statutory time limit, they have the right to demand cancellation."
But detention for 37 days becomes arrest, and then detention for a long time until the court decision takes effect. The time is usually 6 months to a year.
If your boyfriend is detained for more than the legal time limit, the local public security organ will not release him without requesting approval for arrest, which is illegal. Your boyfriend and his close relatives have the right to lift the detention measures. According to the above regulations, at the request of the local public security organs, they will be in. If the local public security organ refuses to release the custody, it can reflect that the people's procuratorate, the public security organ and the local people's procuratorates at all levels supervise and correct their illegal acts.