title: How to determine which dx/d8 version was used for apk creation?
body: <p>How to <strong>determine which dex compiler</strong> (dx/d8) version+flags were used in  creating my apk?</p>
  <pre><code>$ wget https://github.com/federicoiosue/Omni-Notes/releases/download/6.0.5/6.0.5.apk
  $ cat extract_dex_compiler.py 
  from androguard.misc import AnalyzeAPK
  a,d,dx=AnalyzeAPK(&quot;6.0.5.apk&quot;)
  print(a.get_androidversion_code())
  $ python3.7 extract_dex_compiler.py &gt; android.xml &amp;&amp; sed &quot;s/\\\\n/\n/g&quot; android.xml | grep &quot;version&quot;
  </code></pre>
  <p>Then I get the following details:</p>
  <pre><code>b'&lt;manifest xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot; android:versionCode=&quot;280&quot; android:versionName=&quot;6.0.5&quot; package=&quot;it.feio.android.omninotes&quot;&gt;
      &lt;meta-data android:name=&quot;com.google.android.gms.version&quot; android:value=&quot;@7F0A000B&quot;/&gt;
  </code></pre>
  <p>So this means that <code>cmdline-tools/build-tools/28.0.0/dx</code> was used???</p>