stealthcopter / AndroidNetworkTools

Set of useful android network tools
Apache License 2.0
1.39k stars 282 forks source link

Make app movable to SD card #72

Closed Atrate closed 4 years ago

Atrate commented 4 years ago

Rationale

Over 25% of the world's Android devices still run Android 6.0 or older [1]. This version of Android still has native support for moving applications to SD cards — this is crucial when dealing with low-storage devices. Many more recent OEM OSes also support moving applications to SD cards. This means making applications movable to the SD card is IMHO a rational choice.

Solution

Add android:installLocation="auto" flag to AndroidMainfest.xml. The default for Android is, curiously, not "auto" but "internalOnly"

https://developer.android.com/guide/topics/data/install-location

Signed-off-by: Atrate Atrate@protonmail.com

stealthcopter commented 4 years ago

Thanks!