Giter Club home page Giter Club logo

apps2sd's Introduction

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

apps2sd's People

Contributors

jackgu1988 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.