Unable to execute adb shell pm list packages
The reason why some mobile phones cannot execute commands is simple. Use adb shell to enter the linux mode, and you can directly use linux related commands without adding adb
As you can see, when I execute the command to view system applications, it prompts me that the adb command is not found.
When I delete the previous adb shell command, I run pm list packages -s directly and
it runs successfully.
I searched for the answer for a long time, and some people said that it was because of the settings of the mobile phone, but I didn't try it either, so you can try it.
I am original!