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

[*] Initial strace run with jchroot on the command ./usr/sbin/policykit_system to identify missing areas

[*] Emulating binary name: policykit_system in strace mode to identify missing areas (with jchroot)
[*] Emulator used: qemu-arm-static
[*] Chroot environment used: jchroot
[*] Using root directory: /logs/s115_usermode_emulator/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract (1/2)
[*] Using CPU config: 

1 brk(NULL) = 0x4000d03c
1 access("/etc/ld.so.preload",R_OK) = -1 errno=2 (No such file or directory)
1 openat(AT_FDCWD,"/etc/ld.so.cache",O_RDONLY|O_LARGEFILE|O_CLOEXEC) = -1 errno=2 (No such file or directory)
1 openat(AT_FDCWD,"/usr/lib/tls/v8l/neon/vfp/libaxlog.so",O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
1 read(3,0x3ff1d0e8,512) = 512
1 statx(3,"",AT_EMPTY_PATH|AT_NO_AUTOMOUNT,STATX_BASIC_STATS,0x3ff1ce00) = 0
1 mmap2(NULL,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS,-1,0) = 0x3f7dd000
1 mmap2(NULL,12312,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f7d9000
1 mmap2(0x3f7db000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x1) = 0x3f7db000
1 close(3) = 0
1 openat(AT_FDCWD,"/usr/lib/tls/v8l/neon/vfp/libglib-2.0.so.0",O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
1 read(3,0x3ff1d0d8,512) = 512
1 statx(3,"",AT_EMPTY_PATH|AT_NO_AUTOMOUNT,STATX_BASIC_STATS,0x3ff1cdf0) = 0
1 mmap2(NULL,932760,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f6f5000
1 mmap2(0x3f7d7000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0xe1) = 0x3f7d7000
1 close(3) = 0
1 openat(AT_FDCWD,"/usr/lib/tls/v8l/neon/vfp/libgio-2.0.so.0",O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
1 read(3,0x3ff1d0c8,512) = 512
1 statx(3,"",AT_EMPTY_PATH|AT_NO_AUTOMOUNT,STATX_BASIC_STATS,0x3ff1cde0) = 0
1 mmap2(NULL,1217664,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f5cb000
1 mmap2(0x3f6ef000,20480,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x124) = 0x3f6ef000
1 mmap2(0x3f6f4000,1152,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS|MAP_FIXED,-1,0) = 0x3f6f4000
1 close(3) = 0
1 openat(AT_FDCWD,"/usr/lib/tls/v8l/neon/vfp/libgobject-2.0.so.0",O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
1 read(3,0x3ff1d0b8,512) = 512
1 statx(3,"",AT_EMPTY_PATH|AT_NO_AUTOMOUNT,STATX_BASIC_STATS,0x3ff1cdd0) = 0
1 mmap2(NULL,256416,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f58c000
1 mmap2(0x3f5c8000,12288,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x3b) = 0x3f5c8000
1 close(3) = 0
1 openat(AT_FDCWD,"/usr/lib/tls/v8l/neon/vfp/libapac.so.0",O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
1 read(3,0x3ff1d0a8,512) = 512
1 statx(3,"",AT_EMPTY_PATH|AT_NO_AUTOMOUNT,STATX_BASIC_STATS,0x3ff1cdc0) = 0
1 mmap2(NULL,16400,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f587000
1 mmap2(0x3f58a000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x2) = 0x3f58a000
1 close(3) = 0
1 openat(AT_FDCWD,"/usr/lib/tls/v8l/neon/vfp/libgcc_s.so.1",O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
1 read(3,0x3ff1d098,512) = 512
1 statx(3,"",AT_EMPTY_PATH|AT_NO_AUTOMOUNT,STATX_BASIC_STATS,0x3ff1cdb0) = 0
1 mmap2(NULL,102460,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f56d000
1 mmap2(0x3f585000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x18) = 0x3f585000
1 close(3) = 0
1 openat(AT_FDCWD,"/usr/lib/tls/v8l/neon/vfp/libc.so.6",O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
1 read(3,0x3ff1d088,512) = 512
1 statx(3,"",AT_EMPTY_PATH|AT_NO_AUTOMOUNT,STATX_BASIC_STATS,0x3ff1cda0) = 0
1 mmap2(NULL,1108064,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f45e000
1 mmap2(0x3f560000,16384,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x101) = 0x3f560000
1 mmap2(0x3f564000,34912,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS|MAP_FIXED,-1,0) = 0x3f564000
1 close(3) = 0
1 openat(AT_FDCWD,"/usr/lib/tls/v8l/neon/vfp/libpcre.so.1",O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
1 read(3,0x3ff1d068,512) = 512
1 statx(3,"",AT_EMPTY_PATH|AT_NO_AUTOMOUNT,STATX_BASIC_STATS,0x3ff1cd80) = 0
1 mmap2(NULL,335948,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f40b000
1 mmap2(0x3f45c000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x50) = 0x3f45c000
1 close(3) = 0
1 openat(AT_FDCWD,"/usr/lib/tls/v8l/neon/vfp/libgmodule-2.0.so.0",O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
1 read(3,0x3ff1d058,512) = 512
1 statx(3,"",AT_EMPTY_PATH|AT_NO_AUTOMOUNT,STATX_BASIC_STATS,0x3ff1cd70) = 0
1 mmap2(NULL,12360,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f407000
1 mmap2(0x3f409000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x1) = 0x3f409000
1 close(3) = 0
1 openat(AT_FDCWD,"/usr/lib/tls/v8l/neon/vfp/libz.so.1",O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
1 read(3,0x3ff1d048,512) = 512
1 statx(3,"",AT_EMPTY_PATH|AT_NO_AUTOMOUNT,STATX_BASIC_STATS,0x3ff1cd60) = 0
1 mmap2(NULL,65544,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f3f6000
1 mmap2(0x3f405000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0xe) = 0x3f405000
1 close(3) = 0
1 openat(AT_FDCWD,"/usr/lib/tls/v8l/neon/vfp/libffi.so.8",O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
1 read(3,0x3ff1d038,512) = 512
1 statx(3,"",AT_EMPTY_PATH|AT_NO_AUTOMOUNT,STATX_BASIC_STATS,0x3ff1cd50) = 0
1 mmap2(NULL,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS,-1,0) = 0x3f3f4000
1 mmap2(NULL,29288,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f3ec000
1 mmap2(0x3f3f2000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x5) = 0x3f3f2000
1 close(3) = 0
1 openat(AT_FDCWD,"/usr/lib/tls/v8l/neon/vfp/libdbus-1.so.3",O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
1 read(3,0x3ff1d028,512) = 512
1 statx(3,"",AT_EMPTY_PATH|AT_NO_AUTOMOUNT,STATX_BASIC_STATS,0x3ff1cd40) = 0
1 mmap2(NULL,369916,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f391000
1 mmap2(0x3f3ea000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x59) = 0x3f3ea000
1 close(3) = 0
1 openat(AT_FDCWD,"/usr/lib/tls/v8l/neon/vfp/libsystemd.so.0",O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
1 read(3,0x3ff1d018,512) = 512
1 statx(3,"",AT_EMPTY_PATH|AT_NO_AUTOMOUNT,STATX_BASIC_STATS,0x3ff1cd30) = 0
1 mmap2(NULL,647588,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f2f2000
1 mmap2(0x3f389000,28672,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x97) = 0x3f389000
1 mmap2(0x3f390000,420,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS|MAP_FIXED,-1,0) = 0x3f390000
1 close(3) = 0
1 openat(AT_FDCWD,"/usr/lib/tls/v8l/neon/vfp/libcap.so.2",O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
1 read(3,0x3ff1d008,512) = 512
1 statx(3,"",AT_EMPTY_PATH|AT_NO_AUTOMOUNT,STATX_BASIC_STATS,0x3ff1cd20) = 0
1 mmap2(NULL,28716,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f2ea000
1 mmap2(0x3f2f0000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x6) = 0x3f2f0000
1 close(3) = 0
1 openat(AT_FDCWD,"/usr/lib/tls/v8l/neon/vfp/libzstd.so.1",O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
1 read(3,0x3ff1cff8,512) = 512
1 statx(3,"",AT_EMPTY_PATH|AT_NO_AUTOMOUNT,STATX_BASIC_STATS,0x3ff1cd10) = 0
1 mmap2(NULL,471364,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f276000
1 mmap2(0x3f2e8000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x72) = 0x3f2e8000
1 close(3) = 0
1 mmap2(NULL,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS,-1,0) = 0x3f274000
1 set_tid_address(0x3f274288) = 1
1 set_robust_list(0x3f27428c,12) = -1 errno=38 (Function not implemented)
1 Unknown syscall 398
1 mprotect(0x3f560000,8192,PROT_READ) = 0
1 mprotect(0x3f585000,4096,PROT_READ) = 0
1 mprotect(0x3f2e8000,4096,PROT_READ) = 0
1 mprotect(0x3f2f0000,4096,PROT_READ) = 0
1 mprotect(0x3f389000,24576,PROT_READ) = 0
1 mprotect(0x3f3ea000,4096,PROT_READ) = 0
1 mprotect(0x3f3f2000,4096,PROT_READ) = 0
1 mprotect(0x3f405000,4096,PROT_READ) = 0
1 mprotect(0x3f45c000,4096,PROT_READ) = 0
1 mprotect(0x3f7d7000,4096,PROT_READ) = 0
1 mprotect(0x3f409000,4096,PROT_READ) = 0
1 mprotect(0x3f58a000,4096,PROT_READ) = 0
1 mprotect(0x3f5c8000,8192,PROT_READ) = 0
1 mprotect(0x3f6ef000,16384,PROT_READ) = 0
1 mprotect(0x3f7db000,4096,PROT_READ) = 0
1 mprotect(0x4000c000,4096,PROT_READ) = 0
1 mprotect(0x3f7fd000,4096,PROT_READ) = 0
1 ugetrlimit(3,1072814440,1062651806,1062627076,1,1062608480) = 0
1 prctl(23,32,0,1060048900,1060047640,0) = 1
1 prctl(23,48,0,1060048900,1060047640,33) = -1 errno=22 (Invalid argument)
1 prctl(23,40,0,16,1060047640,33) = 1
1 prctl(23,44,0,16,1060047640,41) = -1 errno=22 (Invalid argument)
1 prctl(23,42,0,16,1060047640,41) = -1 errno=22 (Invalid argument)
1 prctl(23,41,0,16,1060047640,41) = -1 errno=22 (Invalid argument)
1 brk(NULL) = 0x4000d03c
1 brk(0x4002e03c) = 0x4002e03c
1 brk(0x4002f000) = 0x4002f000
1 clock_gettime64(CLOCK_REALTIME,0x3ff1dbf8) = 0 ({tv_sec=1690032523,tv_nsec=976210616})
1 futex(0x3f7d8a1c,FUTEX_PRIVATE_FLAG|FUTEX_WAKE,2147483647,NULL,NULL,0) = 0
1 futex(0x3f7d8a1c,FUTEX_PRIVATE_FLAG|FUTEX_WAKE,2147483647,NULL,NULL,0) = 0
1 futex(0x3f7d8a1c,FUTEX_PRIVATE_FLAG|FUTEX_WAKE,2147483647,NULL,0x40012790,1073817488) = 0
1 eventfd2(0,526336) = 3
1 write(3,0x3ff1db40,8) = 8
1 futex(0x3f7d8a1c,FUTEX_PRIVATE_FLAG|FUTEX_WAKE,2147483647,NULL,NULL,0) = 0
1 rt_sigprocmask(SIG_SETMASK,0x3ff1da20,0x3ff1d9a0,8) = 0
1 eventfd2(0,526336) = 4
1 write(4,0x3ff1d970,8) = 8
1 rt_sigaction(33,0x3ff1d700,NULL) = 0
1 rt_sigprocmask(SIG_UNBLOCK,0x3ff1d874,NULL,8) = 0
1 mmap2(NULL,8392704,PROT_NONE,MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK,-1,0) = 0x3ea73000
1 mprotect(0x3ea74000,8388608,PROT_READ|PROT_WRITE) = 0
1 rt_sigprocmask(SIG_BLOCK,0x3f54ca08,0x3ff1d868,8) = 0
1 clone(CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID,child_stack=0x3f272e78,parent_tidptr=0x3f2733e8,tls=0x3f273880,child_tidptr=0x3f2733e8) = 3
1 rt_sigprocmask(SIG_SETMASK,0x3ff1d868,NULL,8) = 0
1 rt_sigprocmask(SIG_SETMASK,0x3ff1d9a0,NULL,8) = 0
1 futex(0x3f7d8a1c,FUTEX_PRIVATE_FLAG|FUTEX_WAKE,2147483647,NULL,NULL,0) = 0
1 rt_sigaction(SIGHUP,0x3ff1d988,NULL) = 0
1 rt_sigaction(SIGINT,0x3ff1d988,NULL) = 0
1 rt_sigaction(SIGTERM,0x3ff1d988,NULL) = 0
1 inotify_init1(526336,1062769150,0,99,0,1072815000) = 5
1 inotify_add_watch(5,1062769136,642,5,0,1072815000) = -1 errno=2 (No such file or directory)
1 close(5) = 0
1 set_robust_list(0x3f2733ec,12) = -1 errno=38 (Function not implemented)
1 rt_sigprocmask(SIG_SETMASK,0x3f273834,NULL,8) = 0
1 mmap2(NULL,2097152,PROT_NONE,MAP_PRIVATE|MAP_ANONYMOUS|MAP_NORESERVE,-1,0) = 0x3e873000
1 munmap(0x3e873000,577536) = 0
1 munmap(0x3ea00000,471040) = 0
1 mprotect(0x3e900000,135168,PROT_READ|PROT_WRITE) = 0
1 prctl(15,1073824208,8,1059533696,1051144192,1059534976) = 0
1 poll(0x3e900488,1,-1) = 1
1 read(4,0x3f272c90,16) = 8
1 poll(0x3e900488,1,-1)1 statx(1,"",AT_EMPTY_PATH|AT_NO_AUTOMOUNT,STATX_BASIC_STATS,0x3ff1d870) = 0
1 write(1,0x40015668,171)<ERROR   > Failed to initialize libapac: Failed to setup authentication module: Failed to add inotify watch for '/var/lib/apac': No such file or directory
 = 171
1 exit_group(1)

[*] Identification of missing filesytem areas.
[*] Found missing area: /etc/ld.so.cache
[*] Trying to identify this missing file: ld.so.cache
[*] Missing file /logs/s115_usermode_emulator/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/etc/ld.so.cache

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