[Sony Cross-Device General] fluffi444:
This work! Log looks good - especially at the end.

Outstanding master [MENTION=4120742]munjeni[/MENTION]! :o

But I still have to use the TA in data/local/temp... ?

Without it I got no signal...

EDIT

Ok. OP said that it's still needed to copy TA.img manually.

------------------------------------------------------------------------
Nougat Trim Area PoC kernel image patcher by Munjeni @ 2017
------------------------------------------------------------------------

hash:0x037C9C1E calc_hash:0x037C9C1E
hash:0x90A0164B calc_hash:0x90A0164B
hash:0x04E5A139 calc_hash:0x04E5A139
device: D5803
serial number: YT911*****
drm key: 0001046B 0010 ED EE 37 63 7B D8 AD 8B 03 C4 8C 1C 2A 3C 61 B0
Trim area dump is a valid.
Locked bootloader.
Deleting old folder ramdisk if exist...
if exist ramdisk (rd ramdisk /s/q)
returned: 0.
New directory ramdisk created.
Created ouput folder "out"
opening boot_Z3c.img
boot_Z3c.img is Android image format.
Dumping to out...
BOARD_KERNEL_CMDLINE androidboot.hardware=qcom user_debug=31 msm_rtb.filter=0x3b7 ehci-hcd.park=3 androidboot.bootdevice=msm_sdcc.1 vmalloc=400M dwc3.
maximum_speed=high dwc3_msm.prop_chg_detect=Y androidboot.selinux=permissive
BOARD_KERNEL_BASE 00000000
BOARD_NAME
BOARD_PAGE_SIZE 2048
BOARD_KERNEL_OFFSET 00008000
BOARD_RAMDISK_OFFSET 02000000
BOARD_SECOND_OFFSET 00f00000
BOARD_TAGS_OFFSET 01e00000
BOARD_DT_SIZE 284672
Done.
No file exist out/boot_Z3c.img.elf .
Gunziping...
setting up infflate...
infflating...
infflate returned: 0
gzpipe: ok.
unziped: ok.
Extracting ramdisk.cpio...
Searching for file_contexts...
Found plaintext file_contexts@0644
Patching file "ramdisk/init.sony-platform.rc@0750"
Patching file "ramdisk/init.sony-platform.rc@0750"
Patching file "ramdisk/ueventd.rc@0644"
Patching file "ramdisk/file_contexts@0644"
Create ta scipt.
Create busybox.
TA.img (TA.img) installed.
Making sepolicy backup: ramdisk/backupsepolicy@0644
Patching sepolicy...
libsepol.policydb_index_others: security: 1 users, 2 roles, 1159 types, 0 bools
libsepol.policydb_index_others: security: 1 sens, 1024 cats
libsepol.policydb_index_others: security: 87 classes, 12690 rules, 0 cond rules
Success
libsepol.policydb_index_others: security: 1 users, 2 roles, 1159 types, 0 bools
libsepol.policydb_index_others: security: 1 sens, 1024 cats
libsepol.policydb_index_others: security: 87 classes, 12690 rules, 0 cond rules
Success
libsepol.policydb_index_others: security: 1 users, 2 roles, 1159 types, 0 bools
libsepol.policydb_index_others: security: 1 sens, 1024 cats
libsepol.policydb_index_others: security: 87 classes, 12691 rules, 0 cond rules
Success
libsepol.policydb_index_others: security: 1 users, 2 roles, 1159 types, 0 bools
libsepol.policydb_index_others: security: 1 sens, 1024 cats
libsepol.policydb_index_others: security: 87 classes, 12692 rules, 0 cond rules
Success
libsepol.policydb_index_others: security: 1 users, 2 roles, 1159 types, 0 bools
libsepol.policydb_index_others: security: 1 sens, 1024 cats
libsepol.policydb_index_others: security: 87 classes, 12692 rules, 0 cond rules
Success
libsepol.policydb_index_others: security: 1 users, 2 roles, 1159 types, 0 bools
libsepol.policydb_index_others: security: 1 sens, 1024 cats
libsepol.policydb_index_others: security: 87 classes, 12693 rules, 0 cond rules
Success
libsepol.policydb_index_others: security: 1 users, 2 roles, 1159 types, 0 bools
libsepol.policydb_index_others: security: 1 sens, 1024 cats
libsepol.policydb_index_others: security: 87 classes, 12694 rules, 0 cond rules
Success
libsepol.policydb_index_others: security: 1 users, 2 roles, 1159 types, 0 bools
libsepol.policydb_index_others: security: 1 sens, 1024 cats
libsepol.policydb_index_others: security: 87 classes, 12694 rules, 0 cond rules
Success
libsepol.policydb_index_others: security: 1 users, 2 roles, 1159 types, 0 bools
libsepol.policydb_index_others: security: 1 sens, 1024 cats
libsepol.policydb_index_others: security: 87 classes, 12695 rules, 0 cond rules
Success
libsepol.policydb_index_others: security: 1 users, 2 roles, 1159 types, 0 bools
libsepol.policydb_index_others: security: 1 sens, 1024 cats
libsepol.policydb_index_others: security: 87 classes, 12696 rules, 0 cond rules
Success
-------------------------------------------------------------------------------------------
No users script found in current directory.
Right now you have chance to modify folder "ramdisk" manualy, press any key when done!
If you need to automate ramdisk modification, make an script.sh (lin) or script.bat (win),
and put in the same dir with mm_ta_poc.
-------------------------------------------------------------------------------------------

Drücken Sie eine beliebige Taste . . .
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.
Found kernel dt.
Found QCDT magic string.
Packing new_boot.img
cmdline="androidboot.hardware=qcom user_debug=31 msm_rtb.filter=0x3b7 ehci-hcd.park=3 androidboot.bootdevice=msm_sdcc.1 vmalloc=400M dwc3.maximum_spee
d=high dwc3_msm.prop_chg_detect=Y androidboot.selinux=permissive"
base="0x00000000"
pagesize="4096"
ramdiskoff="0x02000000"
tagsoff="0x01e00000"
making new_boot.img
new_boot.img created.
Done.

Drücken Sie eine beliebige Taste . . .