Skip to content Skip to sidebar Skip to footer

Error Creating Imagefile (read-only File System)

First of all this is not duplicate question and I have tried solutions from other similar threads but it looks like this case is different. In my case I can successfully install an

Solution 1:

The problem might be either from:

  • an Android AOSP bug or a bug in the ROM you are using (misconfiguration)
  • something has caused the partition where the apps installed on the SD Card (or an emulated internal card) are stored, to be read only

"Apps on SD card are stored in an encrypted container for platform security purposes -- so that other applications can not modify or corrupt them. When mounting the SD card, these containers are mounted so that they can be accessed in the same way as apps stored in internal storage."

On your stacktrace the problem is this:

E/Vold ( 932): Error creating imagefile (Read-only file system) E/Vold ( 932): ASEC image file creation failed (Read-only file system)

I've had a similar problem with an application that had defined in its AndroidManifest.xml the android:installLocation="preferExternal" and the following things worked for me (done independently of one another):

I/qtaguid(6299):Failedwrite_ctrl(u40)res=-1errno=22I/qtaguid(6299):Untaggingsocket40failederrno=-22W/NetworkManagementSocketTagger(6299):untagSocket(40)failedwitherrno-22D/Finsky(6299): [1] 2.onResponse:Verificationid=29response=0D/Finsky(6299): [1] PackageVerificationReceiver.onReceive:Verificationrequested,id=29E/Vold(127):Errorcreatingimagefile(Read-onlyfilesystem)E/Vold(127):ASECimagefilecreationfailed(Read-onlyfilesystem)W/Vold(127):ReturningOperationFailed-nohandlerforerrno30E/PackageHelper(6280):Failedtocreatesecurecontainersmdl733025106.tmpW/DefContainer(6280):Failedtocopypackageat/storage/emulated/0/myapp.apkW/DefContainer(6280):java.io.IOException:Failedtocreatecontainersmdl733025106.tmpW/DefContainer(6280):atcom.android.defcontainer.DefaultContainerService.copyPackageToContainerInner(DefaultContainerService.java:327)W/DefContainer(6280):atcom.android.defcontainer.DefaultContainerService.access$000(DefaultContainerService.java:67)W/DefContainer(6280):atcom.android.defcontainer.DefaultContainerService$1.copyPackageToContainer(DefaultContainerService.java:108)W/DefContainer(6280):atcom.android.internal.app.IMediaContainerService$Stub.onTransact(IMediaContainerService.java:60)W/DefContainer(6280):atandroid.os.Binder.execTransact(Binder.java:446)

Solution 2:

In my case I'm using a device with Android version 6, developing for Unity.

I am getting the same error when installing the app directly from the Unity Editor, this will not happen if i do upload the app to the android Game Play Developer console as a Beta version and then download and install it from there, in this case android will do needed encryption and install the app successfully.

My solution to do direct install was to set in the : android build -> Player Settings > Install location -> to Force Internal

Solution 3:

In addtion to @Mnemoinc's answer:

  • If you want to force the install to the "internal storage"

    adb root adb shell pm install -f /sdcard/myapp.apk

This could be useful when using Cyanogenmod and having a secure storage.

Post a Comment for "Error Creating Imagefile (read-only File System)"