In his darkest moments when he was shunned by an angry Australian public, David Warner wondered whether he'd ever get another chance to do a leaping celebration to mark a hundred on home soil.

Almost two years after posting his 21st test century, Warner registered No. 22 when he flicked Pakistan leg-spinner Yasir Shah behind square and scored a single on Friday afternoon.

He took off his helmet, leaped into the air, and then swung it around again before holding it aloft with his bat as he faced the players' pavilion. Then he kissed it on the crest. People in the crowd of 13,769 at the Gabba stood and applauded.

There was no booing, like there had been when he scored centuries in the one-day format at the World Cup in England, which is where he returned from international exile following a 12-month ban for his part in a ball-tampering episode in South Africa in 2018.

Advertisement

Forgiven but not forgotten, he quashed any doubt over his spot in the Australian lineup after a lean Ashes series. By stumps on day two of the first test against Pakistan, Warner was 151 not out and Australia was 312 for 1, a lead of 72 runs.

Warner shared a 222-run opening partnership with recalled Joe Burns, who was out for 97 when he gloved the ball back onto his stumps attempting to sweep Yasir Shah, and 90 with Marnus Labuschagne, who reached his sixth test half century with a boundary in the last over and remained unbeaten on 55.

The 33-year-old Warner had a reprieve — on 56 when edged behind but a TV review showed 16-year-old paceman Naseem Shah had delivered a no-ball — and another close call on 93, when a direct throw hit the stumps as Warner slid his bat a fraction into safe ground beyond the crease at the non-striker's end. He also had a life when a delivery from Imran Khan appeared to shave the off stump but didn't dislodge the bails in the next-to-last over.

He faced more deliveries and scored more runs in one day than he did in 10 innings in the entire Ashes series, his first in the test arena since returning from the ban.

Warner and Steve Smith — then the vice-captain and captain — were each suspended for 12 months by Cricket Australia and opener Cameron Bancroft was out for nine months after South African broadcasters caught a clumsy attempt to tamper with the condition of the match ball while the Australians were fielding in a test at Cape Town in March of last year. Bancroft was caught trying to scratch the surface of the ball to make it more favorable for Australia's bowlers. Warner was widely viewed as responsible for hatching the plan. Smith was sanctioned for not doing enough to stop it.

In a country where the national cricket team is held in high esteem, it was considered inexcusable. None of the players challenged the severity of the bans, which were excessively harsher than anything ever imposed in international cricket for ball tampering.

Smith made amends by leading the scoring when Australia retained the Ashes in England. But Warner only tallied 95 runs in the Ashes, casting doubt over his status as Australia's premier test opener.

He responded the only way he could, crafting the century from 180 balls. He was on 149 when the new ball was taken in the 83rd over, and took a single to reach 150 from 257 balls after 6 hours, 10 minutes at the crease.

Advertisement

His belligerence made it a difficult day for the inexperienced Pakistan pace bowlers, who didn't get their lengths right on the bouncy Gabba wicket.

Naseem, the youngest player to make his test debut in Australia, finished with 0-65 from 16 overs and was bitterly disappointed after missing the wicket of Warner. He was bowling at speed of 148 kph (92 mph) in his first spell and troubled both Warner and Burns with some short-pitch bowling, but his pace was down when he bowled an over late with the new ball before he left the field 12 minutes before stumps.

Leg-spinner Yasir was the only successful bowlers, returning 101-1 from 28 overs.

Making things more difficult for the Pakistan bowling attack is Australia's record at the Gabba, where they haven't lost a test match since 1988.

-AP