Skip to content

Instantly share code, notes, and snippets.

@cacheninetynine
Last active January 8, 2025 16:24
Show Gist options
  • Save cacheninetynine/31dcce193d0f70be4149e7c527eeff54 to your computer and use it in GitHub Desktop.
Save cacheninetynine/31dcce193d0f70be4149e7c527eeff54 to your computer and use it in GitHub Desktop.
# https://gist.github.com/fs0c131y/f498b21cba9ee23956fc7d7629262e9d
# save it as packages.txt
# get packages with adb and "pm list packages"
# remove "package:"
# and save the list it as in.txt
with open("packages.txt") as ptxt:
bp = ptxt.readlines()
with open("in.txt") as itxt:
ip = itxt.readlines()
for bad_package in bp:
if bad_package in ip:
print(bad_package.strip())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment