yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Android Development] firvulag359:
I wanted to add a problem I encountered, not sure if this is just some bad luck I had but after following this guide everything seemed to work great but I then found out that the internal sd card (0) wasn't mounted, I ended up flashing resurrection remix along with gapps (full thanks to this guide) twice before finding out online that a solution is to go to CWM (or whatever you use) and format sdcard0. I did that, reflashed RR and gapps and everything worked great!

Just wanted to add this, thanks again!
[Galaxy S II Android Development] :
So you missed step 10 in the OP
[Galaxy S II Android Development] Hussain Dawoodi:
[MENTION=5811506]gsstudios[/MENTION]

I flashed one of your pit files and played around with the phone a bit... flashing roms etc..

then i tried flashing stock pit as i wanted to return to stock and then the cable got removed in the process.

it neither goes into download nor recovery. it doesnt show anything on charging.. wont boot into anything. phone seems dead.

my phone is bricked any suggestions on what i should do?

all help is appreciated my s2 is beloved to me :p
[Galaxy S II Android Development] Saber:
Your phone is hard bricked and nothing can be done. You could take it to a repair centre, but I think it's not worth it. I think it would be best to move on.

gsstudios
[Galaxy S II Android Development] Hussain Dawoodi:
ahh well.. thanks for the info ;)
[Galaxy S II Android Development] aji.trav:
Hi,my device on cm 12.1 and system storage default (512mb) i will repartitons but i don't know the kernel i need for cm 12.1? Sorry for my english
[Galaxy S II Android Development] Saber:
You need to use Gustavo kernel to repartition your device. Once you reflash CM12.1, you will have the original kernel back.

gsstudios
[Galaxy S II Android Development] Mchael T.:
Possible repartition on Lollipop?

I'm considering a THL T7 (http://en.thl.com.cn/ProductSpecifications.aspx?pid=485) with Lollipop installed.

What is holing me back is the limitation of writing apps to SD.

Will this method work on this phone?

Anyone with one try yet?
[Galaxy S II Android Development] Saber:
Hi,

If you weren't aware, this method is only for the Samsung Galaxy S2 i9100. Using this guide on other devices will brick your device.

gsstudios
[Galaxy S II Android Development] Mchael T.:
Google search landed me here, I actually see it now, Galaxy S II Android Development .....
[Galaxy S II Android Development] Abdullaharis:
Thanks For Your Hard Work :good::good::good:
[Galaxy S II Android Development] seghier:
always problem : sdcard can't formatted
[Galaxy S II Android Development] Saber:
Did you try formatting using both methods?

Gsstudios.
[Galaxy S II Android Development] seghier:
i did all the methods from this thread and other threads but always the same message

