yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Android Development] Saber:
In the OP like where everything else is.

Did you make sure to select a kernel .tar file when you selected the pit file in ODIN?

Flash a kernel .tar file here:

https://xdaforums.com/showpost.php?p=57974756&postcount=4

Choose either gustavo kernel or TWRP 12.1 kernel. Then wipe and follow the rest of the procedures.
[Galaxy S II Android Development] treysis:
I know it might not be important or interesting for >99%, but at least with JB 4.1.2 you CAN actually run stock ROM with modified system partitions. But to use it you'll need to format data afterwards, also you will need root to issue a "resize2fs" to the system partition, so that the file system grows to take all the partition space.
[Galaxy S II Android Development] :
This was intended as a warning for "standard" users who might re-partition then try to go back to stock with a modified /system. It was not a statement saying it was impossible. It would be interesting to see a mod to allow for going back to stock without having to go back to stock partition layout......although as you say it wouldn't probably garner a lot of interest from most S2 users :)
[Galaxy S II Android Development] treysis:
Actually, mine did boot right up after reinstalling stock. It only complained that it can't decrypt the data partition (as it's "garbage", android assumes it's encrypted, which looks like garbage data as well).

The problem with stock is that it comes as .img-files for each partition. These contain the file system information (including file system size). So if you flash with ODIN, the file system will be the size of the original partition, though the actual partition is larger. And now you need root to resize the file system to take up the whole partition. you could theoretically unpack the stock rom and launch resize2fs against the system.img with the correct partition size, but odin would probably complain about missing/wrong signature afterwards. Alternatively you could just unpack the whole system.img and flash it with heimdall or from custom recovery.

But yes, stock 4.1.2 is sooo painfully slow. I can't imagine how it was possible to play Angry Birds on this device. But I reinstalled 2.3.6 (for a test with the bootloader), and it was so much faster, and I felt set back 6 years :D
[Galaxy S II Android Development] Saber:
Hi,

I will echo what [MENTION=6418283]noppy22[/MENTION] said, I've only included the information as a precaution. I get that stock ROM works with modified partitions but not everyone knows that you will have to go through additional steps to get everything how they like (data partition as you've said). This is slightly off-topic to what this guide covers, but I'll gladly take your findings (maybe helpful for those who need this info).

Saber ;)
[Galaxy S II Android Development] PackElend:
Hallo,

short question, there are any side effects when increasing the increasing the app partition (/data) to all remaining internal space and thus decrease the internal SD partition (/SDCcard0) to zero (or almost zero). I will run Android >=6 on my I9100 with extend internal storage (Adoptable Storage) managed by Android.

thx
[Galaxy S II Android Development] Saber:
Hi,

I would recommend looking at Lachon's repit method instead of this guide it was only intended to help increase the system partition.

I don't know the side effects of having 'zero' internal sd but I've heard that it is definitely possible.

Saber ;)
[Galaxy S II Android Development] PackElend:
Good morning [MENTION=5811506]Saber[/MENTION]

thanks for your quick reply to you mean the thread [TOOL] Lanchon REPIT: A Data-Sparing Repartitioning Tool for i9100. That one is unfortunately closed there are any related discussion on xda, cannot find any.

Is properly hopeless but you may remember the source what makes you think it's possible?

btw, how can I easily mention someone in a reply MENTION=MemberID]MemberName[/MENTION is quite unpractical.
[Galaxy S II Android Development] Saber:
Hi,

Here is the new thread for the tool:

[TOOL] Lanchon REPIT: The Data-Sparing Repartitioning Tool For Android

With mentioning, the easiest way is to add a "@" followed by directly with "membersXDAname". The mention is automatic so there is no need to type the mentioning code.

Saber ;)
[Galaxy S II Android Development] PackElend:
thx [MENTION=5811506]Saber[/MENTION], will it try over there
[Galaxy S II Android Development] devslo:
Hey guys, I just repitted my galaxy to 1.5GB system and 6GB data 512 preload with Gustavo Kernel. Afterwards I proceeded to install the latest LineageOS nightly and opengapps. Everything went great, booted to system, but now when I go to storage on the phone it shows 9.59GB used of 14.68GB (apps 408MB, system 8.77GB, cached data 572 KB). Considering this is a clean install I think the system is taking too much space? Any advice? Thank you.
[Galaxy S II Android Development] Franklin46:
How do I confirm I have the 16GB International variant? please. Sorry, I don't want to spam this thread; I have already asked this question but I think I done it in the wrong place.

