List of usage examples for android.content.pm PackageInfo INSTALL_LOCATION_UNSPECIFIED
int INSTALL_LOCATION_UNSPECIFIED
To view the source code for android.content.pm PackageInfo INSTALL_LOCATION_UNSPECIFIED.
Click Source Link
auto
in the android.R.attr#installLocation attribute. From source file:com.android.settings.applications.CanBeOnSdCardChecker.java
boolean check(ApplicationInfo info) { boolean canBe = false; if ((info.flags & ApplicationInfo.FLAG_EXTERNAL_STORAGE) != 0) { canBe = true;/* w ww . j a v a2 s . c om*/ } else { if ((info.flags & ApplicationInfo.FLAG_SYSTEM) == 0) { if (info.installLocation == PackageInfo.INSTALL_LOCATION_PREFER_EXTERNAL || info.installLocation == PackageInfo.INSTALL_LOCATION_AUTO) { canBe = true; } else if (info.installLocation == PackageInfo.INSTALL_LOCATION_UNSPECIFIED) { if (mInstallLocation == PackageHelper.APP_INSTALL_EXTERNAL) { // For apps with no preference and the default value set // to install on sdcard. canBe = true; } } } } return canBe; }