[-]
Who's Online
There are currently no members online.

[-]
Latest Threads
ZH960 Tablet Bricked
Last Post: luis mar que
2024-03-20 19:52
» Replies: 15
» Views: 9690
User What is the effect of food intake o...
Last Post: fildena150as
2024-03-13 16:37
» Replies: 0
» Views: 23
Thanks, I've been looking for this for a...
Last Post: StevenRip
2024-02-25 05:00
» Replies: 0
» Views: 17
[SOLVED] Need ROM for ZH960-MB-V4.1
Last Post: ery1988
2024-02-21 08:59
» Replies: 0
» Views: 77
NEED ROM ZH960-MB-V4.1
Last Post: ery1988
2024-02-21 08:53
» Replies: 18
» Views: 13535
Budget phone choice help needed
Last Post: sabir7272
2024-02-10 06:52
» Replies: 4
» Views: 4184
ZH960-MB-V3.1 SOLVE
Last Post: Pranav1
2023-12-20 20:22
» Replies: 77
» Views: 33576
Need ROM for SONIM XP7S Android 5.1.1
Last Post: Alpa
2023-11-29 22:17
» Replies: 0
» Views: 70
Need rom for X101 Mt6592
Last Post: carencell
2023-11-24 21:30
» Replies: 3
» Views: 2038
Gizbeat 101: Get your MTK6589 MTK6577 MT...
Last Post: Alexia78
2023-11-13 11:28
» Replies: 8
» Views: 22263
ZH960-MB-V3.1
Last Post: Giankyworld81
2023-11-01 19:35
» Replies: 21
» Views: 15358
Need rom for a tablet with board id "K10...
Last Post: oliver2
2023-10-24 20:23
» Replies: 6
» Views: 5131
How to Connect open public wifi
Last Post: oliverben45
2023-10-24 16:03
» Replies: 11
» Views: 8788
I NEED FILE FOR ITEL MOBILE PHONE AND TO...
Last Post: Meghnad45
2023-10-22 02:38
» Replies: 1
» Views: 1375
NEED Help Bricked my phone.
Last Post: Meghnad45
2023-10-22 02:36
» Replies: 4
» Views: 4784
Introduction
Last Post: ezrahidaya
2023-10-14 14:38
» Replies: 3
» Views: 1295
Needs help to root a china tablet brand ...
Last Post: ezrahidaya
2023-10-14 14:37
» Replies: 1
» Views: 166
Any tips to stay awake?
Last Post: ezrahidaya
2023-10-14 14:35
» Replies: 6
» Views: 4868
Need ROM for china TAb MT6797
Last Post: ezrahidaya
2023-10-14 14:34
» Replies: 1
» Views: 309
need this stock firmware for my tablet M...
Last Post: ramzii888
2023-10-14 02:20
» Replies: 4
» Views: 4449
Encryption Unsuccessful - Reset Android
Last Post: Aakriti
2023-10-13 16:51
» Replies: 3
» Views: 12374
betools
Last Post: egdeim
2023-09-21 12:41
» Replies: 4
» Views: 5019
[Movie Suggestion] Automata with Antonio...
Last Post: GottaGetX
2023-09-07 09:19
» Replies: 3
» Views: 4087





Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tutorial] modding internal storage on newer mediatek roms (mt6732, mt6735, mt6752, mt6753, etc)
#1
Tool tutorial guide how to repartition mt6732, mt6735, mt6752, mt6753
Preface

if you have a 64 bit chinaphone that is running android 4.4.4 or 5.0+ you may notice that the phone no longer uses the old MBR/EBR scheme when it comes to partitioning. luckily, a lot of the manufacturers are deciding to use a unified storage layout, like you see on the nexus phones, where you have a system partition and a userdata partition and the internal SD card is emulated... it is a folder in the userdata partition and is linked to the /sdcard folder. this has several benefits and several disadvantages to this. the main benefit is that since app storage is shared with data storage you have limitless room to install apps until your sdcard is full, you no longer have to worry about running out of application space while your internal data space remains near empty. the main downside is that the USB Storage option when you plug your phone is going to be gone. your only option for accessing data is going to be MTP. this is because the userdata partition (and therefore your emulated internal sd card) is formated as a linux file system, Ext4. android refuses to share this as a USB Thumbdrive, even if you are connecting to a linux computer.

