How to resize any mt6572 devices partition without any hassel - Android

Before Trying this mod wanna clearify something : I am not responsible for bricked device , dead sdcard or thermonuclear war or whatever . Try at your own risk .
Things required before approaching :
1. mtk droid tool
2. Sp flash tool
3. Hex edior or notepad++ (go to plugin manger and install hex editor plugin)
4. some sense about mathmatics
Need to know :
This is not a noob guide , You need to be little bit experienced before trying this mod . It may or may not hard-brick your device . You need to keep backup of the whole device before approaching . And it will resize the whole device's partition . And i am using a this template here : 1gb system , 2gb data , 16mb recovery , 10mb bootimg and 300mb internal sd-card . Don't forget to pull out external sdcard and sim-cards before flashing . And this mod is only for devices with 4gb emmc .
Enough introduction , Let's get our hands dirty
First of all , go to your flash tool backup directory and open EBR1 with notepad++ and you will see somehing like this :
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
avoid the lines before the last four lines , No need to worry about those zeros . all you need to worry about is this :
Same process goes for MBR too .
Now lets come to the tricky point . open my MBR and EBR1 in notepad++ or any other hex-editor you like ; Open your MBR and EBR1 too and compare the last four lines with mine . just adjust the line which mismatches with your MBR and EBR1 . click on the number and adjust .
Use my attached MBR and EBR1 as base . And remember to keep a nandroid backup from custom recovery because you have to completely format and reflash your stock rom for this mod and your data partition will be wiped completely . Last but not least please keep a backup of original MBR and EBR1 somewhere .
That's All . Flash using sp flash tool And Enjoy
Feel free to ask question if you are stuck somewhere .
Credits :
1. @yuweng (for all his support and teaching me a lot about mtk . Really indebted to him )
2. darklord4822 ( for his EBR1 and MBR , he is the reason I found out it is possible to recreate the partition table myself ) . Here is his base link .

Reserved

Few updates
v2 changelog :
1. added scatter file to avoid flash error
Few notes :
Adjust linear start address , physical start address and partition size . Convert hex value to get the decimel bytes online here and use online byte to megabyte converter online here to be sure and if you wanna need more info go to this site .

Hey, not like i dont apreciatte it, i'm gonna try it out, but this guide is kindof half way thru...
Why do i need mtk droid tools? you didn't seem to use it in this guide..
Also it is a noob guide, there is no maths involved, nor an explanation to which number represents what.
Its a copy-paste-wish it works job..
No harm intended, just being objective.
But ty, i'll try it out.

Funny, it worked (altho i had to fix the partitions thru twrp), but now my app2sd is broken
edit:
And i fixed it, i had to adapt fbstab.mt6572 and init.mt6572.rc, removing all the lines refered to sdcard1, since, now, repartitioned our device no longer has an integrated external storage, so those files musnt have 'emulated storage' or 'sdcard1' refered lines.
Ty!

Related

app2sd Xperia X10? yeah, it can be manually!

