yashsingh1/xdaforums huggingface dataset:
[Xperia Z1 Compact General] zxz0O0:
What exactly do you want to backup? I wrote here how to backup /system partition: http://xdaforums.com/showpost.php?p=50559502&postcount=9

You can get busybox from the dualrecovery zip.

Or check this out: http://xdaforums.com/showthread.php?t=2662945

Best thing what you can do is get your factory firmware (either it's already available here on the forum or you can download/create it with this guide http://xdaforums.com/xperia-z/general/guide-download-firmware-customization-t2311211 (don't forget to share it here))

Have you read the 'Questions' part on the first post? If you did, then check what Riyal said.

[MENTION=4386647]Riyal[/MENTION]: thanks for your tipps I added it to the first post!
[Xperia Z1 Compact General] RobHands:
I'll have to try again tonight, bet this was the problem :D, I guess I got confused by all the check and uncheck stuff
[Xperia Z1 Compact General] CAL7:
Well, I'm stuck. Got to Step 19 but could not find my flashable zips (thought I had covered every possibility by copying them to both internal SD and external SD). But, evidently, there were mount problems and recovery could not locate any of the files. At that point, I'm not sure what happened, but now I can't get past the "SONY" logo on the first screen. No obvious way back into recovery, no sign that the device is recognized by the PC.

I can force power off and then boot into blank screen flashtool mode and flashtool recognizes it, but after a minute the device disconnects. Then "SONY" is on the screen and it's going nowhere except by force power off. Here's the log:

01/054/2014 13:54:06 - INFO - Device connected in flash mode
01/054/2014 13:54:45 - INFO - Selected Bundle for SO-02F. FW release : 14.1.H.1.281. Customization : docomo
01/054/2014 13:54:45 - INFO - Preparing files for flashing
01/055/2014 13:55:08 - INFO - Device disconnected

Although I'd like to get back to recovery and work on flashing the zips, I am more than happy to start over at Step #9 if I could just get flashtool to see it long enough to flash. I'll take any route to see it come to life. Help (Please)!
[Xperia Z1 Compact General] zxz0O0:
Please force power off your phone and wait at least 10 seconds to make sure the phone is really powered off and does not reboot (did you notice the 3 vibrates when force powering off?).

After that open flashtool (don't connect phone yet) and prepare everything as described in step 9 and click flash. Wait 10 seconds and then connect your phone in flashmode. After flashing you should be able to start your phone normally again. Copy the needed files to internal and external sdcard and proceed with the remaining steps.

By the way: Before formatting /system, make sure you can locate the flashable zip files in recovery!
[Xperia Z1 Compact General] CAL7:
Great! Thank you! That got me back to a functioning Docomo system. I verified two copies of the flashable zips in each SDCARD.

I'm having problems at Step 13, running the dual recovery bat file - even though the drivers work to show the storage subsystems, adb is waiting for the device. It worked for me before, so I think I'll be able to get past that on my own (but if you have any obvious tips, I'd be even more grateful).
[Xperia Z1 Compact General] zxz0O0:
Check out the first post, it's answered there under 'Questions' ;)
[Xperia Z1 Compact General] CAL7:
I'm really sure :cyclops: I turned on debugging and I'm pretty sure :( I checked the right boxes..... but I'm headed back to Step 9 to do it right. Thank you.
[Xperia Z1 Compact General] RobHands:
Ok so now I get the error in recovery, that it's unable to mount system etc? I thought in the last flash I have to exclude system(check)?

Edit: I can't mount anything, wtf? I unchecked under wipe all and excluded system under step 15. Maybe I am doing something wrong at step 16?
[Xperia Z1 Compact General] CAL7:
It took two more tries beginning at #9 to get there, but finally done. Thanks again.
[Xperia Z1 Compact General] Riyal:
Just ignore the message and proceed since you'll be wiping system partition and replace it anyways. What's important on that step is you manage to install the recovery partition
[Xperia Z1 Compact General] RobHands:
Problem is it won't mount anything even int. sdcard

It says root successful and it goes on about something like it booted into cwm and it should restart to clean itself up. After that I resume with the next step. It's the 5th time I now tried.

Offtopic: why are the xperia system sounds gone with EU 4.3 firmwares? On NTT DoCo firmware it's not the case :eek:

---------- Post added at 04:39 AM ---------- Previous post was at 03:52 AM ----------

Holy smokes! I finally figured it out.

While in Recovery I had to flash lockeddualrecovery before anything else so partitions would be restored properly, then reboot and repeat step 19
[Xperia Z1 Compact General] Riyal:
lol! :D Gratz then haha! After alot of attempts.
[Xperia Z1 Compact General] zat0x:
Im selling my z1c and just restored my TA backup . How can i tell everything went ok ? Is it possible to see if bootloader is locked again and DRM keys are restored ? Sorry , im Sony noob :p
[Xperia Z1 Compact General] zxz0O0:
Type in phone *#*#7378423#*#* and go to Service Info => Configuration. If bootloader is unlocked it will say: "Bootloader unlocked: Yes".
[Xperia Z1 Compact General] zat0x:
The only thing i could find at Service Info => Configuration is this :

Rooting status :

Bootloader unlock allowed :Yes

It is allowed but it says nothing about the current status right ? Because i read somewhere (cant find it back) that before rooting / unlocking bootloader always check the service menu to see the phone is allowed to do.
[Xperia Z1 Compact General] zxz0O0:
That means the bootloader is locked but unlock is allowed ;)
[Xperia Z1 Compact General] aigaming:
Houston we got a problem,i am stuck at the 15 step couse i can't download this file Flash D5503_14.2.A.1.114_Generic UK.ftf ,the server id down :(

Can somebody please reupload this file or give me another link,thank you verry much :)

ps. My phone is dead till i get that file :(

Ok,i found everything on another place,was without phone for hours,if anyone neeeds till main server comse online go to http://translate.google.rs/translat..._14.2.A.1.114_Generic+UK.ftf&biw=1680&bih=878

The only strange thing is...i have duocom leftovers and i'am rooted,is that normal that i have duocom apps ? Tnx
[Xperia Z1 Compact General] RobHands:
Hmm if you have NTT DoCo leftovers, then this only suggests that you didn't wipe system partition properly at the end, because NTT DoComo apps are all system apps...
[Xperia Z1 Compact General] aigaming:
Ok i figured that out,went back to recovery,wiped data and caches and now seems all good,even lockscreen is now normal;)tnx
[Xperia Z1 Compact General] mihaid:
once the screen is black how do you see to do the next three steps.

If anything goes wrong steps 1-21 how do you get your phone working.

Also before rooting you say Back up your phone because it will be deleted. How do you back it up?

Also how do you reboot in step 17?

How do you factory reset?
[Xperia Z1 Compact General] mihaid:
flashtool comes as malware see picture
[Xperia Z1 Compact General] aigaming:
Lol.it's a false positive.google it :good:
[Xperia Z1 Compact General] Riyal:
Hi guys! Just a quick question. I noticed in init.rc that Trim Area uses 2 partitions. It's mmcblk0p1 and mmcblk0p16. I know mmcblk0p1 is the TA partition but I'm worried about mmcblk0p16 do you think we should also backup that? I don't know but maybe sony added a new partition which might block restoring DRM keys on Z1 Compact? Anybody already tried backup, unlock and restore TA partition and confirm that DRM keys and bootloader status restored?
[Xperia Z1 Compact General] zxz0O0:
Just follow the steps when your screen is black and plug in the usb cable.

You can flash your stock rom again in flashtool if anything goes wrong. Or just start again from step 1.

It means backup your data (internal) and should just be a notice that your data will be wiped.

You don't have to reboot in step 17 it says

And factory reset is done in recovery menu (it's called "wipe data/factory reset")

Check here from post #97 http://xdaforums.com/showthread.php?t=2642081&page=10

Bootloader is locked again, however I don't know about DRM keys. You might want to ask the dev of TA backup about this second partition.

If you run

ls -l /dev/block/platform/msm_sdcc.1/by-name

it shows as FOTAkernel.
[Xperia Z1 Compact General] Riyal:
Yeah I already saw that. :p Hence why I asked about the DRM keys... Oh well I guess I'll just back it up in case. No harm in doing anyways.
[Xperia Z1 Compact General] brocnical:
I had that problem too! I think it is normal, so perhaps this additional step should be added to the end?

(was getting really p*ssed off with that stupid sheep roaming all over the place, so thanks for the solution! :D)
[Xperia Z1 Compact General] aigaming:
That sheep was like worst thing i have seen on android:D
[Xperia Z1 Compact General] zxz0O0:
Well the guide says format /system and do a factory reset. That should wipe the docomo stuff.
[Xperia Z1 Compact General] aigaming:
The problem is i folowed guide totally step by step and still had leftover:cool:
[Xperia Z1 Compact General] brocnical:
You are right. I think where I went wrong was when I chose "Clean to install new ROM" under the Factory reset / wipe data menu. I assumed that this would do the same thing, but clearly it doesn't. It wasn't clear to me at first that "Clean to install new ROM" and "Factory reset" were two separate options in Philz (I had assumed that the Factory Reset was just the title of the submenu and not also a menu option itself)
[Xperia Z1 Compact General] Riyal:
Ok forget about this post :D After further checking the system mmcblk0p16 is FOTAKernel :D Apparently that service blocks the OTA updates from flashing when no DRM Keys is found on mmcblk0p1. Now I know :p
[Xperia Z1 Compact General] menhir:
One tip for those who do not have microSD card in Sony Xperia Z1c like me:

You can use OTG cable and put USB flash drive in it with necessary files.

I formatted flash drive in Recovery mode to be sure it will be readable and mounted.

Just be sure that your battery is fully charged because you will loose option to attach power cord into device and flashing zip files from attached flash drive will take some time and battery power!
[Xperia Z1 Compact General] F308:
Explain me please a thing with TA partition

I've read forum, found what I found, looks like md5sum of TA partition can change with time run.

That I observed myself.

I reviewed Backup-TA scripts.

I see 'dd' is used to make copy.

As far as I know - dd copies raw sectors - IMAO control sum should be stable.

Why control sum changes ?

Does it depend what is written on them ?

If so - HOW can I know if I have good working backup ?

I can imagine situation when I made 3 backups, every second day.

I checked each of them by dry-run right after making it, got positive result ...

Is any of them really good after 3 months ?

My logic starts fail me.

---
[Xperia Z1 Compact General] zxz0O0:
A part of the TA partition is used for logging that's why hash is not the same.
[Xperia Z1 Compact General] F308:
I understand.

Then ... - logic tells that any copy made with help of 'dd' should be good backup.
[Xperia Z1 Compact General] Riyal:
TA partition logs anything that happens on S1 boot. I opened my TA backup and I can see the firmwares I flashed since I got my device. lol! Looks like if sony wanted to they can always catch you doing odd things on your device and revoke your warranty.

NEW_VERSION: erased_user_data:true, variant:user, s1boot_version:1270-3115 S1_Boot_MSM8974_LA1.04_15, cdf_version:1279-5365_R5B, fs_version:GLOBAL-LTE_14.2.A.1.114, sw_version:1275-9486_14.2.A.1.114
NEW_VERSION: erased_user_data:true, variant:user, s1boot_version:1270-3115 S1_Boot_MSM8974_LA1.0_72, cdf_version:1279-7650_R7A, fs_version:DCM-LTE_14.1.H.1.281, sw_version:1275-8904_14.1.H.1.281
NEW_VERSION: erased_user_data:false, variant:user, s1boot_version:1270-3115 S1_Boot_MSM8974_LA1.0_72, cdf_version:1276-0875_R9A, fs_version:EURO-LTE_14.1.G.1.534, sw_version:1274-8313_14.1.G.1.534
NEW_VERSION: erased_user_data:true, variant:user, s1boot_version:1270-3115 S1_Boot_MSM8974_LA1.04_15, cdf_version:1279-4727_R5B, fs_version:EURO-LTE_14.2.A.1.114, sw_version:1279-1792_14.2.A.1.114
NEW_VERSION: erased_user_data:true, variant:user, s1boot_version:1270-3115 S1_Boot_MSM8974_LA1.0_72, cdf_version:1279-7650_R7A, fs_version:DCM-LTE_14.1.H.1.281, sw_version:1275-8904_14.1.H.1.281
NEW_VERSION: erased_user_data:false, variant:user, s1boot_version:1270-3115 S1_Boot_MSM8974_LA1.0_72, cdf_version:1276-0875_R9A, fs_version:EURO-LTE_14.1.G.1.534, sw_version:1274-8313_14.1.G.1.534
NEW_VERSION: erased_user_data:true, variant:user, s1boot_version:1270-3115 S1_Boot_MSM8974_LA1.04_15, cdf_version:1279-4727_R5B, fs_version:EURO-LTE_14.2.A.1.114, sw_version:1279-1792_14.2.A.1.114

look at that... a Z1 Compact device flashing a z1 compact docomo firmware and also a honami firmware haha!
[Xperia Z1 Compact General] F308:
And hence TA backup can be made only on rooted phone - there's no way to have this log empty.

I wonder how log looks like after unlocking BL.
[Xperia Z1 Compact General] Riyal:
Still the same the logs are still there. There's just some lines in the TA backup that got changed on the upper part. So that must be where the DRM keys are located(I know it's there because I got 20 different backups of both unlocked and lockesd TA partitions and compared then one by one). I also have a TA dump of an unlock bootloader in fact I made a flashable zip of my TA backup for locking(with DRM Keys) and unlocking my bootloader. That way I won't have to rely on a PC when I wanted to unlock or lock my bootloader.

I have a script where it dd's the TA partition to mmcblk0p1, checks the md5 of mmcblk0p1 and if it fails it dd again for up to 20 tries. And if it still fails shows a log on recovery that it fails and restores it back from previous state :)
[Xperia Z1 Compact General] F308:
How you did review of TA.img ?

I tried mount it under Linux directory with '-o loop' option but could not.

Don't know filesystem type.

Added later:

This vbindiff is good soft. Allows review binaries. Didn't know it until today.

Still I would like to see directory tree of this partition (if exists).
[Xperia Z1 Compact General] zxz0O0:
Sounds cool, mind to share the script? By the way as far as I know flashing firmwares does not void warranty and even if it would, I'm pretty sure it's not hard to fake the log.

I also recommend WinMerge (free) and Beyond Compare (paid) :good:

And check out this: http://xdaforums.com/showpost.php?p=40348633&postcount=119
[Xperia Z1 Compact General] Riyal:
You can't... The partition is encrypted. If it were possible to mount and browse it then I'm pretty sure the devs here already made a way to unlock our bootloader without deleting the DRM Keys. This is what happened on the Xperia 2011 devices... The TA partition can be mounted by shorting some connectors in the board hence we manage to unlock the devices without erasing DRM Keys.

I just made the script like 2 days ago though... I am very reluctant to share it to the public specially if it's not fully tested yet. I don't wanna get blames if someone bricked their device using my script. TA partition is a very sensitive partition. Messing it would render your device useless and unrecoverable unless you have those boxes to write specific data on boards without having to boot it.

Although I did try it 6 times already and so far so good :p Haven't manage to try the fail safe codes though(Like I'm not sure if my script would work in case of a md5 mismatch).

