Every smartphone and tablet are tested by manufacturers before they even get released into the market to ensure that consumers are getting units in their optimum shape. However, a recent research found that some smartphone units are being shipped already loaded with malware.
Source: Malware Found Pre-Installed on Xiaomi, Huawei, Lenovo Phones