Hey, have u tried "dalvik debug monitor" during playing HD games or apps with huge data in internal memory?
I think that debugging software is very important.
unintentionally, i've re-located the content of APK file to sd card.
I found it can be relocate.. when I watch the logs text that appears on the state of dalvik debug monitor.
and then, i drop off several data file from apk file to sd card.. yeah! actually, you must see the logs, where the location of data file and what file that can be save to the sd card..
then..re-build apk file and install it on your X10. It's works!
I've tested several games : Breakbreakers, The Sims 3 HD, NFS Shift.
Check this out :
Breakbreakers
Before : on internal memory stored : 18 MB.
After : on internal memory : 756 KB, sd card : 17 MB.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
NFS Shift
Before : on internal memory stored : 39 MB.
After : on internal memory : 869 KB, sd card : 38 MB.
The Sims 3 HD
Before : on internal memory stored : 12 MB
After : on internal memory : 1109 KB, sd card : 10 MB.
good
where this app ?
i need test this app on x10 mini
If you mean the DDM, its in the tools directory of the android sdk.
if you think theres a program that just moves programs on the sd card (and does all the work), you missunderstood the first posting.
The question is -> How?
i found dalvikvm on /system/bin
move this?
it'd be great if there was a step-by-step guide on how to do this properly i'd really like to free up some space and i'm sure some others would as well..
Nice one, how did you unmount the .apk files?
NVM found this:
"The apk is really just a ZIP file. Try renaming the file to whatever.apk.zip and open using your favorite ZIP utility. You should be able to view all the contents. Resources (such as images) can be extracted. The java code is compiled into a .dex file so you can't view the raw code, but there are utilities (like this one) to decompile it: http://dedexer.sourceforge.net/"
Now to see the logs and location of data files i need dalvik debug monitor, or can i use another way?
Hi men,
I try to do this but I can't find where data file are in ddx file...
Can we have more information widy?
can u help us by telling step by step procedure as i am noob to programing and this stuff. it would be grt help
anishbhatia said:
can u help us by telling step by step procedure as i am noob to programing and this stuff. it would be grt help
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=800555
bro that i had tried app2sd script it doesnt work. when i use it the windows with option to install comes again & again or it shows option to update it doesnt restart the phone itself . how does u do it manually ????
i have the App2sd from the Xten Custom ROM you can find it if you search a little bit! i have installed the ROM and the last thing i've find out that the apps went to the SD not the internal memory! i changed the ROM i installed the Eminence ROM to just see if it was an error or not! guess what? it still have the App2SD even when i changed the ROM. try it and let me know after.
cheers
EDIT: Do Not Format Your SDcard if you do then do it before you install the Xten's ROM not after.

MTK yaffs2

Hi!
Story goes like this. I have here clone Samsung S4 that I wanted to update the software trough CWM. Unfortunately phone died at some point and now is dead. But, I made backup of the flash with MTKDroidTools and with SP flash tool... and here comes the problems... I can not flash backup back to phone because yaffs2 files are not good page/spare ratio. Thanks to members rua1 and Alex1948 now it is more clear how to change spare ratio on yaffs2 files. Unfortunately I'm not very good with Linux, last night I boot Mint 16 from USB stick and was trying to repair my files but without success.
So, my question is: is someone willing to repair my files in Linux (who understand Linux terminal better)?
Here are some details from phone
View attachment 2574910
View attachment 2574911
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I only have problem with flashing yaffs2 files and secro.img all other are OK. If I try to flash those files I get this error
In attachment is mtd, dumchar_info, MTKDroidTools log and Sp flash tool log so you can see my file structure.Log from MTKDroidTools is from version 2.5.2 because I was using this version when I was making backup from my original phone (you will see other phones data just scroll down to MT6575)
I'm uploading original yaffs files to google drive so later I will update this post with some links.
Thank you all in advance.
Best regards
P.S. INFO FROM MTKDroidTools IS TAKEN FROM SAME PHONE LIKE MINE (FRIENDS PHONE) YES, SAME ONE HARDWARE AND SOFTWARE IS 100% SAME.
Files on Google drive link
https://drive.google.com/file/d/0Bx8Xjd1q6dr3YnFISVJBZFZPSUU/edit?usp=sharing
Little update (memory type)
View attachment 2575196
from guide:
Аttention! Yaffs2 type blocks from this backup can't be Downloaded to phone, they aren't correct! Use backup on 9th step if phone have yaffs2 type blocks!
Click to expand...
Click to collapse
files from archive is wrong
from your log:
10/02/14 11:43:23 Free space: system- 113.7M; data- 54.3M; sdcard- 16.7M; D:\ 170861M
10/02/14 11:43:46 - ERROR - tar: write error: No space left on device
Click to expand...
Click to collapse
it was necessary to release the free memory on SD card before
Hi!
First, thank you for your reply.
Yes , I did figure it out that my files are not OK. I was trying to make them manually in "yafey" for windows (software to create and edit yaffs2 images) but this software have to much bugs so one time it create system.img with full lib folder second time only half of lib files are there and also there is no option for spare ratio change.
So, MTKDroidTools did make my system backup in a folder on my PC but I can not make yaffs2 file from it because there is no software for windows that works fine (I don't use Linux). On Linux it is easy to do (at least for someone who understand Terminal commands).
So, I can send you my backuped system folder if you are willing to make yassf2 file from it (in Linux). Data and Cashe files I have create in yafey and thay are ok.
In yafey if I make new yaffs2 file and insert lib,etc,app,framework... it will not create all files in folders... and after that when I try to flash that created system.yaffs2.img I have error from BROM s_ft_readlen_not_page_aligment (4017) again problem with spare ratio.
I still have here my friends phone so if you have any idea what to do and how to do please tell. I made backup from my friends phone but same thing data,cache,system,secro files are not created correctly. I don't know why is this is it because of the MTKDroiTools or is it because of the phone?
Aaaaaaaaaarghh!!!!!
You wouldn't beleive what I just discover I just try to put my friends phone in recovery so I give a try to make backup.
NORMALY my friends phone don't want to go in recovery (just light on screen), so I have call my friend to ask him does he do something with phones recovery and he said YES i flash some recovery from net trough CWM and after that he can not go in the recovery.
CAN YOU BELEIVE HOW UNLUCKY I AM????????
If someone have any idea???

Repartition Lenovo P780 8GB {Tested on ROW version}

WARNING: LENOVO P780 8GB VERSION ONLY!!! DO IT WITH YOUR OWN RISK.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
This modification is for you who need large space to install application in internal memory (mod 5.5 GB)
Materials Required:
1. STOCK ROM ROW S119 8GB (Other ROM can also be used of JB)
2. FILE TOMOD PARTITION P780 8GB
contained-in this mode:
EBR2_4000MB -> file data into 4GB
EBR2_5000MB -> file data into 5GB
EBR2_5500MB -> data file to be 5.5GB
HOW:
Extract Stock rom on PC, extract target_bin
Extract Partition mode P780 8GB, then copy it to a folder target_bin
Since we will be using a custom EBR2, please rename Checksum.ini to __Checksum.ini I found a folder target_bin
Turn off the phone
Run Flashtool (available in the rom pack)
click scatter-loading (a)
input file MT6589_Android_scatter_emmc from target_bin (b)
DA, DL All With Checksum (c)
make sure all components checked. (d)
6. Click on EBR2 in flashtool and select the sizes that you want - (4GB, 5GB, 5,5 GB)
7. Click Firmware> Upgrade and wait flashtool finish search then connect the USB phone to pc.
Wait until the indicator turn green.
After modification (5.5GB)
Note: This is screenshot of my own device
Once done you can install other ROM aswell, I even had installed KITKAT too (MIUI V6 5.4.10)
REPARTITION WITHOUT PC. (not tested)
This will makes 7.26GB with 4.40GB free storage
Download: P780ROW_8Gb_ReParted_Data_no_int_sd_no_backup.zip
1. Put on sdcard
2. Getting into CWM Recovery
3. Make a full backup
4. Install zip from sd > choose P780ROW_8Gb_ReParted_Data_no_int_sd_no_backup.zip
DO NOT reboot AFTER FINISH
5. Go to Backup & Restore
6. Advance Restore > Restore DATA alone!
7. reboot
To return to the original partition just flash back stock rom or install zip in CWM:
P780ROW_8Gb_ReParted_to_original.zip
GOOD LUCK ....
Thanks bro. I'm giving it a try now on a CN based ROM.
Corrupted my data partition. I tried the flash zip. I'm going to have to try to reflash the FT rom to fix my data partition. Thanks for trying.
Supermatt01 said:
Corrupted my data partition. I tried the flash zip. I'm going to have to try to reflash the FT rom to fix my data partition. Thanks for trying.
Click to expand...
Click to collapse
sorry for that I told you its tested on ROW only I will try to find CN process
NISHANTJ_2K said:
sorry for that I told you its tested on ROW only I will try to find CN process
Click to expand...
Click to collapse
It's all good bro. I fixed the partition using the flash tool. Thanks for your effort. Often the 8 gig device gets forgotten about.
Supermatt01 said:
It's all good bro. I fixed the partition using the flash tool. Thanks for your effort. Often the 8 gig device gets forgotten about.
Click to expand...
Click to collapse
i doubt if there is no 8gb version in china. there is not an single post regarding 8gb repartiton on other side 4gb have two ways to it even in CN base
NISHANTJ_2K said:
i doubt if there is no 8gb version in china. there is not an single post regarding 8gb repartiton on other side 4gb have two ways to it even in CN base
Click to expand...
Click to collapse
Right, no love for the 8 gigabyte version in CN. Thanks for the help though.
greaat.. helped bro thks

MTK phone repartition failed - L200G

I have a Landvo L200G 4G MTK MT6582 phone from China. The phone only has 4GB of storage space.
I wanted to repartition it so the primary partition would have 3GB instead of the less than 1GB it currently has.
I followed the MTK repartitioning video on YouTube exactly. Even though the preloader flashed successfully, the new EBR files did not work. The phone would only boot to the logo screen and hang. When I flashed the preloader using the original EBR files, the phone will boot up normally.
I tried 3 different EBR files from xdadevelopers website, specifically for the MTK 6582 4GB. They all flashed OK but left the phone in a boot to logo screen only condition.
The phone is currently back to it's original condition. Can anyone help me with my problem regarding the repartitioning of the primary partition size? Thank you.
The partitions size was changed. Problem in boot. There are two boot screens. Boot of the kernel and boot of the Android. Which one of this screens is last? If first screen, than the kernel can't find ramdisk. This is strange behavior. If second, than init.rc can not mount file systems, run daemons, because partitions were changed. In this case you must compile Android form source with correct values of partitions size. Or maybe there is an easier way.
AlexanderBabansky said:
The partitions size was changed. Problem in boot. There are two boot screens. Boot of the kernel and boot of the Android. Which one of this screens is last? If first screen, than the kernel can't find ramdisk. This is strange behavior. If second, than init.rc can not mount file systems, run daemons, because partitions were changed. In this case you must compile Android form source with correct values of partitions size. Or maybe there is an easier way.
Click to expand...
Click to collapse
The phone only boots with the Landvo animation screen. Then the home screen appears.
When I tried the other EBR files, the phone booted with the Landvo logo on screen with no animation and remained like that.
This means that Android can not boot. When ROM was compiled from Android source, there is file BoardConfig.mk in source. It contain device specific information like CPU, and partitions. ROM was compiled for standart partition scheme. It can not find partitions in old places. I think problem in this.
This is example of BoardConfig from LG Mako.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
AlexanderBabansky said:
This means that Android can not boot. When ROM was compiled from Android source, there is file BoardConfig.mk in source. It contain device specific information like CPU, and partitions. ROM was compiled for standart partition scheme. It can not find partitions in old places. I think problem in this.
This is example of BoardConfig from LG Mako.
Click to expand...
Click to collapse
I assumed that using the Flash Tools program to change the partition size would modify any other files required for boot, such as BoardConfig.mk
The instructional video by xda-developers for changing partition sizes I watched was specifically for the MTK 6852, which is the type of handset I have. I used the same instructions to change the partition on a L200 phone that worked OK.
Do I need to make some changes to the BoardConfig.mk file to get the partition changes to work?
Can you give link to instructional video?
AlexanderBabansky said:
Can you give link to instructional video?
Click to expand...
Click to collapse
https://www.youtube.com/watch?v=rDf6SpuOuz4
I finally got this fixed (sort of)
I ended up using EBR Tweak to allocate 3Gb of space.
I used MTK Droid Tools to backup and create scatter file. From that I tool the generated EBR files and copied them to EBR Tweak folder and ran the application, selecting the 3Gb option.
I copied the 2 new EBR files generated to the Files To Flash folder and used SP Flashtools to flash the phone.
The storage partition space was changed. However, there is a notification now saying Damaged Phone Storage - Try formatting the SD card.
I backed up the SD card and chose to format. The phone doesn't proceed to format the card and all data on it is intact.
In summary; phone storage is fixed but have that error constantly now.

[MTK][PROBLEM][NVRAM] WiFi NVRAM WARNING: ERR 0x10 Problem Fixed

WiFi "NVRAM WARNING: ERR 0x10" Problem Fixed
The reasons for the appearance of this error
1- Write Firmware After Select in SP FLASH TOOL to Format All + Download
2- After Root + Insert Nvram File for another Model
3- After Upgrade System by OTA Upgrade
Fix the error problem
1- Download MTK ALL USB Driver 1.0.4 -1.0.8
2- Download SN Writer Tool v1.1728
3- Download AP_BP_Base
4- Extracted Files
5- Install Drivers
6- Open SN Write Tool Folder and Double Click to SN Writer.exe
7- Select in Interface Program
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
8- Click "System Config" and select Choose
9- Click "Start" and Writing IMEI1 / IMEI2 / Wifi Address
10- Processing
11- Finish
========================= Notes: =========================
1- If you do not find the modem file, just watch the following video:
2- After and Before Processing:
========================================================
i dont have IMEI 1 and IMEI 2
what to do if you dont have IMEI 1 and IMEI 2 , when i searched in my phone i found IMEI UNKOWN ?
Amrati23 said:
what to do if you dont have IMEI 1 and IMEI 2 , when i searched in my phone i found IMEI UNKOWN ?
Click to expand...
Click to collapse
you can download in the google playstore the app System info for Android.. open the app and go to System -telephony and their it has to be..
DiaboliCall
other solution for fixing invalid imei on infinix note 3 pro ?
hi master i am having always the same msg (entering meta mode failed ) but i am in meta mode and its affiched in little letters in the downscreen, so what is the solution, i tried more versions of imei writer and always the same msg ???
Know IMEI Original Code
Amrati23 said:
what to do if you dont have IMEI 1 and IMEI 2 , when i searched in my phone i found IMEI UNKOWN ?
Click to expand...
Click to collapse
In your phone there you can find your imei number after removing your battery or back cover. If your phone comes with a fix battery and cover then you can find those number from your mobile box that give you with phone when you brought it.
Hello , have the same Problem with NVRAM Warning,
Where can I find the address data for the Wifi of my Teclast T8 Tablet?
Invalid IMEI and NVRAM Error is Not Fix
For my mistake I use the "format all" option when I flash my phone by SP flash tool*without backup necessary data. Now my phone shows "NVRAM warning: err= 0x10"**and WIFI*Mac address frequently change and also IMEI is invalid. For this reason how can I fix this problem? Please give me a proper solution.**
Note: Phone does not root yet.
Doesn't work. Waste of time. There isn't enough explanation for "5- Install Drivers".
In the driver ZIP file, there are two version 1.0.4 and 1.0.8. Why have two? Which to install? And in each of them, there are 3 versions of Driver_auto_installer, and an MTK_Driver_ext. I tried the last version of Driver_auto_installer, but the writing software kept failing with "SmartPhoneSN::ConnectWithPreloader():Get dynamic preloader comport timeout".
I tried to run the "DriverInstaller.exe" in MTK_Driver_ext, but Windows said it cannot run it. It turned out that the application is 64-bit. So, I tried the same thing on a 64-bit Windows PC, but I got the same errors.
Also, the AP DB something file, it contains multiple files that start with BPL/AP per each chipset. The OP did not explain which files to use.

Categories

Resources