APK installed Phone no SD card installation failed solution

Source: Internet
Author: User

Today in the release of the 1.5.4 version of the test under the automation update when the company met a colleague Samsung phone installation failed, please see



The error message under Eclipse is as follows:


So Baidu can find the solution to any search

Install_failed_media_unavailable, the reason for this problem is that the Android app installation location is currently unavailable. And Android app installs the location has the handset ROM inside and sdcard two kinds. Install_failed_media_unavailable can occur because Android devices are not sdcard.

There are two ways to solve this problem:

1, androidmanifest.xml in the configuration

<manifest xmlns:android="Http://schemas.android.com/apk/res/android"
android:installlocation="Auto" ></mainfest>

2. Force modification of Device application default installation location
1. Connect the device (ensure the installation of the driver)
2. Enter adb shell mode (execute%sdk%/platform-tools/adb shell in cmd)
3, the implementation of PM Setinstalllocation
PS: There are 0, 1, 23 kinds of values.
Different setinstalllocation instructions:
PM Setinstalllocation 0 The app determines whether the software can be installed on the SD card
PM setinstalllocation 1 Force all apps to be installed in ROM
PM Setinstalllocation 2 Force all apps installed on SD card

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

APK installed Phone no SD card installation failed solution

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.