A gang who shot at officers during last summer's riots were given combined sentences of 112 years on Thursday.
Judge William Davis described it as a "concerted attack on the police" as he jailed all six at Birmingham Crown Court for a range of offences including rioting, reckless arson and firearms possession, following a six-week trial.
The men "lured" the officers by setting fire to a Birmingham pub, once inside they began shooting.
Nicholas Francis, 26, described by the judge as "clearly a dangerous man", received 30 years. Jermaine Lewis, 27, was jailed for 23 years. Tyrone Laidley, 20, was also jailed for 23 years. Renardo Farrell, 20, and Wayne Collins, 25, were both jailed for 18 years.
A 17-year-old, who can now be named as Amirul Rehman after the judge lifted an order, was jailed for 12 years.
The court heard the defendants were part of a group of 41 men, mostly masked and wearing hoods, who were rioting outside The Bartons Arms in Aston on the evening of August 9.
The judge said: "Members of the group attacked the building. They smashed windows, they went inside and ransacked the premises. They threw chairs and tables out onto the pavement.
"Other members of the group stayed on the pavement outside the building. Some threw missiles, bottles and the like, at a passing police car. Others lit petrol bombs that had been brought to the scene.
"The purpose of all this was not to loot or to steal. Nor was it mindless vandalism. The purpose, the common purpose, was to behave in such a way that the police would come to the scene and then to attack the police."
The judge said at least 12 shots were fired at officers from West Midlands Police and the force helicopter, and at least four handguns were used.
He said: "The intention was to endanger life. Although no physical injury was suffered, that was wholly a matter of luck. Had the police helicopter been struck, the consequences could have been catastrophic.
"There may have been no physical injury to a police officer, but the damage to the wellbeing of the city of Birmingham caused by an armed gang prepared to act in this way was grave.
"It is very difficult to conceive a case of this type more serious than this one."