Also yeah flashing firmwares doesn't void warranty but flashing a firmware of a different device would! :p Also it's hard to fake the logs specially if it's inside the TA partition. In fact there's no way we could alter it. Or maybe we can alter it using hex but I wouldn't risk my chances faking a log over permanently bricking my device.
[Xperia Z1 Compact General] F308:
I don't discuss facts but this thing is funny.

On encrypted partition you would never catch any sense in what you see.

Here you may do it.

------------------------ small part of hex view -----------------------------

A.R.E._. V.E.R._. M.I.N.O. R...F. E.A.T.U. R.E.S.. .T.E.M. P.L.A.T. E..0.. .T.E.M. P.L.A.T. E...C. L.O.C.K. .1../. C.L.O.C. K...... .S.E.C. U.R.E.C. L.O.C.K. ..U.R. L..h.t. t.p.:./. /.g.o... m.i.c.r.

------------------------------------------ end ------------------------------------

If I would want hide something - I would do it better.
[Xperia Z1 Compact General] Riyal:
Well there are 2 types of encryption...

The first one would be data encryption. That would surely encrypt all the data contents like the one you're talking about. This encryption is secure but also take too much resources to decrypt hence not very resource friendly.

second should be disk encryption. That is by locking a disk image for use without a passcode or something. Ubuntu and Windows both use disk encryption but a simple dd image of both can also show some minor data info like filenames etc. This encryption just encrypts the header of the image so it won't be readable and mountable without decrypting it first. Hence why the data is partially readable.

