InfoHeap
Tech
Navigation
  • Home
  • Tutorials
    • CSS tutorials & examples
    • CSS properties
    • Javascript cookbook
    • Linux/Unix Command Line
    • Mac
    • PHP
      • PHP functions online
      • PHP regex
    • WordPress
  • Online Tools
    • Text utilities
    • Online Lint Tools
search

Android development tutorials

  • Android - Show top processes using adb
  • Android studio keyboard shortcuts
  • Disable sleep during android usb debugging
  • Download apk using AirDroid
  • Enable usb debugging
  • Exerciser monkey tutorial
  • Find top processes by memory/cpu on Android using Adb
  • Find used ports by an app on Android using Adb
  • Install Android 8 on Pixel 2
  • Root Android pixel 2 using Magisk and boot image patching
  • Transfer android apk using adb
  • Using Google analytics SDK v2 for android app real time tracking
  • View Desktop Site
  • adb tutorial
 
  • Home
  • > Tutorials
  • > Android Development

How to transfer android apk using adb

By admin on Oct 18, 2015

Android debug bridge (adb) can be used to transfer an apk from mobile to computer over usb port. This can be useful when you are developing an android mobile app and for some reasons want to view apk installed on android mobile. We’ll use Mac for the purpose of this article. Here are the steps to transfer android apk from android mobile using adb:

  1. First ensure that android SDK (needed for adb tool) is installed on your computer and android usb debugging is enabled on your android device.
  2. First list all packages using adb and look for the desired package.

    $ adb -d shell pm list packages
    package:com.lenovo.leos.simsettings
    package:com.lenovo.recorder
    package:com.qualcomm.gsmtuneaway
    ...
    
  3. We’ll transfer the apk for Dropbox package package com.dropbox.android for the purpose of this article. Run the following command to find the path of apk file for package com.dropbox.android:

    $ adb -d shell pm path com.dropbox.android
    package:/data/app/com.dropbox.android-2/base.apk
    
  4. Run adb pull command to pull the apk from the path obtained for the package:

    $ adb -d pull /data/app/com.dropbox.android-2/base.apk
    4357 KB/s (38810708 bytes in 8.697s)
    
  5. In case you wish to view the content of apk you can use unzip as apk is a zipped file.

    $ unzip -d base  base.apk
    

    This will create a directory base and unzip base.apk into it.

Suggested posts:

  1. svn – how to undo last commit
  2. adb – android debug bridge – quick tutorial
  3. How to extract number from a string – google sheets
  4. How to disable dropbox photo auto upload on mobile and desktop
  5. How to view your WiFi password on Mac
  6. Linux/Unix – find inode number of a file
  7. Find top processes by memory/cpu on Android using Adb
  8. curl – some handy commands
Share this article: share on facebook share on linkedin tweet this submit to reddit
Posted in Tutorials | Tagged Android Development, Mac, Tutorials
  • Browse content
  • Article Topics
  • Article archives
  • Contact Us
Popular Topics: Android Development | AngularJS | Apache | AWS and EC2 | Bash shell scripting | Chrome developer tools | Company results | CSS | CSS cookbook | CSS properties | CSS Pseudo Classes | CSS selectors | CSS3 | CSS3 flexbox | Devops | Git | HTML | HTML5 | Java | Javascript | Javascript cookbook | Javascript DOM | jQuery | Kubernetes | Linux | Linux/Unix Command Line | Mac | Mac Command Line | Mysql | Networking | Node.js | Online Tools | PHP | PHP cookbook | PHP Regex | Python | Python array | Python cookbook | SEO | Site Performance | SSH | Ubuntu Linux | Web Development | Webmaster | Wordpress | Wordpress customization | Wordpress How To | Wordpress Mysql Queries | InfoHeap Money

Copyright © 2025 InfoHeap.

Powered by WordPress