yashsingh1/xdaforums huggingface dataset:
[Xperia Z2 Q&A, Help & Troubleshooting] Envious_Data:
Recovering from a brick

-3.

How to recover your device from almost any kind of brick

Requirements

Flashtool

FTF of choice

for your device

2 Rubber bands (I am serious but only if your device has no response)

Downloads

FTFs

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

Flashtool

http://www.flashtool.net/download.php

Requirements

Flashtool downloaded and installed

a FTF file downloaded

your ftf file placed in /flashtool/firmwares/ folder

drivers installed (check drivers.exe in the drivers folder)

Part 1

1. unplug your device from anything

2. open flashtool on your pc

3. plug your cable into your PC

4. do not plug the cable into your device

Part 2

1. Open the

Flap

on the

Left

Side of your device

2.

Press

and

hold

the RED Button for 30 secionds

3. Your device should

buzz

3 times

4. If this does NOT work then find 2 rubber bands

5. once you have found 2 rubber bands put them

around

your device holding the

volume up

and

power buttons

6. Wait for it to buzz 3 times.

7. continue.

if it does not take a few seconds then you need to put a rubber band around your device holding your power button and your volume up button, DO NOT LEAVE MORE THAN IT NEEDS TO BE LEFT, wait patiently for your device to buzz 3 times

Part 3

1. once your device has buzzed 3 times you are free to flash a FTF as your device is powered off

Part 4

1. if you dont know how to flash a FTF but have gotten as far as installing flashtool,Z2 drivers and downloading a FTF FOR YOUR DEVICE... then folow this step

2. within your flashtool window click on the lightning icon at the top left

3. select flashmode

4. navigate to where you downloaded your FTF (OR put your FTF in your /flashtool/firmwares folder)

5. select your FTF

6. Flashtool should give you a prompt to plug in your device

7. hold volume down and plug in your device

Part 5

1. wait for it to finish flashing

Part 6

1. your device is now recovered, enjoy...

Part 7 - Aditional Info

if all fails contact your insurance and ask for a replacement as sony may give you a replacement however you may be charged

if you cant afford it you can buy a new xperia Z2

if this happened without any modifacations aka by its self, then contact sony support as you are entitled to a free repair under Sony Xperia warrenty (2 years) which is given to all Sony Mobile Xperia Phones
[Xperia Z2 Q&A, Help & Troubleshooting] Envious_Data:
-4.

- Unlocking your bootloader​

Unlocking your bootloader is the allows custom kernels to be installed. it apears only X-Reality is broken along with Few Xperia Services Such as PlayStation Remote Play.

Unlocking your bootloader does wipe your TA partition and also your data and internal storage

Take note that Unlocking your bootloader will

void

your warrenty. some services do not care if your bootloaders are relock however some check if your DRM keys are existent.

Any modifacation

to your device will imediately void your 2 year warrenty that comes with

all

Xperias given that you have proof of purchase.

-- How to

unlock

your bootloader

you can follow these instructions

http://unlockbootloader.sonymobile.com/

or

these instructions

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

Note that with the Xpria Z2 you can root without unlocking your bootloader this means that you can back up your TA (Check Index for how to root )

-- How to

Relock

your bootloader

http://xdaforums.com/showpost.php?p=45496437&postcount=2

Relocking your bootloader does not get your DRM keys back
[Xperia Z2 Q&A, Help & Troubleshooting] Envious_Data:
Guide to Flashing

Guide to Flashing For Locked BootLoaders

1. Root and Recover

http://xdaforums.com/showpost.php?p=53220418&postcount=2

to get a recovery which is needed to flash a rom you will need root first.

There is a link above which provides more links to 3 Different root Tools and a Recovery installer for Locked bootloader And unlocked

2. Pick a Rom

So once you have rooted and installed Recovery you can go ahead and find your self a rom to flash

Here is an Index of Roms/mods/tweaks/kernels -> Click me

3. Pre-Flashing stuff