It is actually possible to decode this by understanding the algorithm used in this encryption however it would take too much time. A time that would be very easy for sony to patch up and waste an effort :D
[Xperia Z1 Compact General] stringy2010:
Guide worked perfectly for me on my new Z1C. Only did first part though as just wanted root at the minute. Thanks
[Xperia Z1 Compact General] stringy2010:
Can someone please tell me how to now boot into recovery. When I turn the phone on I don't get the led lighting up so when I press the volume up button it just boots normally. Also tried ndr tools and again it just boots normally?
[Xperia Z1 Compact General] zxz0O0:
Try also volume down key. If you can't get into the recovery anymore you probably did some steps wrong (maybe missed step 19.2). If you still have root, you can try with Z1C-lockeddualrecovery(...)installer.zip's install.bat (choose installation on rooted phone).
[Xperia Z1 Compact General] stringy2010:
I figured out what I missed. I didn't select the clean to install new rom option. I completed all the steps again after trying the install.bat again and the only thing I did differently was select that option.

Everything is working like a champ now. Thanks
[Xperia Z1 Compact General] the baptizer:
im stuck at step 19.. each time when i want to flash the zip file, the screen goes black and after a second im back at the recovery menu.. it happens with all of the 3 zip files.. please help
[Xperia Z1 Compact General] zxz0O0:
In which recovery menu are you? Philz touch, TWRP or CWM?

