Answers for "run apk from command"

0

run apk from command

Use the Android Debug Bridge command line tool adb eg: adb install filename.apk.

A good reference for adb is 
http://developer.android.com/tools/help/adb.html

install [options] <PATH>    Installs a package (specified by <PATH>) to the 
system.

Options:
-l: Install the package with forward lock.
-r: Reinstall an exisiting app, keeping its data.
-t: Allow test APKs to be installed.
-i <INSTALLER_PACKAGE_NAME>: Specify the installer package name.
-s: Install package on the shared mass storage (such as sdcard).
-f: Install package on the internal system memory.
-d: Allow version code downgrade.
uninstall [options] <PACKAGE>   Removes a package from the system.
Options:
-k: Keep the data and cache directories around after package removal.
Posted by: Guest on January-28-2022

Browse Popular Code Answers by Language