In the snap 2021 Malacca state election, Adly was renominated by PH to defend the Bukit Katil seat.
On 13 December 2022, Adly relinquished the position to Mohd Yadzil Yaakub after Chief Minister Sulaiman confirmed that PH had left the opposition and supported his government as a strategic partner.
He narrowly won the seat and was elected to Parliament as the Alor Gajah MP after defeating Shahril Sufian Hamdan of BN by a majority of only 820 votes.
It was speculated that Adly was to be promoted to replace Salahuddin Ayub who died in office in July 2023 as the Minister of Domestic Trade and Costs of Living in a cabinet reshuffle.
However, Armizan Mohd Ali of the Gabungan Rakyat Sabah (GRS) was instead appointed to position and Adly remained the Deputy Minister of Defence after the reshuffle.