[Sony Cross-Device General] maksim_kw:
It would be nice to add a changelog that fixed, will be added.

For example, now the latest version no longer contains 3 bat files is now a single file DOUBLECLICKME.bat. Yesterday was different. It is clear that everything is better, but Changelog does not hurt. All excellent, but all too often you are trying to post a new file, and that the new unknown.

In the version that now the core of my Nougat the program is seen as MM.

And Warning on Sony RIC:

Full log:

------------------------------------------------------------------------

Trim Area PoC kernel image patcher by Munjeni @ 2017

------------------------------------------------------------------------

hash:0x54288A7A calc_hash:0x54288A7A

hash:0x4CBAA939 calc_hash:0x4CBAA939

hash:0x9B8793E3 calc_hash:0x9B8793E3

hash:0x482AF9EB calc_hash:0x482AF9EB

device: F8331

serial number: CB512BEE32

drm key: 0001046B 0010 44 98 8A 61 A3 B2 10 48 02 19 38 59 73 7F 7E 52

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.

Using folder "out"

opening kernel.sin

kernel.sin is Sony sin format.

Converting...

Proccessing kernel.sin...

File size: 0x12DC34C

Sin header size: 0x93C

Sin data size: 0x80000

Found MMCF magic string!

GPTP len: 0x114

GPTP_UUID: c8db502f-14fc-e493-4a9d-496fba338b45

Extracting part 1 type: LZ4A

|-- packed data offset: 0x0

|-- unpacked data size: 0x1000000

|-- packed data size: 0x8c5574

|-- unpacked data offset: 0x0

|------ curr sin poss: 0x95c

|------ start sin poss: 0xa58

|------ now sin poss: 0x8c5fcc

|------ now out poss: 0x0

|------ successfully decompressed part 1 data.

|------ Filetype ELF.

|------ now sin poss next: 0x9b0

|------ t=0x54 d=0x54

Extracting part 2 type: LZ4A

|-- packed data offset: 0x8c5574

|-- unpacked data size: 0x1000000

|-- packed data size: 0x821b8d

|-- unpacked data offset: 0x1000000

|------ curr sin poss: 0x9b0

|------ start sin poss: 0x8c5fcc

|------ now sin poss: 0x10e7b59

|------ now out poss: 0x1000000

|------ successfully decompressed part 2 data.

|------ now sin poss next: 0xa04

|------ t=0xa8 d=0x54

Extracting part 3 type: LZ4A

|-- packed data offset: 0x10e7101

|-- unpacked data size: 0x2f4da0

|-- packed data size: 0x1f47f3

|-- unpacked data offset: 0x2000000

|------ curr sin poss: 0xa04

|------ start sin poss: 0x10e7b59

|------ now sin poss: 0x12dc34c

|------ now out poss: 0x2000000

|------ successfully decompressed part 3 data.

|------ now sin poss next: 0xa58

|------ t=0xfc d=0x54

|--- now out poss: 0x22f4da0

Sin file verification ok.

Extracting...

out/converted.file extracted.

Renaming to out/kernel.sin.elf succeed.

Done.

Extracting out/kernel.sin.elf

Using folder "out"

opening out/kernel.sin.elf

Extracting file out/kernel.sin.elf

ELF magic found

Entry point : 0x80080000

Class : 64-bit objects

Program Header start : 0x40

Program Header size : 0x38

Program Header count : 3

PH[0], type=1, offset=0x000000E8, virtual=0x80080000, phy=0x80080000, size=0x01BCAE00

PH[1], type=1, offset=0x01BCAEE8, virtual=0x82200000, phy=0x82200000, size=0x005A008C

PH[2], type=1, offset=0x0216AF74, virtual=0x82000000, phy=0x82000000, size=0x00188DEC

0. Dumping out/boot.img-zImage

1. Dumping out/boot.img-ramdisk.gz

2. Dumping out/boot.img-dt

Seeking to cmdline address = 0x022F3D68

3. Dumping cmdline to out/boot.img-cmdline

Done.

Gunziping...

setting up infflate...

infflating...

infflate returned: 0

gzpipe: ok.

unziped: ok.

Extracting ramdisk.cpio...

Runing user script...

making ramdisk/stufs/bin folder

found android version >= MM.

making ramdisk/stufs/bin/ta script

making ramdisk/stufs/bin/busybox

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

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

found ramdisk/sepolicy@0644

patching ramdisk/sepolicy@0644

seinjecting: ramdisk/sepolicy@0644, saving to: ramdisk/sepolicy@0644, source_type: init, target_type: rootfs

libsepol.policydb_index_others: security: 1 users, 2 roles, 1389 types, 0 bools

libsepol.policydb_index_others: security: 1 sens, 1024 cats

libsepol.policydb_index_others: security: 63 classes, 18249 rules, 0 cond rules

Success

seinjecting: ramdisk/sepolicy@0644, saving to: ramdisk/sepolicy@0644, source_type: init, target_type: tad

libsepol.policydb_index_others: security: 1 users, 2 roles, 1389 types, 0 bools

libsepol.policydb_index_others: security: 1 sens, 1024 cats

libsepol.policydb_index_others: security: 63 classes, 18249 rules, 0 cond rules

Success

