yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Original Android Development] JimboAccy:
You really need to be careful where you are posting links to, cowbutt. I used your link provided above and downloaded and installed the PIT file I wanted from that thread following instructions and hard bricked my SG2 because the link provided is actually in the i9100G section, I had to send off my phone to be RIFF/JTAG'd. metalgearhathaway has another thread for non G i9100 phones like mine which I have used since getting my phone back repaired and they work. i9100G users, use the link from cowbutt above, non i9100G users use this thread : http://xdaforums.com/galaxy-s2/development-derivatives/mod-partition-internal-memory-app-t2538947

Dont want anyone to make the same mistake as me....

JimboAccy
[Galaxy S II Original Android Development] mouki_9:
It even is mentioned it in first post and also in the filename of the zip.....I think you should be more careful yourself, it is after all your own device and your own actions.....
[Galaxy S II Original Android Development] cowbutt:
Sorry to hear that. I've edited my post accordingly, in case anyone else is looking at the end rather than beginning for instructions...
[Galaxy S II Original Android Development] speculatrix:
My daughter's Galaxy Note 1 (N7000) got trashed somehow, and because I thought it had been hit with the eMMC brick bug, had to learn all about PIT files and such, so I followed this guide and successfully repartitioned it to make the data partition 4G, reducing the UMS, and thus making lots more space for games. I'm tempted to do it all over again, making data 8G and reducing UMS still further - because there's a 16GB uSDHC card in the slot so the internal fat32 partition doesn't have to be partcularly big.

I don't know if it's an important stage, but I used Odin to flash/repartition the custom PIT first, letting the device reboot, and then flashed the PDA/md5 file.
[Galaxy S II Original Android Development] pepepapa82:
Hi guys,

I{m with CM 10.2, i've tried the 1st part of the guide.

My goal was to have 6GB of DATAFS and the rest of internal memory for UMS (Data, media, my things.. )

I've done the first part, downloaded the Pit, edit it with PIT Magic and repartition with heimdall --repartition

I assumed the rest of the steps were un-needed for me, since i don't want to tell my phone to use the external SD as main storage. I want to keep the internal, only in a smaller size

When the phone restared after the repartition, this was the outcome:

Total Space 1.97GB (unchanged)

Internal Storage, gone, nothing is displaying.. it's like it erased the UMS section.

But I download the new Pit from the phone and block sizes and counts are as i set them.

I'm attaching my generated pit so that you can see if i did anything wrong.

View attachment 2778192

My entry 11 (DATAFS):

size: 1,392,640

count: 12,582,912

Entry 12:

13,975,552

15,745,024

Entry 13: (same as original)

29,720,576

1,048,576

I'd appreciate any help..

thanks!

EDIT

Update.. i did a factory rest and now I see the 6GB DATAFS partition.

Although I still don't see the UMS one... it's like it is not being recognized.
[Galaxy S II Original Android Development] pepepapa82:
Ok, I fix my problem, and I'm writing here in case somebody experience the same..

After uploading the new pit you won't see the partition unless you wipe data, factory reset and in advanced wipe dalvik cache. (at least for me)

Then I needed to format the storage/sdcard0 otherwise it was unmoutable..

with that I re-wiped everything and it recognized everything.. now i have 5.97GB in DATAFS (Apps and SO) and 7.39GB in UMS (Media, personal files)

success! :D

Good luck!
[Galaxy S II Original Android Development] mtpi:
Hi.

After you resize the partitions you have to reformat them. The factory reset formats the data partition but not ums, do it in android or in recovery.

Inviato dal mio GT-I9100 utilizzando Tapatalk
[Galaxy S II Original Android Development] pepepapa82:
Thank smtpi,

yup, I figured that out yesterday and updated this thread :)

thanks anyway!
[Galaxy S II Original Android Development] pipyakas:
Why cant we merge /data into the internal sdcard like note 2 or some newer sammy phones? Some people need /data, others feel comfortable having a data/media storage if there is no ext sdcard
[Galaxy S II Original Android Development] h4wk3y:
Please, can someone create for me PIT file for i9100 (16GB)

with 1GB /system partition and 4 GB /data Partition and rest as factory?

Thanks!
[Galaxy S II Original Android Development] DarkJohn:
This is what you need :

http://xdaforums.com/showpost.php?p=52622425&postcount=637

Have fun ;)
[Galaxy S II Original Android Development] voldemarz:
I tried to upload pit file via command line, but heimdall seems to expect partition files. What am I doing wrong?

> heimdall flash --repartition --pit small-ums_I9100_16GB.pit

Action: flash

Arguments:

--repartition --pit <filename>

