yashsingh1/xdaforums huggingface dataset:
[JASJAR, XDA Exec, MDA Pro Software Upgrading] diggy:
Yes you can use it on your MDA but you will not get rid of your sim lock
[JASJAR, XDA Exec, MDA Pro Software Upgrading] TodaDude:
Bummer.... :? just hoped it would be simlocked for Orange then 8)
[JASJAR, XDA Exec, MDA Pro Software Upgrading] Ahrjay:
Just wondering if the phone has been unlocked would updating to this new ROM re-lock it? Is it worth updating to this ROM, I have 1.13.49 WWE.
[JASJAR, XDA Exec, MDA Pro Software Upgrading] diggy:
No I don't think so from what I have read and understand the program that decides the simlock has nothing to do with your OS ROM. But as I have mentioned in previous posts I think the I-mate Rom is so much quicker than the Orange rom.
[JASJAR, XDA Exec, MDA Pro Software Upgrading] Ahrjay:
I have a 24 months UK warranty with orange just wondering will upgrading to the imate rom void the warranty? Should I stick with orange to keep the warranty?

Cheers
[JASJAR, XDA Exec, MDA Pro Software Upgrading] diggy:
I think you will void your warranty by upgrading to imate ROM. However if you download the Orange ROM also if there is a problem with your handset you could always put that back on. I have had my M5000 about 5 months and it already has been through 4 ROM updates to find the best. If the worst happens when you update your ROM give HTC europe a call. Someone in an earlier thread said they charge £40 to reflash for you.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] pigowar:
So after going through ton of different roms/kernels to fix the lag issue that makes my S3 slower than S2, I've finally figured out what is causing it. I can make the phone run smooth if I bump up the minimum freq to above 1ghz. At the moment I'm running 4.3 custom rom/kernel w/o KNOX so the max is at 1.5ghz. I played around with governor and they don't make much difference as long as the minimum has been bumped up. I've seen this happen on stock Note 2 when power saver mode is turned on even with battery on full. What can I do to fix this? I don't want my phone to be in idle at 1ghz for no reason. I will never be able to use the phone for more than 5hrs. Can someone tell me what I can do to make the governor to work as it should?

I've been thinking maybe flashing too many times with different ports could be the cause so I want to flash the stock using Kies but I want stock 4.2.1, not 4.3 with KNOX. How can I achieve this?
[Galaxy Ace II Android Development] Ryccardo:
Screenshots are broken... I assume this deletes the "USB storage"? If then, you and the OP are bosses :good:
[Galaxy Ace II Android Development] judas1977:
I can see the pictures (but are linked from other forum, i'll switch them in future), but yes - it deletes usb storage (ok, not really - new usb storage has 64KB and doesn't have to be even formatted;))
[Galaxy Ace II Android Development] Rox:
Good job !:good:

Personaly i wont do it ever because 1,2 GB is enough, and if i get over that surely i have something on phone that i need to delete because i am not using it

;)
[Galaxy Ace II Android Development] botid:
Great post. :cool:

I would love to see the same mkpart commands to recover the preload partition space and allocate it to the data partition.

I'll do the full repartitioning thing when the team canjica CM11 major bugs have been solved. I'm not too confident about the other cm11's memory swap sustainability over time
[Galaxy Ace II Android Development] Rox:
I suggest you making script for this, and one script to revert everything like it was before
[Galaxy Ace II Android Development] AntaresOne:
I don't know if I can make something as a simple script for recovery (maybe with busybox), but for Linux yes (to automate repartition process). In every case, I will tell/send it to [MENTION=3841151]judas1977[/MENTION] that will provide to update this guide.

[MENTION=3841151]judas1977[/MENTION]: Nice work :)
[Galaxy Ace II Android Development] maxprzemo:
My new system partition

Made under windows 7

Well done judas77 and Tesla-MADAL93 :laugh:
[Galaxy Ace II Android Development] judas1977:
I'll try to make (semi)automate script for linux terminal in couple of days (unless [MENTION=5464206]Tesla-MADAL93[/MENTION] make this) - then we can have/prepare separate scripts for various partition sizes:

- bigger /DATA

- bigger /UMS (like [MENTION=5050926]maxprzemo[/MENTION] did)

- etc...
[Galaxy Ace II Android Development] Ryccardo:
My partition table (actual formatted sizes 602M /system, 28M /cache, 2150M /data, 761M /sdcard -- no need to swap storage)

3 105906kB 747635kB 641729kB ext4 SYSTEM

4 747636kB 777636kB 30001kB ext4 CACHEFS

5 777636kB 3118935kB 2341299kB ext4 DATAFS

8 3118935kB 3918936kB 800001kB fat32 UMS

9 3918936kB 3948937kB 30001kB ext2 HIDDEN

Original partitions:

Model: MMC SEM04G (sd/mmc)

Disk /dev/block/mmcblk0: 3959423kB

Sector size (logical/physical): 512B/512B

Partition Table: gpt

Number Start End Size File system Name Flags

10 524kB 1573kB 1049kB PIT

6 1573kB 3146kB 1573kB CSPSA FS

7 4194kB 14680kB 10486kB ext4 EFS

2 14680kB 31457kB 16777kB ext4 Modem FS

14 32506kB 34603kB 2097kB SBL

16 34603kB 36700kB 2097kB SBL_2

1 36700kB 53477kB 16777kB PARAM

12 53477kB 55575kB 2097kB IPL Modem

13 55575kB 72352kB 16777kB Modem

15 72352kB 89129kB 16777kB Kernel

17 89129kB 105906kB 16777kB Kernel2

3 105906kB 747635kB 641729kB ext4 SYSTEM

5 747635kB 2056258kB 1308623kB ext4 DATAFS

4 2056258kB 2377122kB 320864kB ext4 CACHEFS

9 2377122kB 2712666kB 335544kB ext4 HIDDEN

11 2712666kB 2765095kB 52429kB Fota

8 2765095kB 3948937kB 1183842kB fat32 UMS

Minimum sizes and warnings

/system 530M (approximate value, calculated for CM10.2 + my gApps) (10MB margin)

/cache 8M (assuming

dalvik.vm.dexopt-data-only=1

&&

dalvik.vm.dexopt-cache-only=0

) (2MB margin)

/data 350M (assuming about 100M of actual usable app space) (20MB margin) -- in practice less than 600 will be quite tight

/sdcard 1M (depends on apps again and FAT fragments easily by design, avoid less than 100M)

Now what should be nice having are ROM variants with internal storage disabled, so that we can remove partition 8 and both bypass the need for storage swapping but also avoid some apps not desiged for 2 "SDs" getting partially broken :)
[Galaxy Ace II Android Development] S.AMU:
I just repartitioned my phone, but acidentally I partitioned partition 2 instead of 3 :/

Now when I try to rename the partition 2 again in "Modem FS" with the name command, it only names the partition as "Modem". Can someone explain me please how to rename it to the original name again?

Thank you :)
[Galaxy Ace II Android Development] Ryccardo:
Try "Modem FS" with quotes, or maybe Modem\ FS
[Galaxy Ace II Android Development] S.AMU:
renaming worked with the quotes. Thanks :)

I restored my old nv_backup and now the device is booting... Let's see if it will work. I'm just confused, because in recovery the partition is called modemfs and when restoring nv backup it is called Modemfs....
[Galaxy Ace II Android Development] Ryccardo:
Impossible (well, without LVM or something) because there's USB storage in the middle... but with 10 minutes and a calculator you can create your partition sizes relatively easily :)
[Galaxy Ace II Android Development] powermetza:
If I'll make the following changes in partitions: UMS resize to 400MB, CACHEFS resize to 30MB, DATAFS resize to 2,313GB, Fota 0 MB and I'll leave SYSTEM and HIDDEN to default sizes can I restore CWM Recovery backup or flash stock rom with Odin?

The HIDDEN partition will have the same size, but the location on mmc is different, as you can see below.

3 105906kB 747635kB 641729 kB ext4 SYSTEM

5 747635kB 3173073kB 2425438kB ext4 DATAFS

4 3173073kB 3203793kB 30720 kB ext4 CACHEFS

9 3203793kB 3539337kB 335544kB ext2 HIDDEN

8 3539337kB 3948937kB 409600KB fat32 UMS

Sorry for my english.
[Galaxy Ace II Android Development] Ryccardo:
Nandroid: I wouldn't personally do it but it should work

Odin: definitely repartition with PIT and full image first

And be sure to input the partitions in numerical order!
[Galaxy Ace II Android Development] zimilie:
You can make a script? For linux and winzozz?
[Galaxy Ace II Android Development] AntaresOne:
Don't make CACHEFS partition under a minimum 100 MB!!!

In this partition is stored system apps' dalvik cache on all CM and CM-based ROMs, if available space is insufficient to store dalvik cache of all system apps the ROM isn't stable and has lot of FCs depending on what caches are not stored. If you want to go under 100 MB (that I advice) first check actual used space on this partition with Partition Table (available on Play Store) on your ROM, remember that every ROM has its system-dalvik cache size depending from apps' classes.dex

Inviato dal mio GT-I9070
[Galaxy Ace II Android Development] Ryccardo:
And why?

I've had zero problems in Android with 10 MB as long as you keep dalvik-cache away from it ( dalvik.vm.dexopt-data-only=1 and …cache-only=0)

Recovery probably uses it more though...
[Galaxy Ace II Android Development] AntaresOne:
In this way is okay, but not all people know this I think. Should be added to first post [MENTION=3841151]judas1977[/MENTION]

Inviato dal mio GT-I9070
[Galaxy Ace II Android Development] Ryccardo:
Put it at the end of my guide (end of 1st page) just in case :)
[Galaxy Ace II Android Development] maxprzemo:
Hello :)

He made for me would someone screenshot command line in units of accounting unit b original system partition?

Because I have screenshots of unit s and unit kb but the bits are the most accurate possible units and just this screenshot itself not to do.
[Galaxy Ace II Android Development] Ryccardo:
Good news for scripting [MENTION=3841151]judas1977[/MENTION] [MENTION=5464206]Tesla-MADAL93[/MENTION] !!

Parted accepts all commands issued inline, so it should be possible to create an updater-script similiar to

exec("parted","/dev/block/mmcblk0","units","kb","rm","11"

etc...

(not sure about name of exec function and maximum length of a single command line so it should be split appropriately)
[Galaxy Ace II Android Development] Rox:
Why dont just make bash script and run it using updater script?

Sent from my GT-I8160
[Galaxy Ace II Android Development] Ryccardo:
Why bother with an extra file that has to be extracted somewhere* and then you have to use the exec function anyway? :)

*somewhere that's either internal storage (not good, as partitions must be unmounted first) or external SD (different paths depending on CWM versions...)

------

Also good news from [MENTION=5050926]maxprzemo[/MENTION] and a friend of his who almost bricked his phone by accidentally creating overlapping partitions and found that you can restore by repartitioning in Odin :good:
[Galaxy Ace II Android Development] judas1977:
@up

good news!

Wysłane z mojego GT-I8160 przy użyciu Tapatalka
[Galaxy Ace II Android Development] AntaresOne:
Some time ago I told to [MENTION=3841151]judas1977[/MENTION] that repartition on Odin sucks when you have custom partition map on your device and use Heimdall, but later I found that I had corrupted pit file and not working at all with Heimdall and Odin, after new pit file Odin can repartition without problems too. I personally said to [MENTION=3922109]YelloneK[/MENTION] that he had to do repartition with Odin after overlapping. For script I think that the only bottleneck is the fixed size of partitions which can't be decided by users (in truth yes, but you have to manually calculate and edit partitions' size into script)

Inviato dal mio GT-I9070
[Galaxy Ace II Android Development] judas1977:
@up

But we could prepare couple of scripts with various (most "popular") partition sizes, that way or another you will have to calculate it by yourself if you want to modify values...

It is even safer if we get this under control instead of everybody does it by him/herself:)

Wysłane z mojego GT-I8160 przy użyciu Tapatalka
[Galaxy Ace II Android Development] maxprzemo:
If we have a sprawling system partitions . Is sufficient the same PIT file to load into the program Odin .

http://www29.zippyshare.com/v/4130998/file.html

If we have a good system partitions . In that case you need to additionally upload original firmwares JB by means of Odin

Even HIDDEN partition is in ext4 :laugh:
[Galaxy Ace II Android Development] crashdjent:
I have now cm11. I can flash this one file using Odin?

Sent from my GT-I8160 with Tapatalk
[Galaxy Ace II Android Development] Ryccardo:
Well... that file is for returning to the default partition size...

Using it is either a noop or softbricks your phone (depending on whether you modified the layout) and in this case you must go to recovery or download and reflash the rom, but this file is probably something you don't need now for the reason I said before :)
[Galaxy Ace II Android Development] crashdjent:
Tnx.

Sent from my GT-I8160 with Tapatalk
[Galaxy Ace II Android Development] Edray:
i vote for a script flashable from recovery with diferents system/data partitions :fingers-crossed:
[Galaxy Ace II Android Development] nikolas1274:
Sorry if my questions is wrong but i will ask.

1. Why do we need swap? is The 3GB partition for installing apps from play or other source?

2. will we lose all our data if we do that? Or we can restore them with Titanium? have we reflash rom after this?

3. If we restore our backup from CWM that will restore the original partition too?

Sorry for my bad english too
[Galaxy Ace II Android Development] tofueatsbread:
Deleted- wrong thread :/
[Galaxy Ace II Android Development] Ryccardo:
1- You need to swap partitions if you make the UMS partition too small. Apps go to the DATAFS but many games have the graphics, sounds etc in something that's called the "obb archive" or "extra files" which is put into UMS. Swap makes the phone think that UMS (which is considered the only SD card for apps that don't understand 2 cards like the app manager) is the actual microSD and viceversa

2- Yes, yes, yes if you delete SYSTEM (partition 3)

3- It probably won't work anyway, and Nandroid (backup functions in recovery) don't include the partition table
[Galaxy Ace II Android Development] nikolas1274:
If i will not delete the system, i will not lost my data?
[Galaxy Ace II Android Development] Ryccardo:
One partition (3) is called SYSTEM and another (5) is called DATAFS for a reason...

basically: spend some time with Titanium first :)
[Galaxy Ace II Android Development] judas1977:
Depends on how far will you go;)

Following guide till the end destroys partitions up to /system (including /data and internal storage)...

But you have to follow guide to the end, unless you will count your own values to switch with those from example...
[Galaxy Ace II Android Development] nikolas1274:
I have seen your partitions in previues post, with that setup of partitions you told that you dont need to swap but can you install large apps;

Any suggestion for the values if we want to install large apps without swap?

After the repartition we have to flash our rom again?

Sorry if i bother you with my qustions
[Galaxy Ace II Android Development] S.AMU:
Here are my partitions: :)
[Galaxy Ace II Android Development] powermetza:
I managed to partition the phone in Windows 7 64bit. I increased the data partition size to 2GB, shrunk the cache partition to 100MB, USB storage to 562MB and I and I restored my data from nandroid backup.

These are the steps I followed (for stock ROM):

1.Install ADB

2.Install Universal Kernel Flash from Google Play

3.Extract boot.img from SlimBean Build 2.1 to /extSDCard

4.Reboot in stock recovery, enter in temporary CWM recovery and make a backup

5.Reboot the phone, and flash boot.img from /extSDCard with Universal Kernel Flash and reboot in recovery

6.Download SAMSUNG Android ADB Interface Driver ( you can fiind it on softpedia.com) and extract it

7.Go in Device Manager and install the driver

8.Enter adb and follow the guide from the first page, or if you like my partition sizes you can follow the next commands:

adb devices
adb shell
su
parted /dev/block/mmcblk0
unit kb
print
rm 8
rm 11
rm 9
rm 4
rm 5
mkpart primary 2930627 3037123
mkpart primary 747635 2930627
mkpart primary 3372667 3948937
mkpart primary 3037123 3372667
name 4 CACHEFS
name 5 DATAFS
name 8 UMS
name 9 HIDDEN

9.Format data and preload partitions from CWM Recovery

10.Restore boot and data from nandroid backup

I could not connect with adb with stock kernel, temporary CWM Recovery and CM kernel (but do not know which).

If someone resize the system partition, please try to use a system nandroid backup and tell as if it works (i should work).

Please do not ask me how to install or use ADB, or how to install SAMSUNG Android ADB Interface Driver. If you do not know this, you should not mess with repartitioning.

Sorry for my English.

Number Start End Size File system Name Flags
10 524kB 1573kB 1049kB PIT
6 1573kB 3146kB 1573kB CSPSA FS
7 4194kB 14680kB 10486kB ext4 EFS
2 14680kB 31457kB 16777kB ext4 Modem FS
14 32506kB 34603kB 2097kB SBL
16 34603kB 36700kB 2097kB SBL_2
1 36700kB 53477kB 16777kB PARAM
12 53477kB 55575kB 2097kB IPL Modem
13 55575kB 72352kB 16777kB Modem
15 72352kB 89129kB 16777kB Kernel
17 89129kB 105906kB 16777kB Kernel2
3 105906kB 747635kB 641729kB ext4 SYSTEM
5 747635kB 2930627kB 2182992kB ext4 DATAFS
4 2930627kB 3037123kB 106497kB ext4 CACHEFS
9 3037123kB 3372667kB 335544kB ext4 HIDDEN
8 3372667kB 3948937kB 576270kB UMS
[Galaxy Ace II Android Development] nikolas1274:
hello,

1. with that repartition you need to make swap?

2. Did you flash your rom again?

3. The data partition is the one that we need for apps that we download from play?

3. Why do we need boot.img from SlimBean Build 2.1?
[Galaxy Ace II Android Development] powermetza:
[MENTION=5381949]nikolas1274[/MENTION]

1. If you want to swap sd card(extsdcard) with scdard0(usb storage), there is no sense to make UMS partition = 576270 kB like I did. In this case, you can make UMS partition = 64KB like judas1977 did.

2. No, I didn't flash rom again. The system partition remain intact, and my preload partition was empty (because I moved all system apps from preload to system partition, without the bloatware). The data I restored it from nandroid backup. If you use stock ROM, do not delete or resize preload partition.

3. For standard app the data partition is the one that we need, but for big games we need additionaly to swap storage, because big games use additional files which ar store on usb storage(sdcard0).

4.It is not necessary to use boot.img from SlimBean Build 2.1, you can try other kernel from any custom ROM. As stated above, I had problems with adb on kernel from stock ROM ( temporary CWM Recovery) and CM kernel (but I do not know from which rom).
[Galaxy Ace II Android Development] nikolas1274:
I am using CM10.2, i dont know where are the apps, anyway which one is the preload partition?
[Galaxy Ace II Android Development] judas1977:
Preload is HIDDEN

Wysłane z mojego GT-I8160 przy użyciu Tapatalka
[Galaxy Ace II Android Development] AntaresOne:
[MENTION=4844440]powermetza[/MENTION] In my device (I9070) restoring data from a nandroid backup after repartition makes me to use only original partition size and not custom size. For example if original is 1.97 GB and I make a nandroid backup and after this I make my custom size (6.56 GB) on DATAFS, restoring nandroid makes me to use only 1.97 and not real size

Inviato dal mio GT-I9070
[Galaxy Ace II Android Development] powermetza:
[MENTION=5464206]Tesla-MADAL93[/MENTION]

From what I know Nandroid do not include the partition table, only the partition name. So after i repartitioned my phone I took the risk and restored data from a nandroid backup. The original data partition was 1183842kB and the modified size was 2182992kB. After I restarted the phone, Basic Partition Table app showed data partition size = 2049.1GB, and aplication magager showed 728MB used and 1,3GB free. I installed some programs and games up to 1,5GB and there was no problem.
[Galaxy Ace II Android Development] botid:
Any chance the repartitioning could be done without pc? I don't trust my micro USB socket (bad contact) and don't want to see the phone bricked because the USB connection failed somewhere...
[Galaxy Ace II Android Development] alldine345:
guys, could you reserve this tutorial? i mean how to repartition /data and other like /recovery or /cache to original state? i already broke my /recovery partition. but not because this tutorial. you can see my problem here . and the workaround didnt work anymore so maybe you could show me how to partition everything to original? pit soluton didnt work anyway.
[Galaxy Ace II Android Development] judas1977:
Why PIT isn't working? I used pit file with odin 3.07 and it worked with broken partitions... (only pit/repartition is bit tricky, but sometimes it's enough)...

But with full firmware worked for me (it's possible, that i had to format /data manually from recovery)
[Galaxy Ace II Android Development] alldine345:
i dont know, i already flashing using pit on MB4 full firmware, downgrade to GB with pit also but when flashing back to JB i got blank screen on stock recovery. previously flashing d-kernel via UKF working but not today. some guys from Note and S4 subforum has this issue too, and they succesfully recover their /recovery partition using some adb code like yours but note and ace 2 has different partition layout right? so could you show me how to repartition my ace 2 to original layout?
[Galaxy Ace II Android Development] judas1977:
Strange that odin don't work for you....

Restoring original scheme is simple - you have to remove (rm) all new partition and... (obviously;)) restore old values. You can see it on the first screen (OP)...

I had those values in file (script), but i lost it ^^
[Galaxy Ace II Android Development] alldine345:
i've already setup adb on my computer and installing samsung drivers and i realized that for last step i had to format /data and /preload from cwm. i already had cwm from d-kernel but i still have blank screen when enter recovery mode ( adb is working anyway). did format /data and /preload really neccessary? because i cant acces recovery menu. or can i format using terminal command?
[Galaxy Ace II Android Development] :
If you don't want to cap out the UMS upon first boot, make the UMS partition 16MB at least, then at least you can apply swap AFTER initial boot! 16MB isn't a lot of space, and ensures that .android_secure is big enough for an initial boot, at least until you flash/edit build.prop or a kernel fix for swap space.
[Galaxy Ace II Android Development] Ryccardo:
Good to know!

(I still wonder how devices without internal storage can accept booting and everything without a card, but then we have the infamous ASEC problem = moving to SD actually uses the internal).

As I said, it would be nice if someone created

modified versions of major ROMs that completely ignore partition 8

and report the device as without internal storage... that way moved apps actually go to the SD, "extra data" actually goes to the SD, apps that don't understand multiple storage devices won't blindly default to the internal, ..., and of course the freedom to max out /data without hacks (well, except dexopt-data-only)!

1200M for apps and internal files + 1000M for some apps' resources, their output and random files + whatever for media and other files

is much more unwieldy than

2400M for most apps + whatever for extra data and files + some unusable space that pretends to be for other stuff

but of course 2400 + external only would be the most logic (well, everything user installed in a single external memory would be even better but Android wasn't made to work this way and we paid for a 4 GB chip :p) -- and this "less partitions is better" logic works well in the 5+ years I've been using Linux...
[Galaxy Ace II Android Development] judas1977:
i don't know if i understand you well, but i have no issues with 64KB internal memory with (source) swapped memories...
[Galaxy Ace II Android Development] Ryccardo:
Your apps then see either an almost full, an empty or a broken "external" storage and you must use memory swap: why not just have a ROM that doesn't use internal at all, reporting the SD as the first and only archive?