InfoHeap
Tech tutorials, tips, tools and more
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
  • 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. mac pkgutil – quick start guide
  2. How to disable dropbox photo auto upload on mobile and desktop
  3. haxe openfl on mac – quick start guide for mobile development
  4. Rsync – show progress and transfer rate
  5. Android – Show top processes using adb
  6. How to use exerciser monkey tool for android stress testing
  7. adb – android debug bridge – quick tutorial
  8. Android studio keyboard shortcuts for beginners
Share this article: share on facebook share on linkedin tweet this submit to reddit
Posted in Tutorials | Tagged Android Development, Mac, Tutorials

Follow InfoHeap

facebook
twitter
googleplus
  • Browse site
  • Article Topics
  • Article archives
  • Recent Articles
  • Contact Us
  • Omoney
Popular Topics: AngularJS | Apache | AWS and EC2 | Bash shell scripting | Chrome developer tools | CSS | CSS cookbook | CSS properties | CSS Pseudo Classes | CSS selectors | CSS3 | CSS3 flexbox | Devops | Git | HTML | HTML5 | Java | Javascript | Javascript cookbook | Javascript DOM | jQuery | 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

Copyright © 2021 InfoHeap.

Powered by WordPress