--<partition name>|--<partition identifier> <filename> [...]

[--verbose] [--no-reboot] [--stdout-errors] [--delay <ms>]

[--usb-log-level <none/error/warning/debug>]

Edit:

I ended up using Odin with stock kernel and then re-flashed CM11 from recovery.

NOTE: The pit posted by h4wk3y with 4GB data and 45MB preload is BROKEN:

1. Preload is actually ~22.5 MB (46*080 blocks of 512 bytes)

2. End of last partition (Preload/Hidden) is 31771644 + 46*080 = 31817724, but it should be 30769152

This thread contains PIT files with 512MB system partition and different data partition sizes 1GB-12GB.

If anyone needs, here's the version I used with 4GB data and 1GB data to fit new gapps packages that no longer fit in standard system partition:
[Galaxy S II Original Android Development] panda822:
Hi

I want to reapply the partitions from my internal sdcard. I have a SG2 and I have screwed my sdcard. I don't want to repartition in different sizes just the default sizes as the phone was. I have 16 GB internal sdcard custom ROM android 4.4.2. Can you tell me how to do it I dont want to screw the phone more. How can I make it with Odin preferably? Do I need to install a stock rom or or I can install my custom ROM after partitioning ?

Update: I have scanned my sdcard with those zip archives from CWM and everything is ok. What might be the problem!?
[Galaxy S II Original Android Development] TeutonJon78:
The new versions of Heimdall do seem to require at least one file, otherwise it won't actually do anything. I was running into this problem until I finally figured it out.

I was using the Linux version, so I just did a "touch ums.img" command and then flashed the blank file to the UMS partition. It doesn't matter if you clobber data or the UMS partition, since you're going to have to reformat them anyway after the repartition.

The other thing I noted was that TWRP couldn't go anything with the data partition until after I had booted once. The first clean boot cleaned out and reformated the data partition though and then TWRP could perform operations on it.

To be safe, might want to do a factory restore before doing the repartition.
[Galaxy S II Original Android Development] bleggy:
I've run into the same problem. I've followed this guide for the i777: http://xdaforums.com/galaxy-s2-att/general/guide-partition-i777-phone-data-storage-t2839161

Using heimdall and running the following command: sudo heimdall flash --repartition --pit pitname.pit

I'm not sure if I understand what touch ums.img means. How should I proceed?

Thanks.

EDIT: are you saying this will work:

touch ums.img

sudo heimdall flash --repartition --pit pitname.pit --UMS ums.img
[Galaxy S II Original Android Development] JavaScout:
Hi, friends.

According to the OP, the 2nd half of it is irrelevant, as long as I’m not using removable storage at all, right ?

This is where I stop: 'Change android storage layout'
[Galaxy S II Original Android Development] TeutonJon78:
Exactly. New heimdall (I was using 1.41 from openSUSE repos) requires SOMETHING to flash. It wont' just do the partition file. So, since you are most likely changing the UMS partition anyway (and you have to reformat once you boot up), it's easy to just write anything to that partition, and a blank file will do nicely. :)

I've also noticed that recovery will freak about not being able to mount /emmc, and I think that's partially because of the now empty UMS partition. If you just let it the system boot up, it will format data correctly. I've been doing another full factory reset in recovery just to make sure everything is setup correctly, but probably not necessary. Then you can format the UMS potions via Setting > Storage.

I ended up moving the system partition to 1G, Data to 4G, Preload to 48 MB, and the rest to UMS. I thought about getting rid of the UMS, but decided it would be nicer to keep my SD clean for my media, rather than apps putting their grubby little hands all over it.

With the increased system size, I was able to use the stock PA apps, rather than the micro one. This put the system and apps to around 700 MB. So, if you went this route, you could size appropriately. I went a little higher to leave room for 5.0 expansions.
[Galaxy S II Original Android Development] bleggy:
you're a genius Teuton Jon.

that method worked. and yes, I had some battles with /emmc but it's all smooth now.

thanks again!
[Galaxy S II Original Android Development] djcristi:
good question, my galaxy S4 with stock 4.2.2 also has this new FUSE filesystem, is there a sollution like this or a custom ROM that has this for Galaxy S2 ?
[Galaxy S II Original Android Development] Rendering:
command

$ heimdall flash --repartition --pit newpit.pit

returns

