Sie sind auf Seite 1von 3

9/25/2016

androidErrorcreatingimagefile(Readonlyfilesystem)StackOverflow

Errorcreatingimagefile(Readonlyfilesystem)
FirstofallthisisnotduplicatequestionandIhavetriedsolutionsfromothersimilarthreadsbutitlooks
likethiscaseisdifferent.

InmycaseIcansuccessfullyinstallandrunotherandroidprojectfromthesameemulator(x86also
triedarm)butthisparticularappprojectthrowsfollowingerrorwheninstallingalsomanually"adb
install"frominsideshelldonotworkeither.
Oneoftheerrorfromlogbelowisfound(linenumber
232)https://android.googlesource.com/platform/system/vold/+/froyo/Loop.cpp
HoweverIdonotknowiftheerror"Nocontentprovider..."isrelatedtothesameerrorstack.
Ifithadthewritepermissionerror(sdcardorfilesystempermissionlikethat)thenotherappsshould
alsonotinstall!
ThisproblematicappisaNDKprojectwithacustomcontentproviderwhichItriedomittingbutno
avail.itseemslikecontentprovidererrorisrelatedtoapkinstallationfromosandnotreallythe
contentproviderfromwithintheapp.
Iamtiredoftestingwitharealdevice,IamworriedthiswoulddegrademyphoneslifebecauseIhad
todoitveryoften.

