[-]
Who's Online
There are currently 3275 online users. [Complete List]
» 4 Member(s) | 3271 Guest(s)
AvatarAvatarAvatarAvatar

[-]
Latest Threads
Need ROM for Q223_MB_V41
Last Post: aamm065065
2024-05-13 00:34
» Replies: 0
» Views: 897
K107-MB-V4.2
Last Post: Alby
2024-04-24 00:37
» Replies: 0
» Views: 502
[ROM] NEED ROM ZH960-MB-V5.0 MTK 6592
Last Post: sendycat2
2024-04-21 08:57
» Replies: 0
» Views: 585
ZH960 Tablet Bricked
Last Post: luis mar que
2024-03-20 19:52
» Replies: 14
» Views: 10299
Thanks, I've been looking for this for a...
Last Post: StevenRip
2024-02-25 05:00
» Replies: 0
» Views: 943
[SOLVED] Need ROM for ZH960-MB-V4.1
Last Post: ery1988
2024-02-21 08:59
» Replies: 0
» Views: 624
NEED ROM ZH960-MB-V4.1
Last Post: ery1988
2024-02-21 08:53
» Replies: 18
» Views: 14241
Budget phone choice help needed
Last Post: sabir7272
2024-02-10 06:52
» Replies: 4
» Views: 4554
ZH960-MB-V3.1 SOLVE
Last Post: Pranav1
2023-12-20 20:22
» Replies: 74
» Views: 34639
Need ROM for SONIM XP7S Android 5.1.1
Last Post: Alpa
2023-11-29 22:17
» Replies: 0
» Views: 422
Need rom for X101 Mt6592
Last Post: carencell
2023-11-24 21:30
» Replies: 3
» Views: 2529
Gizbeat 101: Get your MTK6589 MTK6577 MT...
Last Post: Alexia78
2023-11-13 11:28
» Replies: 8
» Views: 22638
Need rom for a tablet with board id "K10...
Last Post: oliver2
2023-10-24 20:23
» Replies: 6
» Views: 6195
How to Connect open public wifi
Last Post: oliverben45
2023-10-24 16:03
» Replies: 11
» Views: 9449
I NEED FILE FOR ITEL MOBILE PHONE AND TO...
Last Post: Meghnad45
2023-10-22 02:38
» Replies: 1
» Views: 1645
NEED Help Bricked my phone.
Last Post: Meghnad45
2023-10-22 02:36
» Replies: 4
» Views: 5101
Introduction
Last Post: ezrahidaya
2023-10-14 14:38
» Replies: 2
» Views: 1567
Needs help to root a china tablet brand ...
Last Post: ezrahidaya
2023-10-14 14:37
» Replies: 1
» Views: 465
Any tips to stay awake?
Last Post: ezrahidaya
2023-10-14 14:35
» Replies: 6
» Views: 8179
Need ROM for china TAb MT6797
Last Post: ezrahidaya
2023-10-14 14:34
» Replies: 1
» Views: 633
need this stock firmware for my tablet M...
Last Post: ramzii888
2023-10-14 02:20
» Replies: 4
» Views: 5050
Encryption Unsuccessful - Reset Android
Last Post: Aakriti
2023-10-13 16:51
» Replies: 3
» Views: 12808
betools
Last Post: egdeim
2023-09-21 12:41
» Replies: 4
» Views: 5230





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!!
LosTigeros, GizBeat, Ninja^F.U.B.A.R., edcoolio, Bacon_Puffs, WuddaWaste, modestMouse 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!
WuddaWaste and edcoolio 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.
Liffeyman, modestMouse, edcoolio, 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,772 2021-09-09, 22:51
Last Post: soldiaz
  [ROM] Ulefone Tiger - TWRP and Roms Cleopatra 34 26,970 2021-06-03, 22:17
Last Post: LastMan
  [Tutorial] HOW TO PORT TWRP MT6735, MT6752, MT6753, MT6795, MT6797 TWRP MT67xx tutorial Cleopatra 485 303,058 2021-03-02, 20:32
Last Post: itanasa
  [ROM] Teclast 98 (M1E5) - MT6753 Android 6.0 Cleopatra 6 11,510 2021-01-17, 23:30
Last Post: JoLeDalton
  [ROM] Homtom HT17 Pro - ROMS and TWRP Cleopatra 18 25,776 2018-10-06, 21:22
Last Post: Cleopatra

Forum Jump:


Users browsing this thread: 1 Guest(s)
[-]
Tech & Science
[Sci-Am] The U.S. Must Lead the Global Fight against Superbu...
Last Post: Scientific American
2024-11-20 21:24
» Replies: 0
» Views: 66
[Sci-Am] Trump Administration Likely to Repeal Methane Leak ...
Last Post: Scientific American
2024-11-20 07:40
» Replies: 0
» Views: 33
[Harvard] Mars may have been habitable much more recently th...
Last Post: Harvard
2024-11-20 07:40
» Replies: 0
» Views: 16
[Sci-Am] Clean Energy Is Bringing Electricity to Many in the...
Last Post: Scientific American
2024-11-19 18:11
» Replies: 0
» Views: 24
[Sci-Am] The Law Must Respond When Science Changes
Last Post: Scientific American
2024-11-19 04:42
» Replies: 0
» Views: 28
[Harvard] What happened when a meteorite the size of four Mo...
Last Post: Harvard
2024-11-19 04:42
» Replies: 0
» Views: 10
[Sci-Am] Epic Gravity Lens Lines Up Seven-Galaxy View
Last Post: Scientific American
2024-11-18 01:54
» Replies: 0
» Views: 74
[Sci-Am] Voting Has Never Been More Secure Than It Is Right ...
Last Post: Scientific American
2024-11-17 10:52
» Replies: 0
» Views: 35
[Sci-Am] The Virus That Causes Mpox Keeps Getting Better at ...
Last Post: Scientific American
2024-11-16 20:14
» Replies: 0
» Views: 54
[Sci-Am] How to Calm Your Election Anxiety—Even after Polls ...
Last Post: Scientific American
2024-11-16 06:43
» Replies: 0
» Views: 98
[Harvard] When we say ‘smart,’ what do we mean?
Last Post: Harvard
2024-11-15 03:38
» Replies: 0
» Views: 125
[Sci-Am] Why Election Polling Has Become Less Reliable
Last Post: Scientific American
2024-11-14 14:18
» Replies: 0
» Views: 39
[Harvard] Big discovery about microscopic ‘water bears’
Last Post: Harvard
2024-11-14 14:18
» Replies: 0
» Views: 18
[Sci-Am] The Universe in 100 Colors Provides a Stunning Tour...
Last Post: Scientific American
2024-11-14 00:31
» Replies: 0
» Views: 57
[Sci-Am] One in Three Tree Species Is at Risk of Extinction
Last Post: Scientific American
2024-11-13 11:08
» Replies: 0
» Views: 47
[Sci-Am] A Bird Flu Vaccine Might Come Too Late to Save Us f...
Last Post: Scientific American
2024-11-12 20:46
» Replies: 0
» Views: 94
[Sci-Am] Why Are Close Elections So Common?
Last Post: Scientific American
2024-11-12 07:16
» Replies: 0
» Views: 87
[Sci-Am] More Men Are Getting Vasectomies Since Roe Was Over...
Last Post: Scientific American
2024-11-11 17:54
» Replies: 0
» Views: 66
[Sci-Am] Exploring the Science of Spookiness at the Recreati...
Last Post: Scientific American
2024-11-10 14:38
» Replies: 0
» Views: 120
[Sci-Am] Underwater Temple from ‘Indiana Jones Civilization’...
Last Post: Scientific American
2024-11-10 01:00
» Replies: 0
» Views: 133
[Sci-Am] Math and Puzzle Fans Find Magic in Martin Gardner’s...
Last Post: Scientific American
2024-11-09 11:01
» Replies: 0
» Views: 73
[Sci-Am] How Harris’s Medicare Plan Could Make At-Home Care ...
Last Post: Scientific American
2024-11-08 21:03
» Replies: 0
» Views: 65
[Sci-Am] Wildfires Are Moving Faster and Causing More Damage
Last Post: Scientific American
2024-11-08 07:40
» Replies: 0
» Views: 65
[Sci-Am] Climate Goal “Will Be Dead Within a Few Years” Unle...
Last Post: Scientific American
2024-11-07 04:40
» Replies: 0
» Views: 123
[Sci-Am] This Is Your Robot Brain on Mushrooms
Last Post: Scientific American
2024-11-06 15:00
» Replies: 0
» Views: 103
[Sci-Am] The Unsettled Science behind Weight-Loss Drugs for ...
Last Post: Scientific American
2024-11-06 01:19
» Replies: 0
» Views: 92
[Sci-Am] Treat or Trick? Astronomical Objects Are Beautiful—...
Last Post: Scientific American
2024-11-05 11:42
» Replies: 0
» Views: 74
[Sci-Am] Celebrating Spooky Lake Month with Its Creator Geo ...
Last Post: Scientific American
2024-11-04 20:46
» Replies: 0
» Views: 89
[Sci-Am] Hurricane Helene Disrupted Abortion Care in the Sou...
Last Post: Scientific American
2024-11-04 07:11
» Replies: 0
» Views: 106
[Sci-Am] These Hornets Can Thrive on Just Alcohol without Ge...
Last Post: Scientific American
2024-11-03 17:38
» Replies: 0
» Views: 73
[Sci-Am] Apples Have Never Tasted So Delicious. Here’s Why
Last Post: Scientific American
2024-11-03 03:45
» Replies: 0
» Views: 91
[Sci-Am] Climate Change Is Raising the Temperature on Global...
Last Post: Scientific American
2024-11-02 13:38
» Replies: 0
» Views: 85
[Sci-Am] Largest-Ever Pair of Black Hole Jets Stretches 23 M...
Last Post: Scientific American
2024-11-02 00:01
» Replies: 0
» Views: 76
[Sci-Am] We Need More Meds, Not Beds, to Help People Recover...
Last Post: Scientific American
2024-11-01 10:40
» Replies: 0
» Views: 118
[Sci-Am] Did Decriminalizing Drugs Such As Fentanyl Cause Op...
Last Post: Scientific American
2024-10-31 21:16
» Replies: 0
» Views: 112
[Sci-Am] The Colors of Fall Leaves Are Shaped by Climate Cha...
Last Post: Scientific American
2024-10-31 07:34
» Replies: 0
» Views: 99
[Harvard] The making of the gut
Last Post: Harvard
2024-10-31 07:34
» Replies: 0
» Views: 43