Hafeez, a late inclusion in the squad after a double hundred in a domestic match, was unbeaten on 113 while fellow opener Imam-ul-Haq was 75 not out after Pakistan won the toss and decided to bat on a flat Dubai Stadium pitch.
He was given a life on 74 when Mitchell Marsh could not hold on to a tough chance on the boundary off the bowling of Holland after covering some 20 yards in the outfield. Imam compiled his second Test half-century with the aid of seven boundaries and two sixes as Australia's pace-cum-spin attack toiled hard in two wicketless sessions.
The second Test starts in Abu Dhabi on October 16.
(This story has not been edited by Business Standard staff and is auto-generated from a syndicated feed.)