yashsingh1/xdaforums huggingface dataset:
[One (M7) Q&A, Help & Troubleshooting] fc3211:
Hello There,

I have AT&T m7 and recently just S-OFF

I upgraded from 4.4.2 to the 7.15.401.1 firmware in order to flash the GPE 5.1 rom

But now it looks like I flashed the wrong radio or baseband because my cellular data is no longer working (althought I can still make calls)

Here is the output before I began:

daka@daRk-PC ~ $ sudo fastboot getvar all
(bootloader) version: 0.5
(bootloader) version-bootloader: 1.56.0000
(bootloader) version-baseband: 4T.24.3218.09
(bootloader) version-cpld: None
(bootloader) version-microp: None
(bootloader) version-main: 4.18.502.7
(bootloader) version-misc: PVT SHIP S-OFF
(bootloader) serialno: HT34FW910399
(bootloader) imei: 354439053123222
(bootloader) meid: 00000000000000
(bootloader) product: m7_ul
(bootloader) platform: HBOOT-8064
(bootloader) modelid: PN0712000
(bootloader) cidnum: 11111111
(bootloader) battery-status: good
(bootloader) battery-voltage: 3875mV
(bootloader) partition-layout: Generic
(bootloader) security: off
(bootloader) build-mode: SHIP
(bootloader) boot-mode: FASTBOOT
(bootloader) commitno-bootloader: dirty-c6bbb6d4
(bootloader) hbootpreupdate: 11
(bootloader) gencheckpt: 0
all: Done!
finished. total time: 0.062s

ANd here is the output afterwards:

daka@daRk-PC ~ $ sudo fastboot getvar all
(bootloader) version: 0.5
(bootloader) version-bootloader: 1.60.0000
(bootloader) version-baseband: 4T.33.3218.15
(bootloader) version-cpld: None
(bootloader) version-microp: None
(bootloader) version-main: 7.15.401.1
(bootloader) version-misc: PVT SHIP S-OFF
(bootloader) serialno: HT34FW910399
(bootloader) imei: 354439053123222
(bootloader) meid: 00000000000000
(bootloader) product: m7_ul
(bootloader) platform: HBOOT-8064
(bootloader) modelid: PN0712000
(bootloader) cidnum: 11111111
(bootloader) battery-status: good
(bootloader) battery-voltage: 3833mV
(bootloader) partition-layout: Generic
(bootloader) security: off
(bootloader) build-mode: SHIP
(bootloader) boot-mode: FASTBOOT
(bootloader) commitno-bootloader: dirty-91bb20e1
(bootloader) hbootpreupdate: 11
(bootloader) gencheckpt: 0
all: Done!
finished. total time: 0.062s

Please help me, I dont know what I did wrong.
[One (M7) Q&A, Help & Troubleshooting] MaratabHashmi:
You flash stock RUU.exe
[One (M7) Q&A, Help & Troubleshooting] fc3211:
I did not flash the RUU, I had flashed the firmware 7.15.401.1 from https://docs.google.com/spreadsheets/d/1LQDLpVZYyUpXPgC2sh1BvAS9Oo8B-fTiZU_JhpIH-fU/pubhtml#

And I am thinking that I overwrote the radio with a version that is not proper for my phone.

But I dont really have alot of knowledge about this so please advise me.
[One (M7) Q&A, Help & Troubleshooting] Seanie280672:
it wont effect your phone in that way, if you have signal, then go into your apn settings and reset them to defaults, you will then be taken to the first start up page again and have to select your operator again from the list of available operators, like you did when you first got the phone or when you install a new rom.

remove you IMEI and Serial number from your first post, its not good to post them, they guy who quoted you will also need to do the same.
[One (M7) Q&A, Help & Troubleshooting] fc3211:
Are you certain about this? The fastboot output indicates that the baseband has changed since I flashed the new firmware
[One (M7) Q&A, Help & Troubleshooting] Seanie280672:
just try it, its not going to hurt, just goto settings - mobile data - access point names - (3dot menu in the top right corner) select that and then select reset defaults.

Of course the baseband has changed, the newer firmware had a newer radio file in it, its not a radio file like your thinking though, its more of a software controller for a piece of hardw2are in your phone, just like every piece of hardware on your computer needs a driver, so does your phone.

The 401 firmware you flashed is basically WWE (World Wide English), if it had messed up you'd probably be hard bricked.
[One (M7) Q&A, Help & Troubleshooting] fc3211:
THanks, for explaining that to me

I just tried the same sim card in my galaxy s3 mini (unlocked) and it doesnt work in that phone at all (no calls or data). I think the sim may be defective, will get a new one and try again.

Thanks for your help

Edit: I did as you said in the m7 and even did a factory reset to make sure and results where the same. Looks like I got a bad sim card
[One (M7) Q&A, Help & Troubleshooting] fc3211:
@ Seanie280672: Thanks for your help bro

It just started working again after I installed ViperRom 7

Strange thing, just started working out of the blue but I am happy that is is resolved
[Galaxy Grand 2 Q&A, Help & Troubleshooting] Thunder Bolt:
after updating to kitkat . samsung did not gave new touchwiz theme for galaxy grand 2 :(

WHY IS IT SO :confused:

can we apply new touchwiz theme without any root or downloading any themer from app store ?

OR

is there any update to new touchwiz theme ?
[Galaxy Grand 2 Q&A, Help & Troubleshooting] WaseemAlkurdi:
Use my Ultimate S5 Mod or the S5 Mini port.

Both need root access.
[Galaxy Grand 2 Q&A, Help & Troubleshooting] VigneshS007:
U can use S5 Touchwiz
[T-Mobile Samsung Galaxy S 4] serio22:
I think I remember seeing something like this and I'm not sure on this but I think it was a third party app causing it. Have you factory reset and installed no apps to see if it still happened, or reboot into safe mode? If you have, can you upload bootloader and modem info using this app https://play.google.com/store/apps/details?id=org.vndnguyen.phoneinfo when you say you flashed the LTE modem and got no sound, that shouldn't happen if you did indeed flash the matching LTE modem. Could be firmwares never got flashed correctly. Could also be why your imei is 0
[T-Mobile Samsung Galaxy S 4] panchox:
I did multiple factory resets, and when I flashed the LTE modem I didn't get sound because the LTE modem was MK2 (just trying stuff) and bootloader NK2, however I reflashed the full stock firmware, I'm currently at NK2 modem, LTE and bootloader.

The only thing I haven't done is reboot in safe mode, will try later and post results.

Edit:

About the IMEI, I'm pretty sure that when I made the EFS backup with TWRP it wasn't 0, since I made it because I was going to try stuff that could go wrong and I wanted a backup, I still have the full system backup with EFS partition included, however, not even restoring the backup bring it back.
[T-Mobile Samsung Galaxy S 4] panchox:
New info

-Safe-mode didn't work

-Did multiple full wipes and back to stock through Kies3/Odin, nothing

Trying to find more info found this through ' adb logcat *:E ' (Stock ROM, NK2, 4.4.4)

E/AudioStreamOutALSA( 300): Invalid argument! It could be standby to recover
E/ACDB-LOADER( 300): Error: ACDB AudProc vol returned = -8
E/alsa_pcm( 300): cannot prepare channel: errno =-22

If the sound was lost, as soon as I click the screen it produces those errors like 100 times, even if it's on vibration only.

Some other errors from *#7353# testing (SPEAKER TEST)

E/AudioSessionOutALSA( 300): PCM Prepare failed - playback err = 0
E/AudioSessionOutALSA( 300): Failed to open LPA/Tunnel Session
E/AudioTrack( 300): Could not get audio output for stream type 3
E/AudioSink( 300): Unable to create audio track
E/TunnelPlayer( 300): Opening a routing session failed
E/MediaPlayer( 8834): error (1, -19)
E/MediaPlayer( 8834): error (-19, 0)
E/MediaPlayer( 8834): Should have subtitle controller already set
E/MediaPlayer( 8834): Error (1,-19)
E/MediaPlayer( 8834): Error (-19,0)

And from MELODY TEST

E/MediaPlayer( 8834): stop called in state 0
E/MediaPlayer( 8834): error (-38, 0)
E/MediaPlayerService( 300): WFD client is not created
E/alsa_pcm( 300): cannot prepare channel: errno =-22
E/AudioStreamOutALSA( 300): Invalid argument! It could be standby to recover
E/alsa_pcm( 300): cannot prepare channel: errno =-22
E/AudioStreamOutALSA( 300): Invalid argument! It could be standby to recover
E/alsa_pcm( 300): cannot prepare channel: errno =-22
E/AudioStreamOutALSA( 300): Invalid argument! It could be standby to recover
E/alsa_pcm( 300): cannot prepare channel: errno =-22
And those 2 lines repeats themselves like 100 times

It could be an hardware problem, sadly, I hate that it works, but it stops working for no reason.

And found multiple threads about the same issue across different models:

http://xdaforums.com/showthread.php?t=2333222

http://xdaforums.com/showthread.php?t=2386070

http://xdaforums.com/showthread.php?t=2333222

http://xdaforums.com/showthread.php?t=2718326

http://xdaforums.com/showthread.php?t=2612167&page=6 Post #51
[T-Mobile Samsung Galaxy S 4] Lee_Et81:
My problem may be similar to yours. I have a completely stock S4. I have done no rooting to it. About a month ago I noticed the same sound problem you have. I noticed my phone would lose sound ability the longer it was on. Similar problems with YouTube playback slow, and I can't play media files like music or video (I get process errors).

I have factory reset a few times and the problems return. I'm getting tired of having to reset my phone every 1/2 hour. I've missed phone calls and alarms I've set.
[T-Mobile Samsung Galaxy S 4] Frankenscript:
I had this problem on an ATT S4. It was a hardware issue. Phone was under warranty and fixed by Samsung.
[T-Mobile Samsung Galaxy S 4] Lee_Et81:
I guess I have to do a insurance claim. My current phone is my 1st replacement of my original GS4. The first phone was insurance replaced because it was passed the factory warranty and it stopped charging any battery put into it. Now my current one has started hanging at the T-mobile logo when resetting and just plain random resets.

My GS4 was reliable for a while. Maybe time for a Nexus 6.
[T-Mobile Samsung Galaxy S 4] aaronrw:
I literally did the same thing last week with a refurbished phone from T-Mobile. Buyer be ware
[Verizon Samsung Galaxy S 4] CRUCIFORM:
##open terminal and enter the following commands##

su

unset Hidden

set

unset ANDROID_BOOTANIMATION

set

#############################

##reboot, and custom screen will be gone!##

(you can use 'ls' before and after to visually confirm ANDROID_BOOTANIMATION=1

moves to bottom of root and no longer has =1)
[Verizon Samsung Galaxy S 4] CRUCIFORM:
=1 has come back. But "custom" no longer appears
[Verizon Samsung Galaxy S 4] riker147:
Doesn't work for me.
[Verizon Samsung Galaxy S 4] CRUCIFORM:
is the enterprise rooted?
[Verizon Samsung Galaxy S 4] CRUCIFORM:
try installing xposedgfesecuritypatcher in xposed installer
[Verizon Samsung Galaxy S 4] riker147:
Not that important to me. Just wanted to see if it would work. It didn't. I'm done.
[Verizon Samsung Galaxy S 4] SnyderGuy:
I am having trouble what you mean. Do you mean the bootloader status that shows up on the boot-splash screen?

If so, I wasn't aware this was a problem for most people. I just used triangle away to reset the counter and go back to the factory flash screen.

Do you mean you removed the boot/splash screen entirely?
[Verizon Samsung Galaxy S 4] CRUCIFORM:
I figured it out, I'm using wanam, from xposed installer. fake system status, changes custom status to official status.
[Verizon Samsung Galaxy S 4] CRUCIFORM:
Recently effed up my phone with no bloat, restored my phone, saferooted, xposed installer, wanam xposed, terminal emulator. restart shows custom

opened terminal:

su

set

set ANDROID_BOOTANIMATION

set

reboot

now its gone.
[AT&T Samsung Galaxy S 4 Q&A, Help & Troubleshootin] 7mada:
Hello all :)

