I want to research the bloatware that I disabled using pm uninstall -k –user 0 <package> and I just realized that I don't know how to make a list of those specific apps. I can list the file names stored in /system/app but it would be very tedious to find which ones are disabled and also to figure out their package names. pm list has a -d option to display disabled apps, but it only works for apps disabled from within the android menu.
If it helps, the phone in mind is not rooted and it is running Android 6.0.1.
pm list packages -ualso includes installed packages (help says "also include uninstalled packages", so you need to diff it againstpm list packageswithout the-u). Further, somewhere around Android 7,pm list packageswas replaced bycmd package list. – Izzy Jul 21 '20 at 21:16diff <(adb shell pm list packages) <(adb shell pm list packages -u)– aLx13 Apr 23 '21 at 10:09