beginningof/dev/log/main
D/AndroidRuntime(1977):
D/AndroidRuntime(1977):>>>>>>AndroidRuntimeSTARTcom.android.internal.os.RuntimeInit<<<<<<
W/linker(1977):libdvm.sohastextrelocations.Thisiswastingmemoryandisasecurityrisk
D/AndroidRuntime(1977):CheckJNIisON
D/dalvikvm(1977):Tryingtoloadliblibjavacore.so0x0
D/dalvikvm(1977):Addedsharedliblibjavacore.so0x0
D/dalvikvm(1977):Tryingtoloadliblibnativehelper.so0x0
D/dalvikvm(1977):Addedsharedliblibnativehelper.so0x0
D/dalvikvm(1977):NoJNI_OnLoadfoundinlibnativehelper.so0x0,skippinginit
D/dalvikvm(1977):Note:classLandroid/app/ActivityManagerNative;has179unimplemented(abstract
E/memtrack(1977):Couldn'tloadmemtrackmodule(Nosuchfileordirectory)
E/android.os.Debug(1977):failedtoloadmemtrackmodule:2
D/AndroidRuntime(1977):Callingmainentrycom.android.commands.pm.Pm
E/PackageHelper(1680):Failedtocreatesecurecontainersmdl2tmp1
beginningof/dev/log/system
W/ActivityManager(1149):Nocontentproviderfoundforpermissionrevoke:file:///data/local/tmp/
E/Vold(932):Errorcreatingimagefile(Readonlyfilesystem)
E/Vold(932):ASECimagefilecreationfailed(Readonlyfilesystem)
W/Vold(932):ReturningOperationFailednohandlerforerrno30
E/DefContainer(1680):Failedtocreatecontainersmdl2tmp1
W/ActivityManager(1149):Nocontentproviderfoundforpermissionrevoke:file:///data/local/tmp/
D/dalvikvm(1149):GC_EXPLICITfreed161K,22%free5442K/6948K,paused1ms+1ms,total8ms
D/AndroidRuntime(1977):ShuttingdownVM

android

share improvethisquestion

askedMay16'15at14:29

AbhishekK
526

22

addacomment

2Answers
http://stackoverflow.com/questions/30276876/errorcreatingimagefilereadonlyfilesystem/30343659#30343659

active

oldest

votes
1/3

9/25/2016

androidErrorcreatingimagefile(Readonlyfilesystem)StackOverflow

Theproblemmightbeeitherfrom:

anAndroidAOSPbugorabugintheROMyouareusing(misconfiguration)
somethinghascausedthepartitionwheretheappsinstalledontheSDCard(oranemulated
internalcard)arestored,tobereadonly
"AppsonSDcardarestoredinanencryptedcontainerforplatformsecuritypurposessothatother
applicationscannotmodifyorcorruptthem.WhenmountingtheSDcard,thesecontainersare
mountedsothattheycanbeaccessedinthesamewayasappsstoredininternalstorage."
Onyourstacktracetheproblemisthis:
E/Vold(932):Errorcreatingimagefile(Readonlyfilesystem)
E/Vold(932):ASECimagefilecreationfailed(Readonlyfilesystem)
I'vehadasimilarproblemwithanapplicationthathaddefinedinitsAndroidManifest.xml
theandroid:installLocation="preferExternal"andthefollowingthingsworkedforme(done
independentlyofoneanother):

I/qtaguid(6299):Failedwrite_ctrl(u40)res=1errno=22
I/qtaguid(6299):Untaggingsocket40failederrno=22
W/NetworkManagementSocketTagger(6299):untagSocket(40)failedwitherrno22
D/Finsky(6299):[1]2.onResponse:Verificationid=29response=0
D/Finsky(6299):[1]PackageVerificationReceiver.onReceive:Verificationrequested,id=29
E/Vold(127):Errorcreatingimagefile(Readonlyfilesystem)
E/Vold(127):ASECimagefilecreationfailed(Readonlyfilesystem)
W/Vold(127):ReturningOperationFailednohandlerforerrno30
E/PackageHelper(6280):Failedtocreatesecurecontainersmdl733025106.tmp
W/DefContainer(6280):Failedtocopypackageat/storage/emulated/0/myapp.apk
W/DefContainer(6280):java.io.IOException:Failedtocreatecontainersmdl733025106.tmp
W/DefContainer(6280):atcom.android.defcontainer.DefaultContainerService.copyPackageToContainer
W/DefContainer(6280):atcom.android.defcontainer.DefaultContainerService.access$000(DefaultCont
W/DefContainer(6280):atcom.android.defcontainer.DefaultContainerService$1.copyPackageToContain
W/DefContainer(6280):atcom.android.internal.app.IMediaContainerService$Stub.onTransact(IMediaC
W/DefContainer(6280):atandroid.os.Binder.execTransact(Binder.java:446)

Asperhttps://developer.android.com/guide/topics/data/installlocation.htmlchange
toandroid:installLocation="auto"
Asperhttp://forum.xdadevelopers.com/showpost.php?p=58409922&postcount=4845Ifyou
wanttoinstallitto"internaldevicestorage",regardlessofwhatthemanifestsaysorwhatthe
systemdecides.
GotoSettings>Apps>Openthemenu>Preferredinstalllocation>setitto"Internaldevice
storage".Ihadthissetto"Letthesystemdecide".ThiscausedsomeoftheAPKstofailthe
install,becausetheyweremarkedtoprefertheSDcardastheirinstallationlocationandthus
theytriedtoinstallontotheSDanditjustfailed.Nowthateverythinginstallsonthedevice,it
worksjustfine.
Ifyouwanttoinstallittothe"externalstorage"
adbroot
adbshell
mountorw,remountrootfs/
chmod777/mnt/sdcard
pminstall/mnt/sdcard/myapp.apk
mountoro,remountrootfs/
http://stackoverflow.com/questions/30276876/errorcreatingimagefilereadonlyfilesystem/30343659#30343659

2/3

9/25/2016

androidErrorcreatingimagefile(Readonlyfilesystem)StackOverflow

Asperhttps://code.google.com/p/android/issues/detail?
id=9593&&http://www.androidpolice.com/2011/04/19/fixingthecouldntinstallonusbstorageor
sdcardproblemonandroid/
Onlyifyouareabletofindthesmdl2tmp1.asecatthefollowingpathsoryougeterror
smdl2tmp1032418:48:38.784:ERROR/Vold(86):ASECfile'/mnt/secure/asec/smdl2tmp1.asec'
currentlyexistsdestroyitfirst!(Addressalreadyinuse)
adbroot
adbshellrm/sdcard/.android_secure/smdl2tmp1.asec
adbshellrm/mnt/secure/asec/smdl2tmp1.asec
share improvethisanswer

editedMay20'15at12:10

answeredMay20'15at8:01

MnemonicFlow
4,330

20

55

thankyouyouranswerisperfect! AbhishekK May20'15at12:03

addacomment

Inaddtionto@Mnemoinc'sanswer:

Ifyouwanttoforcetheinstalltothe"internalstorage"
adbroot
adbshell
pminstallf/sdcard/myapp.apk
ThiscouldbeusefulwhenusingCyanogenmodandhavingasecurestorage.
share improvethisanswer

http://stackoverflow.com/questions/30276876/errorcreatingimagefilereadonlyfilesystem/30343659#30343659

answeredSep14'15at11:19

3/3