I am facing a problem with youtube, I cant see anything and the screen is unclear. (see the attached picture)

Please help me ASAP.

Im using GoldenEye v 49.1, tried to change the quality and it's clear again if I change it to HD , also tried to clear the youtube app cache.

Thank you. [emoji1] [emoji1]
[AT&T Samsung Galaxy S 4 Q&A, Help & Troubleshootin] 7mada:
Up
[AT&T Samsung Galaxy S 4 Q&A, Help & Troubleshootin] Garen21:
Same problem. I just started watching videos in Chrome, but sometimes I get this problem in Chrome too.
[AT&T Samsung Galaxy S 4 Q&A, Help & Troubleshootin] Garen21:
Bump, still having this problem
[AT&T Samsung Galaxy S 4 Q&A, Help & Troubleshootin] StoneyJSG:
Try this:

Go to: Settings > More > App Manager > Downloaded > YouTube

Then: clear cache, clear data, force stop

No dice?

Try this:

Go to: Settings > More > App Manager > Downloaded > youtube

Then: clear cache, clear data, uninstall updates, turn off phone and take out battery for 5 minutes, turn on mobile and update YouTube app.
[AT&T Samsung Galaxy S 4 Q&A, Help & Troubleshootin] JT1510365:
I tried that but i still have the issue:(
[AT&T Samsung Galaxy S 4 Q&A, Help & Troubleshootin] StoneyJSG:
Hmm my only other suggestion would be to do a data factory reset or odin the stock rom of whatever bootloader you are on.
[AT&T Samsung Galaxy S 4 Q&A, Help & Troubleshootin] thecrazydemon:
Sorry if this question has been asked before.

I'm going to be upgrading phones soon, and I'm wondering if there are people still working on unlocking the bootloader on phones with the MF3 update or later? I understand that its possible it might never be unlocked, but I would feel better getting an s4 if I new there were people out there still trying to crack it...

I would prefer to be able to install cyanogenmod in the future, so I'm wondering if I should even go with the galaxy s4.

What do you guys think?

Also, if this is the wrong place for this question, let me know. Thanks!
[AT&T Samsung Galaxy S 4 Q&A, Help & Troubleshootin] jd1639:
My opinion is it will not be unlocked. This is an old device now and any devs who were working on it have moved on.
[AT&T Samsung Galaxy S 4 Q&A, Help & Troubleshootin] thecrazydemon:
Yea, I was kinda thinking the same thing. Still, I'm tempted to go for the S4. I know its an older device, but being that it has a removable battery, and a sd card slot makes it one of my first choices. Can you suggest another phone that I should be looking at based on that?

Thanks!
[AT&T Samsung Galaxy S 4 Q&A, Help & Troubleshootin] Ashyford:
Why not buy a used rooted unlocked S4 with an MDB or MDL bootloader? You can ask for a screenshot of the "About Phone" settings.

sent from xda app
[AT&T Samsung Galaxy S 4 Q&A, Help & Troubleshootin] thecrazydemon:
I've been looking for one. Do you have any suggestions on where I could purchase one?
[AT&T Samsung Galaxy S 4 Q&A, Help & Troubleshootin] tailgunner9:
You can unlock bootloaders on S4 with Safestrap on the newest 4.4.4 NJ4 but can only use TouchWiz

roms
[AT&T Samsung Galaxy S 4 Q&A, Help & Troubleshootin] thecrazydemon:
Yea, I knew you could do that, thanks for the heads up though!

If the Oneplus One wasnt so damn big, I would go with that... The s4/s5 is about as big as I would like to go with a phone...
[AT&T Samsung Galaxy S 4 Q&A, Help & Troubleshootin] kevinco1:
Safestrap does not unlock the bootloader of the S4. Read all the info before you proceed: http://xdaforums.com/showthread.php?t=2448925
[AT&T Samsung Galaxy S 4 Q&A, Help & Troubleshootin] thecrazydemon:
Right, good call. I guess I meant, I knew the part about touchwiz only roms. But yea, I've gone through that thread, and many others. I don't actually have a phone yet. I might just breakdown and get a nexus 5, but I'm still looking for an S4 on mdb, or mdl...

I found one on swappa, but the seller is unresponsive.
[AT&T Samsung Galaxy S 4 Q&A, Help & Troubleshootin] Thr33-F0ur:
Get a T-Mobile S4. Is pretty much the same as the AT&T one, but with an unlocked boot loader.
[AT&T Samsung Galaxy S 4 Q&A, Help & Troubleshootin] StoneyJSG:
I got my 32GB sgh-i337 Galaxy S4 running the MDL firmware off ebay a few months ago. Brand new in the box, never used, and everything. Paid $375 for it. The sellers name is "taylorwireless" with a 99.9% feedback rating. He has an S4 for sale right now under item number: 171557373643
[AT&T Samsung Galaxy S 4 Q&A, Help & Troubleshootin] thecrazydemon:
I just bought one on Swappa. Thanks for the suggestion though. If the one you linked was new, I might be tempted to send the phone I just ordered back... I'll keep an eye on that seller though.
[Mi 3 General] shrisangram:
Thank you so much

One command is miswritten

mkpartfs primary ext2 1812 3070

It should be

mkpartfs primary ext2 1645 1745
[Mi 3 General] arif920629:
Lol thanks! Fixed. Didn't notice that :eek:
[Mi 3 General] naruse99:
can we use the remaining size of system to data partition?

cause i dont need big size of system, i need for app instead, can we do it?
[Mi 3 General] mchauhan:
Thanks,

Will this have any effect if I have to do fastboot of MIUI in future?

Is this method safe since we are playing with partition table?
[Mi 3 General] adsim:
why did these steps??

tune2fs -j /dev/block/mmcblk0p25

e2fsck -fDp /dev/block/mmcblk0p25

tune2fs -O extents,uninit_bg,dir_index /dev/block/mmcblk0p25

e2fsck -fDp /dev/block/mmcblk0p25
[Mi 3 General] Amruth Pillai:
I was thinking this isn't possible all this while, thank you for posting this amazing tutorial! :) I have no use for the second system partition either, but instead, I actually needed more system space to flash bigger Gapps! :) Thank you so much!
[Mi 3 General] sivabommakanti:
Did u try it? Is it working?
[Mi 3 General] srvoleti:
I would like to know why you have changed the format of the file systems from ext3 to ext4.
[Mi 3 General] Amruth Pillai:
[B]Ext4[/B]
[LIST]
[*]Ext4 stands for fourth extended file system.
[*]It was introduced in 2008.
[*]Starting from Linux Kernel 2.6.19 ext4 was available.
[*]Supports huge individual file size and overall file system size.
[*]Maximum individual file size can be from 16 GB to 16 TB
[*]Overall maximum ext4 file system size is 1 EB (exabyte). 1 EB = 1024 PB (petabyte). 1 PB = 1024 TB (terabyte).
[*]Directory can contain a maximum of 64,000 subdirectories (as opposed to 32,000 in ext3)
[*]You can also mount an existing ext3 fs as ext4 fs (without having to upgrade it).
[*]Several other new features are introduced in ext4: multiblock allocation, delayed allocation, journal checksum. fast fsck, etc. All you need to know is that these new features have improved the performance and reliability of the filesystem when compared to ext3.
[*]In ext4, you also have the option of turning the journaling feature “off”.
[/LIST]

With all these features, and an option to... who wouldn't? :)
[Mi 3 General] srvoleti:
OK, Thank you for the info.
[Mi 3 General] iwjy:
system2

Why is system2 still exist with 100MB size? I think it will cause error if you do OTA update because MI3 OTA update by default will flash update to system1 and then system2 in the next OTA. Unless if you stick to custom rom or always manually flash update to system1
[Mi 3 General] m11kkaa:
changed? ext4 is default.
[Mi 3 General] srvoleti:
When I checked yesterday, the existing partitions it was shown as ext3 but now it is shown as ext4. That's why I asked that at that time.
[Mi 3 General] XperianPro:
This guide also works on Mi2S,its exact copy of it actually (except a minor difference in partition layout).
[Mi 3 General] sumit.roy:
can anyone pls make a video of this tutorial?

View attachment 3136157

got struck there
[Mi 3 General] The Dork Knight Rises:
Ah, yes, I have the same question, actually...we DO need system2 to be usable atleast, right?
[Mi 3 General] naruse99:
can someone make tutorial to resize data partition?
[Mi 3 General] sivabommakanti:
Someone pls confirm the tutorial. Want to try very badly
[Mi 3 General] sumit.roy:
what to do after step 1??

i am getting this... View attachment 3136382

View attachment 3136383

anyone, pls help..
[Mi 3 General] Darktitor:
But when I'll install an update, my recovery will be overwritten right? So is that working anyway?

Thanks in advance
[Mi 3 General] Riichard63:
For me it never overwrote my recovery :)

Envoyé de mon MI 4W en utilisant Tapatalk
[Mi 3 General] Darktitor:
Do you think it is possible to reduce system partition to get bigger data one? :)
[Mi 3 General] Riichard63:
Yes it's possible but you won't gain that much. And by resizing your data partition it will format all your internal storage.
[Mi 3 General] coolpixs4:
Total agree with this guy,...

normally, when we install applications, it will be in internal storage/ data.

So, it is possible to get 600MB from system 2 to Internal storage instead of merge all to system 1.

My suggestion is resize partition like this:

.........

22 252MB 268MB 16.8MB ext4 persist

23 268MB 336MB 67.1MB fat16 modem

24 336MB 403MB 67.1MB fat16 modem1

25 403MB 1200MB 797MB ext4 system

26 1200MB 1205MB 5MB ext4 system1

27 1205MB 1608MB 403MB ext4 cache

28 1608MB 15758MB 14150MB ext4 userdata

we can do a backup internal storage to PC before resize partition. lol

:good::laugh::laugh::laugh:

------
[Mi 3 General] aashay960:
Does this work with TWRP? Has anyone tried it before? Is there any other method for twrp?
[Mi 3 General] naruse99:
can u give me tutorial for it?

i already try it, but when i want to delete cache and userdata partition, it says cannot delete because still in use
[Mi 3 General] coolpixs4:
-----------

You can look at this picture and will understand after looking below script code

[IMG="Mi3/4W, default partition"]http://oi58.tinypic.com/2ex1qte.jpg[/IMG]

#!/sbin/sh

OUTFD=$2

ui_print() {
echo -n -e "ui_print $1\n" > /proc/self/fd/$OUTFD
echo -n -e "ui_print\n" > /proc/self/fd/$OUTFD
}

ui_print ""
ui_print "###########################"
ui_print "# coolpixs4 #"
ui_print "# modded based on xda_dev #"
ui_print "# Repartition script #"
ui_print "# Mi 3/4W /system 1.2G #"
ui_print "# only! #"
ui_print "###########################"

ui_print ""
ui_print "Unmounting systems partiton..."

umount -l /system
umount -l /system1
umount -l /dev/block/mmcblk0p25
umount -l /dev/block/mmcblk0p26
umount -l /dev/block/mmcblk0p27
umount -l /dev/block/mmcblk0p28

ui_print ""
ui_print "WARNING! System is ready, repartitioning will start in 2 seconds"
sleep 2
ui_print ""
ui_print "Removing partitions..."
parted /dev/block/mmcblk0 rm 25
parted /dev/block/mmcblk0 rm 26
parted /dev/block/mmcblk0 rm 27
parted /dev/block/mmcblk0 rm 28
ui_print "Removing partitions...COMPLETED"
ui_print ""
ui_print "Creating new partitions..."
parted /dev/block/mmcblk0 mkpart primary 403MB 1200MB
parted /dev/block/mmcblk0 mkpart primary 1200MB 1205MB
parted /dev/block/mmcblk0 mkpart primary 1205MB 1608MB
parted /dev/block/mmcblk0 mkpart primary 1608MB 15759MB
parted /dev/block/mmcblk0 name 25 system
parted /dev/block/mmcblk0 name 26 system1
parted /dev/block/mmcblk0 name 27 cache
parted /dev/block/mmcblk0 name 28 userdata
ui_print "Creating new partitions...COMPLETED"
ui_print ""
ui_print "Unmounting systems partitions again..."
umount -l /system
umount -l /system1
umount -l /dev/block/mmcblk0p25
umount -l /dev/block/mmcblk0p26
umount -l /dev/block/mmcblk0p27
umount -l /dev/block/mmcblk0p28
ui_print "Unmounting systems partitions again...COMPLETED"
ui_print ""
ui_print "Formatting new partitions..."
mke2fs -b 4096 -T ext4 /dev/block/mmcblk0p25
mke2fs -b 4096 -T ext4 /dev/block/mmcblk0p26
mke2fs -b 4096 -T ext4 /dev/block/mmcblk0p27
mke2fs -b 4096 -T ext4 /dev/block/mmcblk0p28
ui_print "Formatting new partitions...COMPLETED."
ui_print ""
ui_print "ALL DONE, SUCCESSFULlY !..."
ui_print ""
ui_print "Rebooting to recovery in 5 seconds..."
ui_print "Thanks to xda for his idea repartition script"
sleep 5
reboot recovery
fi

Please, use these CMW Recovery flash file to Re-partition your phone.

And the restore to factory.

--------------

You can manually to modify the range by using notepad++, 7zip

notice about these code line:

parted /dev/block/mmcblk0 mkpart primary 403MB 1200MB

parted /dev/block/mmcblk0 mkpart primary 1200MB 1205MB

parted /dev/block/mmcblk0 mkpart primary 1205MB 1608MB

parted /dev/block/mmcblk0 mkpart primary 1608MB 15759MB
[Mi 3 General] naruse99:
i try to flash zip y give, but installation aborted