Action: flash
Arguments:
[--<partition name> <filename> ...]
[--<partition identifier> <filename> ...]
[--pit <filename>] [--verbose] [--no-reboot] [--resume] [--stdout-errors]
[--usb-log-level <none/error/warning/debug>]
or:
--repartition --pit <filename> [--<partition name> <filename> ...]
[--<partition identifier> <filename> ...] [--verbose] [--no-reboot]
[--resume] [--stdout-errors] [--usb-log-level <none/error/warning/debug>]
Description: Flashes one or more firmware files to your phone. Partition names
(or identifiers) can be obtained by executing the print-pit action.
Note: --no-reboot causes the device to remain in download mode after the action
is completed. If you wish to perform another action whilst remaining in
download mode, then the following action must specify the --resume flag.
WARNING: If you're repartitioning it's strongly recommended you specify
all files at your disposal.
[caterpillar@Magic-4 i9100_Pit_Files_3GB_-_8GB_Collection_by_metalgearhathaway]$ heimdall flash --repartition --pit I9100_5GB.pit
Action: flash
Arguments:
[--<partition name> <filename> ...]
[--<partition identifier> <filename> ...]
[--pit <filename>] [--verbose] [--no-reboot] [--resume] [--stdout-errors]
[--usb-log-level <none/error/warning/debug>]
or:
--repartition --pit <filename> [--<partition name> <filename> ...]
[--<partition identifier> <filename> ...] [--verbose] [--no-reboot]
[--resume] [--stdout-errors] [--usb-log-level <none/error/warning/debug>]
Description: Flashes one or more firmware files to your phone. Partition names
(or identifiers) can be obtained by executing the print-pit action.
Note: --no-reboot causes the device to remain in download mode after the action
is completed. If you wish to perform another action whilst remaining in
download mode, then the following action must specify the --resume flag.
WARNING: If you're repartitioning it's strongly recommended you specify
all files at your disposal.

could you please update first post?
[Galaxy S II Original Android Development] Lorien_Silmaril:
Sorry, I know this is probably the wrong forum to ask, but I've seen several people ask this in the T989 (T-mobile variant of the Galaxy S2) forum and none of them got any proper answers, so... here it goes.

I have downloaded the .pit file for the T989 variant in the hopes of re-partitioning my wife's phone to increase internal storage. To my surprise, when I opened the .pit file in PIT Magic, it showed 27 entries (instead of 12, like in the I9100 version).

I tried to figure out which entry was for which partition, but after a few hours looking up info, I remained clueless...

Would anyone with more experience in PIT file editing be willing to take a look? :( There's a copy of the T989 pit file in this post.

http://xdaforums.com/showthread.php?t=1659421

Edit: I may have figured this out by myself, WOOHOO! The /data partition on my phone is now reading as 8GB (with corresponding reduction in size for the internal SD card partition). Installing a ROM now, if this works I will be posting a tutorial for T989 owners. :)
[Galaxy S II Original Android Development] Smailtronic:
Excited to hear! Recently bumped my T-989 up to Lollipop and am very interested in a re-partition fix.
[Galaxy S II Original Android Development] tknighten:
So, about this tutorial, or even a copy of the pit? I'm working on figuring this out myself for my wife's GS2.
[Galaxy S II Original Android Development] medvezhonok:
Hi there,

I come here in search of help!. I want to repartition my Galaxy Note (GT-N7000) internal storage so that I can assign more space

to the /data and /system folders. The thing is that I can install or update any application because I only have 43MB left in my /data folder.

. I don´t have any SD card. It is the intenal storage of my Note what I want to repartition. I have 11GB. So...is this guide valid for Galaxy Note (GT-N7000) ???

Kind regards,

Medved
[Galaxy S II Original Android Development] medvezhonok:
Ok. Thank you so much Admin

Enviado desde mi GT-N7000 mediante Tapatalk
[Galaxy S II Original Android Development] seghier:
nothing work
[Galaxy S II Original Android Development] John877:
OK I think I am way out of my depth here with some of this stuff. My brother has asked me to figure out how to make his phone utilize all 16gb of the phones space instead of the default 2gb partition for apps and stuff. His phone currently has CM10.1 on it and CWM 6. I am wondering if I attached the pit file I generated through Heimdall if someone can modify it accordingly. I have read theres some preload and another partition but if using Cyanogen theyre not needed. So if someone could be so kind as to generate a PIT file for that that would be awesome. Also On the off chance he needs to go back to stock AOS then a PIT file with the max 16gb space usable for apps but compatible with Stock AOS would also be great.

Completely forgot to add the phone model lol

Phone is a Samsung Galaxy SII SPH-D710 VMUB (Virgin Mobile)
[One (M7) Q&A, Help & Troubleshooting] golcheck:
I was going to flash latest firmware.zip but before that I did fastboot getvar all and had such result;

