Linux script that makes your Android device capable of moving all apps to the external SD card.
...well, all but system apps.
This script will be very useful if your device's internal storage is low and yet not many apps will allow moving to the external storage.
NOTE: many devices do not offer the option to move apps to the SD card by default. You may need to install an app for that. If you search the Play Store you will find many.
Before using the script, make sure that you are familiar with the guidelines described here: https://developer.android.com/guide/topics/data/install-location.html
Avoid moving DO NOT move apps that fall into the following categories:
- Services
- Alarm Services
- Input Method Engines
- Live Wallpapers
- App Widgets
- Account Managers
- Sync Adapters
- Device Administrators
- Broadcast Receivers listening for "boot completed"
You can use this script in order to select the default installation location of your apps (internal or external storage).
After running the script you will be able to move already installed apps to your external SD card. It will not work for system apps though.
Your device's default setting will most probably be set to auto
, that means that the device will decide where to install it. Other settings are internal
and external
storage.
If you run the script without any arguments, the default install location will change to be the external
storage. In order to switch to another mode, check the -m
argument described below.
- Make sure you have installed
the Android SDK andadb (if not follow this link: https://developer.android.com/sdk/index.html). Also make sure that your OS contains theudev
rules required (else follow this: https://github.com/M0Rf30/android-udev-rules). - Download the script from the git repo
- cd to the directory (ex
cd some_directory
) - Make it executable by running
chmod +x apps2sd
- Enable USB debugging on your device (instructions: https://developer.android.com/tools/device.html) and then connect it to your computer
- Run
./apps2sd.sh
and follow the instructions
Script help
Android SDK location (or adb location). Ex: ./apps2sd.sh -s /opt/android-sdk/
Mode, or where the apps on your phone will be installed by default.
- auto: the phone chooses
- internal: internal storage
- external: external storage
Usage example: ./apps2sd.sh -m external
Prints the currently used mode and exits.
Usage example: ./apps2sd.sh -c
-
./apps2sd.sh
Sets the app install location to external storage (default script behaviour). -
./apps2sd.sh -s /opt/android-sdk/
Sets the app install location to external storage (default script behaviour).-s
argument in case the SDK's/adb directory is not set as an environment variable. -
./apps2sd.sh -m auto -s /opt/android-sdk/
Sets the app install location to auto (default for most devices). -
./apps2sd.sh -c -s /opt/android-sdk/
Prints the current mode. In this occasion the SDK is located at/opt/android-sdk/
. -
./apps2sd.sh --help
Script help (although this guide provides much more details).