anyway, as mentioned before, the phone no longer uses the MBR/EBR partition layout. if you inspect the sdcard, the phone has a true GUID partition table (which i will refer to as the GPT). this is really really really a good thing. you can read more about GPT partition tables here if you want [Only registered and activated users can see links Click here to register] but suffice to say, this is how modern partitioning is done on windows, mac, and unix computers.

so, why this tutorial? well some manufacturers have decided to stick with the old way of doing things. they are using the GPT partition table, but they are still splitting the phone in to a internal userdata partition and a seperate internal sd card. i'll tell you that it is a pain in the ass to change it to a unified storage solution. but with a little knowledge and a little hacking on the scatter file, it is quite easy to resize the internal storage so you can install more apps and shrink the near useless internal SD card partition.

requirements

you will need several things to do this:
  • a mediatek based android phone that has split storage running android 4.4.4 or more
  • a current version of spflash tools
  • a copy of your ROM for your phone that can be flashed with spflashtool
  • experience flashing ROMs (this isn't difficult, but it isn't for the faint of heart)
  • a recent backup (we will be wiping out everything on your phone, so you will have to restore your apps/data when you are done)
  • a calculator that can convert hex to decimal and vice versa.

procedure with example

first of all: i take no responsibility if you brick your device. this is a relitivly benign mod, but if it somehow fscks up your phone and you can't recover it, i will do my best to help, but i won't be buying you a new phone.

i am going to use the Kingzone Z1 for my example here. i'll add some pictures later if anyone needs it, but the code should be enough to let you figure it out.

after you have your backup and you downloaded and extracted your sp flashtool ROM image, open up the scatter file in a text editor. i use gedit whether i am on linux, windows, or a mac. i prefer it to notepad++. you can get it here [Only registered and activated users can see links Click here to register]. it doesn't much matter what you use, as long as it can read the file.

you want to search the file until you find the reference to the userdata partiton and the intsd partition. in the kingzone ROM it looks like this:

Code:
- partition_index: SYS19
  partition_name: userdata
  file_name: userdata.img
  is_download: true
  type: EXT4_IMG
  linear_start_addr: 0x61000000
  physical_start_addr: 0x61000000
  partition_size: 0x100000000
  region: EMMC_USER
  storage: HW_STORAGE_EMMC
  boundary_check: true
  is_reserved: false
  operation_type: UPDATE
  reserve: 0x00

- partition_index: SYS20
  partition_name: intsd
  file_name: fat_spare.img
  is_download: true
  type: EXT4_IMG
  linear_start_addr: 0x161000000
  physical_start_addr: 0x161000000
  partition_size: 0x0
  region: EMMC_USER
  storage: HW_STORAGE_EMMC
  boundary_check: true
  is_reserved: false
  operation_type: UPDATE
  reserve: 0x00

all address and sizes here are written in hex, so we are going to have to convert them to decimal, change them to whatever we want, then convert them back to hex.

lets look at the first value we need to change. if you look at the section titled - partition_index: SYS19 you will find that there is a directive partition_size: 0x100000000. this tells sp flash tool to make this partition called userdata, and have it have a size of 100000000 hex. if you go to [Only registered and activated users can see links Click here to register] we can easily convert the hex value, and we get 4294967296, which is 4.0 gb (4294967296/1204/1024/1024). easy enogh

important!!! do not make your internal storage size more then 12gb-ish. you need to have that internal sd card partition, and you do not have unlimited storage. out of the 16gb flash, you only have about 13gb left to split between app storage and the internal sd card. if you go to big you will either not be able to flash your phone, or you will bork it and and boot loop when you try to boot up.

so, lets say we thing 4gb is too small for apps, and we want more like 8gb available for apps. no problem. 4+4=8. then convert 8 gb to megabytes by multiplying it by 1024 three times: 8*1024*1024*1024 = 8589934592. now use that same [Only registered and activated users can see links Click here to register] to do a decimal to hex conversion, and you get: 200000000. so our first edit will be to replace the size of the partition_size: of the userdata section with 200000000 like so:

- partition_index: SYS19
partition_name: userdata
file_name: userdata.img
is_download: true
type: EXT4_IMG
linear_start_addr: 0x61000000
physical_start_addr: 0x61000000
partition_size: 0x200000000 <--edit here
region: EMMC_USER
storage: HW_STORAGE_EMMC
boundary_check: true
is_reserved: false
operation_type: UPDATE
reserve: 0x00

now we have to move the intsd card partiton. you will see that it has two lines in it giving start addresses: linear_start_addr and physical_start_addr. the values that are given are already the same. this partition starts right after the end of the last partition. it is pretty easy to calculate. we will take the start address of the userdata partiton and add the size of the user data partiton. they are:
Code:
physical_start_addr: 0x61000000
  partition_size: 0x200000000

you can't just add hex straight (though in this case you can). so lets turn to this [Only registered and activated users can see links Click here to register] to do the addition for us. 61000000 + 200000000 = 261000000. it is a straight edit here, but if you have some hex numbers in there, it might not be so simple. anyway, we edit the intsd partition to have these values

- partition_index: SYS20
partition_name: intsd
file_name: fat_spare.img
is_download: true
type: EXT4_IMG
linear_start_addr: 0x261000000 <--edit 1
physical_start_addr: 0x261000000 <--edit 2
partition_size: 0x0
region: EMMC_USER
storage: HW_STORAGE_EMMC
boundary_check: true
is_reserved: false
operation_type: UPDATE
reserve: 0x00

simple, hugh? now save your scatter file and start up sp flash tool. load your scatter file to flash your phone. the trick before flashing is you have to untick the box for "INTSD". why? well, in the Kingzone's case, it points to a file called fat_spare.img. this file is only 20676 bytes in size. but it is an Android Sparse Image File. what this means is that it is sort of a framework file. it contains a couple of bytes detailing the file system, how big it should be and what not, any small files that should be in there, but all of the blank space has been removed from it. if you convert this file to a regular filesystem image, it is 9gb in size. flash tool will try to flash this file, and it being 9gb, plus your new 8gb userdata partition (plus whatever else is on your phone), comes to over 17 gb. most likely your phone has a 16gb flash memory chip. so it will fail. sp flash tool will give you a warning about there not being enough room on your device, and you wont be happy. so just untick the intsd partition. it will still be created, and it will automatically be sized for whatever space is left. it will just be empty.

future

since the phone uses a GPT instead of MBR, live resizing of the partitions should be possible. i do it all the time on my raspberry pi's, without any data loss. a couple of guys and i have been working on this over at XDA with a flashable zip, but so far we haven't had any luck. if you want to try any of the beta zips, follow the thread at [Only registered and activated users can see links Click here to register]. there are some beta zips you can try, but either they have produced bricks or they have not modified storage. either way, it is going to work eventually, and i'll update this post when it does.

support

i hope i have been clear in this tutorial. if you have any questions, feel free to ask. if your scatter is different, and you need help modifing it, let me know, post it here, etc, and i will give it a go!

good luck!!
Ninja^F.U.B.A.R., GizBeat, modestMouse, LosTigeros, edcoolio, Bacon_Puffs, WuddaWaste like this post
Reply
#2
In case anyone is interested... we have a zip that actually appears to work. I caution you to backup fully before trying it as it still may wipe all your data, but if it works, it will give space to the app storage area and take it from the internal sd. You will loose everything on your internal sd card regardless.

Link [Only registered and activated users can see links Click here to register]

Save it to your external sd card, boot into your custom recovery, select install zip, select this zip, follow the prompts. Easy!

this has been tested on several phones (thl and kingzone) by several people and it has worked flawlessly so far! give it a try if you have split partitions and what to resize them!
edcoolio and WuddaWaste like this post
Reply
#3
Excellent. Stickied.
You like this post
Reply
#4
just a quick note no nomenclature: in this tutorial i refer to a lot of different things as 2 general parts of the android storage system: app storage, internal storage, internal sd card, userdata, intsd, etc. if you look at settings - > storage on your phone, the two things i am talking about are phone storage and sd card. app storage, internal storage, user data, etc all refer to phone storage. internal sd card, intsd, user storage etc, are all the internal sd card. what we hope to accomplish here is take storage space from the sd card and put it in to the phone storage space.
modestMouse, edcoolio, Liffeyman, Ninja^F.U.B.A.R. like this post
Reply
#5
so here is the current script that you can flash to mod your internal storage. It has been tested a bunch of times on a bunch of different phone's with no issues so far. Put it on an external sd card, boot in to your custom recovery, and flash it. Follow the prompts. REMEMBER that your internal sd card will be wiped, so back it up. Your apps should be fine, but it wouldn't hurt to back them up too. [Only registered and activated users can see links Click here to register]. Happy modding!
WuddaWaste and edcoolio like this post
Reply
#6
Great. Used the Aroma auto package. Extended partition Mlais M4 to 10GB w/Carliv + your magic. Apps and data survived. Thanks much Alex.
You like this post
Reply
#7
(2015-08-18, 06:46)alexzap Wrote: just a quick note no nomenclature: in this tutorial i refer to a lot of different things as 2 general parts of the android storage system: app storage, internal storage, internal sd card, userdata, intsd, etc. if you look at settings - > storage on your phone, the two things i am talking about are phone storage and sd card. app storage, internal storage, user data, etc all refer to phone storage. internal sd card, intsd, user storage etc, are all the internal sd card. what we hope to accomplish here is take storage space from the sd card and put it in to the phone storage space.
hi i have a elephone p8000 16gb i want to make my 64gb sd card as internal can i do this
Reply
#8
Thanks Alex, very interresting.
You and GizBeat like this post
Reply
#9
I am using "Symphony Helio S1", MT6753, MALI-T720, 64 BIT, Kernel no: 3.10.65, Android- 5.1.
I want to ROOT my device. But All pc & apk' apps are failed to do it. Many tools are ffailed and porting tools failed to create CUSTOM RECOVERY.img without Rooting. So i have 2 questions.........

1. How can i build a Custom Recovery.img without Root?
2. How can i ROOT my device?

N.B: I have official Firmware....

Plz help me someone.
Reply
#10
I have used the zip file and it worked but when I used it 2nd time it showing "type password to decrypt storage " even factory reset didnt work
What should I do now

(2015-08-17, 10:03)alexzap Wrote: [Only registered and activated users can see links Click here to register]

Save it to your external sd card, boot into your custom recovery, select install zip, select this zip, follow the prompts. Easy!

this has been tested on several phones (thl and kingzone) by several people and it has worked flawlessly so far! give it a try if you have split partitions and what to resize them!

it works perfectly for first time but if u use it 2nd time it will screw your device
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [Tutorial] How to backup MT6752 MT6732 MT6753 MT67xx (and others) SP Flash Tool compatible alexzap 15 65,074 2021-09-09, 22:51
Last Post: soldiaz
  [ROM] Ulefone Tiger - TWRP and Roms Cleopatra 34 26,676 2021-06-03, 22:17
Last Post: LastMan
  [Tutorial] HOW TO PORT TWRP MT6735, MT6752, MT6753, MT6795, MT6797 TWRP MT67xx tutorial Cleopatra 485 298,367 2021-03-02, 20:32
Last Post: itanasa
  [ROM] Teclast 98 (M1E5) - MT6753 Android 6.0 Cleopatra 6 11,409 2021-01-17, 23:30
Last Post: JoLeDalton
  [ROM] Homtom HT17 Pro - ROMS and TWRP Cleopatra 18 25,539 2018-10-06, 21:22
Last Post: Cleopatra

Forum Jump:


Users browsing this thread: 1 Guest(s)
[-]
Tech & Science
[Sci-Am] Planet-Eating Stars Are Surprisingly Common, New St...
Last Post: Scientific American
Today 02:16
» Replies: 0
» Views: 0
[Sci-Am] Wegovy Is First Weight-Loss Drug Approved for Heart...
Last Post: Scientific American
Yesterday 12:44
» Replies: 0
» Views: 9
[Harvard] Herbaria’s use and importance grows with climate c...
Last Post: Harvard
Yesterday 12:44
» Replies: 0
» Views: 11
[Sci-Am] Contributors to Scientific American’s April 2024 Is...
Last Post: Scientific American
2024-03-27 22:49
» Replies: 0
» Views: 4
[Sci-Am] Cannibal Cells Inspire Cancer Treatment Improvement
Last Post: Scientific American
2024-03-27 09:07
» Replies: 0
» Views: 1
[Harvard] Harvard physicists create a new phase of matter
Last Post: Harvard
2024-03-27 09:07
» Replies: 0
» Views: 3
[Sci-Am] Readers Respond to the December 2023 Issue
Last Post: Scientific American
2024-03-26 19:41
» Replies: 0
» Views: 5
[Sci-Am] Inside the AI Competition That Decoded an Ancient H...
Last Post: Scientific American
2024-03-25 16:06
» Replies: 0
» Views: 34
[Sci-Am] See Every Bit of Outer Space We’ve Brought Back to ...
Last Post: Scientific American
2024-03-25 01:40
» Replies: 0
» Views: 36
[Sci-Am] Poem: ‘SnapShot, 1968’
Last Post: Scientific American
2024-03-24 10:31
» Replies: 0
» Views: 10
[Sci-Am] Your Next Flight's Fuel Could Be Made By Microbes
Last Post: Scientific American
2024-03-23 19:46
» Replies: 0
» Views: 28
[Sci-Am] Florida’s Surgeon General Shows the Danger of Polit...
Last Post: Scientific American
2024-03-23 05:30
» Replies: 0
» Views: 42
[Sci-Am] The Science behind Humpback Whales’ Eerie Songs
Last Post: Scientific American
2024-03-22 15:51
» Replies: 0
» Views: 51
[Sci-Am] Astronomers Are Snapping Baby Pictures of Planets b...
Last Post: Scientific American
2024-03-22 01:50
» Replies: 0
» Views: 56
[Sci-Am] A ‘Havana Syndrome’ Investigation in Congress Rests...
Last Post: Scientific American
2024-03-20 22:36
» Replies: 0
» Views: 70
[Sci-Am] What’s behind NASA’s Commercial Lunar Hits and Miss...
Last Post: Scientific American
2024-03-20 09:11
» Replies: 0
» Views: 57
[Sci-Am] Microplastics Linked to Heart Attack, Stroke and De...
Last Post: Scientific American
2024-03-19 18:34
» Replies: 0
» Views: 32
[Sci-Am] How the Seven Bridges of Königsberg Spawned New Mat...
Last Post: Scientific American
2024-03-19 04:51
» Replies: 0
» Views: 28
[Sci-Am] Biden’s State of the Union Promises Big Job Gains f...
Last Post: Scientific American
2024-03-18 14:15
» Replies: 0
» Views: 24
[Sci-Am] Paying Attention to Sensations Can Help Reset the M...
Last Post: Scientific American
2024-03-18 00:26
» Replies: 0
» Views: 28
[Sci-Am] How Arguments that Embryos Are People Pose a Threat...
Last Post: Scientific American
2024-03-17 10:12
» Replies: 0
» Views: 34
[Sci-Am] NASA’s Hopes for Space Solar Power Are Looking Dim
Last Post: Scientific American
2024-03-16 19:58
» Replies: 0
» Views: 33
[Sci-Am] Deepwater Sharks Are Threatened by Demand for Liver...
Last Post: Scientific American
2024-03-16 06:21
» Replies: 0
» Views: 35
[Sci-Am] The Amazing Aerial Adventures of the 'Flying Femini...
Last Post: Scientific American
2024-03-15 16:28
» Replies: 0
» Views: 45
[Sci-Am] We Need Small Astronomy as Much as Big Astronomy
Last Post: Scientific American
2024-03-15 02:13
» Replies: 0
» Views: 39
[Sci-Am] Two Giant U.S. Telescopes Are Threatened by Federal...
Last Post: Scientific American
2024-03-14 11:57
» Replies: 0
» Views: 12
[Harvard] Did fermented foods fuel brain growth?
Last Post: Harvard
2024-03-14 11:57
» Replies: 0
» Views: 23
[Sci-Am] What Are the Benefits of Sleeping Alone?
Last Post: Scientific American
2024-03-13 22:27
» Replies: 0
» Views: 8
[Sci-Am] Is Raw Milk Cheese Safe to Eat?
Last Post: Scientific American
2024-03-13 08:41
» Replies: 0
» Views: 5
[Sci-Am] Why Do So Many Mental Illnesses Overlap?
Last Post: Scientific American
2024-03-12 17:56
» Replies: 0
» Views: 6
[Sci-Am] Sora Is OpenAI’s New Text-to-Video Generator. Here’...
Last Post: Scientific American
2024-03-12 03:40
» Replies: 0
» Views: 11
[Sci-Am] Is This the Earliest Evidence of Human Cannibalism?
Last Post: Scientific American
2024-03-11 13:29
» Replies: 0
» Views: 13
[Sci-Am] This New Antivenom Defangs the Toxins of Cobras, Bl...
Last Post: Scientific American
2024-03-10 09:19
» Replies: 0
» Views: 21
[Sci-Am] Florida Surgeon General Risks Making a Dangerous Me...
Last Post: Scientific American
2024-03-09 19:15
» Replies: 0
» Views: 20
[Sci-Am] A Sexbot Gains Sentience in an Eerie New Novel
Last Post: Scientific American
2024-03-08 16:14
» Replies: 0
» Views: 37
[Sci-Am] A Solar Eclipse, Cancer Treatments and Robots with ...
Last Post: Scientific American
2024-03-08 01:32
» Replies: 0
» Views: 51
[Sci-Am] By Preserving Resources, We’re Protecting People, T...
Last Post: Scientific American
2024-03-07 10:49
» Replies: 0
» Views: 44