[Sony Cross-Device General] anjelz2012:
------------------------------------------------------------------------

Nougat Trim Area PoC kernel image patcher by Munjeni @ 2017

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

hash:0xCF115260 calc_hash:0xCF115260

hash:0xE1B68611 calc_hash:0xE1B68611

hash:0xC4B1E7B5 calc_hash:0xC4B1E7B5

device: E6853

serial number: CB5A2BWBAZ

drm key: 0001046B 0010 24 08 0D A4 D4 96 29 63 62 49 D9 2F B1 42 5A C2

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.elf

Extracting file kernel.elf

ELF magic found

Entry point : 0x00080000

Class : 64-bit objects

Program Header start : 0x40

Program Header size : 0x38

Program Header count : 3

PH[0], type=1, offset=0x000000E8, virtual=0x00080000, phy=0x00080000, size=0x017662A0

PH[1], type=1, offset=0x01766388, virtual=0x02000000, phy=0x02000000, size=0x005152D6

PH[2], type=1, offset=0x01C7B65E, virtual=0x01E00000, phy=0x01E00000, size=0x000C0596

0. Dumping out/boot.img-zImage

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

2. Dumping out/boot.img-dt

Seeking to cmdline address = 0x01D3BBFC

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

Done.

No file exist out/kernel.elf.elf .

Gunziping...

setting up infflate...

infflating...

infflate returned: 0

gzpipe: ok.

unziped: ok.

Extracting ramdisk.cpio...

Searching for file_contexts...

ramdisk/file_contexts.bin@0644 file is binary.

Converting ramdisk/file_contexts.bin@0644 to plaintext...

Converted.

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"

Converting plaintext file_contexts to binary...

---- Now you have some chance to modify plaintext file_contexts

---- before it is converted to the binary.

Presione una tecla para continuar . . .

Converted.

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, 1396 types, 0 bools

libsepol.policydb_index_others: security: 1 sens, 1024 cats

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

Success

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

libsepol.policydb_index_others: security: 1 sens, 1024 cats

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

Success

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

libsepol.policydb_index_others: security: 1 sens, 1024 cats

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

Success

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

libsepol.policydb_index_others: security: 1 sens, 1024 cats

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

Success

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

libsepol.policydb_index_others: security: 1 sens, 1024 cats

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

Success

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

libsepol.policydb_index_others: security: 1 sens, 1024 cats

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

Success

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

libsepol.policydb_index_others: security: 1 sens, 1024 cats

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

Success

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

libsepol.policydb_index_others: security: 1 sens, 1024 cats

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

Success

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

libsepol.policydb_index_others: security: 1 sens, 1024 cats

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

Success

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

libsepol.policydb_index_others: security: 1 sens, 1024 cats

libsepol.policydb_index_others: security: 63 classes, 18433 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 nougat_ta_poc.

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

Presione una tecla para continuar . . .

scripts no detected