finally i formatted it and reinstalled the rom
[Galaxy S II Android Development] GhostKiller19:
You can try to flash lanchon's repartitioning zip for the I9100. It's just as easy as flashing a .zip file. After that, you can install a new ROM as usual. Google it. It will be really helpful. The configurations depend on the file name.
[Galaxy S II Android Development] seghier:
thanks i searched but the thread about this method closed and all attached files removed
[Galaxy S II Android Development] GhostKiller19:
No, not here on XDA. It has been moved to Github. Google it.
[Galaxy S II Android Development] seghier:
i find some files but no informations or tutorials
[Galaxy S II Android Development] GhostKiller19:
Just flash it like a normal .zip file.
[Galaxy S II Android Development] seghier:
i will try after backup
[Galaxy S II Android Development] C.Z.O:
Can I use 1gb system and 4gb data partition on korean galaxy s2 shw-m250s plz someone help
[Galaxy S II Android Development] marcobaudo:
Grazie, ha funzionato seguendo il tuo consiglio (usare Gustavo's...)!!!
[Galaxy S II Android Development] TriboDoP:
Maybe you should ask in the thread by [MENTION=5302855]CNBLACK[/MENTION]:

[ROM][5.1.1][senie][UNOFFICIAL]Cyanogenmod unofficial builds.

I think it is also about korean devices and he is i believe korean.
[Galaxy S II Android Development] Nevuly:
You can install CM 12.1 in Stock Jellybean firmware.

Check my thread and install it :D
[Galaxy S II Android Development] NangFTW:
Hi everyone! I have a normal SII i9100 and just attempted to increase my partition size using the 1GB/6GB file. Everything is working fine with one exception: my internal storage isn't recognized anymore. I do have 6GB for apps and it does see my external SD card, but no sign of the internal storage. I have TWRP and CM12.1 Snapshot and my laptop does recognize the phone fine when I plug it in via USB. Can anyone provide me with the necessary steps to fix it? Any help is appreciated!

Edit: NVM, managed to fix it!
[Galaxy S II Android Development] javiwz:
Hi, still can't install the gapps after the re-partition [emoji26] [emoji35] [emoji20] [emoji21]

Enviado desde mi E6653 mediante Tapatalk
[Galaxy S II Android Development] Saber:
Hi,

you repartitioned your phone with the wrong pit file!

You need the pit file with 1GB_4GB or 1GB_xGB to increase your system partition size.

gsstudios
[Galaxy S II Android Development] GhostKiller19:
Hi, I have the same problem as his. Well, I tried the 1GB_4GB and the 1GB_6GB. I can't flash Open GApps Full. Onyl up to Mini.
[Galaxy S II Android Development] Saber:
The reason why it is not working is because even 1GB isn't enough to hold all stock google apps in system partition.

You need to use a pit file that repits your device to have an even bigger system partition (I've seen 1.5GB for system), but IMO it is wasting a lot of space where most apps can be downloaded manually anyway.

gsstudios
[Galaxy S II Android Development] javiwz:
I tried to repartition with a single pit file, 4GB pit file, it's wrong? What's the correct way? Thanks for the answer .

Enviado desde mi E6653 mediante Tapatalk
[Galaxy S II Android Development] Saber:
Did you remember to format your system partition? Try repitting again.

Also, I recommended you in the thread you made to use TWRP instead of CM recovery to flash zips.

gsstudios
[Galaxy S II Android Development] javiwz:
OK, but the process of repartition? I mustn't repite the repartition again but yes the wipe of system? After the flash of pit file and the kernel(gustavo's kernel CM12.1) with odin, then the wipe of all, show a triangle in the screen, some thing go wrong?

Enviado desde mi E6653 mediante Tapatalk
[Galaxy S II Android Development] GhostKiller19:
[MENTION=5811506]gsstudios[/MENTION], you said that you saw a 1.5GB PITfile for the /system partition? Can you please upload it if you have? TIA.
[Galaxy S II Android Development] TriboDoP:
A yellow triangle does not mean there is something wrong - it just states you flashed something by odin.

Your did everything right if you did the following:

flash with odin pitfile 1GB System_4GB Data and a gustavo kernel (which has CWM-recovery)

in CWM-recovery format exactly as [MENTION=5811506]gsstudios[/MENTION] said (also read the guide by him "want to update to cm13 ...)

then you can install any 6.0.1 rom + pico open gapps + isorec twrp by@arnab in one go.

(it is importent not to forget to install isorec-twrp!)

(
[Galaxy S II Android Development] javiwz:
HI,TriboIDop,I tried, but I have difficulty installing TWRP via heimdall suite, are there some twrp in .zip format to flash through recovery? after flashes of gustavo's kernel did not show me the CWM recovery, the recovery continues CyanogenMod' one , I have also tried to install CWM recovery on this CM, but not to replace to CMW.

Enviado desde mi E6653 mediante Tapatalk
[Galaxy S II Android Development] Saber:
Here is the link:

http://xdaforums.com/showpost.php?p=64470594&postcount=314

All credits go to [MENTION=6560258]the.gangster[/MENTION]

gsstudios
[Galaxy S II Android Development] Saber:
Please read my CM13 guide to get proper recovery on your phone (just scroll down until you see the guides linked to install recovery)

[GUIDE][NOOB-FRIENDLY]Want to update to CM13? Read this first!

gsstudios
[Galaxy S II Android Development] TriboDoP:
I can only give you advice for Odin (i never used Heimdall)

1) where to find isorec twrp: in the thread (RECOVERY)(ISOREC)(TWRP 3.0.2-1 (OFFICIAL)(26/04/2016) by [MENTION=414800]arnab[/MENTION]

tick on downloads and download twrp-3.0.2-0-i9100.zip (update to 3.0.2-1 can be later done).

2) where to find gustavo kernel (CWM): in the thread (KERNEL)(GUIDE)(CONVERSION) convert kernel zip to tar post 4 (by [MENTION=5811506]gsstudios[/MENTION])

in post 4 choose gustavo kernel KK

download kk-kernel-04-02-CWM-for ODIN.tar

the complete procedure from the start:

in odin flash pitfile 1 GB System_4GB data and the above gustavo kernel .tar with CWM

in CWM format according to [MENTION=5811506]gsstudios[/MENTION]

flash cm13 + pico open gapps + above isorec twrp 3.0.2-0.zip in one go.

reboot system and have fun!
[Galaxy S II Android Development] LEADER_080:
problem

:crying:

when i Increase system partition size useing I91001GB_3GB.pit what is the password of pit????

help plz:(
[Galaxy S II Android Development] Saber:
There is no password for the pit. If your phone is asking for a password, it could be due to corrupted partitions. What can't you do right now? Is it possible to access recovery?

gsstudios
[Galaxy S II Android Development] Ahmad45289:
Plz help me i need pit file 1gb-6gb for i9100 32 gb storage tnx a lot
[Galaxy S II Android Development] Saber:
Hi,

This guide is only for the 16GB model of the Galaxy S2. Instead, you can use Lanchon's lovely repit tool here:

http://xdaforums.com/galaxy-s2/orig-development/tool-lanchon-repit-data-sparing-t3311747

gsstudios
[Galaxy S II Android Development] nikits72:
Hi all,

i am stuck in the boot screen with the yellow triangle.

The phone is not entering recovery mode . I had twrp 3.0.2.0 and CM 11 . Also i had the phone repartitioned.

I think i have messed the bootloader but i am not sure.

Any suggestions will be appreciated.

Thank you for your time reading this.

Regards,

nikits72.
[Galaxy S II Android Development] Acid0057:
Can you get into recovery?
[Galaxy S II Android Development] nikits72:
Unfortunately not,

(btw i have a recovery backup in the external sd card)
[Galaxy S II Android Development] Acid0057:
Hmm not sure then
[Galaxy S II Android Development] nikits72:
Thank you for your time to answer Acid.

I managed to solve the problem by following this tutorial

Regards,

nikits72
[Galaxy S II Android Development] davewpy:
Thanks [MENTION=5811506]gsstudios[/MENTION].

I wanted to make my system partition even larger to flash CM13 and also Full OpenGapps. After spending some time investigating, made a ~2GB system partition with 6GB data and 6GB internal storage.

Let me know if anyone has a use for this file.
[Galaxy S II Android Development] Nataliaaftermath:
I did exactly the same, I was successful in formatting the system partition according to the guide. But still not able to flash even pico version of Gapps. It gives me error 70 that is Insufficient storage space available in System partition.
[Galaxy S II Android Development] Abdullah Akbar:
I have had this problem, this problem mostly arises when you don't select the right gapps for your phone. Make sure you're downloading the gapps respective to architecture of your phone's processor. Use the following guide, If you are still not sure about how to select the right gapps for your phone.

https://itechify.com/2016/05/11/fix-error-70-installing-gapps/
[Galaxy S II Android Development] davidmarli:
Hi,

I would like to install cm13 on my old i9100.

Before I begin to flash I would like to be sure.

1) I have to enlarge the partition size.

In the first page, it says that we have to choose a pit file (but which one ? 2gb is enough ?)

2) It says to flash a kernel.tar. Do I convert boot.img from the cm13 with CreateTarForKernel and flash the kernel.tar file created ?

3) To flash the cm13 I have to put it on a sd card, and switch on my phone in recovery mode ?