And which dualrecovery version did you use (installer)?
[Xperia Z1 Compact General] the baptizer:
im in Philz and I installed 2.7.97

i'm trying it the whole time.. the screen goes black and i return to the recovery menu.. 30 min ago i just started my phone at this point but i got stuck at the sony logo... so if i start it now i think the same is going to happen

thanks
[Xperia Z1 Compact General] zxz0O0:
Try booting to TWRP recovery (hold Volume DOWN instead of UP). I think Philz recovery is broken in 2.7.97.

You did flash 4.3 as stated in the guide, not 4.4 right?
[Xperia Z1 Compact General] the baptizer:
thanks i will try it tonight...

i have another question... when i run that bat. file.. at the end i don't get a message that my device is rooted.. it says: ''WATING FOR DEVICE TO REBOOT!!'' and then i get a violet light and my phone doesn't reboot... is that oke? I have to reboot it manually but nowhere i get a message that my device is rooted..
[Xperia Z1 Compact General] zxz0O0:
Might be a problem with 2.7.97. If it doesn't work, try with version 2.7.95 or 94
[Xperia Z1 Compact General] mikk_11:
I've also a problem with the new 2.7.97 version. The LED never turns green so it always boots normally. I tried it 2 times.

Now I try it again with the old version.

Edit: Ok it wasn't the recovery. I don't know why it doesnt't work 2 times but now it workes with the new recovery.
[Xperia Z1 Compact General] wind0zer:
To the persons who have bootloader unlocked - does the camera work or not?

