Display a specific value from the AndroidManifest.xml using XPath

bundletool dump

  • Command-line tool to manipulate Android Application Bundles.
    More information: <https://developer.android.com/studio/command-line/bundletool>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

bundletool dump manifest --bundle={{path/to/bundle.aab}} --xpath={{/manifest/@android:versionCode}}

click the source code to copy install bundletool dump on any operating system with command-not-found.com