I have a Samsung S4 Mini GT-i9195 and recently I've updated it to CyanogenMod 13, it was stuck on Android 4.4.

The /system partition has 1.5GB and it was full with the stock ROM. After updating to CyanogenMod, I got only 600MB occupied and 900MB free. How can I resize the parition to, let's say 800MB, and add the remaining space to the /data partition?

I've found this answer for a very similar question, but I'm not sure if that procedure suits to my phone and I don't know how to create the PIT file. I'm already able to backup it from the phone and edit it with PIT Magic. But I don't know if I can do it with this tool or even how to do it...

Any suggestions?

  • 1
    The Odin part of the procedure should be the same for all Samsung devices. The only thing that changes, though, is the PIT file: you need to grab the one that suits perfectly your device, meaning the one that covers any byte of the eMMC's capacity and not more than that. Regarding PIT Magic... I never was crazy enough to try that myself (and consider that adjective as a compliment), but your question made me think about it again. Since I've a S4 Mini as well, please keep me tabbed in case you make any progress, and good luck. – Grimoire Jul 24 '16 at 12:22
  • After some digging, I start thinking that might not be possible. I edited the PIT file with the new partition size and flashed it to the phone, but I've got the error Uploading PIT ERROR: Failed to confirm end of PIT file transfer! ERROR: PIT upload failed!. I suspect the file should be signed or something by Samsung and, in that case, is impossible to repartitioning the phone... – rigon Jul 25 '16 at 13:02
  • Did you pull the PIT from the phone, eh? What syntax and command did you use? – Grimoire Jul 25 '16 at 13:04
  • sudo heimdall flash --repartition --pit i9195-resize.pit --RECOVERY recovery.img --no-reboot – rigon Jul 25 '16 at 13:05
  • Maybe I was unclear... I meant extract the PIT from the phone, not pushing it on the phone. – Grimoire Jul 25 '16 at 13:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.