Who prosecutes election-related criminal offences?

Sri Lanka
Parliament Elections Act(No. 1 of 1981) - Sect 87
Punishment on convictionfor illegal practices
(1) Every person who commits an illegalpractice shall on conviction by the High Court be liable to a fine notexceeding three hundred rupees and shall by conviction become incapable for aperiod of three years from the date of his conviction of being registered as anelector or of voting at an election under this Act or being elected as a Memberof Parliament, and if at that date he has been elected as a Member ofParliament, his election shall be vacated from the date of such conviction.
(2) A prosecution for an illegal practiceshall not be instituted without the sanction of the Attorney-General
source: http://www.commonlii.org/lk/legis/num_act/pea1o1981259/s87.html
Presidential Elections Act(No. 15 of 1981) - Sect 71
(1) Every person who attempts to commit anoffence specified in section 66 or section 67 or section 68 or section 69 orsection 70 shall be liable to the punishment prescribed for that offence.
(2) Every offence under section 66 or section67 or section 68 or section 69 or section 70 shall be a cognizable offencewithin the meaning of the Code of Criminal Procedure Act, No. 15 of 1979.
(3) In a prosecution for an offence inrelation to a nomination paper, ballot box, ballot paper or marking instrumentat an election, the property in such nomination paper, ballot box, ballot paperor marking instrument, as well as the property in the counterfoil of any ballotpaper, may be stated to be in the Commissioner or the returning officer, as thecase may be.
(4) A prosecution for an offence undersection 66 or section 67 or section 68 or section 69 or section 70 shall not beinstituted without the sanction of the Attorney-General.
Code Of Criminal Procedure Act (No. 15 of 1979) - Sect 9
Criminal summary jurisdiction of Magistrates' Courts
9. Subject to and in accordance with the provisions of this Code every Magistrate's Court shall have-
(a) power and authority and is hereby required to hear, try, determine, and dispose of in a summary way all suits or prosecutions for offences committed wholly or in part within its local jurisdiction, which offences by this Code or any other law in force are made cognizable by a Magistrate's Court or District Court;
source:http://www.commonlii.org/lk/legis/num_act/cocpa15o1979276/s9.html