Some applications can be installed on the SD card, but some applications cannot. There are certain rules. How to judge?
6575/6577/6589 Android GB2, ICS, ICS2, JB, JB2
[Solution]
Google's default PackageManager management installation package mechanism is as follows (from high to low according to the description of priority, if the high priority conditions are met, do not continue to refer to the lower priority options ):
1. to install the application to the SD card, you must specify install flag: adb install-s ***. apk
This setting has the highest priority. The final installation result is subject to this, regardless of the following two configurations.
2. If the install flag in "1" is not specified, the android: installLocation definition in AndroidManifest. xml is checked.
Set the score of manifest:
Android: installLocation = "auto" indicates to check whether the phone memory is sufficient. If the phone memory is sufficient, it is installed on the T card;
Android: installLocation = "internalOnly", indicating that the device is installed on the phone memory;
Android: installLocation = "preferExternal", indicating to be installed on the T card;
3. If installLocation is not defined in AndroidManifest. xml, refer to "Settings"-"Storage"-"preferred installation location"
The preferred installation location has three options: determined by the system, mobile phone memory, and mobile phone storage.
Note: The "preferred installation location" is disabled by default, and we do not recommend that you enable it. Some applications google will be installed in the mobile phone memory by default. If the application is installed on the SD card due to this "preferred installation location", the cts test may fail.