As of November 2013 the Z1's camera doesn't work when bootloader is unlocked. Camera Still Broken After Custom Rom? - xda-developers

Okay; nevermind.

Xperia Z1 bootloader camera issue resolved in Android 4.3 update | Xperia Blog
[Xperia Z1 Compact General] Go1den3ye:
poop... I followed the guide, but now when I try to reboot the phone only shows the Sony logo.. any ideas where I should restart? from the beginning? or the try to flash the last file in flashtool?

additional info:when the phone is off, and I plug in the USB the LED shows: RED then quickly GREEN. and I get the "connection" sound from windows
[Xperia Z1 Compact General] zxz0O0:
Can you get into recovery? If not you need to start again from the beginning. Is it possible that you used version 2.9.97 of the dualrecovery? That's probably the cause of the problem. Try to another version (2.7.99 or 2.7.95)
[Xperia Z1 Compact General] Go1den3ye:
I ended up starting all over again. I believe the problem was with my memory card. I moved the files to the phones internal memory after point 10. and tried. Now it's up and running again. Downgraded to JellyBean from KitKat :)
[Xperia Z1 Compact General] harrishanifa:
Zxz0O0,

Since the new recovery is out, do you plan on updating the root guide to 4.4?
[Xperia Z1 Compact General] Kageetai:
Hi,

I just updated my still stock phone to the new 4.4 update that came to me OTA. Can I still use this guide to root it or do I have to change some of the steps?
[Xperia Z1 Compact General] zxz0O0:
Yeah I will update it once I'm sure there are no more issues with 4.4 and the recovery.

Yes you can. If you follow the guide you will be on 4.3 (kitkat). You can later on upgrade to 4.4 with this guide: http://xdaforums.com/showthread.php?t=2688933
[Xperia Z1 Compact General] TQuest:
after reading a bunch of tutorials and postings, i made my own files with customisation version: 1279-6976_R3B

D5503_14.2.A.1.114_EURO LTE-nosystem.ftf (replaces D5503_14.2.A.1.114_Generic UK-nosystem.ftf) md5: e2e89972fc5eb19258c520bb8e10aa28

z1c-14.2.A.1.114-Europe_LTE.system.flashable.zip (replaces z1c-43-uk.system.flashable.zip) md5: f823286d6b5457e274dafdef3add7ede

they work on my phone, but keep in mind this is my first firmware modification project for android

full ftf without TA

D5503_14.2.A.1.114_EURO LTE.ftf md5: f6b934e240b73e0d9866b6fd3e1f861d

D5503_14.3.A.0.681_EURO LTE.ftf md5: bcb561e7069af093621b45a39c8f1248
[Xperia Z1 Compact General] zxz0O0:
Good job :good:

If someone else confirms it working, I will add it to the first post.
[Xperia Z1 Compact General] F308:
1. Can you tell what differences you see between EURO and UK ?

2. May I just put them just like that into my phone without wiping anything or passing whole procedure ?

If it is simple zip which will be unpacked - it should overwrite old files.
[Xperia Z1 Compact General] zxz0O0:
EURO rom displays 4G as LTE. And some people feel just more confident on EURO rom (maybe because they think it's wrong to flash uk firmware if they are not from uk).

It should be possible to go from UK to EURO firmwares with the files above. Just start from step 15 from this guide (should not be needed to do a factory reset).
[Xperia Z1 Compact General] cicci0:
Now flash C6903_14.1.G.534_ianford10_UK Unbranded.ftf in flashmode (boot phone in flashmode again) (select Wipe [Uncheck ALL] and Exclude [Check ALL except kernel and system])

where is system?

EDIT...

Ops, scroll down!

:D:D:D:silly::silly::silly: