Copy file to android in ClockWorkMod

If you installed a malfunctioning ROM on your android smartphone, it can happen that your android phone no longer works. I have had this often enough to write a blog post on how copy a hopefully better ROM on your device, to install that one.

Why didn’t the ROM work?

  • If you install nightlies from cyanogenmod, it can happen that a nightly is actually broken.
  • Sometimes the file you downloaded from the internet and copied to your smartphone got corrupt.

What do I need?

This guide will only work when you have ClockworkMod Recovery installed on your phone.

You also need the android SDK. If you are a developer you will already have this. It’s in the folder AndroidSDK/platform-tools.

How to

  1. Copy your new cyanogenmod ROM (or other) file to this AndroidSDK/platform-tools folder. (Or any file you would like to copy.)
  2. Give it an easy name, something like cm-11.zip
  3. Control-Shift click in the folder, and choose Open command window here.
    adt-openshell
  4. Boot your smartphone into ClockworkMod Recovery. Every smartphone has it’s own way to do. For the Galaxy S3 you need to push power, volume-up and the home button all together. When the boot logo shows you can stop.
  5. Go to mounts and storage in the ClockworkMod Recovery menu.
  6. Make sure it says unmount /system and unmount /data by entering on the items.
  7. Now go to your shell and start the copy process with this command: adb push cm-11.zip /sdcard/0/cm-11.zip. (Of course, change the files to your filenames!)
    adt-shell
  8. The process can take a while, it will respond with the copy speed and the total bytes / total time it took. That means it was successful!
  9. Go back, and choose install zip, choose zip from /sdcard to install the MOD!