[Xperia Z3 General] danalec:
compiled iovyroot without the typo

the script runs but after reboot TWRP won't load up (shoey63's and NUT's)

---------- Post added at 05:54 AM ---------- Previous post was at 05:03 AM ----------

So I'm trying to understand how to modify iovyroot, following the [MENTION=2612885]gustavo_v[/MENTION] steps:

SGP551 .575 (Claro Brazil)

binwalk kernel.sin

DECIMAL HEXADECIMAL DESCRIPTION
--------------------------------------------------------------------------------
898 0x382 Certificate in DER format (x509 v3), header length: 4, sequence length: 699
1960 0x7A8 ELF, 32-bit LSB executable, ARM, version 1 (ARM)
2108 0x83C Linux kernel ARM boot executable zImage (little-endian)
7968 0x1F20 LZO compressed data
8295 0x2067 LZO compressed data
8655 0x21CF device tree image (dtb)
1560460 0x17CF8C mcrypt 2.5 encrypted data, algorithm: "\", keysize: 538 bytes, mode: "k",
1598957 0x1865ED SHA256 hash constants, little endian
6576907 0x645B0B xz compressed data
7165803 0x6D576B mcrypt 2.5 encrypted data, algorithm: ")-", keysize: 10551 bytes, mode: ".",
7669156 0x7505A4 device tree image (dtb)
7891052 0x78686C gzip compressed data, from Unix, last modified: 1970-01-01 00:00:00 (null date)
11347229 0xAD251D Qualcomm device tree container, version: 2, DTB entries: 8
11349277 0xAD2D1D device tree image (dtb)
11573343 0xB0985F Certificate in DER format (x509 v3), header length: 4, sequence length: 699

Again 8295 as important part,

dd if=kernel.sin skip=1 bs=8295 | lzop -d > kernel.unc

./kallsymsprint.x86 kernel.unc | grep ptmx_fops

[+]mmap
mem=f6433000 length=01130b6c offset=c9bd5000
[+]kallsyms_addresses=c0b68960
count=00017450
[+]kallsyms_num_syms=00017450
[+]kallsyms_names=c0bc5ab0
[+]kallsyms_markers=c0cced70
[+]kallsyms_token_table=c0ccf350
[+]kallsyms_token_index=c0ccf720
[+]kallsyms_lookup_name

c1235674 ptmx_fops

./kallsymsprint.x86 kernel.unc | grep sidtab

c039854c sidtab_search_core
c03985f8 sidtab_init
c0398678 sidtab_insert
c0398810 sidtab_search
c0398818 sidtab_search_force
c0398820 sidtab_map
c0398888 sidtab_context_to_sid
c0398c74 sidtab_hash_eval
c0398ce8 sidtab_destroy
c0398d8c sidtab_set
c0398de0 sidtab_shutdown
c122a08c sidtab

./kallsymsprint.x86 kernel.unc | grep policydb

c039c33c policydb_destroy
c039c55c policydb_load_isids
c039c5fc policydb_class_isvalid
c039c620 policydb_role_isvalid
c039c644 policydb_type_isvalid
c039c668 policydb_context_isvalid
c039c7d8 policydb_read
c039dd44 policydb_write
c03a1574 security_policydb_len
c03a3918 cond_policydb_init
c03a392c cond_policydb_destroy
c0a15aec policydb_index
c102f41c policydb_compat
c122a0b4 policydb

./kallsymsprint.x86 kernel.unc | grep selinux_enabled

c0f206d0 selinux_enabled_setup
c10091bf __setup_str_selinux_enabled_setup
c1009d54 __setup_selinux_enabled_setup
c102f1d0 selinux_enabled

./kallsymsprint.x86 kernel.unc | grep selinux_enforcing

c1228630 selinux_enforcing

How to grab kernel version from the kernel.sin?

I only know adb shell cat /proc/version

Thanks again

---------- Post added at 07:20 AM ---------- Previous post was at 06:31 AM ----------

woot! did it! :o thankyou!

//Z2 Tablet 23.5.A.0.575 SGP551 Brazil
{ "SGP551", "Linux version 3.4.0-perf-g43ea728 (BuildUser@BuildHost) (gcc version 4.9.x-google 20140827 (prerelease) (GCC) ) #1 SMP PREEMPT Fri Apr 22 17:27:56 2016",
{ (void*)FSYNC_OFFSET(0xc1235674) },
(void*)0xc122a08c, (void*)0xc122a0b4, (void*)0xc102f1d0, (void*)0xc1228630 },