Am I all right or is there something I don't do well ?

Thank you very much for your help.
[Galaxy S II Android Development] Saber:
1) I recommend choosing the 1GB_4GB pit as it gives enough room for gapps and other apps.

2) Use a pre-made kernel.tar file I have linked in the OP. You will be reflashing CM13 so CM13 kernel isn't important.

3) Yes. Just make sure you are using isorec kernel and not cyanogenmod recovery.

gsstudios
[Galaxy S II Android Development] November Rain:
Hi, thank you for your great guide.

Can I increase /system partition to 2GB? If it's possible, how can I do that?

Thanks
[Galaxy S II Android Development] TriboDoP:
Hi

I think [MENTION=3186208]davewpy[/MENTION] made a pitfile 2GB system_6GBdata

(Look Post #304 on page 31)
[MENTION=5811506]gsstudios[/MENTION] recommends pitfile 1GB system_4GB data

You do it exactly as described in this thread.

In short: in odin flash pitfile and gustavo kernel

Format according to this thread

Then you Can flash Rom 6.0.1 and gapps together

with isorec recovery twrp

(Look for thread guide noob friendly "want to update to cm 13 also by [MENTION=5811506]gsstudios[/MENTION]
[Galaxy S II Android Development] November Rain:
Hi [MENTION=3186208]davewpy[/MENTION], can you share your pit file?

Thanks in advanced.
[Galaxy S II Android Development] TriboDoP:
[MENTION=507858]November Rain[/MENTION]

Hi

Just saw pitfiles system 1 GB, 1,5 GB and 2 GB on a german website: please google for "pit-files für verschiedene partitionsgrößen im s 2 i9100 www.handy-faq.de"

(at the bottom are the files)
[Galaxy S II Android Development] Saber:
OP updated

Due to popular demand, I have included 1.5GB system pit files in the zip thanks to the.gangster.

I have slightly modified ODIN to un-tick auto-reboot by default making it easier to boot into recovery.

I will not include a 2GB system pit because I think it is a complete waste of space.

I have unified all of the zips removing the need to download additional zip files.

All existing pit files have been renamed. I have also removed pit files that didn't increase system partition size.

gsstudios ;)
[Galaxy S II Android Development] MLDamazigh:
Hi every one, i have some questions and i need some answers please...

i am on stocke jelly-bean and rooted, i want to install CM13 rom but i want to increase system partition before flashing the rom and i am confused should i increase partition then flash the rom or flashing the rom first?

and i want to use DorimanX Kernel but there is only for KK and LP not for JB, so i am confused!!please help me

and finally, how can i install recovery (CWM or TWRP) to flash roms like CM13??
[Galaxy S II Android Development] Saber:
Hi,

you should increase system partition first, then install CM13 ROM.

With the kernel tar file, you can choose whichever kernel. As per instructions, I have recommended to use gustavo kernel to re-partitioning as the CWM recovery doesn't have any formatting bugs.

gsstudios
[Galaxy S II Android Development] MLDamazigh:
Sorry bro but before flashing kernel.tar file should i flash recovery first or not??? And how please???

Envoyé de mon GT-I9100 en utilisant Tapatalk
[Galaxy S II Android Development] Saber:
No, you don't need to flash recovery before flashing kernel.tar.

The kernel comes with a recovery which you will use to format internal storage and flash CM13.

All steps have been given, there is no extra steps required.

gsstudios
[Galaxy S II Android Development] MLDamazigh:
Ok thank you bro, i will try it

Envoyé de mon GT-I9100 en utilisant Tapatalk

---------- Post added at 08:49 AM ---------- Previous post was at 08:43 AM ----------

Gustavo kernel has only for KK and LP there is no JB ?????and which one??? because ther is TRIM and other one
[Galaxy S II Android Development] Saber:
It doesn't matter. You won't be booting in OS so you can use either one.

gsstudios
[Galaxy S II Android Development] MLDamazigh:
You said in first post after formatting restore from your backup or install new rom. Can i install directly CM13 after formatting???

Envoyé de mon GT-I9100 en utilisant Tapatalk
[Galaxy S II Android Development] Saber:
Yes, you can flash CM13 after formatting. Just be sure to flash an isorec recovery before rebooting into OS otherwise you won't have a working recovery ;)

gsstudios
[Galaxy S II Android Development] MLDamazigh:
Using odin?????

Envoyé de mon GT-I9100 en utilisant Tapatalk
[Galaxy S II Android Development] Saber:
You flash isorec recovery in the current recovery, not odin. This will ensure that CM13 will use the selected custom recovery and not cyanogen recovery (broken).

gsstudios
[Galaxy S II Android Development] MLDamazigh:
A last question currently i dont have external sd card can i flash rom from internal or usb??

Envoyé de mon GT-I9100 en utilisant Tapatalk
[Galaxy S II Android Development] Saber:
Yes, you can install ROM via internal sd. Remember that after formatting internal sd, you will be able to use it again, so that's why you can flash after the main re-partition process.

gsstudios
[Galaxy S II Android Development] MLDamazigh:
---------- Post added at 11:15 AM ---------- Previous post was at 11:13 AM ----------

[/COLOR]

i have succefully flashed pit file and kernel but emmc can't be formatted...please help

UPDATE : i changed recovery to CWM and it worked,

HOW can i make rom backup from recovery before increasing partition ( because stock recovery doesn't have backup option)
[Galaxy S II Android Development] Thndrkiss:
Hi,

Can i flash Kernel_Dorimanx-V10.50v006-21-15-18-05-KK-SGII-GSSTUDIOS-UBER-6.0-TRIM.zip using Apolo Kernel and then flash just 1GB PIT which is provided here ? i am moving from JellySnap 4.3.2 to SlimSaber 4.4.4....

Thank you :)
[Galaxy S II Android Development] dexter9:
cool
[Galaxy S II Android Development] AzPerfect:
Hi Devs, i have tried to resize my s2 i9100 partitions from others threads, but it didn't work for me.. so if you can please post some links for repartitioning pit files but not via Odin, via recovery.. i would be so much thankful
[Galaxy S II Android Development] dany123i:
Coming from 4.1.2 I apparently had the old recovery so after patching PIT with odin I got stuck in a download only mode (couldn't get to recovery or boot rom, just got a blank screen) and after about an hour I finally understood that i had to find a .tar for JB CWM to load with odin, then boot into it, then install kitkat compatible cwm .zip from inside recovery then install 5.1.1/6 rom.

I'm not sure this was the proper way to get out of my problem but posting this here in case someone else gets into this too.
[Galaxy S II Android Development] Pally01:
Great guide. Worked like a charm. Thanks OP :)
[Galaxy S II Android Development] Crusader183:
I wanted to install CM 12 on my Galaxy S2 so i used your 1GB Pit files. I tried all of them, and even though CM12 was installed just fine and it works fine, there is a major problem. The Internal Storage cannot be mounted. I tried formatting it from recovery but it can't be mounted from there either. All i can see is the data partition and the external SD card. Any ideas?
[Galaxy S II Android Development] Saber:
What kernel did you use to repit your device? Try checking the drivers installed on your PC.

If you have working CWM or TWRP recovery, try lanchon's repit tool instead . This is the recommended method nowadays, but either one will do the same job.

gsstudios
[Galaxy S II Android Development] Crusader183:
I used Gustavo kernel which was the recommended. I will try repit and will report back.
[Galaxy S II Android Development] exgtigsr:
Life saver!!!! Thank you :)
[Galaxy S II Android Development] Lucas_Skyline:
:(

Guys, need a big help here:

After doing the process, my EFS folder got somehow corrupted and I was getting no IMEI in CM13. Then, I got back to stock, repartioning again, but I got that fake IMEI (004999010640000).

Everything I did:

1. Started in stock.

2. Root and flashed CM12, Ressurection Remix ROM. Made a CWM backup.

3. Flashed CM13. Got no way to install Google Apps, so I decided to increase partition size.

4. Got inside this thread and start to increase partition size. In step 11, it was not possible to format in TWRP, so I mounted as USB and formated in Windows.

5. After all, installed CM13 again and got no IMEI.

6. Got the original .pit file and flashed Stock ROM in Odin.

7. Now I have that fake IMEI and can not call anyone or use 3g data :(

Can anyone help me? I have no backup on EFS folder itself, just the CWM backup.

Thank you guys so much in advance.
[Galaxy S II Android Development] EMONESSboy:
i installed wrong pit file.. mistakly without extracting that zip i installed on system pit.

now my device seems dead

no download mode no recovery no boot

it just heats up

anyone have idea to fix this..?

or this is a hard brick or have to purchase new motherboard..?

plz need opinion
[Galaxy S II Android Development] Saber:
Hi,

It seems you did not follow my guide properly.

Most likely the motherboard is dead so you will have to buy a new one.

gsstudios
[Galaxy S II Android Development] EMONESSboy:
a wrong pit file killed motherboard.. or its a bootloader problem..? some people say its bootloader can be fixed

but if mb is dead its dead :( :'(
[Galaxy S II Android Development] Saber:
No, this is a hard brick so only way out is to buy a new motherboard or a new phone.

gsstudios
[Galaxy S II Android Development] vakkah:
is it possible for the OP to create a 1.5GB or 2GB-system_8GB-data_512MB-preload.pit file?

i'm currently using the 1.5GB system_6GB data_512MB preload.pit and already facing insufficient storage messages running cm13 (android 6.01 marshmallow).

if this can be done it'll be much appreciated.
[Galaxy S II Android Development] Saber:
Hi,

You can use lanchon's repit tool to repartition your system larger than 1.5GB. Creating new pit files isn't really necessary because of this.

gsstudios
[Galaxy S II Android Development] vakkah:
thank you..

I just did and sgs2-gt-i9100 works like a charm...

tools is so straightforward and easy to use..
[Galaxy S II Android Development] Lister Of Smeg:
Hi All,

When re-pitting, doesn't that wipe the original structure / partitions? Any data that was previous on internal SD, will get lost... wouldnt it??

I've tried with several different Pits.... Mainly the 1.5GB System / 6GB Data and 32Mb preload, as well as the 512Mb preload by The.Gangster. And tried a couple of stock PIT files, as well as flashing the original STOCK firmware at the same time. And yet still the original data on the internal SD remains after pitting and flashing stock rom??

I've tried Lanchon's re-pit zip files too, and although it flashes and says its creating the partitions of sizes listed, it errors at the end.

I'm struggling to even get various roms to boot, from CM7.1 to Android 6.0.1.... Weird thing is, I've not had these problems with the other S2's and Note I have.... Just this white one??

The stock firmware flashed, and has loaded ok... but still original data is on there, on a 6.95Gb partition it created.....

Does this sound right, or summit going screwy??

Cheers, Lister
[Galaxy S II Android Development] Saber:
[MENTION=5273366]Lister Of Smeg[/MENTION]

When you re-partition, it doesn't wipe your partitions (correct me if I'm wrong). You need to format to make the partitions useful again, where forgetting to format will lead to many problems.

The good thing with lanchon's repit tool is that you can format your partitions while also re-partitioning making it an easier (or better) solution.

gsstudios