Skip to content

Linux script that makes your Android device capable of moving all apps to the external SD card

License

Notifications You must be signed in to change notification settings

jackgu1988/apps2sd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

apps2sd

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 use

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

Tl;dr

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"

Usage

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.

Execution instructions

  1. Make sure you have installed the Android SDK and adb (if not follow this link: https://developer.android.com/sdk/index.html). Also make sure that your OS contains the udev rules required (else follow this: https://github.com/M0Rf30/android-udev-rules).
  2. Download the script from the git repo
  3. cd to the directory (ex cd some_directory)
  4. Make it executable by running chmod +x apps2sd
  5. Enable USB debugging on your device (instructions: https://developer.android.com/tools/device.html) and then connect it to your computer
  6. Run ./apps2sd.sh and follow the instructions

Arguments

-h

Script help

-s

Android SDK location (or adb location). Ex: ./apps2sd.sh -s /opt/android-sdk/

-m

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

-c

Prints the currently used mode and exits.

Usage example: ./apps2sd.sh -c

Examples

  • ./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).

About

Linux script that makes your Android device capable of moving all apps to the external SD card

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages