KHARTOUM, Sudan — A judge in Sudan formally indicted former President Omar al-Bashir on Saturday on charges of possessing illicit foreign currency and corruption.

A senior police officer had testified earlier that Mr. al-Bashir, who was ousted in April after months of street protests, had admitted to receiving $90 million from Saudi Arabia.

Mr. al-Bashir, 75, questioned in court for the first time during his trial in Khartoum, said that he had received $25 million from the Saudi crown prince, Mohammed bin Salman, but that he had not used the money for private purposes.

The authorities found millions in foreign and domestic currency stockpiled at his home after he was arrested.