0

Maybe this info is in some file. I can also have it mounted in my computer and run a bunch of linux commands.

  • 4
    Do adb shell pm to know the command's usage. E.g. adb shell pm list packages -3 to show only third-party packages. You can count the number of lines of the output as the number of apps there. Alternatively, if you've root access then do processing on the file /data/system/packages.list. – Firelord Sep 3 '15 at 19:02
3

Was about to say the same as Firelord – he missed the "ease" part, by the way, and has you counting lines manually. Rather try adb shell pm list packages -3 |wc -l (when on Windows, better use quotes: adb shell "pm list packages -3 |wc -l"). Takes a few seconds, and then shows the number.

Example, with one of my test devices:

Linux $ adb shell "pm list packages -3 |wc -l"
15
Linux $
| improve this answer | |
  • +1 Nah! I didn't miss that "ease" part. I rather didn't write the counting part because OP seems to be familiar with Linux commands, so I just provided a hint to go on. I'm glad that you wrote this. – Firelord Sep 3 '15 at 22:52
  • @Firelord Ah, I see. So I've overdone the "easy part" by spoon-feeding? So be it then, to the profit of those not so familiar with Linux commands :) – Izzy Sep 3 '15 at 22:56
  • It appears that wc is part of BusyBox and doesn't come with Android. You might want to verify and mention that in the answer. :) – Firelord Jan 26 '16 at 19:18
  • @Firelord Oh. So what: "if wc is not found, please move the closing double-quotes to right after the 3 (adb shell "pm list packages -3" |wc -l), should work fine in the given example (Linux host ;) – Izzy Jan 26 '16 at 21:54

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.