(bootloader) version: 0.5
(bootloader) version-bootloader: 1.44.0000
(bootloader) version-baseband: 4A.16.3250.24
(bootloader) version-cpld: None
(bootloader) version-microp: None
(bootloader) version-main: 1.29.206.16
(bootloader) version-misc: PVT SHIP S-OFF
(bootloader) serialno: removed
(bootloader) imei: removed
(bootloader) meid: 00000000000000
(bootloader) product: m7_ul
(bootloader) platform: HBOOT-8064
(bootloader) modelid: PN0710000
(bootloader) cidnum: 11111111
(bootloader) battery-status: good
(bootloader) battery-voltage: 3808mV
(bootloader) partition-layout: Generic
(bootloader) security: off
(bootloader) build-mode: SHIP
(bootloader) boot-mode: FASTBOOT
ERROR: usb_read failed with status e00002e8
getvar:all FAILED (status read failed (Operation timed out))
finished. total time: 0.059s

then I tried again:

ERROR: could not clear input pipe; result e00002ed, ignoring...
ERROR: could not clear output pipe; result e00002ed, ignoring....
ERROR: usb_read failed with status e00002e8
getvar:all FAILED (status read failed (No such file or directory))
finished. total time: 0.000s

the third attempt results in:

getvar:all FAILED (status malformed (0 bytes))
finished. total time: 0.000s

I tried different USB cables and ports. I am concerned that if I will flash the firmware.zip while having such errors my phone gets bricked....

Anyone has an idea what could be the problem?
[One (M7) Q&A, Help & Troubleshooting] squabbi:
Did your phone disconnect in the first time you tried it?

Also the second one could be solved with something like killing the adb server but for fastboot.
[One (M7) Q&A, Help & Troubleshooting] randykzc:
Yea..when I did getvar all, I also get a failed..and phone just stuck on the screen..so I reset the phone and decided not to do getvar all..I flashed firmware without problem..
[One (M7) Q&A, Help & Troubleshooting] Erckul:
so, I've tried these steps since I had the same issue. When I type "fastboot flash zip C:\adb\firmware.zip", I get the following message:

cannot load C:\adb\firmware.zip. any advice is greatly appreciate.
[One (M7) Q&A, Help & Troubleshooting] randykzc:
is the command correct?

i mean i didnt try loading the file this way before "fastboot flash zip C:\adb\firmware.zip"

usually i will use "cd ....."

and then only "fastboot flash zip firmware.zip"

try it..
[One (M7) Q&A, Help & Troubleshooting] MrKudinGTO:
You might want to put the firmware zip file in the same folder as the adb. That'll make your job easier.

EDIT: nevermind, just saw that you put the directory of the firmware as "C:/adb/firmware.zip" so I assume it's already the same folder as the adb. Just type "fastboot flash zip firmware.zip" then. Make sure the firmware zip is not a corrupted zip.
[One (M7) Q&A, Help & Troubleshooting] randykzc:
yea..MRKUDIN is correct..

btw are u going to flash the latest firmware 2.24?

if yes then u need to do "fastboot oem rebootRUU" then only "fastboot flash zip firmware.zip"
[One (M7) Q&A, Help & Troubleshooting] golcheck:
I found out that I was getting get var errors because of cwm recovery. I dont't know why but it seems fastboot getvar had problems when reading recovery partition. I flashed philz touch then firmware.zip and all went fine :)
[One (M7) Q&A, Help & Troubleshooting] Erckul:
thanks for the advice everyone. It's still not flashing. I get the message "cannot load 'firmware.zip'". Since it's not a major issue, I'll just stick with the version I'm on.
[One (M7) Q&A, Help & Troubleshooting] ShivaSmith:
I get a similar thing:

(bootloader) product: m7_ul
(bootloader) platform: HBOOT-8064
(bootloader) modelid: PN0712000
(bootloader) cidnum: CWS__001
(bootloader) battery-status: good
(bootloader) battery-voltage: 4243mV
(bootloader) partition-layout: Generic
(bootloader) security: on
(bootloader) build-mode: SHIP
(bootloader) boot-mode: FASTBOOT
ERROR: usb_read failed with status e00002e8
getvar:all FAILED (status read failed (No such file or directory))
finished. total time: 0.042s

I wonder if getvar has the same problems reading a TWRP recovery?

I suppose I should just ignore it... just don't want things to crash while doing revone or flashing firmware.

---------- Post added at 07:34 PM ---------- Previous post was at 07:18 PM ----------

I noticed that I can repeatedly do "fastboot devices" or "fastboot getvar <a_variable>" repeatedly with no issues. It seems likely that the getvar all is having trouble with the TWRP custom recovery.
[One (M7) Q&A, Help & Troubleshooting] dgtiii:
There's an issue in Hboot 1.44, it freezes after you do a getvar and won't let you do anymore fastboot commands until you reboot.

