No. It is a different device. It would probably be easier to get S5 software running on the M8 than that MediaTek device.
HTC Incredible S S710e (Eventually stopped turning on)
Nexus 7 2012 (Half the screen stopped responding to touch after leaving it for 2 months, also has weird marks on bezel, no idea from where)
Sony Xperia Z C6603 (Passed it down to family member, I actually hated this device)
Samsung Galaxy S5 SM-G900I