Package Management
Android 2.2+
Risk: MODIFIES_DEVICE
Set Default App Install Location
Configures default install target: 0 (Auto), 1 (Internal Storage), 2 (SD Card).
Command Syntax
adb shell pm set-install-location
Generic Syntax:
pm set-install-location <0|1|2>
Options & Parameters
| Flag | Description |
|---|---|
| 0 | Auto: Let system decide. |
| 1 | Internal: Force phone internal flash. |
| 2 | External: Force external SD card media. |
Real-World Usage Examples
Force external SD card install
Configures system to prefer external SD card.
adb shell pm set-install-location 2