Also, firmware has to be flashed from RUU mode: fastboot oem rebootRUU

Hope this helps....
[One (M7) Q&A, Help & Troubleshooting] ShivaSmith:
Ah-so... good to know about hboot 1.44.

Note tho' that I *was* able to repeatedly do getvar on single variables... *just not getvar all*... that's the one that would error at the end and if I would replug into USB then I could do "getvar all" again... but maybe you meant "getvar all"... wasn't sure :).

Yup I just did my first successful firmware flash from RUU mode... had to look up what the silver screen meant ;)... all worked great. :)
[One (M7) Q&A, Help & Troubleshooting] dgtiii:
Great, I'm glad it all worked and I could help. I did mean getvar all, glad you decided that lol. Take care and let me know if you need more help.
[One (M7) Q&A, Help & Troubleshooting] Schneijs:
Hi all,

Running ARHD 12.0 and installed the latest bullet proof kernel. Just wondering: if I were to reinstall ARHD without a data wipe would that restore the stock kernel?

If not, what is the latest stock kernel and where can I find it? I understand that there is an older stock kernel floating around that isn't as stable as the one out with the official 4.22.

Thanks as always,

Joel
[One (M7) Q&A, Help & Troubleshooting] prunzzz:
No

reflashing ROM wont flash stock kernel

Stock kernel can only be flashed by running RUU or flashing OTA or FROM NANDROID BACKUP(made at the time when you had stock kernel)

If you didnt make nandroid before flashing bullet proof kernel then wait till 4.2.2 STOCK kernel "STARTS FLOATING AROUND"!!!

HIT THANKS IF I HELPED YOU
[One (M7) Q&A, Help & Troubleshooting] cee43ja1:
Incorrect. ARHD has a kernel in it; reflashing the rom WILL replace the kernel. OP can flash ARHD 12.0 without data wipe in recovery, or "fastboot flash boot boot.img" in bootloader after removing boot.img from the ARHD zip.

If you have a nandroid, all you would have to do is advance restore /boot partition.
[One (M7) Q&A, Help & Troubleshooting] prunzzz:
Ya

you are right

i forgot that arhd has kernel

my fault
[One (M7) Q&A, Help & Troubleshooting] Schneijs:
Thanks! This is what I found, as well. I wrote down the bullet kernel ID info then dirty flashed ARHD and found that the kernel had indeed been returned to stock!

Thank you both for the information!

J
[Android Q&A, Help & Troubleshooting] Ben101:
So my mom got that phone

And he puted a pattern on it

And my small bro tried to unlock it , he tried 20 times and now it asks for gmail

My mom dosent know his Gmail

And the phone is on fast boot so I can't boot into recovery mod

Can u some one help me factory reset it?
[Android Q&A, Help & Troubleshooting] Trozzul:
well from fastboot you should be able to factory reset, or through adb commands. i didnt know huwaei comes with its own fastboot so it might be different commands from htcs fastboot idk.
[Verizon Samsung Galaxy Note II] eBoody:
Hey guys, i themed my first app today!

I used BeyondPod all the time. Who needs radio when you have pod casts? but i always hated the way it looked...so i made it look nicer! I do think i couldve done a better job, cuz i think some of the icons look a tad bit pixelated...

Anyways, let me know if you like it!
[Verizon Samsung Galaxy Note II] Deeked:
Looks good. Thanks for this
[Verizon Samsung Galaxy Note II] OutdoorOBW:
I'm getting overlapping menus in settings. Other than that it's good.
[Verizon Samsung Galaxy Note II] eBoody:
Thanks! Glad you like it =)

can you take a screen shot?
[Verizon Samsung Galaxy Note II] eBoody:
Which rom are you using?
[Verizon Samsung Galaxy Note II] OutdoorOBW:
Tweaked VZW.
[Verizon Samsung Galaxy Note II] eBoody:
Ah thats why...the tweaked roms have transparent menu's everywhere. Beyondpod is no exception. Im surprised you didnt run into that problem with other apps..transparent menu's always bothered me...
[Verizon Samsung Galaxy Note II] OutdoorOBW:
I flashed a patch to get rid of the transparent menus. But I am going to say that since your app is themed the patch dosen't work for it. It all makes since now. lol :good::D
[Verizon Samsung Galaxy Note II] imagelost:
Any problem with the pro key that I bought for beyond pod? Will it affect it?
[Verizon Samsung Galaxy Note II] eBoody:
Nope :)