android.rst
changeset 2568 77977f357b83
parent 2567 fe8116e855ab
equal deleted inserted replaced
2567:fe8116e855ab 2568:77977f357b83
   202 
   202 
   203 List available devices::
   203 List available devices::
   204 
   204 
   205   $ adb devices
   205   $ adb devices
   206 
   206 
   207 Install application from ``.apk`` file::
   207 Install an app from ``.apk`` file::
   208 
   208 
   209   $ adb install -r /path/to/application.apk
   209   $ adb install /path/to/application.apk
       
   210 
       
   211 Re-install an app from ``.apk`` file (avoids the error ``INSTALL_FAILED_ALREADY_EXISTS`` if the app
       
   212 is alreay installed)::
       
   213 
       
   214   $ adb install -f /path/to/application.apk
   210 
   215 
   211 List installed package names (with path to ``.apk`` files!)::
   216 List installed package names (with path to ``.apk`` files!)::
   212 
   217 
   213   $ adb shell 'pm list packages -f'
   218   $ adb shell 'pm list packages -f'
   214   $ adb shell 'cmd package list packages -f'
   219   $ adb shell 'cmd package list packages -f'