Musa was produced in court where Additional District and Sessions Judge Rafaqat Ali granted bail to the minor till April 12 and directed the police to "record his statement".
Police arrested Musa and his father Ahmed in an attempted murder case by attacking police team during raids in Muslim Town, Lahore and produced them in court.
Counsel for the accused, Irfan Tarar, said the minor would again be produced in the court during the next hearing.
"The bail of the minor will be confirmed once the police declare him innocent," he said.
Senior Superintendent of Police Rana Jabbar said there had been misunderstanding on the part of police to book the minor in the case.
He said he had suspended Sub-Inspector Kashif Ahmed for registering the case against the child.
The child's father said police had registered a fake case against him, his son and 25 others.
"Our crime is that we had protested against non-availability of electricity in our locality," he said and urged authorities concerned to quash the FIR.