Madani was presented before Additional Chief Metropolitan Magistrate Venkatesh R Hulagi at his residence in Bangalore on Tuesday, Aug 17.
Madani would be allowed to perform all religious rituals during Ramzan and would be allocated all medical facilities any time he so desires, said the court while delivering the judgment.
Madani's arrest came hours before the deadline for executing a non-bailable warrant issued by a Bangalore court against him was to expire.
However, the Supreme Court had asked Madani, who had sought anticipatory bail, to apply for regular bail as he has already been arrested.
Madani was listed as 31st accused in the additional chargesheet in the Bangalore blasts, which left a woman dead and 20 others injured here on Jul 25, 2008.