3

When I tried:

adb shell 'pm list packages -f'

I got long list of options with:

NOTE: 'pm list' commands have moved! Run 'adb shell cmd package'

What is cmd and is it new place for Android's parameters discovery?

  • 2
    To summarize, the pm list command is now cmd packages. Try running it with adb shell cmd packages. – Death Mask Salesman Jul 1 '18 at 13:45
  • 1
    @DeathMaskSalesman the correct syntax is "cmd package list packages". – user218076 Feb 21 at 3:58
  • @user218076 True, but what I said is that pm list (without further arguments) equals cmd package: by running either, you get an usage message. My comment addressed the "what is cmd" part. – Death Mask Salesman Feb 21 at 9:13
  • 1
    @DeathMaskSalesman ok. I understand. I just figured I'll clarify it. I had struggled with figuring this out. Since I thought you responded to his question. So I tried cmd packages but got an error. It is cmd package with out the "s". Thanks – user218076 Feb 21 at 13:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.