You can wipe a generic PC and reinstall the OS, which will deal with all but the most nefarious malware.
No such luck with these random Android devices, generally. You are generally obligated to use the system image provided by the untrustworthy vendor.