yashsingh1/xdaforums huggingface dataset:
[Sony Cross-Device General] theplagueisback:
The guide says to lock the boot loader and without restarting the phone to flash the FTF, well the problem is that after locking the boot loader again the phone restarts automatically, without unplugging the cable.

I followed the guide but I'm stuck at the portion where it says to reboot the phone and let it turn on for the first time before shutting it down again to re-lock the boot loader and flash the kernel. When I turn the phone ON at this point the SONY logo does not show up when I turn it on and the phone doesn't boot up, it will vibrate though.

I have a Z1 6943;

Here's my log:

12/044/2015 09:44:58 - INFO - Relocking device
12/044/2015 09:44:58 - INFO - Writing TA unit : [00, 00, 08, B2, 00, 00, 00, 00]
12/044/2015 09:44:58 - INFO - Relock finished
12/045/2015 09:45:00 - INFO - Ending flash session
12/045/2015 09:45:00 - INFO - You can now unplug and restart your device
12/045/2015 09:45:00 - INFO - Device connected in flash mode
[B]12/045/2015 09:45:01 - INFO - Device disconnected[/B]
12/045/2015 09:45:03 - INFO - Device connected in flash mode
12/045/2015 09:45:04 - INFO - Selected Bundle for Sony Xperia Z1 Compact (D5503). FW release : 14.3.A.0.757. Customization : Generic UK
12/045/2015 09:45:04 - INFO - Preparing files for flashing
[Sony Cross-Device General] specter16:
reflash FTF file in flashmode
[Sony Cross-Device General] theplagueisback:
Thanks man, I was flashing the wrong FTF, it was for the Z1 Compact. I downloaded the correct one for the Z1, but an older version that contained the TA partition as well (C6943_14.2.A.0.290) and installed it, then the phone booted.

Then I turned it off and unlocked the boot loader in flash mode again, then I flashed a kernel and rebooted in CWM where I could install CM12 and right after that install the zip that restores the DRM function.

The phone is up and running with CM12 but I can't tell if BIONZ is working or not, the service menu is not available on this ROM and I'm starting to think that the DRM keys are useless in CyanogemMod ROMS.

Cheers!
[Sony Cross-Device General] specter16:
does this operation will erase the internal storage ?
[Sony Cross-Device General] theplagueisback:
I did erase the internal storage inside CWM before flashing CM12.
[Sony Cross-Device General] zirado:
Yes, do a backup.
[Sony Cross-Device General] RyTekk:
Add version number to the zip/thread title to people know did you update the zip or not.
[Sony Cross-Device General] Bazooka Tooth:
Anyone else having trouble getting Androplus kernel on the z2 to work with this mod?
[Sony Cross-Device General] lvnatic:
Can anyone please confirm if this method works for the xperia z3 tablet compact?

The model is wifi 16gb or sgp611.
[Sony Cross-Device General] jimRnor:
you can try do it and tell most of the users will it work or not :)

Even you failed your device wont crashes ;)
[Sony Cross-Device General] iArvee:
You can test if BIONZ is working by taking a picture (using front camera, lot easier) in dark light. After you take a picture, you should see your picture being "processed" (noise removed). If the noise goes away, then BIONZ works. If not, then it doesn't.

Please report back soon, because I'm planning to flash CandyRom on my Z2. :D If it doesn't work, then I might just stick with eXistenZ then.
[Sony Cross-Device General] danidarklord:
I don't think bionz worked on cm12 or any custom rom except stock rom of course.I'm using Z1 btw and using multirom with stock rom with working drm and cm12 as 2nd rom. Both rom has nice camera but on front facing camera, the cm12 is noisy as hell.
[Sony Cross-Device General] BlackSoulxxx:
My result after doing DRM restore process with .157 on Z1

1st: Original screenshot

2nd: With SuperVivid and captured in Albums

3rd: Same but X-reality

It's really working! Will update post later with BIONZ test (Dark enviroments with stock Sony cam)
[Sony Cross-Device General] iArvee:
So you mean to say that I can use Multirom (Stock & CM12[CandyRom]) and DRM is restored for Stock!? If so, I'm definitely trying that.
[Sony Cross-Device General] danidarklord:
Yes, I have working x-reality and bionz on stock using multirom.?
[Sony Cross-Device General] iArvee:
Thanks! Just installed Multirom and have CandyRom as my secondary ROM. DRM stuff intact on eXistenz!
[Sony Cross-Device General] dawidek1258:
Does ROM must be odexed or deodexed to flash restore patch
[Sony Cross-Device General] jimRnor:
deodexed for best working solution
[Sony Cross-Device General] Taftus:
I manage to flash this drm patch but I don't know if I see the different >_<

