Related
All you need to know about Owning a Z2
-------------------------
INDEX
How to root
How to Unlock your bootloader
How to "Unbrick your Device"
Guide to Flashing Custom ROMs
How to install Custom Recovery"[UB]"
FAQ
FTF Compilation
-------------------------
DisclaimerBy following any guides on this thread you are doing this at your own will so if you brick your device i am not at fault as you chose to do this. only your self can be blamed for incorrectly following the steps a guide
-Introduction to this threadthis thread is a help/info/reference thread to where you can find alot of what you need to know, if there isnt what you know ask or point out ill update the thread as soon as
Also Feel free to ask any questions here, even if they may be as silly! this is XDA and XDA developers is a place of learning and teaching and many other things
-Introduction to who i amnothing special here
move along citizen
-1.
How to Root
By modifying your device you are voiding your warrenty, unlocking your bootloader is concidered modifying your device and will void your Warrenty from seller and your Default Xperia Z2, 2 year warrrenty
Downgrade PRF Creator Method
http://forum.xda-developers.com/showthread.php?t=2933155
Easy Root Tool(this has been noted to work on the latest update)
http://forum.xda-developers.com/showthread.php?t=2784900
Root Tool For locked Bootloaders
http://forum.xda-developers.com/showthread.php?t=2559009
Bin4ry Root
http://forum.xda-developers.com/showthread.php?t=1886460
Recovery For locked bootloaders:
http://forum.xda-developers.com/showthread.php?t=2785598
Downgrade method
1. Flash a Older Version of firmware that can be rooted via root tool
2. Install recovery for locked bootloader
3. Make a PreRooted Zip using PRF CREATOR
4. Flash that zip along with recovery.
5. done.
-2.
-Commonly Asked Questions
Q. Why do my Apple Earphones not work?
A. Alot of headphones dont work, it seems they work on 314 fw but not 402, perhaps try upgrading?
Q. Why does my NC headphones get Quieter when i turn on Nc
A. i do believe that because the Nc headphones are shooting counteracting wave frequencys which affect your ears but cant hear, they limit the volume for safety.
Q. What would you recomend to a newbie flasher?
A. ALWAYS keep a copy of a stock rom on your device
A. Backup often, sometimes you have to lose your data
A. Keep flashtool and a FTF at hand, it will save your Z2
A. Come here for info, your here reading this and learning arent you now?
A. Unlock your bootloader before flashing non stock based roms please
A. Non stock based example: CM11 , Slim Rom, AOSP, Envi-OS Touch, Ubuntu touch!
A. NEVER blame the devs unless they LIED TO YOU!
A. READ THE INSTRUCTIONS
A. READ THE DISCLAIMER
A. BUY ME ICE CREAM
A. Any thing else SEARCH, cant find it, SEARCH AGAIN, still cant find it?, ASK!!!
Q. I have flash CM11 but the camera does not work and the touch doesn't work after the screen turns off, what is the problem?
A. Its CM11, official, Unofficial and FXP unofficial all are not fully working, i recommend you go back to stock for now.
(10th of July 2014)
Q. How do i debrand my device
A. Debranding is just the removal of branding, you can debrand by flashing a unbranded FTF/Rom or by deleting branded apps and/or files from your ROM using root
Q. If i flash a branded FTF to an unbranded Device, do i have to worry about simlock or anything to do with the brand?
A. Nope.. Not at all, you will have apps n stuff but there shouldn't be any simlock
Q. i have a problem and im not sure if its normal how do i tell
A. It depends on what realy, post here or in the QnA section your question
Q. Why should i Buy a Z2 over a S5 or M8
A. Its down to what you want more, xperia Z2 has a simple, elegant and stylish look with a Lightweight UI which is packed with features whilst not being overpacked or left empty
Q. WHY is overclocking dangerous
A. Because you can burn out your CPU and any device without that is useless!
Q.Why shouldent i ask for ETA From a dev?
A. Because Usualy Devs dont even know when they are going to be done
Q. Can i use an xposed module made for another xperia?
A. Yes if that xperia has the same version of android as yours
Q. What is a bootloader?
A.it is a program that loads an operating system when a computer or phone is turned on.
Q. Could you explain a bootloader, locked or unlocked or well whats it about.
A. like mentioned in the FA Question above its the program that starts your system now with android the kernel is contained within the bootloader where as just the bootmanager which would be a PC, your bootloader is locked by a sort of verifacation system so when you remove of that it doesent verify or when it does it doesnt have anything to copare it to, that is unlocking your bootloader ( or what ive been told )
Q. Can i install a custom kernel on a locked bootloader?
A. not at all! dont even try it either, it will brick your xperia!
Q. What do you mean brick your device?
A. read this http://en.wikipedia.org/wiki/Brick_(electronics)
A. Brick in simple words means a dead phone
Q. Does unlocking your bootloader break X-Reality?
A. it Apears to Break X-Reality and Bionz
Q. Can i flash A Z2 kernel on to Z2 tablet or vice versa?
A. kernels are device specific. you cant flash a Z2 kernel to Z2 tablet or any other device.
Q. If my bootloader isnt unlockable is there a way to root?
A. There is a link at the top of the thread called index
Q. can i make my bootloader unlockable if it isn't?
A. no.
(try swapping your Z2 for a unlockable one)
Q. is there any ways to fix the overheating with my Z2?
A. as far as i have seen and know ... No not yet
Q. if i flash a rom from my Samsung to my Z2 will it work?
A. Never, it will brick you phone, Z2 roms only work on Z2 and Samsung or any other device roms wont work on a Z2 unless they are ported to Xperia Z2.
Q. my Xperia Z2 overheats when im using the camera, is there any fix
A. there is a workaround but its dangerous and i do not recoment
(this can be found in development sections)
if a question isnt up here ASK!
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://forum.xda-developers.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
-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://forum.xda-developers.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://forum.xda-developers.com/showpost.php?p=45496437&postcount=2
Relocking your bootloader does not get your DRM keys back
Guide to Flashing
Guide to Flashing For Locked BootLoaders
1. Root and Recover
http://forum.xda-developers.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 @[NUT] 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
Useful Links
Forum Rules and guidelines (for new people)
http://forum.xda-developers.com/showthread.php?t=2668689
A bunch of FTFs (some useful for someone )
http://forum.xda-developers.com/showthread.php?t=2759934
How to Fix Noise Canceling
http://forum.xda-developers.com/showpost.php?p=54730368&postcount=5
Digital Rights Management info(DRM keys - information)
http://forum.xda-developers.com/showthread.php?t=2743240
SuperSU thread
http://forum.xda-developers.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 @sud.vastav
http://forum.xda-developers.com/showthread.php?t=2765461
probably add some others if i remember to
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
BanziBaby said:
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
Click to expand...
Click to collapse
,yes Philz can be used too instead of cwm, if you know how to flash and so on
Ill update OP thread
Sent from my D6503 using XDA Premium 4 mobile app
Envious_Data said:
Q. Can i flash A Z2 kernel on to Z2 tablet or vice versa?
A. no kernels are device specific
Click to expand...
Click to collapse
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?
leocooper said:
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?
Click to expand...
Click to collapse
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
Sent from my D6503 using XDA Premium 4 mobile app
Great guides! Thank you so much for doing this
Envious_Data said:
All you need to know about Owning a Z2...
Click to expand...
Click to collapse
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.
@PulpDood
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
Sent from my D6503 using XDA Premium 4 mobile app
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)
evolutionisbad said:
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)
Click to expand...
Click to collapse
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
Sent from my D6503 using XDA Premium 4 mobile app
Envious_Data said:
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
Sent from my D6503 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
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
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.
BanziBaby said:
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.
Click to expand...
Click to collapse
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
Sent from my D6503 using XDA Premium 4 mobile app
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
Hi guys,
Sorry if this has already been answered several times but i have read many threads and just feel some information is dated and cannot work out if what im trying to do is possible.
I would like to root my samsung galaxy s6 edge, however i have been reading that the fingerprint scanner stops working along with call audio?
I was wondering if these are still issues? and if not then which is the best way to root without tripping knox counter?
Kind regards
usmxn
It's ok! I'll help you out!
From personal experience, Tripping KNOX gets rid of Samsung Pay functionality, however I do not know about Android Pay or Google Wallet. Tripping KNOX, though, gives you the ability to have fingerprint functionality.
(This isn't from personal experience, just from what many others have said) By not tripping KNOX, you lose fingerprint functionality(seems to be confirmed by lots of people for this), but Samsung Pay should (not 100% sure) work.
As for the call audio issues, this usually applies to the T-Mobile (SM-G925T or SM-G920T) or Canadian (SM-G925W8 or SM-G920W8) Varients of the S6 and S6 Edge. However, if you do have either of the models listed, there is a fix that you can flash.
TL;DR, Tripping KNOX = Loss of Samsung Pay + Working Fingerprint Scanner.
However NOT Tripping KNOX = Possibly working Samsung Pay + Broken Fingerprint Scanner.
I would recommend (if you don't care of Samsung Pay) to root by flashing either Unikernel via ODIN or flashing TWRP through ODIN and then flashing custom ROMS or Kernels through TWRP. (Both Methods Trips KNOX)
I do not know of a way to root without tripping KNOX, sorry! Anyways, for me, losing Fingerprint Scanner functionality is a deal breaker.
I would also recommend NOT Rooting! This is only if you don't want to lose any functionality of your device.
FQuimson23 said:
It's ok! I'll help you out!
From personal experience, Tripping KNOX gets rid of Samsung Pay functionality, however I do not know about Android Pay or Google Wallet. Tripping KNOX, though, gives you the ability to have fingerprint functionality.
(This isn't from personal experience, just from what many others have said) By not tripping KNOX, you lose fingerprint functionality(seems to be confirmed by lots of people for this), but Samsung Pay should (not 100% sure) work.
As for the call audio issues, this usually applies to the T-Mobile (SM-G925T or SM-G920T) or Canadian (SM-G925W8 or SM-G920W8) Varients of the S6 and S6 Edge. However, if you do have either of the models listed, there is a fix that you can flash.
TL;DR, Tripping KNOX = Loss of Samsung Pay + Working Fingerprint Scanner.
However NOT Tripping KNOX = Possibly working Samsung Pay + Broken Fingerprint Scanner.
I would recommend (if you don't care of Samsung Pay) to root by flashing either Unikernel via ODIN or flashing TWRP through ODIN and then flashing custom ROMS or Kernels through TWRP. (Both Methods Trips KNOX)
I do not know of a way to root without tripping KNOX, sorry! Anyways, for me, losing Fingerprint Scanner functionality is a deal breaker.
I would also recommend NOT Rooting! This is only if you don't want to lose any functionality of your device.
Click to expand...
Click to collapse
Thanks for that. I will probably have to trip knox as i want fingerprint functionality.
Have you got a link handy to a guide with download links and a how to?
usmxn said:
Thanks for that. I will probably have to trip knox as i want fingerprint functionality.
Have you got a link handy to a guide with download links and a how to?
Click to expand...
Click to collapse
Yeah, no problem.
Here's UniKernel: http://forum.xda-developers.com/gal...d-development/kernel-stockmod-kernel-t3100395
Download the ODIN Flashable version
ODIN: http://odindownload.com/SamsungOdin/#.VpLZkRUrLIU
Tutorial is quite easy, (This is to only root STOCK Firmware):
1. Download the files you need (UniKernel, ODIN)
2. Turn on Developer Mode (Go to Settings > About Phone, and Spam Tap the Build Number Until it says Developer Mode Turned On) And make sure to enable OEM Unlocking
3. Turn Off the Device and Boot in to Download Mode by Holding Down the Vol. Down, Home Button, and Power Button simultaneously until a cyan screen appears. Then press Vol. Up and you should see ODIN Mode in RED
4. Plug in your device to your pc and launch up ODIN.
5. Go ahead and check the box for AP and browse for the .tar file for UniKernel.
6. Click start and ODIN will begin to flash the kernel.
7. The phone should reboot and then check to see if the Kernel Version in Settings > About Phone says UniKernel.
8. If it does then you should be rooted and have SuperSU installed under Apps.
First of all I wanna say that; I take no credit (nor responsibility) for simply linking to someone else's work (posted by kep2008.)
I'd just like to bring some attention to this great little mod originally created for the P9.
!!Only tested, and confirmed working on
L09C432B360!!
Features are:
Deodexing your system.
Disable all system apps in the standard application manager.
Allow fingerprint unlock after a reboot.
Open fully Quickpanel swipe from the right side of the screen (without double swipe).
Virtual Lock button in statusbar (click on the signal cluster icons).
CallRecord.
Rom Control (source here).
Show/hide network type (when wi-fi enabled).
USB Plug/Unplug disable wake up.
Remove high volume warning for headphones.
Change low and critical battery warning percentages.
It is labeled being for the P9 "B361", though I have tested this mod, found it fully working on L09C432B360, and without any issues.
Before flashing/testing, do a backup of data and system!
Link to thread/DOWNLOAD
https://forum.xda-developers.com/p9/themes/mod-low-battery-notification-t3534483/post70458512
Need root?
Is this mod need device rooted??
Laddu_ss said:
Is this mod need device rooted??
Click to expand...
Click to collapse
No, but if you unlock your bootloader some apps might stock working.
zinko_pt said:
No, but if you unlock your bootloader some apps might stock working.
Click to expand...
Click to collapse
Of course your device needs to be rooted!!
I am B350 with FRDl02.. will this work.. Does this include long press volume keys to skip music tracks as mentioned in the original thread..???
NeophyteGS2 said:
Of course your device needs to be rooted!!
Click to expand...
Click to collapse
Why?
Isn't this a zip file (configuration change) to be flashed in TWRP? You can apply camera mod without root, so why wouldn't this one?
zinko_pt said:
Why?
Isn't this a zip file (configuration change) to be flashed in TWRP? You can apply camera mod without root, so why wouldn't this one?
Click to expand...
Click to collapse
That's exactly what it is, a flashable zip. Any changes to the filesystem requires root
NeophyteGS2 said:
That's exactly what it is, a flashable zip. Any changes to the filesystem requires root
Click to expand...
Click to collapse
You don't need root to unlock your bootloader, install a custom recovery and flash zips. It's kind of silly not to root in this case, but it's not technically needed. In fact, you need to do all of those thing first before you can root your phone. So not rooting is simply skipping the last step.
sic0048 said:
You don't need root to unlock your bootloader, install a custom recovery and flash zips. It's kind of silly not to root in this case, but it's not technically needed. In fact, you need to do all of those thing first before you can root your phone. So not rooting is simply skipping the last step.
Click to expand...
Click to collapse
Sorry, I'm not trying to be rude but just trying to prevent people soft bricking. Without root, dm-verity is still enabled and any changes to the /system partition will prevent your device from booting. The very first mod (deodexing system apps) is making changes to your /system and will trip dm-verity
Hello everyone,
As a first time noob trying to root my Sony Xperia Z5 Compact (E5803), I lost my DRM keys since I made no backup. Now I am searching for a way to get the functionality of the camera, bluetooth, x-reality, and more back. I currently still have an unlocked bootloader and am running stock Android Nougat (32.3.A.0.376). Can someone please tell me how I can restore the DRM keys and the TA partition? I don't need root anymore, and I have had no luck making TWRP recovery work.
Please, I just desperately want my phone to work as it did before.
Thank you very much in advance!
Gdhgeorge1 said:
Hello everyone,
As a first time noob trying to root my Sony Xperia Z5 Compact (E5803), I lost my DRM keys since I made no backup. Now I am searching for a way to get the functionality of the camera, bluetooth, x-reality, and more back. I currently still have an unlocked bootloader and am running stock Android Nougat (32.3.A.0.376). Can someone please tell me how I can restore the DRM keys and the TA partition? I don't need root anymore, and I have had no luck making TWRP recovery work.
Please, I just desperately want my phone to work as it did before.
Thank you very much in advance!
Click to expand...
Click to collapse
If your DMR Keys are deleted and you have no backup of them, than there are gone, it is not possible to get them back.
You can use a custom kernel that 'tells' the DRM keys are there, that fixes your issue.
Somewhere there is an instruction how to build your own kernel (super easy) with DRM fix. I couldn't find it so good luck looking for it
Horst the Animal said:
If your DMR Keys are deleted and you have no backup of them, than there are gone, it is not possible to get them back.
Click to expand...
Click to collapse
Thanks for replying! Yeah, I assumed that would be the case. But I found this post that says I can flash a "drmrestore" zip package so I can simulate that the keys are still there: https://forum.xda-developers.com/crossdevice-dev/sony/xperia-z1-z2-z3-series-devices-drm-t2930672
The thing is, in order to flash it, I need TWRP recovery, right? I have been unable to successfully install TWRP. Is there an easy way to install it?
Thanks again!
harry_turtle said:
You can use a custom kernel that 'tells' the DRM keys are there, that fixes your issue.
Somewhere there is an instruction how to build your own kernel (super easy) with DRM fix. I couldn't find it so good luck looking for it
Click to expand...
Click to collapse
Thanks a lot for replying! If I find this post where I can create my own kernel, I will have to unlock the bootloader again and flash the new custom firmware using flashtool, right?
Also, will I have to downgrade to Lollipop, since Nougat is pretty new on Sony phones and there's no drm fix for that?
Thanks again!
My advice to you in your situation.
dont worry about building your own kernel. I have attached the Androplus Kernel for z5c, nougat build 376 - flash this kernel onto your phone.
You have adb right?
1. unzip the attachment on this post to get the boot.img file (the androplus kernal for your current build)
2. Turn off your phone, and unplug from USB
3. Go into fastboot mode - Hold Volume Up and plug in USB cable, notice LED turns blue.
4. Run the commant "fastboot flash boot boot.img" (takes about 2 seconds to complete)
Boot your phone, go into Settings -> Display -> Image enhancement . Then check X-Reality is working by toogling it off and on and see if the image of the tomatos changes colors. If the tomatoes change color, then congratulations - you dont have to worry about your lost DRM keys! You have full functionality!
Im pretty sure everything will be ok after this. It's a great kernel - good battery and all the functionality is there.
You do not need TWRP, you do not need to downgrade to lollipop or marshmellow or anything like that.
Will try!
Dean F said:
My advice to you in your situation.
dont worry about building your own kernel. I have attached the Androplus Kernel for z5c, nougat build 376 - flash this kernel onto your phone.
You have adb right?
1. unzip the attachment on this post to get the boot.img file (the androplus kernal for your current build)
2. Turn off your phone, and unplug from USB
3. Go into fastboot mode - Hold Volume Up and plug in USB cable, notice LED turns blue.
4. Run the commant "fastboot flash boot boot.img" (takes about 2 seconds to complete)
Boot your phone, go into Settings -> Display -> Image enhancement . Then check X-Reality is working by toogling it off and on and see if the image of the tomatos changes colors. If the tomatoes change color, then congratulations - you dont have to worry about your lost DRM keys! You have full functionality!
Im pretty sure everything will be ok after this. It's a great kernel - good battery and all the functionality is there.
You do not need TWRP, you do not need to downgrade to lollipop or marshmellow or anything like that.
Click to expand...
Click to collapse
Thank you so, so much! I will try this and report back with my results!
Dean F said:
My advice to you in your situation.
dont worry about building your own kernel. I have attached the Androplus Kernel for z5c, nougat build 376 - flash this kernel onto your phone.
You have adb right?
1. unzip the attachment on this post to get the boot.img file (the androplus kernal for your current build)
2. Turn off your phone, and unplug from USB
3. Go into fastboot mode - Hold Volume Up and plug in USB cable, notice LED turns blue.
4. Run the commant "fastboot flash boot boot.img" (takes about 2 seconds to complete)
Boot your phone, go into Settings -> Display -> Image enhancement . Then check X-Reality is working by toogling it off and on and see if the image of the tomatos changes colors. If the tomatoes change color, then congratulations - you dont have to worry about your lost DRM keys! You have full functionality!
Im pretty sure everything will be ok after this. It's a great kernel - good battery and all the functionality is there.
You do not need TWRP, you do not need to downgrade to lollipop or marshmellow or anything like that.
Click to expand...
Click to collapse
I apologize for replying with my report this late.
It turns out I re-locked my bootloader in the process when I flashed Android Nougat, since I had bricked it temporarily. To do the procedure you mentioned above, I need to have it un-locked, correct?
If that is the case, when I try to unlock the bootloader, I cannot access fastboot because whenever I press VOL UP key with adb, the light flashes blue and then red and then boots into the OS normally. Same with flashmode (the light turns green, and then red, finally booting into the OS).
Does anyone have a solution for this, please?
Thank you very much!
Go into Developer settings and make sure the allow OEM unlocking option is enabled. Then follow sony's unlocking instructions. Once thats done, try again.
Dean F said:
Go into Developer settings and make sure the allow OEM unlocking option is enabled. Then follow sony's unlocking instructions. Once thats done, try again.
Click to expand...
Click to collapse
Thank you for your reply, Dean F.
OEM unlocking option and USB debugging were already enabled. It should have technically been working by now. Could it have something to do with some drivers I have to re-install?
It worked!!
Dean F said:
Go into Developer settings and make sure the allow OEM unlocking option is enabled. Then follow sony's unlocking instructions. Once thats done, try again.
Click to expand...
Click to collapse
UPDATE:
I was able to bypass the blue-red notification light problem and was able to unlock the bootloader and flash the boot.img file, so camera and X-Reality are working normally now!! Thank you so, so much for your help!
I have one question, please. Will I lose the camera functionality and X-Reality, etc., if I re-lock the bootloader?
Also, in the future, if there are any updates to the Nougat OS, will they break these functions once again?
Thanks again!
Gdhgeorge1 said:
UPDATE:
I was able to bypass the blue-red notification light problem and was able to unlock the bootloader and flash the boot.img file, so camera and X-Reality are working normally now!! Thank you so, so much for your help!
I have one question, please. Will I lose the camera functionality and X-Reality, etc., if I re-lock the bootloader?
Also, in the future, if there are any updates to the Nougat OS, will they break these functions once again?
Thanks again!
Click to expand...
Click to collapse
You can lock the bootloader again, however I dont think there is any point in doing that. You should not use auto updates anymore, or yes, it will break those functions. Auto updates technically never work on any rooted phone. If you want to updateto a newer build you will need download it and flash it with xperifirm/flashtool (which is a good reason to keep your bootloader permanently unlocked). You've already lost your DRM keys, so I think your phone should remain a rooted model for the rest of its life. Really no point in going back to stock with no keys.
Personally, I am also running 376 build, with the androplus kernel, debloated (i debloated with another kernel, once finished, then used androplus). I removed even the software update and support apps. I applied the volume fix (if you are having the low volime issue?). Considering this phone is running Android 7.0, already has the best kernel (androplus), i think its safe to leave the phone like this for the remainder of its life. I dont really care about any minor upgrates to nougat, and we are not getting Android 8.0. so I recommend if everything is working now, just leave the phone in its current state. will save you a lot of stress.
Dean F said:
You can lock the bootloader again, however I dont think there is any point in doing that. You should not use auto updates anymore, or yes, it will break those functions. Auto updates technically never work on any rooted phone. If you want to updateto a newer build you will need download it and flash it with xperifirm/flashtool (which is a good reason to keep your bootloader permanently unlocked). You've already lost your DRM keys, so I think your phone should remain a rooted model for the rest of its life. Really no point in going back to stock with no keys.
Personally, I am also running 376 build, with the androplus kernel, debloated (i debloated with another kernel, once finished, then used androplus). I removed even the software update and support apps. I applied the volume fix (if you are having the low volime issue?). Considering this phone is running Android 7.0, already has the best kernel (androplus), i think its safe to leave the phone like this for the remainder of its life. I dont really care about any minor upgrates to nougat, and we are not getting Android 8.0. so I recommend if everything is working now, just leave the phone in its current state. will save you a lot of stress.
Click to expand...
Click to collapse
Thanks for replying. My phone is actually not rooted, I just checked with the Root Checker app from the Play Store. Besides, there is no SuperSu or Superuser apps installed. Additionally, in the Xperia Service Menu, it says "Bootloader unlock allowed: Yes," so I guess this means the bootloader was re-locked somehow when I flashed the boot file.
Form the looks of things, I'm back where I started before losing the DRM keys, minus the stock Sony music equalizer (in which, even though the controls can be changed, the sound itself doesn't change). I'm guessing there's no fix for that, right?
Anyway, I checked the volume and it sounds fine, just like it did before.
Thank you so much for your assistance, Dean F!
Gdhgeorge1 said:
Thanks for replying. My phone is actually not rooted, I just checked with the Root Checker app from the Play Store. Besides, there is no SuperSu or Superuser apps installed. Additionally, in the Xperia Service Menu, it says "Bootloader unlock allowed: Yes," so I guess this means the bootloader was re-locked somehow when I flashed the boot file.
Form the looks of things, I'm back where I started before losing the DRM keys, minus the stock Sony music equalizer (in which, even though the controls can be changed, the sound itself doesn't change). I'm guessing there's no fix for that, right?
Anyway, I checked the volume and it sounds fine, just like it did before.
Thank you so much for your assistance, Dean F!
Click to expand...
Click to collapse
Correct your phone is not rooted because the androplus kernel is not a rooted kernel. It is simply a custom kernel with some optimizations, and includes the DRM fix. If you want to do some maintenance while rooted, flash a rooted kernel (i will attach one to this post for you). Once rooted do what you need to do - like debloat,remove apps with Titanium Backup, and once you are finished - flash the Androplus kernel again. The idea is just to give you root for a tempory peroid to customize your device, before going back to a safer, optimized, non rooted state for every day usage.
If you have androplus kernel, i don't believe it is possible to be in a state where DRM functions are not working, as it contains the kernel DRM fix.
Dean F said:
Correct your phone is not rooted because the androplus kernel is not a rooted kernel. It is simply a custom kernel with some optimizations, and includes the DRM fix. If you want to do some maintenance while rooted, flash a rooted kernel (i will attach one to this post for you). Once rooted do what you need to do - like debloat,remove apps with Titanium Backup, and once you are finished - flash the Androplus kernel again. The idea is just to give you root for a tempory peroid to customize your device, before going back to a safer, optimized, non rooted state for every day usage.
If you have androplus kernel, i don't believe it is possible to be in a state where DRM functions are not working, as it contains the kernel DRM fix.
Click to expand...
Click to collapse
Excellent, I see now, thanks!
Well, what I wanted before starting the entire process was a permanent root solution, one that would allow me to access features like Root Explorer on ES File Explorer, or extra features in Link2SD and such, when the opportunity arose. That is what I did with all my previous smartphones, even a Sony Z1 Compact, but this has been the hardest phone to root I've ever handled.
After all the trial and error I've faced, I will take your good advice and leave it as is for now. In the future, I will flash the rooted kernel when I need to use those functions, and use the androplus kernel you had sent me previously to get it back to normal.
Thank a bunch again for all your help, Dean F. You revived my phone, so to speak!
Cheers!
Im considering getting one but i have few questions:
1. Is/will it be possible to lock the bootloader? (Not relock, just lock aka return it to original?)
2. Is it possible to have paralel apps? Like Island app but no root needed?
3. Is it possible to block bloat installing every update/disable the wizard? (Again, no root)
4. Can you hide/disable every unwanted app or via adb?
5. Hows watching movies on it?
6. Will custom roms exist?
7. Apparently Samsung doesnt use A/B. Is this true?
Korothi said:
Im considering getting one but i have few questions:
1. Is/will it be possible to lock the bootloader? (Not relock, just lock aka return it to original?)
Click to expand...
Click to collapse
Please clarify on what you're asking. The bootloader comes locked by default. On unlockable devices, it is always possible to relock the bootloader, but you must perform a clean flash of the factory firmware before doing so. Attempting to lock the bootloader on custom firmware will render your device inoperable.
Korothi said:
2. Is it possible to have paralel apps? Like Island app but no root needed?
Click to expand...
Click to collapse
What do you mean by "parallel apps"?
Korothi said:
3. Is it possible to block bloat installing every update/disable the wizard? (Again, no root)
Click to expand...
Click to collapse
No. Root is required to remove bloat.
Korothi said:
4. Can you hide/disable every unwanted app or via adb?
Click to expand...
Click to collapse
Not without root.
Korothi said:
5. Hows watching movies on it?
Click to expand...
Click to collapse
This is a flagship device; I would expect movies would be just fine.
Korothi said:
6. Will custom roms exist?
Click to expand...
Click to collapse
Eventually.
Korothi said:
7. Apparently Samsung doesnt use A/B. Is this true?
Click to expand...
Click to collapse
Yes. Samsung has continued to use the bespoke recovery model. This makes Samsung devices slightly more complicated to flash, but TWRP helps make it easier.
I managed to have a duplicated app (Revolut) setting up the personal area
For social like WhatsApp this feature is integrated and easier.
V0latyle said:
Please clarify on what you're asking. The bootloader comes locked by default. On unlockable devices, it is always possible to relock the bootloader, but you must perform a clean flash of the factory firmware before doing so. Attempting to lock the bootloader on custom firmware will render your device inoperable.
Click to expand...
Click to collapse
Korothi said:
Im considering getting one but i have few questions:
1. Is/will it be possible to lock the bootloader? (Not relock, just lock aka return it to original?)
Click to expand...
Click to collapse
Worth to mention, Once you unlock bootloader and flash custom binary, you can relock bootloader later after flashing stock firmware first but still it leaves footprint and certain features will be stopped working forever. e.g Samsung Pass and Pay and may be more.
V0latyle said:
No. Root is required to remove bloat.
Click to expand...
Click to collapse
V0latyle said:
Not without root.
Click to expand...
Click to collapse
Yes you can remove, disable unwanted bloatware via ADB commands. Personally I've disabled samsung dex and similiar unwanted programs, removed swiftkey and other bloat....
Klaudas said:
Yes you can remove, disable unwanted bloatware via ADB commands. Personally I've disabled samsung dex and similiar unwanted programs, removed swiftkey and other bloat....
Click to expand...
Click to collapse
Any guide and list of what is safe to remove?
Fl1nt91 said:
Any guide and list of what is safe to remove?
Click to expand...
Click to collapse
There is a guide. Search XDA for this thread "Samsung Galaxy One UI - Optimization Guide". You will find there everything you need to debloat by your needs.
dr.ketan said:
Worth to mention, Once you unlock bootloader and flash custom binary, you can relock bootloader later after flashing stock firmware first but still it leaves footprint and certain features will be stopped working forever. e.g Samsung Pass and Pay and may be more.
Click to expand...
Click to collapse
Safetynet fix will not help?
Also what i meant was not relock state for bootloader. I meant lock. For example MSM tool in oneplus locks bootloader (locks, not relocks)
Also "parallel apps" is a feature where you can setup 2 discords for example. It can be built in or if you have root - island app.
Korothi said:
Safetynet fix will not help?
Also what i meant was not relock state for bootloader. I meant lock. For example MSM tool in oneplus locks bootloader (locks, not relocks)
Also "parallel apps" is a feature where you can setup 2 discords for example. It can be built in or if you have root - island app.
Click to expand...
Click to collapse
I don't understand still between lock and relock
As explained above by @V0latyle default state of device is locked. If you want you can unlock it. But once you unlock and flash custom binary you can never lock again as same state before you unlocked. You can relock bootloader with missing some features forever. Nothing can help to restore said functions.
Samsung have two features which give you dual app
1.Dual Apps
2.Secure folder
With both these utilities you can use same app in two environments. Again not all apps may supported.
dr.ketan said:
I don't understand still between lock and relock
As explained above by @V0latyle default state of device is locked. If you want you can unlock it. But once you unlock and flash custom binary you can never lock again as same state before you unlocked. You can relock bootloader with missing some features forever. Nothing can help to restore said functions.
Click to expand...
Click to collapse
To expand on this: Samsung uses Knox Guard and other features to detect whether custom images have been flashed to the device. If this is true, some apps and functions that depend on Knox status may not work.
This is in contrast to other OEMs such as Google - the Pixel series can be restored to factory stock with a locked bootloader, and there will be no trace of the device ever having been modified.
What you can do, on either stock or custom firmware, as long as you're rooted with Magisk, is use Magisk modules such as Universal SafetyNet Fix to spoof device responses to Play Integrity attestation, as well as "hide" Knox status. However, again, this requires root. Magisk modules cannot be used without Magisk root.
To try to explain this simply:
Stock firmware, never unlocked: Knox OK: secure functions will work.
Stock firmware, locked but previously unlocked, custom firmware never installed including Magisk patch and/or recovery, Knox should be OK.
Stock firmware, locked but previously unlocked with custom firmware, Knox tripped: secure functions will not work.
Stock/custom firmware, unlocked, rooted with Magisk, attestation responses fixed via Magisk module: Knox status should not matter, Android/Google secure functions should work but Samsung apps that depend on Knox may not.
It is not possible to reset Knox status once tripped.
Therefore, if the device has ever been modified, even if it's just a Magisk patch, re-locking the bootloader will not return it to the "pure" factory state. So, if you are wondering whether to unlock the bootloader, understand that once anything is modified, you are committed and there is no way back. If you don't intend on modifying anything, don't unlock.