so once you've downloaded it, you want to go and put the ZIP file on your Xperia Z2

you also want to download this and put it on your phone too -> click me Credit to [MENTION=4904057][NUT][/MENTION] as this is his creation ->Click Me for the full thread

Now that we have everything Ready to GO, lets Get flashing!

4. Flashing the Rom

this will be the Common process for flashing any Stock-Based Custom roms since all Stock-Based roms are for locked bootloader.

Flashing a Rom for Unlocked bootloader only on your Locked bootloader Device will brick your device.

A. Download ROM

B. Put ROM on Phone

C. Turn off Phone

D. Power on the phone and press volume Down when the light shows or keep pressing it while the Sony Logo Shows

#this will enter the recovery menu you installed earlier

~ you may want to click backup and backup your current System and Data

- You can restore at a later date if the rom your using is causing you problems

E. Click Install

F. Navigate to where you put your ROM and The Second file we Downloaded

G. Select the ROM then Click "Add more Zips" and add the other file we downloaded

H. simply Swipe to Confirm Flash

J. Once thats done click on "wipe cache/dalvik" and Swipe to confirm

K.. finaly you are good to go

-Simply Click Reboot and Enjoy your Custom rom

L. if your phone keeps starting up halfway and turning off and then restarting then you will have to go back into your Recovery

M. once your in the recovery menu again, Click Wipe and then Swipe, you are Wiping the user Data because some Stock bases roms such as "MIUI" may need it

N. if you installed a Rom for Unlocked bootloader and your Device isnt responding, try this guide to fix that -> Click here

O. not sure what else to put here

P. if i remember ill put something here
[Xperia Z2 Q&A, Help & Troubleshooting] Envious_Data:
Useful Links

Forum Rules and guidelines (for new people)

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

A bunch of FTFs (some useful for someone :D)

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

How to Fix Noise Canceling

http://xdaforums.com/showpost.php?p=54730368&postcount=5

Digital Rights Management info(DRM keys - information)

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

SuperSU thread

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

Flashtool website

http://flashtool.net

info about android and linux

http://en.wikipedia.org/wiki/Android_(operating_system)

http://en.wikipedia.org/wiki/Linux

Index of roms/kernels and tweaks thanks to [MENTION=5338100]sud.vastav[/MENTION]

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

probably add some others if i remember to
[Xperia Z2 Q&A, Help & Troubleshooting] BanziBaby:
Can Philz recovery be used instead of the standard CWM one? I know DoomLord made a thread saying it had been ported over unofficially but there hasn't really been any posts in that thread since 30th May. Philz recovery was always my fav to use on my GS3. Ideally I would like to flash Philz recovery & just keep the stock rom & kernel & root to block ads & change DPI & also use MyBackup Pro to it's full potential.

Thanks for posting all the info in one centralised thread though :)
[Xperia Z2 Q&A, Help & Troubleshooting] Envious_Data:
,yes Philz can be used too instead of cwm, if you know how to flash and so on

Ill update OP thread
[Xperia Z2 Q&A, Help & Troubleshooting] leocooper:
Do you mean "no, kernels are device specific" or that no kernel is device specific, meaning you can use kernels made for Z2 and the Z2 tablet?
[Xperia Z2 Q&A, Help & Troubleshooting] Envious_Data:
Oh grammar, kernels are device spesific aka Z2 kernel only works on Z2 and not tablet although they are almost the same on the inside

Time to update the thread ;) thanks for pointing that out
[Xperia Z2 Q&A, Help & Troubleshooting] quailallstar:
Great guides! Thank you so much for doing this :)
[Xperia Z2 Q&A, Help & Troubleshooting] PulpDood:
Great info! Reckon you could also add, like, a section with obscure/hidden general productivity tips for the phone as well?

For example:

If you press and hold the right-hand side of the notification bar, it will change to quick settings allowing you to then swipe down for the quick settings.

