If you already use Android Debug Bridge and have authorized a connection to your own box, these read-only commands display its reported model, build and installed package names:
adb shell getprop ro.product.model
adb shell getprop ro.build.display.id
adb shell pm list packages x.cpe
adb shell pm list packages com.oemservice
adb shell pm list packages com.abc.nexus
Look for the exact output lines package:x.cpe, package:com.oemservice or package:com.abc.nexus; the command’s filter can also return longer names. These names are indicators described by Google, not a full malware test. Missing packages do not rule out other variants. An ADB connection or permission error means the check did not run.
Do not expose ADB to the internet. If you enabled debugging for this check, turn it off and revoke debugging authorizations afterward. This guide does not require rooting or changing firmware.