Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,770,308 Members 49,761 Now Online
XDA Developers Android and Mobile Development Forum

[solved] CWM: Can't install .zip from /sdcard ("Couldn't open directory")

Tip us?
 
Elmo108
Old
(Last edited by Elmo108; 16th February 2014 at 04:01 PM.)
#1  
Elmo108's Avatar
Senior Member - OP
Thanks Meter 18
Posts: 137
Join Date: Nov 2010
Default [solved] CWM: Can't install .zip from /sdcard ("Couldn't open directory")

Hey everyone,

I completely wiped my phone (did a format of data, system etc. on CWM, wiped dalvik/cache etc.). Now I'm stuck with CWM and want to install a rom. I tried to put the .zip on the phone via "adb push /data/media". However, after doing that when I select "choose zip from /sdcard" it says "Couldn't open directory. No files found.".

If I open the shell via adb, I can find the /data/media folder as well as /sdcard, however, I can't cd into it. But I can see (by the folder-size) that the folder contains the .zip.

Any ideas? Is there maybe another way of installing a rom via CWM than through a zip on /sdcard?

Thanks!

*edit:
adb sideload isn't working either
 
AndyYan
Old
#2  
AndyYan's Avatar
Senior Member
Thanks Meter 840
Posts: 1,966
Join Date: Jan 2012
Location: Beijing
Go to "install zip via sideload" in CWM (if it's not there, update your CMW first!), connect to PC, and run "adb sideload *PATH-TO-ROM-ON-YOUR-PC*". If your storage is not corrupted then it should load a ROM to your storage AND immediately flash it.

Sent from Google Nexus 4 @ CM11


Current devices:
Google Nexus 4 (CM11 Nightly)
Sony Xperia SP (CM11 Nightly)
Google Nexus 7 (2013, WiFi) (CM11 Nightly)
Samsung Galaxy Gear (Null_ Build 23)
Samsung Epic 4G Touch (CM10.2 Nightly + GS3 Addon)
Samsung Galaxy S WiFi 4.0 (CM10.2 Nightly)
HTC Incredible S (CM11 Unofficial)
Nokia N97-1 (RM-505 22.0.110 Pre-Hacked)

Quote:
Multi-core smartphones are like M&Ms:
They don't melt on the store shelf... Just in your hands.
 
Elmo108
Old
#3  
Elmo108's Avatar
Senior Member - OP
Thanks Meter 18
Posts: 137
Join Date: Nov 2010
I tried it through sideload.
After the transfer finished it doesn't install the .zip automatically. However, when I go back in CWM it starts installing but fails with "E: Can't open /tmp/update.zip (bad)"
 
Elmo108
Old
#4  
Elmo108's Avatar
Senior Member - OP
Thanks Meter 18
Posts: 137
Join Date: Nov 2010
I solved the problem by flashing TWRP recovery and doing a full data wipe (not just the normal one).
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes