yashsingh1/xdaforums huggingface dataset:
[Moto X Q&A] samwathegreat:
Guys, don't listen to solocchi - I think he wants people to brick their devices.

You want freedom of speech solocchi? You got it. But you had better not expect people to not disagree with you. We have freedom of speech too.

Hey guys: I put my phone in the microwave for 60 seconds, then under water for 5 minutes. Then I dropped it and stepped on it.

It still works fine and it's totally safe!! Now who wants to try??

LOL

Disclaimer: don't actually do this.

Now see what I did? I followed the rules by adding a disclaimer as required by XDA.
[Moto X Q&A] Darth:
P. S. No, it's not freedom of speech here. This is a website, ran by people... People who make and enforce rules . Passing out dangerous or malicious advice can get people in trouble. Trust me. ?
[Moto X Q&A] daede86:
Don't worry guys, with the factory reset I'm happy ;)
[Android Q&A, Help & Troubleshooting] bethnesbitt:
I've been reading posts about increasing partitions through the EBR and MBR but most are for 6577, 6589 etc... Nobody seems to have an answer on how to do this with the MTK6572.

Well over the weekend I was looking at a kernel that I pulled from Irulu's website that was a MTK6572, pretty close to mine. It is actually hidden on their download in a file called IMEI write tool, the entire kernel for one of their tablets. When I originally downloaded it, had emailed and asked them for the kernel for my tablet, they said they did not have it. I asked about that hidden kernel and they said they did not know what it was and not to use it on my phone.

Well, I decided to hang onto it, something told me that it might come in useful, and my premonition was correct :)

Anyways, I did a dd against the kernel and found that it was a prerelease of Android 4.6, interesting. Decided to flash it to my tablet just to see what would happen, it bricked it, hehe. Wouldn't turn on. Then I flashed accidentally flashed just their system.img, MBR and EBR1 to the phone using SPFlash tools but reflashed the rest of my original files, nvram, cache, userdata. Well it turned on but acted really buggy, that is when I noticed that my app storage had increased from 503mb to 1.27gb.

Then I decided to flash my nandroid backup via CWM to see what would happen, everything was back and I still had the shiney new increased App Storage Space.

Well then having compareed the two MBR and EBR1 files and discovered that the MBR are identical, the difference is in EBR1, you will see in the attached. Here is what I found the differance to be:

OLD EBR1

000448 00 00 83 00 00 00 00 06 16 00 00 C0 0B 00 00 00 ...........À....

000464 00 00 83 00 00 00 00 C6 21 00 00 00 10 00 00 00 .......Æ!.......

000480 00 00 83 00 00 00 00 C6 31 00 FF 39 CE FF 00 00 .......Æ1.ÿ9Îÿ..

000496 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 AA ..............Uª

NEW EBR1

000448 00 00 83 00 00 00 00 06 16 00 00 C0 0B 00 00 00 ...........À....

000464 00 00 83 00 00 00 00 C6 21 00 00 60 29 00 00 00 .......Æ!..`)...

000480 00 00 83 00 00 00 00 26 4B 00 FF D9 B4 FF 00 00 .......&K.ÿÙ´ÿ..

000496 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 AA ..............Uª

Ok, so where did that increase come from from the old to the new. Most posts are showing how to increase using numbers but nobody is showing how to do an increase with letters. I'm stumped
[Android Q&A, Help & Troubleshooting] bethnesbitt:
How to increase MBR/EBR1

I figured it out, just modded my cell, here is the screenshot:

Increase MTK6572 App storage

New tutorial, the above link still works but this editing of the EBR1 is more stable.

http://elizabethswikis.blogspot.com/2014/10/update-tutoial-re-partition-mtk6572.html

I wrote a post on my blog about how to do this, it works, at the time working on a mod to extend the internal app storage all the way out to the SDCARD to increase your app storage now by using the same EBR1 mod.
[Android Q&A, Help & Troubleshooting] chinapneuk2014:
THL T5 MT6572 EBR1 Increase Internal Storage

Hi bethnesbitt,

Whilst I managed to resize partition for a Doogie DG310 (MTK6582) but I am unable to do it for THL 5 (MT6572), which only has EBR1 and MBR. Tried your, and others guide and miserably failed :(

Currently - the THL shows 2gb Data and 2GB sdcard, but I think it’s incorrect. It’s actually 900MB Data and 2GB sdcard (screenshots attached).

Can you help (files attached) as your one make more sense than others? I would like everything to be assigned to the data partition \internal storage (3 or 4gb)....

Much appreciated,

Thanks

CP
[Android Q&A, Help & Troubleshooting] bethnesbitt:
I'll take a look, been wanting to see if there is a differance in these.
[Android Q&A, Help & Troubleshooting] bethnesbitt:
THL 5 tablet mtk6572

Okay, what I did is I made three different EBR1 for you, a 3.4gb a 3.7gb and a 4.0gb. In MTK Droid Tools, on the right of where it says EBR1, something like c:/My Documents/MTKDROIDTOOLS/EBR1 just click in that box, just like in the picture on my blog, and select the modified EBR1 that you want to use.

There is no need to make any changes to anything else, as long as you click all the way to the right and navigate to the new EBR1 using the latest MTK Droid tools, it will flash, I have done this many times myself. Personally, I like to leave my scatter as is, just in case I need to reflash back to stock.
[Android Q&A, Help & Troubleshooting] bethnesbitt:
This was my fault, your partition size is not big enough to use 4gb. It appears that the total phone storage is 4gb, the FAT size, according to your scatter.txt is only 2.25gb. I don't know of any way to increase the storage right now to extend to your sdcard, you cannot use the entire 4gb of phone storage, you need the rest for system, recovery, etc...

partition_index: SYS18
partition_name: FAT
file_name: NONE
is_download: false
type: NONE
linear_start_addr: 0x64B40000
physical_start_addr: 0x64540000
partition_size: [COLOR="Red"]0x865C0000 = 2254176256 = 2.254176256gb[/COLOR]
region: EMMC_USER
storage: HW_STORAGE_EMMC
boundary_check: true
is_reserved: false
operation_type: INVISIBLE
reserve: 0x00

Here is a modified EBR1 that will use what your storage is limited to, it should increase your userdata storage from 900mb to around 2.7gb. As for the scatter file, i'm working on modifying that so that when you flash your phone the userdata will be correct, this is only a temporary fix that does work but editing the scatter.txt is the best thing.

If you want to work on this your self, what you need to do is subtract the amount from the FAT and add that value to the userdata:

partition_index: SYS17
partition_name: [B]USRDATA[/B]
file_name: data.img
is_download: true
type: YAFFS_IMG
linear_start_addr: 0x2AF40000
physical_start_addr: 0x2A940000
partition_size: [COLOR="Red"]0x39C00000 = 968884224 = 0.968884224[/COLOR]
region: EMMC_USER
storage: HW_STORAGE_EMMC
boundary_check: true
is_reserved: false
operation_type: UPDATE
reserve: 0x00

You need to take the partition size from your FAT and the partition from your userdata and add them together: 0.968884224 + 2.254176256 = 3.22306048

Here is how I modified your EBR1 and Scatter.txt:

For whatever insane reason, MTK6572 partitions are off, there is no easy way to make a nice clean partition, after partitioning, no matter what there is floating sizes just hanging around, there is no easy way around it, that I can find anyways.

Now your partition scheme is a little more crazier then mine, after going as far as possible it still leaves you with around 60mb of internal storage. I tried going up one more digit but it would not have worked, made your partition 3250585600, which doesn't work since your USRDATA+FAT=3223060480 so I went down one number and your new partition is 3217031168, that works but leaves still 6029312 hanging around.

Now to modify the scatter.txt, I did this with mine until figured it out, and yes according to my instructions which will be updated on how this is done, the difference in speed is very noticeable,

If you were to load just the EBR1 that I have attached, you will see that your internal storage still has a MB value, so the scatter text hex value of the FAT has to be reduced to 132CCCCC which equals 6029312
[Android Q&A, Help & Troubleshooting] bethnesbitt:
Editing scatter file for MTK6572

Updated my blog with a new post on detailed directions on how to edit the scatter file.

http://elizabethswikis.blogspot.com/2014/09/tutorial-2-increase-mtk6572.html
[Android Q&A, Help & Troubleshooting] chinapneuk2014:
Thank YOU

Hi bethnesbitt,

I used your second ebr1 and scatter file (as it is) just now and it seems to do the trick – THANK YOU :) …….it’s showing 4.11GB (Internal) and 5.7 MB (Phone) storage. Disk Info is showing as 3GB.

As for spare space\partition – I could not succeed with Doogie DG310 as well. Original size was 2GB Internal + 4.14GB Phone Storage = 6.14GB. I managed to get 5.90GB Internal & 38.95 MB Phone Storage. I tried to get the maximum 6.14GB, but phone boots OK, then asks to format the sdcard, but keeps failing, and then when you reboot, won’t load….…gave up at the end. Perhaps, similar process is going on with this THL5 as well?

I also failed to hide the partition on Doogie DG310 (i.e. not mounting automatically) by editing the boot image……Another headache with that phone was rooting - 3C Toolbox Pro loses its settings after reboot. I think I figured that out now, not 100% though....

Appreciate your help - Thank you again :)
[Android Q&A, Help & Troubleshooting] bethnesbitt:
Partitioning MTK6572

The MTK6572 partitions are odd, I actually tried your EBR1 with mine because I liked that 100mb cache scheme and thought it would be nice to have 3gb app storage, but it didn't work. It seems that for every tablet/phone, you have to use the EBR1 that goes with that device, or figure out how to change all the partitions, not sure.

I actually did get ahold of the MTK6572 kernel on irulu's website, hidden in a zip file called IMEI tool, must be a tablet they are working on, it had the EBR1 for that tablet, so I loaded it on mine, that's how I finally figured out the partition scheme. It worked, made my tablet go from 512mb to 1.27gb, but when I try to repartition the 1.27gb EBR1, it won't work, so strange.

Basically, you have to add the usrdata and the fat together, you can see the sizes in MTK droid tools, just click on blocks map, and where it shows the partition size, add those two numbers together. That is the amount of space you can extend to. You can't go any farther then that number.

So for the doogie you can only increase the application storage from, whatever you see when you click on, settings -> applications, and add your phone storage to that. You can't use the total 6gb because the rest is reserved for your system and cache.

If the Doogie came with an extended sdcard, that is removable or has nothing to do with the actual internal storage, than, ya, you can't go beyond that, at least that Ihave figured out yet. It would be nice, I mean for example, if one could pop a 32gb SDCARD into their tablet/phone, partition off 4gb and add it to the internal storage, ya, that would be cool, especially while using a class 10 sdcard.

I've tried that with my own, took a 16gb sdcard, edited the /etc/vold.fstab using that mod swapp for internal storage to external storage, so that it appeared that my phone had an additional 16gb phone storage, then I tried expanding the ebr1 to read beyond my phone storage + 4gb of my sdcard,, didn't work.
[Android Q&A, Help & Troubleshooting] chinapneuk2014:
Make sense - will have a go when I have some time to kill, lol i.e. usrdata and the fat together on MTK Droid Tool to optimize further, thanks again....as things stand, this is how Doogie is setup for me.

I have total 5.90GB Internal Storage now - followed "EBR How to.docx - Android-Hilfe.de" guide. Then extracted boot.img, and then edited fstab, fstab.fat.nand & fstab.nand as below to make the external Class 10 32GB SD card as Phone Storage.

/emmc@usrdata /data ext4 noatime,nosuid,nodev,noauto_da_alloc wait,check,encryptable=footer

/emmc@protect_f /protect_f ext4 noatime,nosuid,nodev,noauto_da_alloc wait,check

/emmc@protect_s /protect_s ext4 noatime,nosuid,nodev,noauto_da_alloc wait,check

/devices/platform/mtk-msdc.0/mmc_host auto vfat defaults voldmanaged=sdcard1:emmc@fat,noemulatedsd

/devices/platform/mtk-msdc.1/mmc_host auto vfat defaults voldmanaged=sdcard0:auto

/devices/platform/mt_usb auto vfat defaults voldmanaged=usbotg:auto

I tried to hide 38.95MB (voldmanaged=sdcard0 – showing currently as SD Card) but failed….but the setup is working for me for now so all is good. :)
[Android Q&A, Help & Troubleshooting] bethnesbitt:
Something to think about

Today I really wanted to see if there was a way to load your EBR onto my device. Well I got it to work. It's risky, but what I did was:

In spflash tools I manually formated the userdata to the size of your original hex code. Then I did the same with the fat. Next I flashed everything except for system, data and cache. After that I flashed in spflash tools just the system.

Next I booted into CWM recovery and restored the backup I made using nandroid manager from the play store of just the data, and it worked! Now I'm going to flash your new 3gb EBR1 using the same method. If it works then i'll go from 504mb to 2.56gb to 3gb.

Anyways, this gave me a thought, now it is very very very risky, but you might be able to do something like that. Since I don't have your phone in my hands, it's hard to do it the way I did with the EBR1 and scatter. Anyways, if you add your hex codes of the tablets, userdata fat and that extra internal storage together, then in spflash tools format each partition, the start has to be the linear_start_addr: hex# that shows in your scatter, and the partition size of each one, it might work. I am going to write a better tutorial to lay it out.

As for that little 5.7mb, there are two ways to hide it. In gparted formated it to an ext4, the phone will not see it, but it will show when you connect the device to the PC. The other way i'm not really sure, I somehow deleted that partition in spflash tools and it doesn't show anymore, heh.
[Android Q&A, Help & Troubleshooting] bethnesbitt:
Hiding the little mb MTK6572 partition

[MENTION=6031818]chinapneuk2014[/MENTION]

Mentioned about trying to load your EBR1 onto my phone, noticed that your EBR1 had a cache of 125mb where mine had 350mb. At first it didn't work, so I went into spflash tools and formatted the partitions to match the hex value, then loaded the EBR1 and it worked.

So then the new size was 900mb app storage, so then I went back i and formatted the cache and fat to the new hex values of the modified 3gb ebr1 that you are using. For some reason spflash won't let me format the usrdata hex value, keeps telling me invalid address, but lets me change the values of the cache and fat partitions, not sure why, some bug in the software maybe

Below are the attached pictures to do this, not sure if it will work on your device since the EBR1 is originally for yours. The FAT section should though, and this should maybe fix that little MB issue that appears. I ran some tests on my own and found that when I loaded the original EBR1 for my tablet, the 2.11gb internal storage showed. When I load your modified EBR1 it doesn't, so possibly formatting the fat to the new hex value will work, how yours would look are in the attached pictures.

Also, realized, that I forgot to update the usrdata hex value in the scatter file for yours, was tired from looking at numbers and just missed it. It works when using the original scatter with a new EBR1, as long as it's the EBR1 for your device, but I found that the matching hex values in the scatter improve the tablet's performance.

If you decide to perform the format, the best thing to do reinstall just the nandroid data backup in recovery. The format will erase userdata and anything stored on the fat partition.
[Android Q&A, Help & Troubleshooting] bethnesbitt:
Hiding the little mb MTK6572 partition

[MENTION=6031818]chinapneuk2014[/MENTION]

Well I got your EBR1 to work on my tablet, took some playing around to trick the phone but it worked.

Now I have 2.95gb on app space and 4mb of internal storage, just used gparted in ubuntu to format it to an ext4, that works for mine, the tablet doesn't give an error either that there is a problem with the disk and want to format, just doesn't see it anymore.

Originally my cache size was 350mb, which I never used, looked many times and usually about 8% of that partition was used. You can easily look at the tablet partitions by going in /etc/vold.fstab and changing the emmc@fat and auto around, leave everything else, then when you enable USB storage it mounts the tablet partitions instead of the sdcard. Pretty neat for easy viewing of your system files. Can even get superuser access by typing sudo nautilius in a terminal shell.

Anyways, your EBR1 cache was 100mb, that made me think, now if that could work on this tablet, would give me, at least, another 1/2 gb of app storage.

It's tricky but what I did to finally get it to work was in spflash tools, I did a format and download all. Made sure everything that was to be downloaded was set to true in the scatter. Changed the hex values for the cache, usrdata and fat to match the EBR sizes.

Happened to have a userdata and cache.img that I snagged on Irulu.com's website. When I booted up the tablet, gave an error, didn't press the reset button, that let me know the new EBR1 worked, so I just powered down then went into CWM recovery, advance restored JUST THE DATA. When I booted, it worked, yay. If somebody doesn't have a cache and data.img file, if you set those to false in the scatter then and download everything else, should work the same.

[MENTION=522811]chinap[/MENTION]enuk2014, here is an update of your scatter, realized that I never updated the hex value for the usrdata partition. The flash works, but I think the tablet/phone has better performance if you match the scatter.

As for the other tablet, what you could try to do is to format that 4gb extra internal as unallocated then in the scatter add your values of usrdata, fat and that extra 4gb together, modify the ebr1, might work. If you want to, I can take a look at that ebr and scatter, don't think you uploaded those.

Tried formatting the partitions in spflash but can't go above the original partition sizes and can't format at 0x0. Spflash gets the hex values from /proc/dumchar_info so it just won't work.
[Android Q&A, Help & Troubleshooting] chinapneuk2014:
I am a newbie :(

Hi bethnesbitt,

Whilst I understand what you are trying to do and explain in general but all these hex conversions, etc. gives me headache, lol…I only attempted when I couldn’t get the EBRtweak to work for Doogie, and thankfully managed to do it by reading that pdf guide someone posted…now, reading your comments, perhaps, I should have modified the scatter file for Doggie as well?

Another family member also have another MT6572 “ZTE Blade Q Mini” and thought I go for it earlier but got lost again…I am also a Windows man as well (although tried to format that fat partition on gparted from bootable iso, it doesn’t even recognize the phone)…lol

Both original ZTE Blade Q Mini (.98 GB Internal & 1.31GB SD Card = 2.29 GB) & Doogie files are attached for your review (I am happy the way it is although any optimization would be good) – my main objective is to utilize ALL phone storage as internal storage (data partition). I want the external memory card to remain separate. This is to ensure that if I take the memory card out, the phone still works. Currently, I am using Link2SD on ZTE Blade Q Mini but I want move away from this as I feel it slows the boot process. This is was the motivation to explore this option :)

Will try your new scatter now...

Thanks again for your help, much appreciated.
[Android Q&A, Help & Troubleshooting] bethnesbitt:
Will do

No problem, this is helping me learn how to optimize my own devices as well, It's funny because the day I saw your reply, I was trying to figure out how to decrease my cache size to get more storage, and poof, there was your EBR to help me :)

I'm trying to figure out just what he manufactures are doing with th partition schemes.

I'm using link2sd as well. Found another issue with link2sd, when you mount your storage via USB on the PC, it causes any apps that are moved to SDCARD to crash, this also causes the phone to restart on occasion.

As for the SDCARD mod, there really is no way to go beyond the internal size, i've tried, so no worry about the sdcard, this is just a cause for a brick anyways, as you stated, when removing the sdcard.
[Android Q&A, Help & Troubleshooting] bethnesbitt:
Repartion of Doogie - MTK6582

Thought I was never going to get it, twice almost posted the files then had to think twice, lol, had it right the first time, wrong the second. Had to go back to your scatter to double check, glad I did.

This should work, wow, what a nice mod, 6gb app storage and 16mb internal storage.

The EBR2 is an extended storage, which appears to make the extra internal storage, now, not really sure it will work since I don't have a doogie to flash it to.

This is how your EBR1 EBR2 and MBR look:

MBR

Regular file, size 512 bytes

DOS/MBR partition map

Partition 1: 2.000 TiB (2199023255040 bytes, 4294967295 sectors from 1024)

Type 0x05 (Extended)

Partition 2: 10 MiB (10485760 bytes, 20480 sectors from 18432)

Type 0x83 (Linux)

Partition 3: 10 MiB (10485760 bytes, 20480 sectors from 38912)

Type 0x83 (Linux)

Partition 4: 6 MiB (6291456 bytes, 12288 sectors from 125952)

Type 0x83 (Linux)

--- EBR2

Regular file, size 512 bytes

DOS/MBR partition map

Partition 1: 1.997 TiB (2195677249024 bytes, 4288432127 sectors from 6390784)

Type 0x83 (Linux)

--- EBR1

Regular file, size 512 bytes

DOS/MBR partition map

Partition 1: 900 MiB (943718400 bytes, 1843200 sectors from 165888)

Type 0x83 (Linux)

Partition 2: 126 MiB (132120576 bytes, 258048 sectors from 2009088)

Type 0x83 (Linux)

Partition 3: 2.035 GiB (2185232384 bytes, 4268032 sectors from 2267136)

Type 0x83 (Linux)

Partition 4: 2.000 TiB (2199023255040 bytes, 4294967295 sectors from 144384)

Type 0x05 (Extended)

I am assuming that when you look in your android's file manager you see 2 or 3 storage? Is it 2 internal and one the external sdcard if one is present?

If this does work, would love to see some screen shots, one of your settings -> apps and the other of your file manager, how the internal storage looks, just before you try the new modified EBR1.

Would love to put the directions on my blog with those screenshots if you don't mind. Know that nobody could figure it out before with other MTK6582 chips, really isn't that hard, which is why so many people have a difficult time with it I think. The 6582 is easier because you only have to make changes to two values in the EBR1, no need to change your original MBR or EBR2, which is why they aren't included, no need for changes in those.
[Android Q&A, Help & Troubleshooting] chinapneuk2014:
MT6572 “ZTE Blade Q Mini”

By the way, can you do your magic on the MT6572 “ZTE Blade Q Mini” files please, lol? :) When I use the flash tool it says the EMC as 8gb, but the phone shows low memory.

As for MTK6582 (Doogie DG310) - I thought you had to change both EBR1 & EBR2 for - that's how I did it initially using the guide (screenshots attached using my EBRs, not the original I sent you).

Just tried your EBR1 & Scatter file with the original EBR2 to test…same problem as before, it messes up everything so restoring from backups (flash tool and then clockwork backups) – too much pain, lol –: “….I tried to get the maximum 6.14GB, but phone boots OK, then asks to format the sdcard, but keeps failing, and then when you reboot, won’t load….…gave up at the end..”