How do I confirm I have the 16GB International variant? please
[Galaxy S II Android Development] Saber:
Switch off your phone. Take out the battery and read the model number label on the back of your phone. International variant is the GT-I9100.
[Galaxy S II Android Development] srpatel1646:
thanks looking lots of thread for stock pit

finaaly found it from https://xdaforums.com/galaxy-s2/help/samsung-s2-stock-rom-stock-pit-files-t3172409

thanks for sharing link and pit file my device was stucked
[Galaxy S II Android Development] Franklin46:
Thanks
[Galaxy S II Android Development] lakitsan:
Hi there.I couldn't find the EXTRA NOOB FRIENDLY guide so i tried this one

Just did everything except step 19.and now i'd like to go back cause it doesn't seem to work.

It doen't even load so i can use it.
[Galaxy S II Android Development] Acid0057:
But step 19 is to flash the ROM you'd like to use. Did you flash the ROM? It won't boot because there is nothing on the phone except for recovery.
[Galaxy S II Android Development] Sid_V:
Thanks.. worked beautifully.

Thank you Saber for the easy instructions. I was able to partition memory successfully using Odin without any errors.

I have a 16GB GT-I9100 phone now with the Lineage OS 14.1 Mod.

Few things i noticed:

- I used i used stock_kernel_twrp_1020-for-ODIN.tar and "I9100_1GB-System_4GB-Data_512MB-Preload" ... and for some reason the partition turned out to be 6GB, but i am happy.

- Point No. 15 (You can leave all of the settings to default, I personally like to change the allocation size to 4KB), i wanted to change the allocation size as per your recommendation, but could not find where i could do this on the phone. So my phone's on default settings. It would be good if you can provide some instructions on how this can be done.

- Point No . 18 (In mounts and storage, choose format /data, /cache and /system), i did not get Data option. I got EMMC option instead which i could not select, but luckily didn't get any error during the process.

Attaching screenshots to show the phone storage now. My phone is Awesome again :D:D:D ...... Thank you!
[Galaxy S II Android Development] ATTIEQ:
I have successfully Repit my Internal Storage & Installed LineagOS 7.

Thanks.

I have just noticed after attaching my device to PC , only Repit Storage Displayed in Portable Devices Folder.

Why my External SD Card is not mounting ?.
[Galaxy S II Android Development] Saber:
Are you trying to mount external SD in ROM? What about in TWRP?
[Galaxy S II Android Development] ATTIEQ:
External SD Card is showing into Recovery.Only Problem is with PC Connection.

When I Connect my Device to PC only Internal Memory will display as sdcard0.

Why External SD card is not shown there ?.

I have Installed SAMSUNG USB Drivers.I am Currently On LineagOS 7.
[Galaxy S II Android Development] Panos Grammozis:
question

triangle away works after repartition can i reset flash counter (i hate this triangle)
[Galaxy S II Android Development] toy_story:
Hi, the application will help you - [root] Triangle Away

Theme on XDA - https://xdaforums.com/galaxy-s2/ori...away-v3-26-t1494114/post30249357#post30249357
[Galaxy S II Android Development] Blackmac4:
Problem with Gapps

[IMG="help"]https://picload.org/view/dgccliri/20171007_233242.jpg.html[/IMG]

