title: get APK of installed app with adb command
body: <p>I try to get the APK file of installed app on my Android phone, I followed <a href="https://stackoverflow.com/questions/11012976/get-apk-of-installed-app">this answer</a> which says no need for root access. </p>
  
  <p>I know Facebook app package name is <code>com.facebook.katana</code>, I see it with command <code>adb shell pm list package</code>.</p>
  
  <p>Then, I tried in command line:</p>
  
  <pre><code>adb shell pm path com.facebook.katana
  </code></pre>
  
  <p>It returns:</p>
  
  <pre><code>package:/data/app/com.facebook.katana-2/base.apk
  </code></pre>
  
  <p>Then, I pull the apk file to my computer by:</p>
  
  <pre><code>adb pull /data/app/com.facebook.katana-2/base.apk
  </code></pre>
  
  <p>But output is:</p>
  
  <pre><code>adb: error: remote object '/data/app/com.facebook.katana-2/base.apk' does not exist
  </code></pre>
  
  <p>Why I can not get the APK but that answer says it works?</p>