[Sony Cross-Device General] cee43ja1:
https://drive.google.com/file/d/0B0j3VJ1Xp5N8V2VNZ0hKNmpMbEE/edit

v22
Add support for 39.2.A.0.442
Fixed "adb reboot recovery" command (now you can enter into recovery with it)
NOTE: Keypress on boot is broken now. Please use official way (power down -> press power + volume minus -> when logo appears, release only power and hold volume minus)
[B][COLOR="Red"]Reverted DRM fix to old one because it breaks some functionality such as SoundEnhancement[/COLOR][/B]

Ran latest ta_poc on above v22 kernel, and had no DRM function. Kernel v21 used the then-new v5.21 of Tobias' tool. Remember, v21 was the one I confirmed working with ta_poc, however the kernel was broken. ta_poc probably doesn't know anything before v5.21, which is why it skips "Searching for old drmfix and removing....

I've been using Duality Kernel, which uses Tobias' tool, for now, since everything is 100% working. But it would be nice to use my own set of DRM keys again.

'mshta' is not recognized as an internal or external command,
operable program or batch file.
'mshta' is not recognized as an internal or external command,
operable program or batch file.
'mshta' is not recognized as an internal or external command,
operable program or batch file.
'mshta' is not recognized as an internal or external command,
operable program or batch file.
cp: can't stat '': No such file or directory
------------------------------------------------------------------------
Trim Area PoC kernel image patcher by Munjeni @ 2017
------------------------------------------------------------------------

hash:0x655AFB58 calc_hash:0x655AFB58
hash:0x120E966D calc_hash:0x120E966D
hash:0x68A3FBC0 calc_hash:0x68A3FBC0
hash:0xE81278DE calc_hash:0xE81278DE
device: F8331
serial number:[B][COLOR="red"] EDITED[/COLOR][/B]
drm key: [B][COLOR="red"]EDITED[/COLOR][/B]
Trim area dump is a valid.
Locked bootloader.
Deleting old folder ramdisk if exist...
command ret: 0.
New directory ramdisk created.
Created ouput folder "out"
opening boot.img
boot.img is Android image format.
Dumping to out...
BOARD_KERNEL_CMDLINE androidboot.hardware=qcom user_debug=31 msm_rtb.filter=0x23
7 ehci-hcd.park=3 lpm_levels.sleep_disabled=1 cma=16M@0-0xffffffff coherent_pool
=2M enforcing=0
BOARD_KERNEL_BASE 80000000
BOARD_NAME
BOARD_PAGE_SIZE 4096
BOARD_KERNEL_OFFSET 00008000
BOARD_RAMDISK_OFFSET 02200000
BOARD_SECOND_OFFSET 00f00000
BOARD_TAGS_OFFSET 02000000
Done.
No file exist out/boot.img.elf .
Gunziping...
setting up infflate...
infflating...
infflate returned: 0
gzpipe: ok.
unziped: ok.
Extracting ramdisk.cpio...
Runing user script...

Making ramdisk/stufs folder... done

Found android version equal or greater than Marshmallow.

Making ramdisk/init.ta.sh script... done

Found string in ramdisk/init.sony-platform.rc@0750
patching ramdisk/init.sony-platform.rc@0750

installing ramdisk/stufs/TA.img

Found string in ramdisk/init.rc@0750
patching ramdisk/init.rc@0750

Found binary ramdisk/file_contexts.bin@0644
converting ramdisk/file_contexts.bin@0644 to plaintext file_contexts
patching file_contexts
converting plaintext file_contexts to binary ramdisk/file_contexts.bin@0644

Patching ramdisk/sepolicy@0644

Searching for old drmfix and removing...

Adding ua-modem-switcher
making ramdisk/init.uamodemswitcher.sh script... done

dm-verity:
dm-verity is already disabled.

Sony RIC:
Sony RIC is already disabled!

force-encrypt:
force-encrypt is already disabled.

Install Recovery:
No recovery.img! If you need recovery you must find recovery.img for your device
model and put in the same dir with ./ta_poc

Press any key to continue . . .
command ret: 0.
Repacking ramdisk...
ramdisk.cpio done.
Making ramdisk.gz
defflating...
defflate returned: 0
setting up infflate...
infflating...
infflate returned: 0
gzpipe: ok.
gzip: ok.
ramdisk.gz done.
Packing new_boot.img
cmdline="androidboot.hardware=qcom user_debug=31 msm_rtb.filter=0x237 ehci-hcd.p
ark=3 lpm_levels.sleep_disabled=1 cma=16M@0-0xffffffff coherent_pool=2M enforcin
g=0"
base="0x00000000"
pagesize="4096"
ramdiskoff="0x02200000"
No kernel dt, probably zImage allready have dt appended? Continuing anyway.
making new_boot.img
new_boot.img created.
Done.

Press any key to continue . . .