Is there a way for 100% to see it? Or anywhere to check that it's there.
[Sony Cross-Device General] ppaphyo:
Hello : Bro

I want to do my z2 but when i read, 17.1.A.2.69 ftf is for T-Mobile, Orange & unbranded. Which one can i use for those???
[Sony Cross-Device General] evildog1:
so how to deodex the rom?
[Sony Cross-Device General] jimRnor:
probably it will appear the different when you take a picture in darker place, you will see a little "processing" step doing by BionZ

Any one of these, just remember you need to flash the ftf (no national & carrier differences)with the TA partition.

find a deodexed rom or stock rom on your devices android development :)
[Sony Cross-Device General] evildog1:
ok but i better not flash any rom...
[Sony Cross-Device General] jimRnor:
Actually if you can find the deodex patch you may no need to flash the rom, but it is hard to find since some new updates no one work to the deodex pack.
[Sony Cross-Device General] Bazooka Tooth:
Anyone? My phone completely soft bricks when I try to flash this kernel it works with other ftf's though
[Sony Cross-Device General] evildog1:
what firmware version do you have?
[Sony Cross-Device General] Bazooka Tooth:
4.4.4-23.0.1.a0.167
[Sony Cross-Device General] evildog1:
ok and what is your country and your operator?

you can take a look at sony xperia firmware list, download it for your Z2 and your country and re-flash it.

http://xdaforums.com/crossdevice-dev/sony/pc-xperifirm-xperia-firmware-downloader-t2834142
[Sony Cross-Device General] Bazooka Tooth:
I have UK unbranded because I'm from UK

I don't think it's the firmware as it works fine when I flash Andro plus without the drm fix
[Sony Cross-Device General] Taftus:
Somehow I manage to fail to make patch work at first time, but I made a second tried and than saw the different when I watch video in different mode and pictures.

And I also tried out camera in low light and god damn what a different. I did not even think about this drm at first place, did not even know it made features go away until I read about it.

But I am super happy to have these features back! I guess it we have to make the same step-by-step installing when Sony release Lollipop.

You guys rock! Keep up with the good work! This is only possible with people like you guys.
[Sony Cross-Device General] Araib93:
Is there a chance that this tutorial will work for Xperia SP? If so what changes are required if any?
[Sony Cross-Device General] sdjq:
Hi guys.i can not find FULL complete 17.1.A.2.69 ftf with TA partition for d6502.

Any one can help??
[Sony Cross-Device General] JoeSchmoe22:
+1
[Sony Cross-Device General] sdjq:
Not any help or dl link?
[Sony Cross-Device General] Sethi1985:
I´m from BRAZIL and the post on XDA with the firmware from my country didn´t have the TA partition either.

So i made it one by myself.

The name of the program to build your own image with TA in on a post i did a month ago on this thread (can´t remember now).

Check it out.. It was the only way to solve my LOST DRM.. mine is 100% working now :)
[Sony Cross-Device General] rodritank:
Sorry if this was answered before but will this work on Lollipop? Or any LP custom ROM?
[Sony Cross-Device General] danidarklord:
No. Only stock base ROM.
[Sony Cross-Device General] evildog1:
Hello. does unlocking bootloader bricks a device? my friend is very afraid of unlocking his Z2 tablet....
[Sony Cross-Device General] Isley_:
Anyone get this work on Z2? If yes, can explain me the process that you did, TIA.
[Sony Cross-Device General] @soka:
Hi,

I had success, on my Z2 D6503.

-unlocked bootlaoder ( flashtool )

-Flashed Sony_Xperia_Z2_D6503_Stock_ROM_17.1.A.2.69_TW_Taiwan_4.4.2_Kitkat.ftf

-Booted into system once, and then switched off.

-Unlocked bootloader (flashtool)

-Flashed v5 doomkernel via fastboot

- Entered recovery flashed 23.0.1.A.3.12_flashable.zip

-flashed Abricot kernel

works great!!!!

Even flash deodex zip after and still working good.

