Samsung has invested close to $10m (£7.85m) in a Russia-based software solution that aims to make apps on its devices more stable by fixing errors in source code of Tizen apps, native Samsung apps as well as some Android apps.

The programming solution has been developed by the Institute for system programming of the Russian Academy of Sciences (ISP RAS) called Svace. The investment does not make Samsung the owner of the solution or give it exclusive rights to the product but the company can use it for free.

A standard programmer can make up to 20 mistakes on a average while writing 100 lines of codes. Svace can dramatically reduce the number of errors in these codes written in C, C++, C# and Java and also detect potential vulnerabilities that can be exploited by hackers.

Samsung has already been testing with the programming method since late 2015 and plans to use it in its future devices according to Marat Guriev, general director for technology and information services at Samsung Electronics Russia.

Smartphone companies are increasingly focusing on software security solutions since the rise of malware attacks on Android-based phones, most of which seep in through malicious apps. Many phones do not have the combating skills to identify these apps, a drawback that mobile software developers are working on. In this case Svace aims to find any loopholes that may allow such apps to creep in to the operating system of Samsung devices.