From the home page, if you swipe from the very edge of a side of the screen, you can scroll 2 pages at once.

Etc.
[Xperia Z2 Q&A, Help & Troubleshooting] Envious_Data:
[MENTION=3030005]PulpDood[/MENTION]

If you could write a post here with a list of secret features ill add to the index of the thread

Here is one for you

Press the page indicators to quickly scroll across pages in your home screen

Thanks if you do, credits to you ;)

Edit-ill do later
[Xperia Z2 Q&A, Help & Troubleshooting] evolutionisbad:
Screen rotation

Not sure if this is for on here or not but is it possible to have the screen rotation for the stock launcher on all the time and not just when a magnetic charger is connected? (I know other launchers are available)
[Xperia Z2 Q&A, Help & Troubleshooting] Envious_Data:
It seems there is a bug when you force rotate however ive found a soution. The problem is that you need root

You need to download and install

Xposed installer

Xperia rotation and multiline lables (this is the module name btw)

Gravity box(KK) can be used to rotate the lockscreen of which this require xposed too

Hope this helps :D
[Xperia Z2 Q&A, Help & Troubleshooting] evolutionisbad:
Thanks, disappointing I have to root. I like to use stock for a while before I start to tamper with it :)

Actually thought I wouldn't need to root this as all I used root for was greenify but stamina mode seems to have better results.

Edit - found an app seems to work https://play.google.com/store/apps/details?id=com.spydiko.rotationmanager

Thanks again
[Xperia Z2 Q&A, Help & Troubleshooting] BanziBaby:
I have already spammed the thanks button for you mate in this thread but your great simple guide now has my bootloader unlocked & rooted & booted as they say :)

Does yourself or anyone else knowa good app to edit the DPI to a setting that wont cause issues with play store or apps or games or what would be the best setting to use for editing the build prop file? I know the default is about 480 Previous device was galaxy s3 which by default was 320 but I always changed it to 240 or 245.
[Xperia Z2 Q&A, Help & Troubleshooting] Envious_Data:
I usualy use xplore, you have to enable superuser in the settings but the app is functional enough for file management

Default DPI is 480, some people said 460 n stuff like that is a nicer dpi to use, hvnt realy tried my self

Edit- you also have to give credit to the ppl who wrote the other threads who i liked here :P
[Xperia Z2 Q&A, Help & Troubleshooting] BanziBaby:
Of course mate, credits to all that wrote the info in your links, I just found the way you laid your guide out was much easier to follow, the thanks to yourself was collecting all the info in one handy thread :)
[Xperia Z2 Q&A, Help & Troubleshooting] sea0turtle04:
TouchWiz mimicking, halo, etc... how far can it go...?

Hello...

I am trying to customize my (new) sony xpereia z2, (got it for waterproof), to as close as possible to a Galaxy note or tab, as far as it can go feature wise.

I already have a few floating apps:

-floating stickies-becomes complicated with too many stickies, swiping them to the side, it becomes (almost) impossible to find the one you want, needs a single view interface, for organized viewing/editing , as well along with the float feature.

-floating browser, and cobra - crashes with only 2 tabs, doesn't remember my websites.

-G-player - my floating window will not resize, pretty sure have gone through all the options in settings, it is stuck,

I am aware of xhalofloatingwindow and xmultiwindow.

- is the only difference between the two that halo floats and multi divides the screen in fixed way? or are there other differences in the two that I am missing...

- (also when people refer to 'halo', this is the same thing as 'xhalofloatingwindow', right? or is it different...)

- are these considered 'custom roms', or not bc only partial change..

- also TouchWiz... I have read that TouchWiz mimicking apps exist, and to look here, but I haven't found any names, thus far.

the features I want are: quick screenshot, and editing, and note taking next to the screenshot, in a logged/organized manner. I would buy a stylus too, if found if could find apps or roms that mimick the galaxy note.

I do like xperia's interface, lockscreen, homescreen editor set up, and buttons. It is not so much the interface that I am trying to change, but to get a few more features. but I would change the interface if that's the only way to do it.