Can anybody help me?:(:confused::confused:

Here you can see the problem:

picload.org/view/dgccliri/20171007_233242.jpg.html
[Galaxy S II Android Development] Tilagoon:
A description of the problem would help to give you an answer !! :confused:
[Galaxy S II Android Development] guest4711:
No one can help when you don't tell us your problem...
[Galaxy S II Android Development] Blackmac4:
I am sry

my problem is that I can't install gapps.

I did the whole instructions with linegea 14.1 . everything ok but gapps is not able to install -(see picload)
[Galaxy S II Android Development] toy_story:
Hello, you have a problem not Gapps, but a recovery!

LineageOS comes with LineageOS Recovery by default, if you don't like it (like me ) you can flash alternative recoveries using IsoRec - https://xdaforums.com/galaxy-s2/orig-development/isorec-isolated-recovery-galaxy-s2-t3291176

First, you need to install a custom restore - preferably TWRP-3.1.0-0

If you have Root rights, you can use the Official_TWRP_App application.
[Galaxy S II Android Development] Blackmac4:
ok that's a solution. thx

but is it possible to run gapps on a galaxy s2 with lineage 14.1?

because I like it,but I need gapps.
[Galaxy S II Android Development] toy_story:
Hi, just install in TWRP GAPPS.

I recommend Open GApps version - open_gapps-arm-7.1-pico
[Galaxy S II Android Development] Blackmac4:
Thank you i flashed so often and now after 12 hours it works Gapps and lineagea on my s2 .

Thank you for your support.

Happy end :DDDD
[Galaxy S II Android Development] Panos Grammozis:
how many hardbrick possibility???

i will select I9100_1GB-System_4GB-Data_512MB-Preload.pit

and a classic kernel like gustavo and press start

Everything is gonna be alright???
[Galaxy S II Android Development] Saber:
The possibility of hard bricking your device is fairly low, but that still means there is a slight chance. You can use lanchon's repit tool (linked below my guide) which can be done without computer (and has many advanced options with also better support for other devices).

Whichever method you choose, your device needs to stay powered. For my method, little things like damaged cable, unplugging cable half way, etc could possibly lead to a brick. Both methods have helped many people in this community increase partition sizes.

Regards, Saber
[Galaxy S II Android Development] lollo_104:
hi, i want to do same with my s4, where's i can find the pit's files edit?
[Galaxy S II Android Development] Saber:
Hi there, this guide is only for the Galaxy S2. You might have better luck in your device forum.

Regards, Saber
[Galaxy S II Android Development] lollo_104:
i'll do, thanks
[Galaxy S II Android Development] lakitsan:
Halo,i hope you are still there.i could use a little bit of help with the "flashing the rom" thing.
[Galaxy S II Android Development] Acid0057:
Sure am. What time are you trying to flash?
[Galaxy S II Android Development] lakitsan:
Well i'll try now that you are here.When i push down vol-home-power and then vol up to continue it goes in odin mode.do you know what i do next???i downloaded a tar file and did start with odin but it doesn't seem to work
[Galaxy S II Android Development] Acid0057:
Sorry I haven't used Odin for a long time. I'm on a Google pixel XL now. I can help if you have TWRP custom recovery installed and are trying to flash with that.
[Galaxy S II Android Development] TriboDoP:
Hi

Unless you do not give exact information about your problem i am afraid nobody will be able to help you.

So: does odin recognize your device? What do you want to flash (a tar file could be anything) a kernel/recovery?

What exactly did you do and what was the exact outcome ("it doesn't seem to work" is not quite a useful information).

And did you already search for how to use and flash with odin?

Regards
[Galaxy S II Android Development] lakitsan:
You are right,here we go.I got galaxy s 2 and i was trying to raise the internal storage from 2gb to 4 or 6.I don't know if i made it but i am stuck.Phone is recognized by odin (v3.07 by the way)

When i open the phone it shows a a triangle with exclamation mark.

When i push vol down+home+power it goes to download mode and

When i push vol up+home+power it goes to a menu called CWM-based Recovery v6.0.5.1

I did find a couple of roms (i think one was from india),anyhow i flashed with odin but it failed.

I think the problem is i can't find a proper rom and Sammobile that everyone is suggesting needs subscription(well f*** you)

ps When i use the word ROM i meen the magic thing that will make me phone usable again(you know like calling other people and watching s**t on 9gag)
[Galaxy S II Android Development] toy_story:
Look Here:

- https://xdaforums.com/showpost.php?p=73126683&postcount=48

- https://xdaforums.com/galaxy-s2/help/preparing-clean-loss-data-installation-t3712409

- https://xdaforums.com/showpost.php?p=71481676&postcount=587

- https://xdaforums.com/galaxy-s2/orig-development/2014-01-15-triangleaway-v3-26-t1494114
[Galaxy S II Android Development] lakitsan:
I'm trying the second link method cause it kind of looks like the one i tried,but in step 4 it doesn't say how to do these things.How do i start the recovery process and how do i install these files???
[Galaxy S II Android Development] toy_story:
Look here - https://www.youtube.com/watch?v=t_SFkTGBMsQ
[Galaxy S II Android Development] lakitsan:
But my phone doesn't open.it only has that CWM options.Anyway i'll try the other links that you gave me too,maybe i'll have better luck there
[Galaxy S II Android Development] PackElend:
hallo,

in simple words :D

how do I get from this layout

to this layout.
[Galaxy S II Android Development] vdhero:
The two first one are LineageOS 15.1 and the others are LineageOS 14.1
[Galaxy S II Android Development] PackElend:
Thanks for your reply but it isn't really relevant in regard of my question.

There wasn't that much of change between Android 7 and 8 in regard of storage layout.

I would like to know how to make the internal SDCard disappear (in Android 7 and 8).
[Galaxy S II Android Development] TriboDoP:
Hi

Maybe you are looking for this thread by Lanchon?

[MOD] Switch from non-emulated to emulated internal SD card
[Galaxy S II Android Development] PackElend:
I'm aware of that thread but I'm not sure if that covers the same topic, as I still see two SDcards in the attachment of post #5 by [MENTION=6560258]the.gangster[/MENTION]

What I miss is a before and afterwards comparison
[Galaxy S II Android Development] vdhero:
In the file explorer, press the 3 dot on the left and you should see the hide internal storage option or show onternal storage options. That's for los15.1 but i don't sure about los14.1
[Galaxy S II Android Development] PackElend:
that's not what I'm asking for. I want to get rid of the internal SDCard

instead of

/boot

/recovery

/system

/data

/intSDCard

/extSDCard

I want this layout

/boot

/recovery

/system

/data

/extSDCard
[Galaxy S II Android Development] vdhero:
here's the answer: https://xdaforums.com/galaxy-s2/orig-development/mod-switch-emulated-to-emulated-t3539651
[Galaxy S II Android Development] PackElend:
I haven't quite got it yet.

When I do

'lanchon-repit-XXXXXXXX-system=same-data=max-sdcard=min+wipe-preload=min+wipe-i9100.zip' and modify the XML

the orginal '/inSDCard' will useless and there will be a mount point under '/data/media' where it stores thing like photo, video etc. what was originally stored on '/inSDCard'. Is that correct?

what happens when I do swap

lanchon-repit-XXXXXXXX-system=same-data=max-sdcard=min+wipe+swap-preload=min+wipe-i9100.zip
[Galaxy S II Android Development] PackElend:
found the answer for that one

and it isn't recommended
[Galaxy S II Android Development] PackElend:
This process didn't get along smooth at all but I'm quite happy that latest LOS 14.1 runs on my S II. There were some events during this process which haven't been answered yet. May some of you can answer some of them, e.g. why repit has never succeed to mount /sdcard.

-----

I case the quote don't gets you to the referenced post: 22th July 2018, 09:34 PM |#92
[Galaxy S II Android Development] Shamim0242:
Any idea about Mtk base device???
[Galaxy S II Android Development] Grigster:
I will try to do it by Friday evening (British Summer Time - GMT+1 time)

Yes, you can do that and can be really useful especially when you want to put bigger GAPPS or have multiple ROMs installed or install Lollipop (for this one is mandatory).

Yes. I'm currently using this PIT file with SlimSaber 4.4.4 + [MENTION=4217277]Gustavo_s[/MENTION] kernel and it works excellently plus I have lots of free space.

I'm sorry to hear that. If you're using NeatROM which is based on Sammy's ROM, it requires having the Preload partition at least 512MB, whereas my PIT files is specifically designed to have partition as small as possible.

In order to use my PIT file you have to have a CUSTOM ROM which DO NOT require Preload partition ( CyanogenMod, SlimRom, SlimSaber are some examples)
[Galaxy S II Android Development] GreekDragon:
You're right. Im using Cyanogenmod11 and works perfectly.
[Galaxy S II Android Development] Grigster:
I'm truly glad to hear my little mod works perfectly for you. :highfive: :victory:
[Galaxy S II Android Development] Grigster:
[MENTION=5798657]sonupm[/MENTION]

Here's your request.

This is the one from [MENTION=2069027]metalgearhathaway[/MENTION]. It's the same as your request and I will just share it with you. All the credits go to him, not to me. :)
[Galaxy S II Android Development] wawa9292:
WoW Grigster, you sure have a bad bad fast response.. :D

Thanks mate.. just do it at your free time.. ;)

but, Thank you.. :)
[Galaxy S II Android Development] carlusmagnus:
In PIT System memory is called Factoryfs, right? If I wanted to edit pit to change amount of system memory, to which section of memory I can take from Hidden (preload), keeping data memory 3GB?
[Galaxy S II Android Development] metalgearhathaway:
Good to see that people are still working on the device, seems everyone has got to grips with pit files now, but I'm around if you need help, just mention me in a thread to grab my attention :)
[Galaxy S II Android Development] Grigster:
[MENTION=4428888]wawa9292[/MENTION], here you go!

Hope it works perfectly for you as I cannot test it on my device. :) :highfive:
[Galaxy S II Android Development] wawa9292:
a big thank for you

wow.. you're great man.. i'll tell you later wether its work or not.. #i hope it works :p

but thank you.. :highfive:

hope this device isn't dead yet.. :D

cheers,
[Galaxy S II Android Development] mco2015:
I have a question:

This is permanent right? I mean, after i can flash whatever ROM and Kernel I want and don't need to do this again, right? One time operation?

Thanks!
[Galaxy S II Android Development] Saber:
Yes, it's a one time operation. If you want to change back to stock sizes, you can do so by flashing the stock pit file.
[Galaxy S II Android Development] Lucenzo7:
I want to go from SlimKat to CM12.1. Can I install the .tar gustavo kernel that you provided here?

