schnatterer/termux-scripts

Add/implement additional convenience scripts

schnatterer opened this issue · 0 comments

  • applogcat
  • listPackages
  • packageId, e.g. for app name packageId signal -> org.thoughtcrime.securesms
  • app label (Name for packageId) - aapt dump badging /data/app/..../base.apk | grep application-label-en-GB
  • appVersion - sudo grep $packageId /data/system/packages.xml | grep userId | sed 's/.*version="\([0-9]*\).*/\1/'
  • List all apps with keys: sudo ls /data/misc/keystore/user_0 | sed 's/\([0-9]*\).*/\1/' | uniq | xargs -I {} sudo grep 'userId="{}' /data/system/packages.xml | sed 's/<package name="\([^"]*\)".*$/\1/'