:good:
[Sony Cross-Device General] Taftus:
I hope this patch carry over to Lollipop for users that doesn't have there key. Otherwise I considering stay on currently version to use these functions.
[Sony Cross-Device General] marceldossantos91:
Agreed. Hopefully its compatible. I also unlocked before the locked bl root became available or i think many of us be screwed lol
[Sony Cross-Device General] leonmorlando:
Is there any way to know for sure if this worked? I can't tell a difference with the stock camera app, the screen looks pretty much the same to me, and the sound's still outstanding.
[Sony Cross-Device General] marceldossantos91:
Take any picture, go switch all xreality off, take a screenshot of the pic, go a second time except enable xreality, take a screen, third time on vivid mode, take a screen, then switch it off again and go to ur 3 pics, see if u notice a difference amongst comparing ur pics, if so xreality works, if xreality works so should all the rest. But i do agree this isnt like when we had our drm keys, there is still noise, just a bit less. If you take comparison shots you see a diff with and without it. But if u take a comparison between a locked BL with keys and unlocked BL with keys, u also notice locked is still better, that is my experience with this patch. It helps alot but the devs definitly should try to update this.
[Sony Cross-Device General] leonmorlando:
Yeah, I do see a small difference (better with X-reality on)

I have noticed, however, that every reboot I must clear the cache/data off of the camera app or it will crash when opening it, same with Walkman and many other Sony apps. If the apps don't crash, they won't give me all the options (metering and stabilizer for camera, ClearAudio+ for Walkman, etc)
[Sony Cross-Device General] leonmorlando:
Correction: It's every few hours. My Sony apps crash and then show less options than normal. I don't know if it has to do with mediaserver, but it sounds like it since it happens only with camera and walkman apps.
[Sony Cross-Device General] marceldossantos91:
That sounds more rom related though. On my D6603 i havent had such an issue. I would sugguest trying to install a stock rom zip and wipe /data and /system, since it doesn't write TA unit again if u flash via recovery u should still be safe to flash the drm patch again without needing flashtools. Else take it to the top and start flashing with ftf all over again, if ur issue persists it could be the ftf/rom your using, my best guess anyway, i have always used customized_UK ftf and it works stable. However if u seeing a difference with Xreality the features are working. Admittingly the noise reduction on camera doesn't always feel like its working though. But it does, just not as effectively as with the keys on.
[Sony Cross-Device General] apelamod:
i just did this to my z2 step by step....before flashing this mod camera not even work. so i think this work for me. after flashed this mod camera works again and takes better pictures without flash in darker places?

edit maybe i was wrong =D is there good samples about this mod?
[Sony Cross-Device General] leonmorlando:
You are absolutely right. I reflashed everything from scratch and the problem seems to be gone. Turns out I mistakenly downloaded a stock ROM from Malaysia instead of US. :silly:
[Sony Cross-Device General] someone755:
Just had to do this again to my Z3C but didn't have the patience for all the steps in the OP (never seen them before, even -- last time I did this I only flashed the FTF, and flashed the restore zip right after).

I flashed the FTF, flashed a custom kernel with a recovery, then booted into Android. After a few minutes I realized I'd forgotten to restore the DRM functions and decided to try my luck by just flashing the thing over the ROM. And weirdly enough, it worked!
[Sony Cross-Device General] BlAckXpeRia:
That is not weird. DRM functions archive is integrated in some stock-based roms and it works everytime.The procedure in post 1 has to be done just 1 time.
[Sony Cross-Device General] lvnatic:
I'm trying to do this on a xperia z3 tablet compact, and with no disrespect to the OP, but I really can't understand the instructions.

Requirements:

-The ftf that released by some of the awesome users to let z3 works

What do you mean by this? A custom ftf image or the latest stock Sony image?

Can someone with decent English skills please simplify the tutorial?

Again, no disrespect to the developer, but I just can't understand his English.
[Sony Cross-Device General] marceldossantos91:
Easiest way:

(Use only an ftf with TA partition, i am assuming you have downloaded flashtool and your firmware already)

1. Factory reset /wipe data via recovery and reboot to flash mode.

2. Flash ftf with flashtool

3. Relock bootloader and flash ftf again.

4. Unlock bootloader and install kernel of your choice via fastboot.

5. Install DRM patch through recovery of your choice.

6. Profit
[Sony Cross-Device General] ejderkaan:
I have z2 D6502 I can't find deodexed rom with stock rom is there??? I want to stock rom with deodexed...
[Sony Cross-Device General] apelamod:
Finally get it work for my Z2 D6503.

1. relock your bootloader with flastool.

2. other versions not worked for me. Flash full 17.1.A.2.69 D6503 https://docs.google.com/uc?id=0B0CMPLu7ByssUG40bjlmaGhjUjA&export=download

3. boot and settings usb debug and unknown app

and transfer all these files to your phone u can do that also when you are in recovery.

4. use Z2-lockeddualrecovery2.8.2-RELEASE.installer and select 3. Remember check when it ask communicate with PC other wise its not start install recovery.

5. when phone boot in recovery shutdown.

6. use flastool and unlock.

7. boot recovery do not wipe just install http://www.mediafire.com/download/jxsdc4oy9rummma/Xperia_Z2_D6503_23.0.1.A.0.167_Root_Recovery.zip

then http://www.mediafire.com/download/k4mb0pmf60h0246/fix_game.zip

then DRM restore and boot.

This one worked to me and you really see differense when you change x-reality setting. go and look at picture in gallery app.

effect comes little delay. just change x-reality settings and see.

Sorry my english hope you get it :D
[Sony Cross-Device General] leonmorlando:
After a week of taking tons of pictures and testing music heavily, I can say this definitely helps. (although I haven't been able to mirror my screen at all anymore after unlocking BL) I don't really remember what the camera quality was before unlocking because I come from a Samsung device and I thought the Sony BL was kinda like a KNOX thing that was only there to be annoying, so I unlocked it right away. Little did I know...

The sound though, I can say for sure it sounds better with the patched DRM keys than without it. Screenshots look better with Xreality ON.

Well, at least there are developers kind enough to provide a fix for people like me who mess with things they don't understand.
[Sony Cross-Device General] squall_20042001:
tested and worked like a charm on my old z1, and still working on my z ultra now
[Sony Cross-Device General] boilavera1980:
But from where do i get a ftf with a Ta partition?? Official ones dont have any like i saw.

And my phone is locked now. Do i really have to unlock, relock, unlock or what??

---------- Post added at 11:58 PM ---------- Previous post was at 11:46 PM ----------

So if i do it like that will it work?

Flash older FW to root

Unlock

Flash kernel

Flash Custom rom

Flash DRM patch

Profit???

thanks!

Edit :

So i see theres no way to keep root or am i blind??? I'm really confused here...

EDIT: Sorry! I was confused since i thought you lose root when you flash another tft than the older rottable. Did everything and its working perfectly fine :D
[Sony Cross-Device General] marceldossantos91:
This DRM patch is for unlocked BL, but if your still locked, do DRM backup and root first. As for FTF generally the customized fw's from flashtool have TA, in my case i used customized_UK and it had TA on it..
[Sony Cross-Device General] marceldossantos91:
the long awaited 5 o is here, i hope this patch will get an update soon... http://www.gizmobolt.com/2015/03/16...rmware-android-5-0-2-lollipop-update-rolling/ [EDIT} everyone can relax, the patch is working on stock Lollipop for those who didnt backup DRM keys, and so is root :D {EDIT 2} its partially working, it makes everything sharper, but causes album and walkman to FC, funny enough movies work, also creates a wierd crash in settings --> sound, causes it to crash.. but the enhancement definitly works so its partially working.
[Sony Cross-Device General] Nummer35:
Didnt work for me. Run into a bootloop :( tried it on a Z3C
[Sony Cross-Device General] boilavera1980:
Since theres no custom kernel for lollipop is there any need for unlocked bootloaders at the time?
[Sony Cross-Device General] marceldossantos91:
Im not to sure but.. i had it working on stock kernel with unlocked BL, but like i said, partially working.. it creates FC in album,walkman, and settings -->sound, try at your own risk..
[Sony Cross-Device General] ejderkaan:
Hi guys i have d6502 not d6503 and i want to pre-rooted stock rom with d6502 how can i find this rom i found only d6503 please help thank you...
[Sony Cross-Device General] Taftus:
Can you make a tutorial how to make this work on Lollipop? I have flash Lollipop with Flashtool but now I am clueless how to root it and install twrp to install drm patch. Which kernel to use with twrp?
[Sony Cross-Device General] marceldossantos91:
Flash androplus kernel, you will have working twrp, install root, install DRM patch, put it back onto flashtool except this time exclude everything but kernel, itll flash kernel.sin and bring back stock and phone will boot, except that DRM as warned will crash album, walkman, and settings √ sound. I took my DRM patch off and all worked fine again. After that you can install xz dual recovery.
[Sony Cross-Device General] Taftus:
I tried D6603_23.1.A.0.690_Customized_BAL_SuperSU_XZDR2.8.3-signed but it seems that Album and Walkman app does not work. And I got difficult to download my 4G Internet settings. So I guess it doesn't work very well. I did tried Androplus Kernel but it only give me Sony logo and stuck there. But I could boot in to twrp. So I don't know what I did wrong for it to not boot.

EDIT: I think I understand how you did, but I cannot seems to install Root, how did you do that? And how do you remove drm patch? Without re-install whole rom again. It seems you are right about album and walkman apps not working. I guess all we have to do is wait for a proper fix.
[Sony Cross-Device General] marceldossantos91:
a user from the AndroPlus kernel got it working but yes as mentioned, root only partially works, i used superSU-update v2.46, for me it installs correctly but it doesn't give access like it should, even when installing pro after checking the SU logs. Unfortanetely to get rid of DRM patch need to reflash ftf and start all over again, and as explained, you don't need andro to boot, just need its twrp, then go back to flashtool after your done with TWRP and flash kernel.sin, upon flashing with flashtool exclude everything but "kernel" which will only flash kernel.sin and loader.sin, which is kernel only, this will allow you to boot up and use the XZ dual recovery installer afterwords.. root however isn't whats breaking the album/walkman apps, its the DRM, but if you do notice the difference with/without, the DRM makes things sharper immediatly, so whatever it does it's working but creates an FC between specificly only album,walkman, and strangely enough if you go into settings and sound, you will notice it constantly FC's out of it, but does not happen without DRM patch
[Sony Cross-Device General] Taftus:
I guess we will have a difficult time when Sony keep update the firmware to keep drm patch up to date.
[Sony Cross-Device General] marceldossantos91:
yep pretty much, and about 60% of us did this before root exploit came out so we don't have DRM keys and rely on this lol
[Sony Cross-Device General] chesterr:
So you have the same issue? It's crashing right? and you didn't get to work it?

Cause I am about to install QuickPic and Google Music player.
[Sony Cross-Device General] marceldossantos91:
yep same issue, unfortunately no, i have been checking for a fix but to no avail. If i do find one ill post it up immediatly.. i just left mine without DRM for now, seems a pre-rooted ftf came out though so root is at least fixed..
[Sony Cross-Device General] Taftus:
For me I left out DRM and Root for now, but sure looking forward to stability Root and DRM fix. It's a jump from 4 to version 5 maybe that's why it have a compability problem.
[Sony Cross-Device General] rodritank:
Since this is also relevant, I am gonna post here what I posted in this thread: http://xdaforums.com/xperia-z2/general/attention-remote-play-finally-drm-z2-t3059061

The latest Playstation App and Remote Play actually WORKS on a DRM-less Z2 running stock Lollipop 5.0.2 (D6503 23.1.A.690, the Generic Baltic IIRC).

Since there's no root and recovery for Lollipop (as far as I know), it doesn't seem possible to apply this DRM fix to save the camera... However [MENTION=4699816]jimRnor[/MENTION], wouldn't it be possible to inject this fix right into the ftf file so we could flash it without root and recovery?
[Sony Cross-Device General] Nummer35:
That, mister, would be awesome.
[Sony Cross-Device General] marceldossantos91:
Root works somewhat fine on LP with pre rooted FTF. Got all my root apps working, the problem isnt installing its actually working still.. Issue is it creates FCs on album, walkman, and settings -- sound, movies still work ok.. And you can see in launcher and movies DRM works.. Its just got problems thats all. My best guess is the libs need to be updated for compatibility in album, walkman, and the wierd sound crash in settings i have no idea what thats all about.. Doesnt happen without the patch being installed
[Sony Cross-Device General] Nummer35:
What about the low light improvements (drm)?
[Sony Cross-Device General] sirizak:
Xperia Z Mirrorlink restored

Just wanted to thank you for this mod. Followed your guide and it worked perfectly on my Xperia Z. Also might want to note it restored my Mirrorlink functionality, which was actually why I tried the mod. Really stoked, thanks again. Hopefully it works just as well with the Lollipop roms!!
[Sony Cross-Device General] jimRnor:
Thanks for the supporting and help from you guys! :)

As some to the users (Z2,Z3 atm) are having their 5.0 update, the mod aren't work good to 5.0 since this is the big update through.

Both of the team are started to working it hard, for established the stable working to the 5.0, We will need some Z2,Z3 testers who are available to help us to test, if you interested, pm me ;)
[Sony Cross-Device General] rodritank:
How about the Remote Play?
[Sony Cross-Device General] Taftus:
That is great to hear! I am glad there's people like you guys that make this possible!
[Sony Cross-Device General] marceldossantos91:
I am uncertain about remote play, i dont own a PS4, but if you read a few posts back people are reporting working on LP without drm even.

---------- Post added at 05:44 AM ---------- Previous post was at 05:40 AM ----------

I've PM'd, more than happy to help with my D6603 z3 in testing :D