[Sony Cross-Device General] munjeni:
Here is small tool for experienced users! Tool converts dmesg.log to seinject commands (devs will understand what this tool does) :) You can merge many dmesg logs into one and dmesg no need to be from the same phone model, you can use tool generaly for producing the most needed seinject commands for most devices. Tool do not produces duplicate lines and permissions, its loaded into named arrays so no chance for duplicated lines, tool merges things and append permissions by separating him with "," ;) I have provided source code of it since its so small and dirty made in php, enjoy!

Example output:

nougat_ta_poc toolbox idd_rca_dir dir search %1/sepolicy@0644 %1/sepolicy@0644 NULL
nougat_ta_poc rmt_storage rmts file write %1/sepolicy@0644 %1/sepolicy@0644 NULL
nougat_ta_poc per_mgr per_mgr capability net_raw %1/sepolicy@0644 %1/sepolicy@0644 NULL
nougat_ta_poc init securityfs file write %1/sepolicy@0644 %1/sepolicy@0644 NULL
nougat_ta_poc sensors diag_device chr_file read,write %1/sepolicy@0644 %1/sepolicy@0644 NULL
nougat_ta_poc surfaceflinger diag_device chr_file read,write %1/sepolicy@0644 %1/sepolicy@0644 NULL
nougat_ta_poc cnd diag_device chr_file read,write %1/sepolicy@0644 %1/sepolicy@0644 NULL
nougat_ta_poc ims diag_device chr_file read,write %1/sepolicy@0644 %1/sepolicy@0644 NULL
nougat_ta_poc apfd proc_net file read %1/sepolicy@0644 %1/sepolicy@0644 NULL
nougat_ta_poc xssm proc_net file read %1/sepolicy@0644 %1/sepolicy@0644 NULL
nougat_ta_poc thermal-engine diag_device chr_file read,write %1/sepolicy@0644 %1/sepolicy@0644 NULL
nougat_ta_poc time_daemon diag_device chr_file read,write %1/sepolicy@0644 %1/sepolicy@0644 NULL
nougat_ta_poc dpmd diag_device chr_file read,write %1/sepolicy@0644 %1/sepolicy@0644 NULL
nougat_ta_poc mdtpdaemon diag_device chr_file read,write %1/sepolicy@0644 %1/sepolicy@0644 NULL
nougat_ta_poc ipacm-diag diag_device chr_file read,write %1/sepolicy@0644 %1/sepolicy@0644 NULL
nougat_ta_poc qti diag_device chr_file read,write %1/sepolicy@0644 %1/sepolicy@0644 NULL
nougat_ta_poc netmgrd system_data_file file write %1/sepolicy@0644 %1/sepolicy@0644 NULL
nougat_ta_poc netmgrd diag_device chr_file read,write %1/sepolicy@0644 %1/sepolicy@0644 NULL
nougat_ta_poc rild diag_device chr_file read,write %1/sepolicy@0644 %1/sepolicy@0644 NULL
nougat_ta_poc audioserver diag_device chr_file read,write %1/sepolicy@0644 %1/sepolicy@0644 NULL
nougat_ta_poc location diag_device chr_file read,write %1/sepolicy@0644 %1/sepolicy@0644 NULL
nougat_ta_poc system_server diag_device chr_file read,write %1/sepolicy@0644 %1/sepolicy@0644 NULL
nougat_ta_poc perfd device file open %1/sepolicy@0644 %1/sepolicy@0644 NULL
nougat_ta_poc priv_app device dir read %1/sepolicy@0644 %1/sepolicy@0644 NULL
nougat_ta_poc dataservice_app diag_device chr_file read,write %1/sepolicy@0644 %1/sepolicy@0644 NULL
nougat_ta_poc untrusted_app system_app_data_file dir getattr %1/sepolicy@0644 %1/sepolicy@0644 NULL
nougat_ta_poc untrusted_app proc_sysrq file getattr %1/sepolicy@0644 %1/sepolicy@0644 NULL
nougat_ta_poc untrusted_app proc_last_amsslog file getattr %1/sepolicy@0644 %1/sepolicy@0644 NULL
nougat_ta_poc untrusted_app proc_iomem file getattr %1/sepolicy@0644 %1/sepolicy@0644 NULL
nougat_ta_poc untrusted_app rdtag_procfile dir getattr %1/sepolicy@0644 %1/sepolicy@0644 NULL
nougat_ta_poc untrusted_app rdtag_procfile file getattr %1/sepolicy@0644 %1/sepolicy@0644 NULL