
In the fourth year of Xuande in , Jia Liang wrote a letter to impeach the minister Jin Xiang for accepting bribes. After an investigation and found that it was true, he dismissed Jin Xiang. At the same time, eleven people including Hu Jue and Xiao Xiang, the imperial censor, and Fang Ding, the imperial censor, were all impeached on the grounds of incompetence.
Yang Wuhou Xue Lu formed a party for personal gain, disrespected the emperor, and often slandered the emperor, so that no one in the government or the public dared to speak out. Although Jia Liang's official position was very small, he was not afraid of power. Even at the risk of losing his official position or even being arrested and imprisoned, he resolutely wrote a letter to impeach Xue Lu for his various mistakes. This made Emperor Xuanzong Zhu Zhanji attach more importance to him and promoted him to deputy censor of the right capital of the Metropolitan Procuratorate .

During his tenure as deputy historian of Youdu, Jia Liang still maintained his excellent qualities of being outspoken, not shying away from powerful people, and being upright. He was praised by other ministers in the DPRK. Among the imperial censors, he was as famous as Gu Zuo, Shao Kuan and other ministers.
In the eighth year of Xuande's reign, many thieves appeared in the Jianghuai area and robbed and killed many foreign envoys. The local officials were unable to encircle and suppress them, so they asked the court for help. Zhu Zhanji quickly sent Jia Liang to mobilize troops and generals to encircle and suppress them.

Jia Liang led his army and traveled day and night to the strategically important Xuzhou. Using some strategies, he successfully captured the local leaders and suppressed the other bandits one by one. Before Jia Liang's troops could return to the court, another bandit rebellion broke out in Sichuan. The soldiers in Sichuan failed to guard the city, which led to the rapid development of the bandits' power and soon threatened Chengdu. As a result, Zhu Zhanji ordered Jia Liang to quickly lead his troops into Sichuan to quell the chaos.
After receiving the imperial edict, Jia Liang did not dare to slack off and rushed to Bashu day and night. After hundreds of large and small battles, he successfully suppressed the power of the bandits, allowing Sichuan to turn the crisis around and the people to live and work in peace and contentment again.

When preparing to return to the imperial court, bandits and bandits broke out in Xiangtan, Hunan. At that time, it coincided with the change of Yuan Dynasty to Orthodoxy. The imperial court, despite the fatigue of Jia Liang's troops, still appointed him to quickly lead his troops to negotiate.
Jia Liang led his soldiers on an eastward expedition. After more than a year of bloody fighting, the turmoil was finally put down, and the local people praised him.
Due to the long-term fatigue of the army, Jia Liang finally became ill from overwork. In the fourth year of Zhengtong in the Ming Dynasty, he died of illness while passing through Dezhou, Shandong when he returned to Beijing. He was fifty-eight years old.