adb-install
Android application installer
TLDR
SYNOPSIS
adb install [-rtdgf] [options] file
DESCRIPTION
adb install pushes an Android application package (APK) to a connected device and installs it. The APK is copied to the device's temporary storage, installed by the package manager, and then the temporary file is removed.The command provides various options to control installation behavior, including replacing existing apps, downgrading versions, and automatically granting runtime permissions.
PARAMETERS
-r
Reinstall an existing app, keeping its data-t
Allow installation of test APKs-d
Allow version code downgrade-g
Grant all runtime permissions listed in the manifest-f
Install package on the internal system memory-i installerpackagename
Specify the installer package name--user userid_
Install the package for a specific user (default: all users)--install-location location
Set install location: 0 (default), 1 (internal), 2 (external media)--fastdeploy
Update only the changed parts of an already installed package--incremental
Stream the APK in the background; launch before fully installed (requires APK Signature Scheme v4). Append --wait to block until done, or use --no-incremental to disable
CAVEATS
Installation may fail if the APK is signed with a different key than the existing installation (requires uninstall first). Some devices restrict installation from unknown sources. Downgrading an installed version requires the -d flag. To install an app split into multiple APKs, use adb install-multiple instead.
HISTORY
adb install has been available since the initial Android SDK release in 2008. Options have expanded over time to support split APKs, instant apps, and Android App Bundles.
SEE ALSO
adb(1), adb-uninstall(1), adb-shell-pm(1), aapt(1), apksigner(1)
