Move shell check to ShellCommand from system-service

Bug: 341057075
Change-Id: I3012b1363a19e8e3702db417d6329905c28bcc8f
2 files changed