LinuxCommandLibrary

adb-install

TLDR

Install an APK

$ adb install [app.apk]
copy
Replace existing application
$ adb install -r [app.apk]
copy
Install to SD card if possible
$ adb install -s [app.apk]
copy
Install allowing version downgrade
$ adb install -d [app.apk]
copy
Install granting all permissions
$ adb install -g [app.apk]
copy

SYNOPSIS

adb install [-lrtsdg] 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

-l

Install with forward lock (deprecated)
-r
Replace existing application (keep data)
-t
Allow installation of test APKs
-s
Install on SD card instead of internal storage
-d
Allow version code downgrade (debuggable packages only)
-g
Grant all runtime permissions automatically
--abi abi
Override platform's default ABI
-p
Partial application install (install base splits)
--instant
Install as instant app

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. Downgrade installation requires the app to be debuggable or using -d flag.

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), aapt(1), apksigner(1)

Copied to clipboard