I have a Sony Xperia Z3 Compact and I am trying to install Cyanogenmod 12.1.

I followed the guide on the Cyanogenmod Wiki for my device.

The process went smoothly initially but it fails at 40-50% completion with the message: "Install failed. Can't install this package on top of incompatible data.....E:Failed to install /sideload/package.zip..."

I've tried:

  • Performing a factory reset
  • Flashing an older version of Cyanogenmod

But I receive the same message when I try to flash.

When I restart the phone, it hangs indefinitely on the Sony loading screen and doesn't boot.

How can I resolve this issue and successfully flash Cyanogenmod?


I installed TWRP and it start to reboot the phone in loop, but I manage to install version. I was trying this time to install from usb memory, but it faild to error 7: https://drive.google.com/open?id=0Bx_77SKdWXozZ1NVUDIwOEFSZGM

I manage to get terminal open and I found out that I have linux version 3.4.0-cm-g28a6663

2 Answers 2


Usually just wiping /data from the recovery and/or installing the package again immediately after first failure should get you through.

However if it doesn't, then you might want to ditch Cyanogen Recovery (that comes with the boot.img you flashed) and use TWRP. Find some here at XDA-Developers - basically any one that integrates TWRP should work, because you will be substituting it with CM's boot.img later when flashing, but it's advised that you choose one that's built for the same Android version you were on before flashing.

This sounds a bit hard to swallow and it is, but it's essential flashing skills and you will need it. With TWRP you can also put the package in internal storage and flash it from there, instead of relying on your PC to do a sideload.


I don't know should I delete this message or answer to it, but I got it solved. I had to install elder version of CM12.1(20160918) and I got it to install with TWRP( Which is pretty nice bootloader). Then in the android I just updated the software to newer one and it works now.

  • Just accept this answer yourself - it will serve as reference to others later, which is what we answer for.
    – Andy Yan
    Oct 19, 2016 at 6:47

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .