yashsingh1/xdaforums huggingface dataset:
[Sony Xperia C4 Guides, News, & Discussion] bigrammy:
1 Root and backup ta = Use Kingroot to root the phone. Backup your TA using adb > adb shell > su >

ls -al /dev/block/platform/mtk-msdc.0/by-name

This will gaive a list of your partitions by name and number.

Then

dd if=/dev/block/mmcblk0p[COLOR="Red"]??TA-Block#from-above[/COLOR] of=/sdcard/ta.img

To restore later via dd is the same but reverse.

dd if=/sdcard/ta.img of=/dev/block/mmcblk0p[COLOR="red"]Partition#[/COLOR]

2 Bootloader unlock

Follow the OP

3 use FlashTool at least once with your device..

4 reflash just the system and boot with 5.0 or what ever your on original with FlashTool ( Gets rid of Kingroot )

5 lock Bootloader with FlashTool

6 update via OTA till on 5.1 (If the phone comes with 5.0 then you will get a total of 3 Updates to get on MM so stop on the 2nd Update.)

7 follow MM tut skipping roll back part.

[MENTION=7829105]NADIR1982[/MENTION]

I have no idea what you mean.
[Sony Xperia C4 Guides, News, & Discussion] NADIR1982:
Sony Xperia c5 ultra dall

But two updated Ba 6.0.1 and open bot Lauder

---------- Post added at 05:03 PM ---------- Previous post was at 04:54 PM ----------

Waiting for help
[Sony Xperia C4 Guides, News, & Discussion] gsser:
Look at my thread and just do a search before replying...:eek:
[Sony Xperia C4 Guides, News, & Discussion] Techy4198:
Thanks, I'll certainly keep this in mind for the future. In the meantime, I've decided I won't fiddle around with the new phone, since I need to keep something in complete vanilla condition as my main device.

However, I've noticed something in relation to the old phone. Having located a ROM which should at least have a compatible preloader and bootloader, SP Flash Tool does not ask me for the secure base band file thing you mentioned. So it lets me initiate the download process PC-side, but then upon connecting my phone and hearing the device connected sound, the software just doesn't detect it. I've installed all the correct drivers three times over. Does this mean the phone is a totally lost cause at this point?
[Sony Xperia C4 Guides, News, & Discussion] bigrammy:
You need "MTK-USB" driver not the "mtk-preloader v-com" driver and you also need to set SPflashtool to UART mode from Title bar/Options/connections/ Choose UART
[Sony Xperia C4 Guides, News, & Discussion] Techy4198:
After setting the driver and choosing UART mode, SPFlashTool only shows COM1, which is the PC's own serial port. Just can't seem to see the phone, which is on COM3. Sounds like it's quite broken at this point :( (Or just because Windows 10 - I have disabled signature enforcement of course)

If it's worth anything, the device has VID=0FCE, PID=D1D1. Does this seem right?
[Sony Xperia C4 Guides, News, & Discussion] bigrammy:
After some more digging (I spent like 2 weeks on this and swore I would not return to it :silly: ) I think I/we maybe actually talking to the radio chip rather than the emmc which wont help us. :(

See Here notice in one of the screenshots from the action tab it say "Open Authentication File"

Windows 10 is a pain in ass for drivers and yes I know the VID PIDs like I said I spent 2 weeks working on this but ended up getting nowhere really. :crying:

Save your sanity and time by letting it go and move on :laugh:
[Sony Xperia C4 Guides, News, & Discussion] Techy4198:
Was pretty sure you'd already have seen the VID+PID, was just confirming that we're looking at the same thing.

Just removed the logic board to search for test points and ended up ripping the front camera module in two somehow, so I guess this whole thing can go to the junk pile now.

I do have a slight hardware issue though, in that the adhesive holding the battery in went super strong after my previous water damage. How do you suggest I remove the battery from the display assembly without bending it significantly? Last thing I want is an already dead phone going out with a bang.

Lastly, what would you suggest for avoiding wrecking a device like this in the future? I'm guessing just don't touch Anhydroxide flash tool and don't touch the preloader in SP? If such a device does end up in a mostly dead condition, it should be recoverable with much tinkering (as I did the first time) as long as I don't do those two things right?

---------- Post added 2nd November 2016 at 12:01 AM ---------- Previous post was 1st November 2016 at 11:39 PM ----------

One possibly final question for you if it's not too much trouble, how would I go about backing up the entire stock 5.0 firmware off the new replacement phone without modifying the phone at all or putting it at any risk? Preferably with SP Flashtool (it should be able to flash a working phone no problem right?). Huge thanks for your amazing support.
[Sony Xperia C4 Guides, News, & Discussion] bigrammy:
Ok SPFlashTool is Not Compatible with Sony phones in anyway. The small Mediatek software which is on the CPU and not the emmc chip which allows SPFlashTool to work has been Swapped for Sonys Own effort from what I can figure out. :confused:

So you can not do a backup without Rooting the phone as I explained earlier.
[Sony Xperia C4 Guides, News, & Discussion] Techy4198:
Hold on, having re-read that earlier post, you say to flash system and boot using FlashTool, as in Androxide's (Wrote Anhydroxide but I hope you know what I meant :P)? And an even earlier post you say about using the wrong version... Does that mean there is a version that doesn't wreck these devices? The download page implies that the tool as a whole isn't compatible...
[Sony Xperia C4 Guides, News, & Discussion] bigrammy:
My first reply to you gave you a link to my other thread on rooting MM in that OP it states which version is SAFE with ALL Cx devices.

Reason is it does not flash the so called "boot area" (Preloader lk secro etc etc ) it does flash the system, oem, boot.img etc etc.

All this stuff is really off topic for this thread and is well covered in my other threads. Please take some time to read and search through them as I have answered most of your questions multiple times for others.

mm-root-advanced

androxydes-flashtool-features-xperia-c4
[Sony Xperia C4 Guides, News, & Discussion] bigrammy:
Check post number #3 ;)
[Sony Xperia C4 Guides, News, & Discussion] gsser:
Does the installation same for c5?
[Sony Xperia C4 Guides, News, & Discussion] bigrammy:
yes
[Sony Xperia C4 Guides, News, & Discussion] gsser:
K, gonna try that in weekend. If i get success, i would like to translate it and post it to another turkish forum; if you give permission and credits will be given ofcourse.
[Sony Xperia C4 Guides, News, & Discussion] kanej2006:
To the op bigrammy, I will attempt the root for my C5 Ultra dual sim. I'll just backup all data and shortly apply the steps.

Will report back VERY shortly. Thank you so much for your tutorial. I may soon be able to finally use Titanium Backup, Xposed, etc...
[Sony Xperia C4 Guides, News, & Discussion] bigrammy:
[MENTION=6156986]AnandSadar[/MENTION] reported

To all: I am back at work now for a few days so my support maybe a little patchy. Regards bigrammy
[Sony Xperia C4 Guides, News, & Discussion] mekar07:
Hi..im newbie

Can we root E5563 without unlock phone bootloader?
[Sony Xperia C4 Guides, News, & Discussion] kanej2006:
@ Bigrammy. I did everything step by step as you posted. All was a success. However, there is no recovery even after repeating the process as you mentioned.

The last thing I did was flash the fotakernal via cmd and even though it was a success, there is no recovery. The phone keeps booting to the system even when pressing the down volume key.

The fotakernel I flashed was the very same one from post 3 which was specifically for C5 Ultra. I'm using C5 Ultra Dual Sim...

Here is the last log from CMD. Any suggestions? Thanks
[Sony Xperia C4 Guides, News, & Discussion] kanej2006:
I'm just guessing that the kernel from the 3rd post only works with the single sim edition of the C5. I have the dual sim C5 and using the kernel from the third post did not give me a recovery despite trying three times. :(

Good thing there is no brick or issues. I'm able to boot as normal & use my phone. On the bright side my bootloader is at least unlocked so that's out the way. All I need is a working fotakernel to try on my C5 Ultra dual to get me into TWRM recovery...
[Sony Xperia C4 Guides, News, & Discussion] skylinestan:
So what u mean that is now your bootloader is unlock but not yet root due to unable to boot into recovery..?
[Sony Xperia C4 Guides, News, & Discussion] kanej2006:
Yes. I flashed the custom kernel from the third post, however I did not get recovery. :(
[Sony Xperia C4 Guides, News, & Discussion] reall:
Succesfully rooted my Xperia C5 Ultra Dual E5533 using the kernel in post #3 for C5 Ultra!

I followed step by step the guide in post #1

Thank you bigrammy!! Wonderful job!

(ps: since this is my first post ever I can't post any pictures)
[Sony Xperia C4 Guides, News, & Discussion] kanej2006:
Lol, so where is my recovery? I followed step by step exactly and I have no recovery or root. :(

Would you please give a step by step procedure of how you rooted and got recovery on your C5 Ultra?

Thanks a million.
[Sony Xperia C4 Guides, News, & Discussion] reall:
Hmm.. I can't think of something else I did other then following the guide. I compared the 'fastboot getvar all' parameters from Post #28 with mine and I didn't see any differences, except for the serial no. It seems like you also succesfully unlocked the bootloader. I started with Bootloader unlock allowed = Yes and I chose the first IMEI number.

So what happened on the phone after you flashed the kernel? Mine was like saying something received on the screen (can't remember what) and I though it was frozen until I unplugged the USB cable. Then it powered OFF as described in the guide. After that I held the Volume Down and Power button. Released only the Power button when the Sony logo appeared. And it booted into the TWRP recovery mode by [MENTION=3924647]bigrammy[/MENTION].
[Sony Xperia C4 Guides, News, & Discussion] kanej2006:
got it working now, strange why it didn't before, perhaps wrong timing when waiting for the Sony logo!

Thanks for your response. I'm now in the TWRP recovery menu. I'll flash SuperSU and report back with some screenshots...

---------- Post added at 11:37 AM ---------- Previous post was at 10:48 AM ----------

Just to confirm I finally managed to boot into recovery and install the latest version of SuperSU 2.66...

The device (Sony Xperia C5 Ultra Dual Sim) is FINALLY rooted!!! I've been waiting over 3 months & thanks to the op bigrammy, this has been made possible. Thank you so much for your efforts.

Some screenshots to show others. I'm happy to report Titanium Backup, Greenify Root & Root Explorer work perfectly fine and prior to rooting it was not possible using them or any other app requiring root.

Enjoy the screenshots:

[IMG="SuperSU icon clearly visible in the menu"]http://i67.tinypic.com/f3dehe.jpg[/IMG]

[IMG="Root Explorer, a well known app requiring root access"]http://i64.tinypic.com/ztw7wy.jpg[/IMG]

[IMG="Great App for hiding the ugly soft keys also requring root"]http://i66.tinypic.com/4jkec2.jpg[/IMG]

[IMG="Last but least the famous Titanium Backup! I can finally delete all that $hit bloatware!!!"]http://i68.tinypic.com/316tbab.png[/IMG]
[Sony Xperia C4 Guides, News, & Discussion] skylinestan:
Thanks a lot for the info and screenshot.. Will start my modifying when I get back to my home pc ;)
[Sony Xperia C4 Guides, News, & Discussion] bigrammy:
Glad to see C5 is now rooted :D

In my OP I said to practice entering recovery first :laugh:

PS: Remember to hit the Thanks Button if Helped.
[Sony Xperia C4 Guides, News, & Discussion] mekar07:
As owner of E5563, better have a video tutorial to root our beloved phone...we r very happy if genius like bigrammy can do that for us..?...tq
[Sony Xperia C4 Guides, News, & Discussion] gsser:
Hey. I want to translate and open a new topic in a forum called donanim haber. If you give me permission, i would like to share it and i will give the credits who contributed help. Thx
[Sony Xperia C4 Guides, News, & Discussion] gsser:
http://mobile.donanimhaber.com/showTopic.asp?m=113356473&p=1#113356473

Opened the topic for turkish people. I gave the credits and the link to this topic.
[Sony Xperia C4 Guides, News, & Discussion] Techy4198:
Okay thanks. Do you know of any source for the stock 5.0 ROM?

Also I realize I'm seeming more ignorant with each post, I apologize, I do really appreciate all your help.
[Sony Xperia C4 Guides, News, & Discussion] bigrammy:
FlashTool then hit the xperifirm button (XF) at the top scroll to find your device then show all. and you should find it.

No more questions in this tread please as it's making a real mess ask them in the correct threads which I linked you to.
[Sony Xperia C4 Guides, News, & Discussion] abir099:
did anyone try installing twrp on c5 ultra e5533? i followed all steps correctly. 1st boot after flashing fotakernel and pressing power & volume minus together twrp doesn't come...but adb flashed kernel successfully
[Sony Xperia C4 Guides, News, & Discussion] Kenzi BNH:
Are you on Android Marshmallow 6.0 ?
[Sony Xperia C4 Guides, News, & Discussion] bigrammy:
Thank goodness someone else understands this phone. :highfive:
[Sony Xperia C4 Guides, News, & Discussion] newbie2x:
link error sony c5
[Sony Xperia C4 Guides, News, & Discussion] bigrammy:
It's working fine on my side. Try again in a while.
[Sony Xperia C4 Guides, News, & Discussion] aboyazan78:
Yep mine is e5533 and i'm on MM rooted with working twrp recovery

so i think u need to clear ur mind and start from the beginning not skipping any step ..

Good luck :good:
[Sony Xperia C4 Guides, News, & Discussion] abir099:
I tried both in 5.0 and 5.1, but no luck :rolleyes:

---------- Post added at 06:46 PM ---------- Previous post was at 06:41 PM ----------

No, i'm on android 5.0, I tried both on 5.0 & 5.1
[Sony Xperia C4 Guides, News, & Discussion] eslame2014:
I unlocked the bootloader and flashed twrp without any error but when I want to boot into the recovery mode it boots into the system.

I tried several times and tried through adb "adb reboot recovery" but I did not succeed it boots into the system every time.

Sony C4 dual

Model E5363

Android 6.0

Version 27.3.B.0.122
[Sony Xperia C4 Guides, News, & Discussion] Kenzi BNH:
If you are on 6.0 go here -> http://xdaforums.com/xperia-c5-ultra/development/mm-root-advanced-volunteer-required-t3469204

:angel:
[Sony Xperia C4 Guides, News, & Discussion] newbie2x:
eror twrp c5 link http://1drv.ms/1PViuIl
[Sony Xperia C4 Guides, News, & Discussion] bigrammy:
That is for the old version use the newer TWRP under the DOWNLOADS HERE Heading. :rolleyes:
[Sony Xperia C4 Guides, News, & Discussion] warvevo:
Which version of flashtool should I download for downgrading 5.1? I heard that using flashtool will brick device. I want to full downgrade stock ftf file downloaded from xperiablog. WOULD you mind providing working flashtool. please.. i recommend you to put flashtool file with downloading link in op first page.
[Sony Xperia C4 Guides, News, & Discussion] stark333:
How to root c4 dual E5363 Marshmallow?
[Sony Xperia C4 Guides, News, & Discussion] Kenzi BNH:
You can find this with easy search !

http://xdaforums.com/xperia-c5-ultra/development/mm-root-advanced-volunteer-required-t3469204
[Sony Xperia C4 Guides, News, & Discussion] badranmohamed352:
gauys i want relock bootloader for sony c5 E5533 and i didnot how do that can anyone help me
[Sony Xperia C4 Guides, News, & Discussion] Kenzi BNH:
Connect you're device,

On FlashTool click on BLU,

Follow the steps,

Click relock.

Easy with some search ! ;):angel:
[Sony Xperia C4 Guides, News, & Discussion] badranmohamed352:
your are right but when i do that flashtools show that and didnot do any thing auther

[IMG="this is the photo"]http://www.facebook.com/photo.php?fbid=224076548025538&set=a.146771899089337.1073741829.100012695827095&type=3&theater[/IMG]your are right but when i do that flashtools show that and didnot do any thing auther and i use every version in flashtools

please help

this is the photo which show in yhe link

https://www.facebook.com/photo.php?...337.1073741829.100012695827095&type=3&theater
[Sony Xperia C4 Guides, News, & Discussion] mekar07:
hi..sorry coz offtopic (nobody respond my question in xa ultra thread).

i want to reflash my rooted f3216 to stock fw. (coz front camera always show "unfortunately camera has stopped" and missing front camera auto focus.

1. Do i need to reflash stock fw (without .ta) or need flash full stock fw (with .ta)? im confuse.

plz help me...tq
[Sony Xperia C4 Guides, News, & Discussion] nimicitor:
I can't get this to work on a C4 E5303, I seem to have a similar problem to kanej2006.

Bootloader is unlocked without problems and secure is showing as No as detailed.

I have fotakernel.img (from Xperia-C4-all-versions-OTG.zip) copied on the device with BETA-SuperSU-v2.52.zip (from XperiaC4RootnRecovery.zip).

I flash using

fastboot flash fotakernel fotakernel.img

, (the image coming from the folder 'XperiaC4RootnRecovery\adb-recovery\fotakernel.img') and it doesn't show any errors.

I pull out the cable and hold down and power and release power on the Sony logo, something flashes on the screen quickly and it goes back to the Sony logo and then eventually boots into Android.

The device is running 27.3.A.0.129

What am I doing wrong?
[Sony Xperia C4 Guides, News, & Discussion] bigrammy:
Hold Volume Down and keep it held press power button and release it when you see the Sony logo. Release the Volume button when you see the recovery Splash screen.
[Sony Xperia C4 Guides, News, & Discussion] nimicitor:
That's the problem, the recovery Splash screen never appears, it goes from the Sony logo looping to starting Android.

Can you confirm that I have the correct files in the right location (detailed in first post) and that this is defiantly an issue with timing on the buttons?

Thanks
[Sony Xperia C4 Guides, News, & Discussion] mmuak6:
how to root sony xperia c4 marshmallow 6.0 rom please help me
[Sony Xperia C4 Guides, News, & Discussion] bigrammy:
I Just noticed you are trying to do this on Stock MM. :silly:

This procedure does not work for stock MM you need to roll back to 5.1 LP see MM Root thread for details.
[Sony Xperia C4 Guides, News, & Discussion] bigrammy:
Same as above. :silly:
[Sony Xperia C4 Guides, News, & Discussion] mmuak6:
please share with us if you know how to root mm rom please
[Sony Xperia C4 Guides, News, & Discussion] bigrammy:
Do Not PM me please :mad:

I have already shown how to do this. All you have to do is read the last few comments I made. :crying:
[Sony Xperia C4 Guides, News, & Discussion] kylelaker:
compatible twrp for my sony c4 please

i got a screenshot my model number is on the circled letter ,i have sony c4 dual e5333 6.0 marshmallow updated from lollipop through sony companion
[Sony Xperia C4 Guides, News, & Discussion] bigrammy:
Why are you asking this :confused:

See the very first post and the very first few lines they will look like this. :rolleyes:
[Sony Xperia C4 Guides, News, & Discussion] kylelaker:
How can I revert to lollipop can u post a download link of lollipop firmware
[Sony Xperia C4 Guides, News, & Discussion] St Sinned:
My e5353 Xperia C4 says Allow Unlock Bootloader:No? Is there a way to unlock my bootloader and root my Xperia C4? I am still in Lollipop...TIA
[Sony Xperia C4 Guides, News, & Discussion] bigrammy:
If your still on Lollipop then your very lucky and following this tut will still unlock the bootloader regardless of what it says :good:

But before you unlock the bootloader use Kingroot to root the phone and then make a dd backup of your ta partition using adb shell

You should then follow this tut and once it is complete you can then reflash/restore your intact ta partition.

Commands for backup and restore of ta partition execute them one by one:

To Backup

adb shell

su

dd if=/dev/block/platform/mtk-msdc.0/by-name/ta of=/sdcard/ta.img

Now Copy the ta.img from the sdcard before you unlock the bootloader and keep it safe this is because unlocking the bootloader wipes the sdcard.

To Restore the ta.img

adb shell

su

dd if=/sdcard/ta.img of=/dev/block/platform/mtk-msdc.0/by-name/ta

WARNING about MM Do not take the officail mm upgrade or use the official sony pc tool to flash the firmware.

Use only FlashTool to upgrade and flash ONLY the system.sin and boot.sin partition see my other thread for custom boot.img's should you need to root MM you can ignore all in that thread and just flash the boot.img for your device with TWRP.
[Sony Xperia C4 Guides, News, & Discussion] St Sinned:
Wow.. What a relief knowing that.. Thanks a lot...really from the bottom of my heart...I will later do this...
[Sony Xperia C4 Guides, News, & Discussion] St Sinned:
Sir, this is what I got. Sony is advising to Install the Android SDK and the device drivers? Do I need to do this?

After I have done that, still here what I got...
[Sony Xperia C4 Guides, News, & Discussion] bigrammy:
Sorry for the late reply. :o

Just ignore what it says and flash the unlock code.

You can see I mention this in the OP under the heading "Setting and Testing for the noobs:"

Just keep referring to the OP and if you follow it 100% it will or should work without any issues.

Those adb and fastboot .exe's (Windows) are included in the OP also near the bottom look for "Recovery and ADB & Fastboot Files .zip" so you could of saved a MB's of useless stuff unless your a dev. :o

If you need my assistance just Mention me so I get a notification.

You Mention someone Like this @bigrammy

EDIT: I just read your output from the first screen shot :confused:

In your 5.1.1 version do you have a oem-unlocking switch in /setting/developer options if you do turn it on before unlocking.
[Sony Xperia C4 Guides, News, & Discussion] St Sinned:
[MENTION=3924647]bigrammy[/MENTION]

There is no OEM-Unlocking switch in the developer options. And I also have a 5.0 android version not 5.1. I will try it again. Is it OK, I just installed an Xposed Framework and I just changed Kingroot by Superoot SU? Because it is needed by Flashfire to install the Xposed framework...
[Sony Xperia C4 Guides, News, & Discussion] bigrammy:
These things should not affect your bootloader.

You should do this on a stock unrooted system though

If you are 100% sure the phone is stock 5.0 and has never been upgraded then this tut will work 110% I am sure of that. (eg: You purchased it Brand NEW and it's never been refurbished)

Make sure you type all commands correctly watching for things like double spaces or no spaces and you have the correct unlock code.

I am updating the OP and fixing the formatting errors so hopefully it will be easier to follow in a short time. :eek:
[Sony Xperia C4 Guides, News, & Discussion] St Sinned:
[MENTION=3924647]bigrammy[/MENTION]

This unit is locked in a certain network carrier, would that affect the procedure?
[Sony Xperia C4 Guides, News, & Discussion] bigrammy:
Bro it's a given that carrier's custom bootloaders cannot be unlocked :crying:

I will add this info to OP for noob's
[Sony Xperia C4 Guides, News, & Discussion] St Sinned:
[MENTION=3924647]bigrammy[/MENTION]

ouch, that hurts....thank you very much for your valuable time...I will try to openline this unit first, then I will get back to this....
[Sony Xperia C4 Guides, News, & Discussion] bigrammy:
I did not mean to be harsh. :o

I am nearly sure it can be done but it's certainly beyond the scope of this tut and would require scripts for FlashTool so It can replace the boot partitions with a unlocked version .tft

I do not have a carrier locked device so I would not be able to offer any advice. :(
[Sony Xperia C4 Guides, News, & Discussion] St Sinned:
[MENTION=3924647]bigrammy[/MENTION]

No problem Sir...you have been a lot of help...keep up the good work Sir...I will keep monitoring this thread for an update. Thanks again for your precious time...