yashsingh1/xdaforums huggingface dataset:
[Galaxy S 4 Developer Discussion [Developers-Only]] MichelN:
Full dump incl. pit -> http://xdaforums.com/showthread.php?t=2364875
[Galaxy S 4 Developer Discussion [Developers-Only]] Fenny:
It looks like this will not work for my device. No matter what you do with the partition table, upon reboot the master gpt is always restored from the factory pit. Perhaps we can get the device to accept the pit from the Google edition using some black magic. The only problem with that is that the recovery partition is AFTER the system partition in the layout. We will have to, at the very least, overwrite the intended space for the new recovery partition with an image of the old one. In my tests, I was able to shrink the system filesystem, and set the partition to ~1GB. However, the table was simply overwritten, leaving me with a 1GB FS, and a 3GB partition. (Again).

Sent from my GT-I9505G
[Galaxy S 4 Developer Discussion [Developers-Only]] rlorange:
The PIT is locked down unfortunately in the S4 so unlike the S1, S2, & S3 we will have to use another method such as the parted Linux utility to resize the existing partitions.
[Galaxy S 4 Developer Discussion [Developers-Only]] Fenny:
Which is what I attempted, and which is blocked.

Sent from my GT-I9505G
[Galaxy S 4 Developer Discussion [Developers-Only]] rlorange:
Thanks for investigating this. So the device itself is reverting to the original partition sizes?

Are you certain that this is not just a reporting issue?

Edit: Sorg seems to have has more success with this on his i9500
[Galaxy S 4 Developer Discussion [Developers-Only]] rlorange:
Seems Sorg has managed to resize the partitions using parted and keep them after a reboot... Could you share the technical details friend?
[Galaxy S 4 Developer Discussion [Developers-Only]] Fenny:
The backup table for the GPT remains unchanged when a reboot is performed, however the master table is reverted. It seems that our partition layout is quite different as well, since /system is before kernel, recovery and the like on our devices. I wonder if this is something specific to our processors or storage chips (not exynos). Perhaps there is a way to force the backup gpt to be used since it is left alone. The storage seems to consist of a hybrid gpt/mbr partition layout. I wonder if the MBR layout contains the GPT table that is being restored. Maybe we can alter that as well.

Sent from my GT-I9505G
[Galaxy S 4 Developer Discussion [Developers-Only]] sorg:
Fenny,

Yeah, it's not a fun when system partition is before boot.img and even recovery.img. Really odd and non-logical...

I've noticed pgpt.img and sgpt.img partitions looked relative to GPT.

If you can be as crazy as me, then try to modify PIT and flash it through dd ;)

Just remember to change something insignificant for a first time, like change size of system without moving other partitions. Anyway, this is extremely risky, and may lead to brick (unlike brick-proof I9500 checked by me). Unless someone try it, no one will know how it is dangerous to mess with PIT.

rlorange

Did you try to flash the PIT or just repeat my words?

P.S.: Guys, don't forget that we are on developers forum. So, make sure you are experienced enough to mess with such high dangerous things!
[Galaxy S 4 Developer Discussion [Developers-Only]] rlorange:
Just paraphrasing your words mate. As stated in the OP I'm not really experienced enough to contribute much here just wanted to get this concept rolling so no offence intended
[Galaxy S 4 Developer Discussion [Developers-Only]] GalaxyS49505:
Try This Pit.

https://docs.google.com/file/d/0B0FYC_XUE8YxTlI4Z0pDcE81SmM/edit?usp=sharing
[Galaxy S 4 Developer Discussion [Developers-Only]] tublah:
Is this meant to change I9505 to I9505G or is it meant to take a I9505G to I9505?
[Galaxy S 4 Developer Discussion [Developers-Only]] Theshawty:
Probably the pit file for the i9505G but slightly modified, methinks.
[Galaxy S 4 Developer Discussion [Developers-Only]] m3dd0g:
Oh i didnt saw this pit file it looks the same as mine that i made lol. Have someone tried to flash it ?
[Galaxy S 4 Developer Discussion [Developers-Only]] wohenyingyu01:
I've tried it and got stuck on odin with "set PIT file" and the phone said "secure check fail: PIT".

I've attached the original GE bootloader and of course it didn't work :(
[Galaxy S 4 Developer Discussion [Developers-Only]] rlorange:
Damn Samsung have locked down their uber boat partition
[Galaxy S 4 Developer Discussion [Developers-Only]] AlexandreT:
Do you think that the problem lies with Odin or in the bootloader itself not allowing to be overwritten? Is it possible to hack the bootloader?
[Galaxy S 4 Developer Discussion [Developers-Only]] m3dd0g:
The bootloader is locked and thats our problem.
[Galaxy S 4 Developer Discussion [Developers-Only]] MichelN:
What about this guy ? maybe he can help ?

http://xdaforums.com/showthread.php?t=2259933
[Galaxy S 4 Developer Discussion [Developers-Only]] GalaxyS49505:
I take original 9505G .pit file and modified to more space (11GB) but i dont that risk to flash it...
[Galaxy S 4 Developer Discussion [Developers-Only]] m3dd0g:
Post it and i check it...
[Galaxy S 4 Developer Discussion [Developers-Only]] GalaxyS49505:
I give a link previous page.
[Galaxy S 4 Developer Discussion [Developers-Only]] MichelN:
And someone already tried it.
[Galaxy S 4 Developer Discussion [Developers-Only]] karoolus:
I've been messing with the pit files for I9505 and I9505G for 2 days now and i've managed to brick 2 I9505 ! :good:

I've been looking into a way to write a SIGNED pit file for the I9505 with the I9505G entries.. i should be able to get the correct pit file, it's the signing i'm worried about....

I'll post any future updates somewhere around here..
[Galaxy S 4 Developer Discussion [Developers-Only]] ktetreault14:
Do you have a jtag
[Galaxy S 4 Developer Discussion [Developers-Only]] karoolus:
I will soon ;)
[Galaxy S 4 Developer Discussion [Developers-Only]] rlorange:
Man you have giant kahunas!!!! :)
[Galaxy S 4 Developer Discussion [Developers-Only]] elesbb:
So we have come to the conclusion it needs to be a signed pit file to work?
[Galaxy S 4 Developer Discussion [Developers-Only]] Fenny:
That, or we may end up with the engineering bootloader from these pre-release devices. :P If those are signed and flashable we should be in business.

Sent from my GT-I9505G
[Galaxy S 4 Developer Discussion [Developers-Only]] MichelN:
But with a pre-engineering bootloader we still can't update it with the latest bootloader if we flash from the i9505 rom to the i9505G rom ? and receive OTA ?
[Galaxy S 4 Developer Discussion [Developers-Only]] echo_rc:
No update?
[Galaxy S 4 Developer Discussion [Developers-Only]] slikr:
Wait next week
[Galaxy S 4 Developer Discussion [Developers-Only]] MichelN:
For ?
[Galaxy S 4 Developer Discussion [Developers-Only]] byt3b0mb:
have m-919 will travel.... haha. following this thread and eager to try to help and repartition my device.
[Galaxy S 4 Developer Discussion [Developers-Only]] byt3b0mb:
hey guys, trying to relight this fire - any progress on reclaiming wasted space?
[Galaxy S 4 Developer Discussion [Developers-Only]] elesbb:
So far Odin won't flash anything not signed by Samsung. Best bet is to figure out a way to fake the signatures "if possible"
[Galaxy S 4 Developer Discussion [Developers-Only]] Aou:
Indeed, I've done my best to create pure stock Odin-flashables. There's ways to get Odin (on the PC) to accept the packages, but the phone actively refuses any images not signed. If it would, we could have saved at least a few I337 bricks by now.
[Galaxy S 4 Developer Discussion [Developers-Only]] MichelN:
http://xdaforums.com/showthread.php?t=2396133
[Galaxy S 4 Developer Discussion [Developers-Only]] cannondaleV2000:
I don't have the device yet but in a few months I'll be getting am s4 for T-Mobile and since I have some experience with partitioning internal nand and a know how of how it all works. I might look into this
[Galaxy S 4 Developer Discussion [Developers-Only]] CNexus:
In the meantime I can give it a shot.

Someone with an S4 download the parted ARM binary from here (direct link/direct download): https://github.com/CyanogenMod/android_bootable_recovery/raw/cm-10.2/utilities/parted

Then copy it to /system/xbin and make it executable (change permissions to 755 with file browser or terminal emulator)

su
chmod 755 /system/xbin/parted

Then open terminal emulator and run this

parted /dev/block/mmcblk0 -s unit B -s print

Then post the output for me here. Between "CODE" tags of course.

It would probably be easier to run this (and post the output) by doing this through adb shell.

While someone does that for me, I will repartition my S3 to increase the system partition size using space from the data partition, and then I will repartition to make it normal size again.
[Galaxy S 4 Developer Discussion [Developers-Only]] CNexus:
OK, parted doesn't support ext4 partitions. Someone want to cross compile gparted for arm?
[Galaxy S 4 Developer Discussion [Developers-Only]] Fenny:
When I tried earlier I made dd images of the partitions that aren't included in a nandroid backup, deleted, and recreated partitions, then dd'd them back. The issue I ran into was that the partition table would always revert...
[Galaxy S 4 Developer Discussion [Developers-Only]] CNexus:
Could you run that parted print command for me?
[Galaxy S 4 Developer Discussion [Developers-Only]] Fenny:
Number Start End Size File system Name Flags
1 4194304B 17272831B 13078528B apnhlos
2 17272832B 71303167B 54030336B mdm
3 71303168B 71434239B 131072B sbl1
4 71434240B 71696383B 262144B sbl2
5 71696384B 72220671B 524288B sbl3
6 72220672B 74317823B 2097152B aboot
7 74317824B 74842111B 524288B rpm
8 74842112B 75366399B 524288B tz
9 75366400B 92667903B 17301504B pad
10 92667904B 106954751B 14286848B ext4 efs
11 106954752B 110100479B 3145728B modemst1
12 110100480B 113246207B 3145728B modemst2
13 113246208B 114044927B 798720B m9kefs1
14 114044928B 114843647B 798720B m9kefs2
15 114843648B 115642367B 798720B m9kefs3
16 115642368B 3009712127B 2894069760B ext4 system
17 3009712128B 3018100735B 8388608B persist
18 3018100736B 5188653055B 2170552320B ext4 cache
19 5188653056B 5194944511B 6291456B param
20 5194944512B 5205430271B 10485760B boot
21 5205430272B 5215916031B 10485760B recovery
22 5215916032B 5226401791B 10485760B fota
23 5226401792B 5232693247B 6291456B backup
24 5232693248B 5235838975B 3145728B fsg
25 5235838976B 5235847167B 8192B ssd
26 5235847168B 5245284351B 9437184B ext4 persdata
27 5245284352B 5266255871B 20971520B ext4 hidden
28 5266255872B 5287227391B 20971520B carrier
29 5287227392B 15752015871B 10464788480B ext4 userdata

As you can see the kernel, and recovery are AFTER the system partition in the table... Why would you DO that!? at least the bl is at the start like normal so download mode isn't in peril.
[Galaxy S 4 Developer Discussion [Developers-Only]] CNexus:
Lol, that's funny. The partition table for the S3 is so much nicer, makes it a lot easier if you want to shrink system into data or the other way around

Number Start End Size File system Name Flags
1 4194304B 67108863B 62914560B modem
2 67108864B 67239935B 131072B sbl1
3 67239936B 67502079B 262144B sbl2
4 67502080B 68026367B 524288B sbl3
5 68026368B 70123519B 2097152B aboot
6 70123520B 70647807B 524288B rpm
7 70647808B 81133567B 10485760B boot
8 81133568B 81657855B 524288B tz
9 81657856B 82182143B 524288B pad
10 82182144B 92667903B 10485760B param
11 92667904B 106954751B 14286848B ext4 efs
12 106954752B 110100479B 3145728B modemst1
13 110100480B 113246207B 3145728B modemst2
14 113246208B 1686110207B 1572864000B ext4 system
15 1686110208B 14826864639B 13140754432B ext4 userdata
16 14826864640B 14835253247B 8388608B ext4 persist
17 14835253248B 15716057087B 880803840B ext4 cache
18 15716057088B 15726542847B 10485760B recovery
19 15726542848B 15737028607B 10485760B fota
20 15737028608B 15743320063B 6291456B backup
21 15743320064B 15746465791B 3145728B fsg
22 15746465792B 15746473983B 8192B ssd
23 15746473984B 15751716863B 5242880B grow
[Galaxy S 4 Developer Discussion [Developers-Only]] sorg:
You don't need support for ext4fs inside parted, actually.

You can use either make_ext4fs or even mke2fs with proper options to format partition.
[Galaxy S 4 Developer Discussion [Developers-Only]] CNexus:
Well I'm not trying to format the partition.
[Galaxy S 4 Developer Discussion [Developers-Only]] sorg:
I mean, you can repartition using current available version of parted, and then format, using make_ext4fs or mke2fs.

But, with such partition layout, it's nearly impossible to repartition.
[Galaxy S 4 Developer Discussion [Developers-Only]] KornX:
quick question,

and why not create a completely new part layout,

only the ones for boot to recovery are needed?

do we need the cache part anyway?

i wouldn have a problem with it being in a tmpfs directory...
[Galaxy S 4 Developer Discussion [Developers-Only]] paamet:
What about using Heimdall?
[Galaxy S 4 Developer Discussion [Developers-Only]] broodplank1337:
easiest way is to dd a partition locally and make it ext4, then flash it with odin.

if you just dd 5mb to /cache it will be 5mb.. xd its that easy. but don't know where to other free bytes are, at that moment

dd if=/dev/zero of=/dev/block/mmcblk0p18 bs=1M count=100 resizes it

my previous device had no pit so don't blame me if your device suddenly doesn't boot anymore ;) at own risk

(I once had used a 5mb cache image to save space in an odin package (not that it even care if its 5 or 1000mb, compressed 0's is always small) and it made the cache of previously 100mb to 5mb, same way works in reverse)

anyways, it just makes me laugh how ****ing retarted this pit is
[Galaxy S 4 Developer Discussion [Developers-Only]] AlexandreT:
There seems to be a new pit file available for the i9500. It is said to be able to increase data partition. It is said to have come from Samsung China.

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

Could this be useful for the i9505 too? Could this be the answer to this thread?
[Galaxy S 4 Developer Discussion [Developers-Only]] sorg:
Nope. Layout of partitions between I9500 and I9505 are very different and not compatible.
[Galaxy S 4 Developer Discussion [Developers-Only]] hmsq:
I'm wondering if anyone has any new ideas for this problem, or bootloader is still the main culprit.
[Galaxy S 4 Developer Discussion [Developers-Only]] rlorange:
Seems like a lost cause :(

Luckily I found a good use for the wasted space for dual booting :)
[Galaxy S 4 Developer Discussion [Developers-Only]] hmsq:
Looking at that now also.
[Galaxy S 4 Developer Discussion [Developers-Only]] sorg:
i've got SHV-E330S recently, which uses Snapdragon 800 (MSM8974) chip.

I've expected the same bad layout of partitions as in i9505, but it's NOT. Partitions more look like i9500, with boot and recovery partitions at beginning.

Less space reserved for hidden partitions:

253 0 1048576 vnswap0
179 0 30535680 mmcblk0
179 1 15360 mmcblk0p1
179 2 58816 mmcblk0p2
179 3 512 mmcblk0p3
179 4 32 mmcblk0p4
179 5 32 mmcblk0p5
179 6 2048 mmcblk0p6
179 7 512 mmcblk0p7
179 8 512 mmcblk0p8
179 9 10240 mmcblk0p9
179 10 10240 mmcblk0p10
179 11 14336 mmcblk0p11
179 12 3072 mmcblk0p12
179 13 3072 mmcblk0p13
179 14 20480 mmcblk0p14
179 15 20480 mmcblk0p15
179 16 10240 mmcblk0p16
179 17 7159 mmcblk0p17
179 18 3072 mmcblk0p18
179 19 1 mmcblk0p19
179 20 8 mmcblk0p20
179 21 8192 mmcblk0p21
179 22 12288 mmcblk0p22
179 23 2846720 mmcblk0p23
179 24 614400 mmcblk0p24
179 25 12288 mmcblk0p25
179 26 26857455 mmcblk0p26
179 32 512 mmcblk0rpmb

It's not much worse than layout of I9500C model where on 16GB model you have 11GB of free user storage. Here, on E330S i have around 800mb less of free space than on I9500 with PIT from I9500C. So, i've decided not to mess with partitions this time.

Both boot and recovery partitions now 20mb instead of 8mb (which is really small).

I think upcoming I9506 will have similar layout as E330S.
[Galaxy S 4 Developer Discussion [Developers-Only]] Gachmuret:
Is there any news concerning the possibility of re-sizing partitions of internal storage in a I9505?
[Galaxy S 4 Developer Discussion [Developers-Only]] FPSUsername:
Yes, I modified the PIT file from the I9505, but it is not tested.

http://xdaforums.com/galaxy-s4/general/pit-mostorage-mod-t3222959

The pit file is from 2013, which means that there could have been changes, I have to extract the pit file from my phone and see if it is the same, but I keep getting this error:

Failed to access device. libusb error: -12
[Galaxy S 4 Developer Discussion [Developers-Only]] Gachmuret:
As far as I know as long as we don't have a way to sign .pit files it's not possible...

And to get it signed seems nearly impossible without a Samsung insider
[Galaxy S 4 Developer Discussion [Developers-Only]] treysis:
But, has anyone ever tried changing the partition sizes with parted from adb shell, instead of flashing a new PIT? For the beginning, I would just try to shrink the unnecessarily big cache-partition to 500 MB (giving you 1.5 GB). Then move all consecutive partitions 1.5 GB more to the beginning (again, all will be done with parted from adb shell). Now, the last part will probably result in formatting the data-partition. I'm not sure if it is possible to move the data, because there is not enough space in front (only 1.5 GB space is available!). Possibly it could be done without data loss with dd. But I'm too lazy to calculate all the correct sector numbers. Anyway, that is my suggestion. I can't really try it cause I need my S4. Also, even the additional storage will not satisfy the space needed for my diverse selection of too many apps.

EDIT: It's actually just what [MENTION=334644]sorg[/MENTION] did in post #5 with his I9500. But it doesn't seem anyone really tried to follow through with this on a I9505.

EDIT2: And btw., for everyone using root: you can just integrate all your apps (and updates) into the system partition. E.g. Link2SD is capable of doing this. That will free at lot of space on data partition (for me not enough, though).
[Galaxy S 4 Developer Discussion [Developers-Only]] treysis:
[MENTION=334644]sorg[/MENTION] Did you use parted utility from adb shell within recovery? I tried that with a i9505, but had no success. After reboot, the partition table is the same as before. (I was just trying to shrink chache-partition, to see if modifying works at all). I'm starting to believe this is not only because of the bootloader, but possibly because the Qualcomm-processor uses a different way to access the memory. I think that what we see with a partioning-tool is just a virtual disc, provided to us in this manner bei the processor. So, the partitions could possibly be in a totally different order. Or not exist as real partitions at all, and the Qualcomm binary blobs just map them as a virtual partition. I don't think this is possible at all to change, or at least only with lots of experience and time, and nothing worth doing on a 4 years old device.
[Galaxy S 4 Developer Discussion [Developers-Only]] sorg:
If i remember correctly, i've used PIT file form Chinese S4 i9500C. It has more space for user storage. I don't remember details already. It's very risky and may brick your phone. Since PIT file is signed you cannot alter it. Fortunately i9500C and i9500 has same signatures - that's why i could use PIT from i9500. I don't think you will be able to use the same PIT for i9505.
[Galaxy S 4 Developer Discussion [Developers-Only]] treysis:
Nah [MENTION=334644]sorg[/MENTION], from what I read, that PIT doesn't work on 9505. I though you had used the parted tool though (at least that's how you wrote it). I looked a bit more into it, and I think even more that access to the memory is only virtual, provided by a qualcomm driver. So there's simply no possibility to change the partition table on this snapdragon device without a signed PIT-file (altering the driver might be quite difficult and it is probably within the also-signed bootloader).

Yeah, well, that's where "safe computing" has brought us. We aren't free to decide what we want to do on our hardware anymore. :(
[Sony Xperia T, TL, TX, V] dyfk3l:
Hi guys,

I was wondering if it is possible to make a shortcut for Sony's extended standy mode. I like that very much, especially for overnight.

I guess it's not possible with stock options, but are there any apps out there that can generate shortcuts for these and other operations? My phone is BL unlocked and rooted using a modded stock ROM.

Greets
[Sony Xperia T, TL, TX, V] hiragasait0:
U can tray by adding a shortcut on Apex or another launcher and select "activity" , then settings and then u will have to search...
[One (M7) Q&A, Help & Troubleshooting] vegetaleb:
Ok now that we have several roms based on CM and AOSP,which one is the most stable,bug free and fully fonctional (GPS,BT,Camera...)??

MIUI,PAC,Domination...?
[One (M7) Q&A, Help & Troubleshooting] razer1224:
all Roms has the same bugs

you can try RootBox or MIUI
[One (M7) Q&A, Help & Troubleshooting] vegetaleb:
Yours look very promising ;)

The thing I love in MIUI is that it has tons of downloadable ringtones you don't find elsewhere as well as wallpapers that's all
[One (M7) Q&A, Help & Troubleshooting] razer1224:
Thats what an average user would want right?

Tons of Theming and customization :)
[One (M7) Q&A, Help & Troubleshooting] vegetaleb:
If only we can get MIUI media downloader(wallpapers,ringtones) working on other roms...
[One (M7) Q&A, Help & Troubleshooting] razer1224:
Thats Sad

Why not Try Domination?

(Shouldnt have said this but still...)

Share your thoughts with us
[Galaxy Tab 2 Q&A, Help & Troubleshooting] blagginspaziyonokip:
I pushed it off my bed and it fell 1 foot. 1FOOT. and now everything is lagging for some reason. Even after a factory reset on CM10.1 and downloads are about half the speed now. I am extremely pissed now and I don't think I'm going to buy a Samsung tablet anymore in the future. Any reasons for the lag? Could it be related to my internal memory only having 6GB left? I have a 16GB model.
[Galaxy Tab 2 Q&A, Help & Troubleshooting] blagginspaziyonokip:
Bump, this is extremely pissing me off! The factory reset not working probably means it goes deeper than that. I don't care if I have to reset EVERYTHING, this lag is really making me want to smash the tablet against the wall.
[Galaxy Tab 2 Q&A, Help & Troubleshooting] Narciso Neto:
Try reflashing the stock rom, wiping everything... maybe there's an internal hardware problem. :(
[MDA II, XDA II, 2060 General] tungspirou:
Hi everybody!!!

I want to ask 1 prolemb about XDA II.I want select Speaker Phone Mode,please help me!!!because im just buy XDA II 2 days ago :(

Thanks So much :)
[MDA II, XDA II, 2060 General] zedeff:
Press and hold green answer button for 5 seconds when the call is on. :D
[MDA II, XDA II, 2060 General] PapaDocta:
to use the speaker phone... just press and hold the dail button (the green button) for a few seconds
[MDA II, XDA II, 2060 General] tungspirou:
Oh thanks you so much,i want ask more Prolemb.I want connect PPC to hardisk of Computer by Lan network?????
[Sony Xperia T, TL, TX, V] ghaston:
Hello everyone, so yesterday I accidently cracked glass near the front speaker of my xperia v (picture in attachment). It's a shame that I wasn't using a screen protector at that time. Anyway, what do you think is best for me to do? Is there anyway I could hide it or fix it? If the only way is to replace that part how much would it cost and could I do it myself? Or should I just leave it as it is because it's too much hassle trying to fix it?
[Sony Xperia T, TL, TX, V] cht64bit:
If you want to keep your waterproof, mybe the best choice is replace it. The cost of replacement don't should dbe expensive
[Sony Xperia T, TL, TX, V] alresave:
Did you peeled the built-in screen protector?

On the pic it seems the scratch is only on the protector but I could be wrong. Try removing it and see if the glass is actually scratched.
[Sony Xperia T, TL, TX, V] ghaston:
Yes, I peeled the built-in protector unfortunately. And thanks for reply, I will look for price of replacement in my country.