another subject - copying images from web browser, (not saving them), this is impossible on android but have read with a custom rom (not sure which ones, all or only some?) it is possible.

also closing tabs in chrome. you have to close each one manually, obviously annoying, plus the fact that they all reopen if you just wait the program. which Roms (all or only some) can help this...?

please advise if you can ...

Thank you for any advice ....
[Xperia Z2 Q&A, Help & Troubleshooting] Envious_Data:
Alot of floating window apps or things alike just dont work right, Sony has "Small apps" which can be accessed from the Recents menu, tryinstalling some third party small apps

As for multi-window, thas hasnt ever worked for me

Chrome thats normal function, i dont know realy

Copying images from web browser, not posbile that i know of

I dont know much outside of Xperias so i cant help all too much, try searching around, be spesific
[Xperia Z2 Q&A, Help & Troubleshooting] sea0turtle04:
why hasnt mult window worked for you? does it freeze/crash?...
[Xperia Z2 Q&A, Help & Troubleshooting] Envious_Data:
Bootloop upon instalation of mod or Enabling of xposed module
[Xperia Z2 Q&A, Help & Troubleshooting] tazoman:
Can anyone tell me what is enterprise services on xperia? Is it a bloatware I see it running apps. What happens if i uninstall it?

Sent from my D6503
[Xperia Z2 Q&A, Help & Troubleshooting] Envious_Data:
It isnt bloatware, its some sort of data management process for some other apps

I dont recomend uninstalling it
[Xperia Z2 Q&A, Help & Troubleshooting] dnle71:
I still want to confirm as I am still new to xperia devices.

Can I flash a branded z2 to unbranded? Also, will it unlock the sim?
[Xperia Z2 Q&A, Help & Troubleshooting] alb3rtt:
Yes you can flash it. No it wont unlock the sim, sadly.
[Xperia Z2 Q&A, Help & Troubleshooting] dnle71:
Thanks for clarifying that for me.
[Xperia Z2 Q&A, Help & Troubleshooting] MrPACS:
I just followed this procedure. Pretty simple.

http://wiki.cyanogenmod.org/w/Install_CM_for_sirius
[Xperia Z2 Q&A, Help & Troubleshooting] muhammadnajmi96:
Hey guys , wanna ask some question. I've unlock my bootloader to install PA 4.4 rom by infected . After flashing CM boot.img and reboot recovery , I wipe data , install rom , gapps and reboot. However my phone just stuck at Sony logo. I force close it then try to get in the recovery , when the purple light on notifications light lights up , push volume+ for several times , then notifications light turns orange and stuck at Sony logo. Am I making a mistake here? :confused:
[Xperia Z2 Q&A, Help & Troubleshooting] Envious_Data:
Did you reflash the PA 4.4 kernel?

Sometimes even CM based roms can differ from one another
[Xperia Z2 Q&A, Help & Troubleshooting] muhammadnajmi96:
Haha nope , any link to the thread ? I just follow the instruction from the thread . :)
[Xperia Z2 Q&A, Help & Troubleshooting] Envious_Data:
Reflash Pa afterwards
[Xperia Z2 Q&A, Help & Troubleshooting] muhammadnajmi96:
your point is? sorry if i'm asking so much
[Xperia Z2 Q&A, Help & Troubleshooting] Envious_Data:
My point is you cant realy run a CM kernel on a rom that doesnt support that spesific Kernel :D
[Xperia Z2 Q&A, Help & Troubleshooting] muhammadnajmi96:
owh okay , I think I understand some of it lol :silly: , okay thanks man!
[Xperia Z2 Q&A, Help & Troubleshooting] Myself5:
[MENTION=4895687]Envious_Data[/MENTION]s point makes no sense. When you install the PA Build the CM boot.img gets overrriden by the PA one (even tho PA uses CM kernel, so thats kinda irrelevant). Your problem is most likely caused by the fact that you installed a recovery to the FOTAKernel partition right ? try doing

fastboot erase recovery

and

fastboot erase FOTAKernel

For the Z2 the recovery is built into the kernel, and flashing a recovery to the FOTAKernel partition messes up the boot.img intern recovery. (Least it does on KK, on LP this is different)
[Xperia Z2 Q&A, Help & Troubleshooting] Envious_Data:
[MENTION=3816568]Myself5[/MENTION]

Newest PA solves this or am i just derping
[Xperia Z2 Q&A, Help & Troubleshooting] waleed794:
Sorry if this is the wrong forum to ask

I really want to buy xperia z2 but the only thing thats keepinf me away is the self glass crack issue . How many of you have faced this issue ? Is it a common problem or rare ? Sorry if im asking too much.
[Xperia Z2 Q&A, Help & Troubleshooting] Envious_Data:
Its rare in early units and its rarer in later units

Ovrerall its extremly rare
[Xperia Z2 Q&A, Help & Troubleshooting] ryan42680:
Rooting 4.4.4

thx for this great post.

i need to know : is there any root for 4.4.4 sir ?
[Xperia Z2 Q&A, Help & Troubleshooting] Envious_Data:
http://xdaforums.com/showthread.php?t=2933155
[Xperia Z2 Q&A, Help & Troubleshooting] migueldbr:
[MENTION=4895687]Envious_Data[/MENTION] i just bought a new Z2 and im not really new to the whole flashing scene...but there is something i have not understood yet.

When we unlock the bootloader we lose warranty right? And why is that?Is it because we use Sony's website to unlock it and they keep a record of it?in that case, from what i understood, we can still unlock through flashtool without letting sony know we unlocked it right? If i unlock with flashtool, how does sony know i unlocked it? Is it just because i lose the DRM keys?In that case, since its possible to root before and backup the DRM keys, would it mean that i can unlock the bootloader without sony knowing and then relock it and restore DRM keys and wont lose warranty? Or does the phone have some kind of flash counter that displays that the bootloader has been unlocked previously?
[Xperia Z2 Q&A, Help & Troubleshooting] Envious_Data:
you lose your warrenty because it is modifying your device

you can check your warrenty validity by checking your TA (only sony can do this)

they cant record you unlocking your bootloader, they can only record you requesting your unlock key

you can unlock your bootloader and restore your TA later (given that you backed it up before unlocking) , you should be fine

there are absolutly no counters on Xperias, flash counters , bootloader status change etc

none at all

notes:

restoring your TA on a custom kernel will brick your device (flash a FTF before doing so)

FTFs will wipe your data and your internal storage unless you exclude data

cant remember anything else
[Xperia Z2 Q&A, Help & Troubleshooting] migueldbr:
I understand that modifying my phone makes me lose warranty, what i didnt understood was how they check if i changed anything. to sum it up, if root my device, backup my TA partition to retain my DRM keys and then unlock bootloader(through flashtool, not sony's website) and then if i relock the bootloader and restore TA partition(as well as DRM keys), they have no way of knowing that i modified anything on the phone and i still would have my warranty. Is that correct?
[Xperia Z2 Q&A, Help & Troubleshooting] Envious_Data:
if you flashed a FTF and restored your TA then they have no way of telling.

:D
[Xperia Z2 Q&A, Help & Troubleshooting] migueldbr:
Nice=D

thanks!
[Xperia Z2 Q&A, Help & Troubleshooting] zaxxshoxx:
my screen suddenly flickering and finally goes blank, after a heavy rain (i put it in my pocket) manage to turn it on but nothing on the screen. shall i go claim warranty since it's still on warranty? would it covered under warranty? anyone experience it?
[Xperia Z2 Q&A, Help & Troubleshooting] Envious_Data:
Waterdamage isnt coversd but water shouldent do this

Perhaps a factory defect, try contacting them anyways
[Xperia Z2 Q&A, Help & Troubleshooting] zaxxshoxx:
got a feedback from the girl from the counter yesterday (the technical department still close), mention that the warranty doesn't cover the damage. haish :( but i'll send it to them once they open.
[Xperia Z2 Q&A, Help & Troubleshooting] draexo:
I am getting a Z2 today and just wanted to thank the OP for this thread. Full of good information. Looks like I will be using Flashtool and FTF's in place of Odin and PITs?

How serious is this over heat problem? Is it common?
[Xperia Z2 Q&A, Help & Troubleshooting] Envious_Data:
Flashtool is odin of Xperias :D

Overheating is more of a plague with earlier manufactured phones, later ones just get warm where as earlier batches get hot just doing anything.

I have a mid/later batch so it just gets warm playing games
[Xperia Z2 Q&A, Help & Troubleshooting] draexo:
Is there a Linux version? I run both Linux and Windows but prefer Linux.

Sent from my SAMSUNG-SM-G870A
[Xperia Z2 Q&A, Help & Troubleshooting] Envious_Data:
yes

go to flashtool.net to download
[Xperia Z2 Q&A, Help & Troubleshooting] draexo:
please delete this post!
[Xperia Z2 Q&A, Help & Troubleshooting] draexo:
delete this post too!
[Xperia Z2 Q&A, Help & Troubleshooting] draexo:
If I take this update will I loose root?

Sent from my D6503
[Xperia Z2 Q&A, Help & Troubleshooting] Envious_Data:
any update will lose root

314 fw is kinda old, 167 is newest global update heh
[Xperia Z2 Q&A, Help & Troubleshooting] draexo:
Looks like I can take the 314 update and re-root pretty easily, whereas the 167 update seems to require some hoops to root. Is the 314 update worth it? I am on 402 currently.
[Xperia Z2 Q&A, Help & Troubleshooting] Envious_Data:
yes because 314 can be rooted via tool and not to mention its about the best of the old UI for Xperia Z2

167 does require a weird loopy method though 167 is worth it although the impact on battery. (normaly 7hrs with ease but with 167 its about over 6hrs(screen on time btw)
[Xperia Z2 Q&A, Help & Troubleshooting] draexo:
Is it true that I do not void the warrenty by flashing a different ROM unless I unlock the bootloader?
[Xperia Z2 Q&A, Help & Troubleshooting] Envious_Data:
not true

sonys warrenty states that its voided by any modifacation of the device, this includes rooting, flashing custom roms, bootloader unlocking and anything else you can think of.
[Xperia Z2 Q&A, Help & Troubleshooting] draexo:
Trying to decide on a ROM to run. Stock SONY is not too bad... similar to ASOP in a way. Some ROMs seem to require bootloader unlock and some do not, thought I had found a loop-hole on which ROM I could run, but apparently, from what you say, even root voids the warrenty, SO it does not matter which ROM I run.
[Xperia Z2 Q&A, Help & Troubleshooting] Envious_Data:
yup

if i were you i would back up my TA, unlock and flash free and relock and restore later if your device NEEDs to go for a warrenty repair.
[Xperia Z2 Q&A, Help & Troubleshooting] draexo:
I better find out what TA is first! I need to start doing some research. This is a much nicer device than my S5. Not withstanding the obvious speed gain by not using TouchWiz (Samsungs bloated Launcher) the most surprising thing is the sound quality with my generic headphones. I am not an audiophile, but dang, much better sound with the Z2.
[Xperia Z2 Q&A, Help & Troubleshooting] Envious_Data:
TA partition (trim area) it contains your DRM keys which are unique to each device, now sony can check if these exist (they have their FBI super tools and all). if they are present than warrenty is intact (technicly) now if they are gone that means your bootloader has been unlocked (doesnt matter if you relock btw, when they are gone they are gone)

now you can root your device (on a older firmware using a exploit and a tool to use that exploit) and you can use root to back up your TA partition.