Related
WHAT YOU WILL ONLY NEED:
- Windows 7/8 and Flashtool.
- .77 (KitKat) Firmware
- .690 Firmware
- DRM LP fix in your SD card (DRM Function Restoration for Xperia Lolipop V2)
- Androplus LP ADV Kernel (I used Z3_ADV_stock_LP_v2)
- THIS GUIDE WILL RESTORE THE DRM KEYS FOR THE SONY FEATURES TO WORK AGAIN(CAMERA X-REALITY ETC...)
NOT UR ORIGINAL KEYS,
Be sure to have the LP DRM FIX in your SD card prior to flashing stuff.
- If your Bootloader is UNLOCKED, LOCK IT (Relock).
- Don't turn it on. If somehow it turns on, hard turn off it by holding VOL UP and POWER until it vibrates 3 times.
- Flash the .77 FTF (Flashtool).
You're back to .77 (KitKat)
- Let it boot till the language selection screen.
- Power it off.
Now you will be going to Lollipop with old TA features, plus a custom kernel so you can use Recovery.
- UNLOCK your bootloader now and:
- Flash the .690 FTF checking the "TA" box. Which means you are EXCLUDING the TA partition from .690 in order to keep the .77's. This is where the magic lies!
- Right now, you are already on Lollipop.
- Right after flashing it, flash the Androplus ADV LP kernelV2 (get it from the Androplus kernel site). That means you are going to get Recovery functions.
- Right after flashing the kernel, access the Recovery screen (holding VOL UP/DOWN when the Z3's led is purple) and FLASH the DRM Fix which should be in your SD card.
I didn't backed up earlier, Already lost my DRM, can I restore it still :$ ?
shakkirk said:
I didn't backed up earlier, Already lost my DRM, can I restore it still :$ ?
Click to expand...
Click to collapse
yes
look post 1
dennis46419 said:
yes
look post 1
Click to expand...
Click to collapse
U shure? If he did no backup and unlocked bl, they are gone as far as i know
shakkirk said:
I didn't backed up earlier, Already lost my DRM, can I restore it still :$ ?
Click to expand...
Click to collapse
Same question here. It is not clear from the first post whether this restores DRM after losing it.
I'm guessing it will work without original backups as there is no part of the tutorial where you restore from a back up. Looks more like a return to stock from any state.
Not that I'm an expert, last Sony I had was a Z1.
Sent from my Nexus 5
This guide will restore the drm keys for the sony features to work again(camera x-reality etc...)
not ur original keys,,added zip drm restore zip in first post
Deleted
I'am not sure if I got this right, please correct me if I'm wrong:
So using this method I will end up with a custom kernel with custom recovery and still got all Sony DRM features that are usually lost when unlocking the bootloader. How exactly does this work? My guess is that the TA partition is not deleted directly by unlocking the bootloader but when booting into Android by the CredentialManagerService. And this hack simply prevents the CredentialManagerService from deleting the TA partition. Am I right?
Edit: I think I got it wrong. This will only restore the Camer and Display features, but not Miracast. Am I right?
Thenetstriker said:
I'am not sure if I got this right, please correct me if I'm wrong:
So using this method I will end up with a custom kernel with custom recovery and still got all Sony DRM features that are usually lost when unlocking the bootloader. How exactly does this work? My guess is that the TA partition is not deleted directly by unlocking the bootloader but when booting into Android by the CredentialManagerService. And this hack simply prevents the CredentialManagerService from deleting the TA partition. Am I right?
Edit: I think I got it wrong. This will only restore the Camer and Display features, but not Miracast. Am I right?
Click to expand...
Click to collapse
Yes i think, i didn't test miracast
I did this procedure and it seems to have worked. I had some trouble with flashing when the bl was locked. I had to keep it unlocked the whole time. I had to flash several times due to some error messages in the flash tool.
After doing this can I flash a different LP customization (the US one) while keeping the TA information or do I have to downgrade to KK first, then go back to LP, doing this whole process again?
scottjb said:
I did this procedure and it seems to have worked. I had some trouble with flashing when the bl was locked. I had to keep it unlocked the whole time. I had to flash several times due to some error messages in the flash tool.
After doing this can I flash a different LP customization (the US one) while keeping the TA information or do I have to downgrade to KK first, then go back to LP, doing this whole process again?
Click to expand...
Click to collapse
Glad hear that worked, now remember everytime u flash a lolipop rom u have to flash again the drm restore zip and then reboot from recovery
frago21ps said:
Glad hear that worked, now remember everytime u flash a lolipop rom u have to flash again the drm restore zip and then reboot from recovery
Click to expand...
Click to collapse
Thanks. Do I only have to flash Lollipop, excluding TA in Flashtool, then the DRM restore zip? Or do I have to go back to KitKat each time?
scottjb said:
Thanks. Do I only have to flash Lollipop, excluding TA in Flashtool, then the DRM restore zip? Or do I have to go back to KitKat each time?
Click to expand...
Click to collapse
No just flash the lop without ta in flastool, no need to go back
frago21ps said:
No just flash the lop without ta in flastool, no need to go back
Click to expand...
Click to collapse
Question, how can you relock your bootloader if you don't have your TA backup?
Sent from my D6603 using XDA Free mobile app
ondrejvaroscak said:
Question, how can you relock your bootloader if you don't have your TA backup?
Sent from my D6603 using XDA Free mobile app
Click to expand...
Click to collapse
From flastool
frago21ps said:
From flastool
Click to expand...
Click to collapse
Of course
Dumb me.
Sent from my D6603 using XDA Free mobile app
what if i directly flash the zip from cm12's recovery maintaining the bootloader locked? (lazyness over 9000)
Anyone tested going from .77 KK to 23.1.A.0.726 ? There's no .690 for D5833
Waiting for confirmation that the AndroPlus kernel will wok on .726.
Hello Guys!
This Guide Is for those who use Computer,Laptops Rarely BUT For This u will Need A PC for First Step!
Lets Get started.
Requirements :-
Flashtool For PC.
Working TWRP Recovery.
Root Is Obvious.
Procedure :-
-First Backup your DRM Keys By Using Backup TA Tool.
-Then open flashtool and Hit The BLU button.
-Connect device In flashmode when it prompts.
-Then Unlock your Bootloader by the code you have received.
[Note - Unlocking bootloader for first time will wipe out your whole data including internal memory]
-After Unlocking Boot into TWRP recovery.
-Goto>Backup>Select TA and Start the process. (Rename the backup as UNlock BL if u want)
-Now Relock your Bootloader again by using Flashtool By hitting BLU button.
-Boot the phone into System and restore the drm keys [Must!]
-After that Reboot into recovery Goto>Backup>Select TA and BOOT IMAGE Also! and Start the process (Rename the backup as Lock BL if u want)
And Done!
Now there will be two backups Named UNLOCK BL and LOCK BL.
So Whenever you want to flash Kernels OR Custom Roms like AOSP,CM,PAC You wont Need a PC to unlock Bootloader!
And Whenever you want to Get back to stock just flash the Stock PRF or Stock Based Rom and Restore (Lock BL Backup) TA and Boot Image!
(Restoring TA From TWRP will also bring back your drm keys)
IF DRM KEYS ARE GONE THE CAMERA GETS WORST IN LOWLIGHT AND WARRANTY WILL ALSO BE VOIDED.
SO THIS GUIDE CAN HELP YOU IF YOU DONT USE PC MUCH AND IN FUTURE U WONT NEED A PC TO UNLOCK/RELOCK BL AND RESTORE DRM KEYS.
Njoy!
Hit Thanx If I helped!
Thnkx bro,worked perfectly for me
Hello working on "bootloader unlock allowed no" ??
daoskar said:
Hello working on "bootloader unlock allowed no" ??
Click to expand...
Click to collapse
Nope.
Quick question
does relocking your bootloader enables OTA updates from Sony !?
chawlasrijan said:
Quick question
does relocking your bootloader enables OTA updates from Sony !?
Click to expand...
Click to collapse
Yes!
SonyRiFle said:
Yes!
Click to expand...
Click to collapse
Thnx, was just making sure
chawlasrijan said:
Thnx, was just making sure
Click to expand...
Click to collapse
No problem As it restores the drm keys u'll get OTA updates and warranty will also b not voided
Never thought of unlocking and relocking this way
Thanks
sshivampp said:
Never thought of unlocking and relocking this way
Thanks
Click to expand...
Click to collapse
I also nvr thought of...Just gave a try n it worked... I Got this idea A year ago...Shared it now
daoskar said:
Hello working on "bootloader unlock allowed no" ??
Click to expand...
Click to collapse
You can unlock the bootloader by s1tools for xperia
SonyRiFle said:
You can unlock the bootloader by s1tools for xperia
Click to expand...
Click to collapse
Really? On which devices? How exactly?
And I have a question about OP.
Can I change the order the backuping TA partition in TWRP?
So may I make a backup from locked BL and TA before I unlocking my BL? Then I unlocking and making backup from unlocked TA or I just can make in your order? (Unloking - > making backup from unlocked BL -> relocking -> making backup from locked BL)
Thanks in advance.
air001 said:
Really? On which devices? How exactly?
And I have a question about OP.
Can I change the order the backuping TA partition in TWRP?
So may I make a backup from locked BL and TA before I unlocking my BL? Then I unlocking and making backup from unlocked TA or I just can make in your order? (Unloking - > making backup from unlocked BL -> relocking -> making backup from locked BL)
Thanks in advance.
Click to expand...
Click to collapse
First backup Locked BL...It will save your drm keys intact
Yesterday i've unlocked the bootloader and try AOSP.
Then i go back to stock rom and relocked the bootloader.
Now camera app always say, another application uses the camera and won't start.
alternative camera apps also don't work.
don't backup any drm keys.
is there any chance to get it working?
[-silver-] said:
is there any chance to get it working?
Click to expand...
Click to collapse
You'll need to flash a stock rom and wipe everything in the process.
I had the same problem and flashing using the flashtool with all wipe options checked didn't fix the problem. Any other ideas?
mistarose said:
I had the same problem and flashing using the flashtool with all wipe options checked didn't fix the problem. Any other ideas?
Click to expand...
Click to collapse
I would assume that relocking it without the DRM keys has broken it. To rewrite the TA backup img to the phone you have to use flashtool version 922.3 If I was in your position with or without a drm backup I would try using that version of the flashtool to flash a FW and try the relock procedure again to see if it makes a difference. Have you unlocked it again to see if it brings the camera back?
XperienceD said:
I would assume that relocking it without the DRM keys has broken it. To rewrite the TA backup img to the phone you have to use flashtool version 922.3 If I was in your position with or without a drm backup I would try using that version of the flashtool to flash a FW and try the relock procedure again to see if it makes a difference. Have you unlocked it again to see if it brings the camera back?
Click to expand...
Click to collapse
Ok I unlocked the device again using Sony Mobile Flasher. I'm now flashing an Android 6 ftf file from the UK. I have the TA backup img but am not sure how to restore it. Apparently the Backup TA version 1 had a restore option in the CMD menu. But all the 2nd version does is backup a TA partition key from what I can tell.
Any help restoring the key would be greatly appreciated.
Edit: Ok now I've booted up without locking the boot loader and the camera is working. So now I should be able to lock the bootloader and have it stay working right? But how do I do that?
mistarose said:
So now I should be able to lock the bootloader and have it stay working right? But how do I do that?
Click to expand...
Click to collapse
Lets see. Download Flashtool version 9.22.3 and download Rootkernel, use RK to create a DK.ftf from your TA.img then flash that using the 9.22.3 version of the flashtool. To create a DK.ftf open a cmd window in the Rootkernel folder and enter flash_dk TA.img DK.ftf.
Thank you for the help.
I was using a higher version of the Flashtool so I found the 9.22.3 version and got that installed. I found the Rootkernel and used it to create a DK.ftf successfully from my TA.img.
I flashed that successfully and rebooted the phone but it didn't work. This also didn't automatically relock the device like I read it should of.
I then started over by flashing the Android 6.0 ftf file again. Then I used the flashtool to relock the device. Finally, I flashed the DK.ftf file one more time.
I just booted up the phone and now the camera isn't working with the same error I had before. I also checked the security menu of the phone and it still says the DRM files are not there.
I'm really not sure why it's not working.
EDIT: See below.
mistarose said:
I then started over by flashing the Android 6.0 ftf file again. Then I used the flashtool to relock the device. Finally, I flashed the DK.ftf file one more time.
Click to expand...
Click to collapse
Lets try one last thing. From reading the threads here apparently flashing the DK.ftf is only for those with an unlocked BL wanting to keep DRM functions so places the TA in a location that DRM-fix kernels can pickup. To rewrite the original partition you have to do the following...
shoey63 said:
CONFIRMATION OF TA RESTORE!
- Unlocked bootloader
- Flashed TWRP
- Pushed TAbackup.img (I renamed it) to /data/local/tmp
- Did
Code:
adb shell dd if=/data/local/tmp/TAbackup.img of=/dev/block/bootdevice/by-name/TA
- Rebooted
- Everything back as it was. Original TA restored and DRM keys all active:victory:
shoey63 said:
Then flash a stock ftf.
Click to expand...
Click to collapse
NOTE/EDIT: Due to dm-verity, you cannot restore TA on a rooted phone (Z3+ onwards). It won't boot up. Boot and system have to be pure untouched stock.
Click to expand...
Click to collapse
...if this way fails then it's time to talk to Sony or just run an unlocked BL permanently.
Flashing DK.ftf isn't enough. You need to make a boot.img with DRM fix as well using rootkernel.
shoey63 said:
Flashing DK.ftf isn't enough. You need to make a boot.img with DRM fix as well using rootkernel.
Click to expand...
Click to collapse
They're trying to relock but the camera stops working when they do so just trying any method at this point.
What is the easiest way to completely reset my rooted android?
jdugery said:
What is the easiest way to completely reset my rooted android?
Click to expand...
Click to collapse
By reset do you mean restore it to "out of box" state? Then you need to restore your pre-root backup or flash stock via fastboot. But at this time locking the bootloader is not possible since we do not have the latest firmware, unless your device has older firmware installed (only the output of "fastboot getvar all" would tell us for sure)
acejavelin said:
By reset do you mean restore it to "out of box" state? Then you need to restore your pre-root backup or flash stock via fastboot. But at this time locking the bootloader is not possible since we do not have the latest firmware, unless your device has older firmware installed (only the output of "fastboot getvar all" would tell us for sure)
Click to expand...
Click to collapse
I just mean remove root and reset the phone so it is practically brand new. I don't care about locking the bootloader.
jdugery said:
I just mean remove root and reset the phone so it is practically brand new. I don't care about locking the bootloader.
Click to expand...
Click to collapse
What model xt15?? and version android do you have?
Twrp ver.?
Rooted with supersu or magisk?
Have you backup before rooting?
jdugery said:
I just mean remove root and reset the phone so it is practically brand new. I don't care about locking the bootloader.
Click to expand...
Click to collapse
Then you can chose the option that fit's best...
1) Unroot in the SuperSU app's Setting's menu with Full Unroot option. This will remove root but not restore the original recovery, most likely leaving TWRP in place, then boot into the bootloader, start recovery (TWRP most likely) and perform an advanced wipe including caches, user data, and internal storage
2) Boot into TWRP and restore your pre-root backup, then perform a factory reset. This may or may not remove TWRP depending on how you did the backup. If you booted TWRP and performed the backup, it should be essentially back to factory state including stock recovery, if you flashed TWRP first then backed up then TWRP will remain.
3) Restore to stock via fastboot with the latest factory image.
Your choice of which is most appropriate for your circumstances.
acejavelin said:
Then you can chose the option that fit's best...
1) Unroot in the SuperSU app's Setting's menu with Full Unroot option. This will remove root but not restore the original recovery, most likely leaving TWRP in place, then boot into the bootloader, start recovery (TWRP most likely) and perform an advanced wipe including caches, user data, and internal storage
2) Boot into TWRP and restore your pre-root backup, then perform a factory reset. This may or may not remove TWRP depending on how you did the backup. If you booted TWRP and performed the backup, it should be essentially back to factory state including stock recovery, if you flashed TWRP first then backed up then TWRP will remain.
3) Restore to stock via fastboot with the latest factory image.
Your choice of which is most appropriate for your circumstances.
Click to expand...
Click to collapse
I unrooted in SuperSU and wiped in TWRP but Snapchat still won't let me login. Root checker confirms I'm not rooted.
jdugery said:
I unrooted in SuperSU and wiped in TWRP but Snapchat still won't let me login. Root checker confirms I'm not rooted.
Click to expand...
Click to collapse
After you have unrooted, clear data on Snapchat and then log in again (or uninstall and reinstall Snapchat).
I don't use Snapchat or Whatsapp, but my understanding is that you have to login before you root... if you have tried to login, it remembers you were rooted until you clear data.
acejavelin said:
After you have unrooted, clear data on Snapchat and then log in again (or uninstall and reinstall Snapchat).
I don't use Snapchat or Whatsapp, but my understanding is that you have to login before you root... if you have tried to login, it remembers you were rooted until you clear data.
Click to expand...
Click to collapse
I did this still no luck. Apparently if you even have an unlocked bootloader you can't log into Snapchat. So I'm gonna have to lock my bootloader. Any ideas on the easiest method of doing that?
jdugery said:
I did this still no luck. Apparently if you even have an unlocked bootloader you can't log into Snapchat. So I'm gonna have to lock my bootloader. Any ideas on the easiest method of doing that?
Click to expand...
Click to collapse
Well, that shouldn't be it... but locking the bootloader is difficult depending on what version you are on now. The problem is you must flash a complete factory image to lock and we don't have the latest images.
jdugery said:
I did this still no luck. Apparently if you even have an unlocked bootloader you can't log into Snapchat. So I'm gonna have to lock my bootloader. Any ideas on the easiest method of doing that?
Click to expand...
Click to collapse
No I'm almost 99% positive that that's wrong you don't need a locked bootloader to log into snapchat? Where did you read this??
@acejavelin is extremely knowledgeable and will be able to help you with any problem you come across, but you should not need to lock bootloader...anything I find says snap blocks root...and safety net is tripped by an unlocked bootloader. The two don't go hand in hand though. Snapchat doesn't use safety net.
Edit: if you're able to make a backup of a snapchat that is logged in using Titanium backup, and then install that backup onto your phone. Don't know if you have an extra device around though. But really confused as to why reinstalling didn't even work? Is there a chance that the unroot option in superSU did not remove root fully??
acejavelin said:
Well, that shouldn't be it... but locking the bootloader is difficult depending on what version you are on now. The problem is you must flash a complete factory image to lock and we don't have the latest images.
Click to expand...
Click to collapse
Are you sure you don't need a locked bootloader to log into snapchat?
jdugery said:
Are you sure you don't need a locked bootloader to log into snapchat?
Click to expand...
Click to collapse
About 95% sure... Like I said, I don't use SnapChat, but to my knowledge the SafetyNet API doesn't check the bootloader status on Marshmallow devices, only on devices that shipped with Nougat (not that were upgraded).
There has to be some left-overs from root that are causing it to fail.
acejavelin said:
About 95% sure... Like I said, I don't use SnapChat, but to my knowledge the SafetyNet API doesn't check the bootloader status on Marshmallow devices, only on devices that shipped with Nougat (not that were upgraded).
There has to be some left-overs from root that are causing it to fail.
Click to expand...
Click to collapse
But I completely reset my device. Should I wipe everything in TWRP?
jdugery said:
But I completely reset my device. Should I wipe everything in TWRP?
Click to expand...
Click to collapse
I doubt it will help, but you can backup and try it... Most likely something is still in /system, you need to restore your pre-root backup for system and boot and wipe caches. If you don't have that backup then reflash the stock image.
acejavelin said:
I doubt it will help, but you can backup and try it... Most likely something is still in /system, you need to restore your pre-root backup for system and boot and wipe caches. If you don't have that backup then reflash the stock image.
Click to expand...
Click to collapse
Where can I find the stock image. And can I flash it using TWRP?
jdugery said:
Where can I find the stock image. And can I flash it using TWRP?
Click to expand...
Click to collapse
Hmm... maybe one of the links in my sig would help.
https://forum.xda-developers.com/mo...de-return-to-stock-relock-bootloader-t3489110
acejavelin said:
Hmm... maybe one of the links in my sig would help.
https://forum.xda-developers.com/mo...de-return-to-stock-relock-bootloader-t3489110
Click to expand...
Click to collapse
Couldn't see your signature because I'm on mobile lol
But just wondering can I flash these using TWRP
jdugery said:
Couldn't see your signature because I'm on mobile lol
But just wondering can I flash these using TWRP
Click to expand...
Click to collapse
You can see a users signature and stats by tapping their icon.
No, they cannot be flashed in TWRP, must be done with fastboot.
acejavelin said:
You can see a users signature and stats by tapping their icon.
No, they cannot be flashed in TWRP, must be done with fastboot.
Click to expand...
Click to collapse
Finally that's how you do it!! Now I can see what the legend listens to for music?
Spencervb256 said:
Is there a chance that the unroot option in superSU did not remove root fully??
Click to expand...
Click to collapse
Yes it is.
Sometimes you need to flash stock/custom kernel. @jdugery
What is your version of system. Full numbers. Info about phone. 24...?
i want to unroot my device and lock bootlaoder again.like stock with bootloader locked.help
akshakya7 said:
i want to unroot my device and lock bootlaoder again.like stock with bootloader locked.help
Click to expand...
Click to collapse
Use magisk zip uninstaller and msm, works for me.
Just msm it back to stock if you want a full wipe and reload.
Dark Nightmare said:
Just msm it back to stock if you want a full wipe and reload.
Click to expand...
Click to collapse
What is msm can you provide link or related video
akshakya7 said:
What is msm can you provide link or related video
Click to expand...
Click to collapse
Check the general forum; multiple versions in there.
akshakya7 said:
i want to unroot my device and lock bootlaoder again.like stock with bootloader locked.help
Click to expand...
Click to collapse
Just hit unroot on magisk and your done
akshakya7 said:
What is msm can you provide link or related video
Click to expand...
Click to collapse
Look here https://forum.xda-developers.com/oneplus-6t/how-to/tool-6t-msmdownloadtool-v4-0-oos-9-0-5-t3867448
Anyone have any idea how to restore it in Mac?
https://forum.xda-developers.com/showpost.php?p=77982228&postcount=11
So I'm on 9.0.11 and I have an ota update. What if I just download and install that? Will I be put in a boot loop? I currently have magisk and TWRP installed.
kischoaf said:
So I'm on 9.0.11 and I have an ota update. What if I just download and install that? Will I be put in a boot loop? I currently have magisk and TWRP installed.
Click to expand...
Click to collapse
Look here: https://oneplus.gadgethacks.com/how...thout-losing-root-no-computer-needed-0192638/