seinjecting: ramdisk/sepolicy@0644, saving to: ramdisk/sepolicy@0644, source_type: init, target_type: shell_data_file

libsepol.policydb_index_others: security: 1 users, 2 roles, 1389 types, 0 bools

libsepol.policydb_index_others: security: 1 sens, 1024 cats

libsepol.policydb_index_others: security: 63 classes, 18250 rules, 0 cond rules

Success

seinjecting: ramdisk/sepolicy@0644, saving to: ramdisk/sepolicy@0644, source_type: init, target_type: shell_data_file

libsepol.policydb_index_others: security: 1 users, 2 roles, 1389 types, 0 bools

libsepol.policydb_index_others: security: 1 sens, 1024 cats

libsepol.policydb_index_others: security: 63 classes, 18250 rules, 0 cond rules

Success

seinjecting: ramdisk/sepolicy@0644, saving to: ramdisk/sepolicy@0644, source_type: tad, target_type: tad

libsepol.policydb_index_others: security: 1 users, 2 roles, 1389 types, 0 bools

libsepol.policydb_index_others: security: 1 sens, 1024 cats

libsepol.policydb_index_others: security: 63 classes, 18250 rules, 0 cond rules

Success

seinjecting: ramdisk/sepolicy@0644, saving to: ramdisk/sepolicy@0644, source_type: tad, target_type: rootfs

libsepol.policydb_index_others: security: 1 users, 2 roles, 1389 types, 0 bools

libsepol.policydb_index_others: security: 1 sens, 1024 cats

libsepol.policydb_index_others: security: 63 classes, 18251 rules, 0 cond rules

Success

seinjecting: ramdisk/sepolicy@0644, saving to: ramdisk/sepolicy@0644, source_type: tad, target_type: rootfs

libsepol.policydb_index_others: security: 1 users, 2 roles, 1389 types, 0 bools

libsepol.policydb_index_others: security: 1 sens, 1024 cats

libsepol.policydb_index_others: security: 63 classes, 18252 rules, 0 cond rules

Success

seinjecting: ramdisk/sepolicy@0644, saving to: ramdisk/sepolicy@0644, source_type: tad, target_type: shell_data_file

libsepol.policydb_index_others: security: 1 users, 2 roles, 1389 types, 0 bools

libsepol.policydb_index_others: security: 1 sens, 1024 cats

libsepol.policydb_index_others: security: 63 classes, 18252 rules, 0 cond rules

Success

seinjecting: ramdisk/sepolicy@0644, saving to: ramdisk/sepolicy@0644, source_type: tad, target_type: shell_data_file

libsepol.policydb_index_others: security: 1 users, 2 roles, 1389 types, 0 bools

libsepol.policydb_index_others: security: 1 sens, 1024 cats

libsepol.policydb_index_others: security: 63 classes, 18253 rules, 0 cond rules

Success

seinjecting: ramdisk/sepolicy@0644, saving to: ramdisk/sepolicy@0644, source_type: tad, target_type: sysfs

libsepol.policydb_index_others: security: 1 users, 2 roles, 1389 types, 0 bools

libsepol.policydb_index_others: security: 1 sens, 1024 cats

libsepol.policydb_index_others: security: 63 classes, 18254 rules, 0 cond rules

Success

seinjecting: ramdisk/sepolicy@0644, saving to: ramdisk/sepolicy@0644, source_type: kernel, target_type: tad

libsepol.policydb_index_others: security: 1 users, 2 roles, 1389 types, 0 bools

libsepol.policydb_index_others: security: 1 sens, 1024 cats

libsepol.policydb_index_others: security: 63 classes, 18255 rules, 0 cond rules

Success

seinjecting: ramdisk/sepolicy@0644, saving to: ramdisk/sepolicy@0644, source_type: kernel, target_type: shell_data_file

libsepol.policydb_index_others: security: 1 users, 2 roles, 1389 types, 0 bools

libsepol.policydb_index_others: security: 1 sens, 1024 cats

libsepol.policydb_index_others: security: 63 classes, 18256 rules, 0 cond rules

Success

dm-verity:

- dm-verity is enabled. Disable? (Say yes if you modify /system) [Y/n] Y

Disabling dm-verity. . .

Sony RIC:

Warning, no ramdisk/init.sony-platform.rc !

force-encrypt:

- force-encrypt is enabled. Disable? (Say yes if you wipe and decrypt /data) [Y/n] Y

Disabling force-encrypt. . .

Для продолжения нажмите любую клавишу . . .

script.bat ramdisk ta_poc

returned: 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.

Found kernel dt.

No QCDT magic string.

Packing new_boot.img

cmdline="androidboot.hardware=qcom user_debug=31 msm_rtb.filter=0x237 ehci-hcd.park=3 lpm_levels.sleep_disabled=1 cma=32M@0-0xffffffff coherent_pool=2M"

base="0x00000000"

pagesize="4096"

ramdiskoff="0x82200000"

defflating...

defflate returned: 0

setting up infflate...

infflating...

infflate returned: 0

gzpipe: ok.

gzip: ok.

zImage-dtb , dt appended.

making new_boot.img

new_boot.img created.

Done.

Для продолжения нажмите любую клавишу . . .