Do I need KK or LP version? Also, TWRP or CWM? TRIM or not TRIM?

One more thing, which PIT file should I select? There's 5 different ones...
[Galaxy S II Android Development] Saber:
Should be fine if you flash gustavo kernel. If you face errors, you will need to flash an lp version instead.
[Galaxy S II Android Development] willwaush:
Hi guys, I need some help.

I have an S2 GT-I9100 with Samsung's stock ROM 4.1.2

Because It became too slow, I wanted to flash CM 12.1 Lollipop ROM.

In the CM12.1 thread there is this phrase:

"Q. How much System Partition size is needed to flash this ROM?

A. you can flash this ROM on your stock system partition but it is recommended to have 1GB System Partition as ART runtime requires more space. also, it's advisable to have more space on system partition if you would like to install standard GAPPS package."

Now, what should I do step by step to make a repartition work? Should I start this process from the stock system or should I start from the Cyanogen? Do I have to flash Gustavo's kernel and exactly when?

Last request: what PIT file do You suggest me just to install the cyanogen and having no more problem with app installation from the play store due to unsufficient space?

I'd be thankful if you suggest me a step by step list.

THANK YOU ALL.
[Galaxy S II Android Development] Acid0057:
Read the original post on this thread

Sent from my GT-I9100 flowing on SwiftKey in Tapatalk
[Galaxy S II Android Development] :
Repartition stock ICS and flash LP?

Thanks for this great thread and the .PIT files. I used this method to repartition my old S2 before moving from KK to LP and it worked flawlessly. Unfortunately my beloved S2 lost a fight with my lawnmower.

If my new S2 ships with ICS stock on it, can I simply plug in my USB, repartition the SD and install the kernel .TAR with ODIN over the stock ICS and then flash my favourite custom LP ROM straight to it? I'm hoping that in this way I can avoid all the different recovery and kernel issues regarding the eMMC bug, not to mention save a lot of time.

If repartitioning like I did last time does indeed wipe ALL old files and info off the phone, creating a blank slate as it were, is there any reason repartitioning with a stock ICS ROM in place wouldn't allow for a custom LP ROM with it's custom kernel/recovery to be loaded on exactly like when I repartitioned with a KK ROM in place last time? Or to put it another way, is the phone left in the same "blank" state after repartitioning regardless of whether there was an ICS or KK ROM on it prior to repartitioning? Does the ROM prior to repartitioning have any bearing on the SD after repartitioning? I'm worried about the jump from ICS to LP in one go.

I really appreciate any advice here because I am really dreading going through the whole process again, especially if I need to upgrade incrementally from ICS-JB-KK-LP and find all the right kernel/recovery versions on the way. Also, if I brick the new phone my GF bought me I'll never hear the end of it!

Again, apologies if it's a dumb question :eek: and many thanks for any help.

EDIT : trimmed it down a bit. I even bored myself reading it...
[Galaxy S II Android Development] Saber:
Yes, repartitioning should keep everything back to factory defaults including deleting EVERYTHING in the internal sd card. If you follow the steps, the process should go smoothly. If you find trouble installing a lollipop rom, you will need to install a lollipop kernel then install.
[Galaxy S II Android Development] nanodigit:
Stuck on boot

So my aim was to go to CyanogenMod for 5.1.1. I had 2.3.3. I am attempting to increase my partition but no matter what I flash, my s2 won't boot. I was giving up and flashed the stock pit together with 2.3.3. I got lots of errors and still cannot boot. Unfortunately, CyanogenMod are flashed using cmw. How do I get around this problem? A rom that will boot with resized partition. From there, I can install my 5..1.1.
[Galaxy S II Android Development] nanodigit:
It was a struggle but I found solution in another thread ... http://xdaforums.com/showpost.php?p=60376232&postcount=1100
[Galaxy S II Android Development] Acid0057:
Glad you got it fixed. Sorry I wasn't on earlier to give you a hand.

Sent from my GT-I9100 flowing on SwiftKey in Tapatalk
[Galaxy S II Android Development] tiagosantos88:
My pc is gone can i flash troo odin mobile pro
[Galaxy S II Android Development] Saber:
Sorry, this guide is only for users who have their PCs with them. I'm pretty sure there's a guide that allows you to repartition without pc.
[Galaxy S II Android Development] djoledtc:
unable to mount

Need help!! I flashed pit 1gb-4gb over odin and gustavo kernel and all was fine. On step 10 get massage unable to mount in twrp. I tried to format over twrp but cant select sdcard 0mb...