yashsingh1/xdaforums huggingface dataset:
[Android Software Development] DualJoe:
Maybe try the '--debug' switch to get more detailed info.

The error message is truncated in strace. Try with '-s 256' or 512 to get the last error completely.

5458 writev(2, [{iov_base="", iov_len=0}, {iov_base="Cannot format device /storage/36"..., iov_len=71}], 2) = 71

Try a different cipher. Maybe 'aes-xts-plain64' or some other is missing.
[Android Software Development] misterhsp:
I have already tried everything possible, it remains with the error.
[Android Software Development] misterhsp:
Here again the output of strace with --debug option.

5108 execve("/data/local/bin/cryptsetup.static", ["cryptsetup.static", "luksFor - Pastebin.com

Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.

pastebin.com

...
[Android Software Development] DualJoe:
Try this and post the three log files.

dd if=/dev/zero of=test.img bs=1M count=100
sudo sh -c 'echo "123" | cryptsetup -v --debug luksFormat -c aes-xts-plain64 test.img -q > cryptsetup1.log 2>&1'
sudo sh -c 'echo "123" | cryptsetup -v --debug luksFormat -c cbc-essiv:sha256 test.img -q > cryptsetup2.log 2>&1'
sudo sh -c 'echo "123" | cryptsetup -v --debug luksFormat -c aes-plain test.img -q > cryptsetup3.log 2>&1'

Edit: fixed missing 'test.img'
[Android Software Development] misterhsp:
That's all it says. I have put the two lines now times so purely here.

5108 execve("/data/local/bin/cryptsetup.static", ["cryptsetup.static", "luksFormat", "/storage/369E-EB58/luks-containe"...], ["_=/system/bin/strace", "ANDROID_DATA=/data", "ANDROID_ART_ROOT=/apex/com.andro"..., "HOME=/", "ANDROID_TZDATA_ROOT=/apex/com.an"..., "TERMINFO=/system/etc/terminfo", "ANDROID_ASSETS=/system/app", "TERM=xterm-256color", "MC_AUTH_TOKEN_PATH=/efs", "ANDROID_SOCKET_adbd=17", "ANDROID_STORAGE=/storage", "EXTERNAL_STORAGE=/sdcard", "DOWNLOAD_CACHE=/data/cache", "LOGNAME=root", "SYSTEMSERVERCLASSPATH=/system/fr"..., "DEX2OATBOOTCLASSPATH=/apex/com.a"..., "BOOTCLASSPATH=/apex/com.android."..., "SHELL=/system/bin/sh", "ANDROID_BOOTLOGO=1", "ASEC_MOUNTPOINT=/mnt/asec", "HOSTNAME=crownlte", "USER=root", "TMPDIR=/data/local/tmp", "PATH=/product/bin:/apex/com.andr"..., "ANDROID_ROOT=/system", "ANDROID_I18N_ROOT=/apex/com.andr"...]) = 0

5108 writev(2, [{iov_base="", iov_len=0}, {iov_base="Cannot format device /storage/36"..., iov_len=71}], 2) = 71
[Android Software Development] DualJoe:
Its still stripped. Something's wrong with the '-s 512' part. But i have replaced the post (see above). That should be a better approach.
[Android Software Development] misterhsp:
All 3 attempts.

1:===# cryptsetup 2.3.5 processing "cryptsetup -v --debug luksFormat -c - Pastebin.com

Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.

pastebin.com
[Android Software Development] DualJoe:
It cannot lock the file. That's probably due to the filesystem (sdcardfs) not supporting that. Try on ext4 like somewhere in /data. Maybe you can move the file later (not sure). All the /storage folders might be "looped" through vold (Android Volume Daemon) and thus might be problematic.
[Android Software Development] misterhsp:
Bull's eye, on ext4 it works. Hard to believe. But why does luks1 work on the sdcard (exfat) and luks2 not which is standard. Let's see if there is a trick to make it work.

...
[Android Software Development] DualJoe:
Its probably not exfat but sdcardfs. Its an abstraction layer on top. I had problems with bind mounts on sdcardfs as well. Depending on your Android version you might have additional mount points to test. You could also try to mount it manually. I personally handle my external sdcard manually (ext4) with a magisk boot script to bypass vold.
[Android Software Development] misterhsp:
Can you show me your boot-script, I also have magisk.

...
[Android Software Development] DualJoe:
/data/adb/service.d/myboot.sh (0744)

# LOS18.1 (Android 11)
# exec &> /data/bootlog.txt
mount -o remount,rw /
mkdir -p /mnt/media_rw/sdcard1
chmod 777 /mnt/media_rw
mount -t ext4 -o rw,noatime /dev/block/mmcblk1p1 /mnt/media_rw/sdcard1
mount --bind /mnt/media_rw/sdcard1/sdcardint /data/media
# $ tree /mnt/media_rw/sdcard1/sdcardint -L 1
# /mnt/media_rw/sdcard1/sdcardint
# ├── 0
# └── legacy
mount -o remount,ro /

It throws a minor error on bootup ("sdcard not initialized") because vold cannot mount it (ext4).

The bind mount overlays the internal sdcard (and the obb files). They reside on external sdcard now and thus more storage for /data/apps.

Maybe it would be better to create two partitions. The first for Android (a proper/small one that can be handled by vold) and another for ext4. It might prevent the error. Not tested yet.
[Android Software Development] misterhsp:
But what I just remembered, where did you get sudo on Android? I have never seen it before.
[Android Software Development] DualJoe:
True, there is none. But the Termux 'sudo' (tsu wrapper) should work for most stuff. Otherwise use the root account directly (uid 0). My main sshd is a root Termux shell that is more or less my reference.
[Android Software Development] misterhsp:
With the option --disable-locks it works also the sdcard with exfat I still found out. But I think that not such a good idea, right

...
[Android Software Development] DualJoe:
Don't know. But there should be an option to change the lock folder at compile time (/run). Not sure if that's of any help. Can't see anything of this in strace logs. It might just be used in special cases.

https://superuser.com/questions/1521473/command-requires-missing-run-on-read-only-filsystem
[Android Software Development] misterhsp:
No that does not help. And besides, it's already in your recipe (/dev/cryptsetup). I still wonder how risky it is to use the --disable-locks option, but it works.

...
[Android Software Development] DualJoe:
I guess "locking" files is done here to have exclusive i/o to prevent snooping by other programs. If that's true there shouldn't be any higher security risk as there might not be any Android malware targeting root cryptsetup. But that's just a guess...
[Android Software Development] misterhsp:
It does seem to be related to vold. When copying the container to internal memory, the problem does not occur.

...
[Android Software Development] putaway:
Could you, please, build a static scalpel binary? Source: https://github.com/sleuthkit/scalpel

That app allows one to find any files with particular header or footer, which is useful for the many file formats most solutions won't recognize.
[Android Software Development] mirfatif:
Which arch? I've one for arm64.
[Android Software Development] putaway:
Yeah, that should do as long as it's static. I need the usual binary for armv7 or 8 (32 or 64bit LSB arm), like the ones @DualJoe posted in this thread.
[Android Software Development] misterhsp:
cryptsetup 2.4.0 unfortunately does not build, can someone help? Have followed the instructions from DualJoe, but with 2.4.0 this error occurs.

export LANG=C./configure --host=${CROSS_COMPILE} --prefix=${SYSROOT}/usr --l - Pastebin.com

Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.

pastebin.com

Thanks...
[Android Software Development] alecxs:
Did you search for?

https://askubuntu.com/questions/454...rence-to-dlopen-errors-while-compiling-and-us
[Android Software Development] misterhsp:
Thank you, unfortunately this does not help. But in my posting/paste there is also nothing about dlopen.

Someone else has an idea what could help.

Thanks
[Android Software Development] alecxs:
show your linker flags
[Android Software Development] misterhsp:
#!/bin/bash# --------------------------------------------------------------- - Pastebin.com

Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.

pastebin.com
[Android Software Development] alecxs:
I recommend to re-read my previous* first post

*corrected because of language barrier
[Android Software Development] misterhsp:
your previous post says 'show your linker flags'
[Android Software Development] misterhsp:
It's not all professionals here. Maybe you can tell us exactly what you mean. My knowledge is exhausted.

...
[Android Software Development] misterhsp:
If you mean the flags, they are in the paste
[Android Software Development] alecxs:
I can't see suggested solution in your linker flags
[Android Software Development] misterhsp:
Well, you don't want to help, then we don't need to talk any further.
[Android Software Development] misterhsp:
Here again the error, maybe someone else has a hint.

export LANG=C./configure --host=${CROSS_COMPILE} --prefix=${SYSROOT}/usr --l - Pastebin.com

Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.

pastebin.com

...
[Android Software Development] DualJoe:
luks2_token.c:(.text+0x588): undefined reference to `dlvsym'

'dlvsym' is a gnu extension missing in musl. Either there are some 'configure' options that circumvent that dependency or it probably has to be patched. Maybe something like this:

// musl doesn't have dlvsym()
#define dlvsym(h,s,v) dlsym(h,s)

https://www.yoctoproject.org/pipermail/yocto/2018-March/040147.html
[Android Software Development] alexander255:
Hi! Could you maybe add a short guide on how you compile those binaries? I need to compile something as trivial as:

#include <sys/reboot.h>

int main() {
reboot(RB_AUTOBOOT);
return 0;
}

(Needs to be fully static and able to run from initramfs.)

I tried using the Linaro toolchain, but the binaries either aren't static or the linking fails with duplicate symbol errors. :(

A few pointers could help me a long way. :)
[Android Software Development] DualJoe:
You probably just have installed the wrong toolchain. It should compile out of the box.

https://releases.linaro.org/components/toolchain/binaries/latest/arm-linux-gnueabi/
[Android Software Development] alexander255:
Thanks! I had used the arm-linaro-linux-androideabi and nothing worked… I guess the word android in there didn't mean what I thought it meant. :o

:good:
[Android Software Development] buengeut:
One of my devices does not support eCryptFS but support Fuse, can you build Crypttool based on Fuse like EncFS or Gocryptfs.

I don't like to use a container to encrypt files (Cryptsetup,LUKS, Veracrypt, Truecrypt).

Thanks.
[Android Software Development] DualJoe:
EncFS v1.9.4 added.
[Android Software Development] buengeut:
Works perfectly, Thank you so much.
[Android Software Development] mirfatif:
You are really doing a great job.

May you please build EncFS for aarch64?
[Android Software Development] buengeut:
It works on aarch64 (armv8).
[Android Software Development] mirfatif:
Obviously it does but 64bit is better than 32bit
[Android Software Development] DualJoe:
Please post some cat /proc/cpuinfo from armv8-a processors. I'm not sure if i should go for +crc+crypto extensions.
[Android Software Development] mirfatif:
Here it is. It's a Xiaomi Redmi Note 4 (mido).

processor	: 0
BogoMIPS	: 38.40
Features	: fp asimd evtstrm aes pmull sha1 sha2 crc32
CPU implementer	: 0x41
CPU architecture: 8
CPU variant	: 0x0
CPU part	: 0xd03
CPU revision	: 4

processor	: 1
BogoMIPS	: 38.40
Features	: fp asimd evtstrm aes pmull sha1 sha2 crc32
CPU implementer	: 0x41
CPU architecture: 8
CPU variant	: 0x0
CPU part	: 0xd03
CPU revision	: 4

processor	: 2
BogoMIPS	: 38.40
Features	: fp asimd evtstrm aes pmull sha1 sha2 crc32
CPU implementer	: 0x41
CPU architecture: 8
CPU variant	: 0x0
CPU part	: 0xd03
CPU revision	: 4

processor	: 3
BogoMIPS	: 38.40
Features	: fp asimd evtstrm aes pmull sha1 sha2 crc32
CPU implementer	: 0x41
CPU architecture: 8
CPU variant	: 0x0
CPU part	: 0xd03
CPU revision	: 4

processor	: 4
BogoMIPS	: 38.40
Features	: fp asimd evtstrm aes pmull sha1 sha2 crc32
CPU implementer	: 0x41
CPU architecture: 8
CPU variant	: 0x0
CPU part	: 0xd03
CPU revision	: 4

processor	: 5
BogoMIPS	: 38.40
Features	: fp asimd evtstrm aes pmull sha1 sha2 crc32
CPU implementer	: 0x41
CPU architecture: 8
CPU variant	: 0x0
CPU part	: 0xd03
CPU revision	: 4

processor	: 6
BogoMIPS	: 38.40
Features	: fp asimd evtstrm aes pmull sha1 sha2 crc32
CPU implementer	: 0x41
CPU architecture: 8
CPU variant	: 0x0
CPU part	: 0xd03
CPU revision	: 4

processor	: 7
BogoMIPS	: 38.40
Features	: fp asimd evtstrm aes pmull sha1 sha2 crc32
CPU implementer	: 0x41
CPU architecture: 8
CPU variant	: 0x0
CPU part	: 0xd03
CPU revision	: 4

Hardware	: Qualcomm Technologies, Inc MSM8953
[Android Software Development] DualJoe:
Thanks. Looking good, both supported by your phone.

EncFS v1.9.4 armv8 added. I cannot test it though.
[Android Software Development] buengeut:
Can you help me again to build Hexcurse

Thanks.
[Android Software Development] DualJoe:
Hexcurse v1.60.0 added

Its somewhat hard to control though on the phone (with on-screen keyboard). Just works on landscape here and even there you just have like 7 lines with 5-row 'Hacker's Keyboard'. Works nicely in ssh session though.
[Android Software Development] mirfatif:
Initial tests seem working. Thanks
[Android Software Development] buengeut:
Thanks, you are the best.
[Android Software Development] korg91:
[MENTION=4293606]DualJoe[/MENTION] Thanks a lot for these binaries. Would you mind sharing a little HOW-TO for compiling them? I'm very thankful for your work, but I don't feel comfortable executing binaries found on XDA as root. Thanks
[Android Software Development] DualJoe:
https://developer.android.com/ndk/g...n_source_projects_using_standalone_toolchains

There are tools to analyze, debug or decompile binaries. A simple tool would be 'strace' linked above that logs system calls.
[Android Software Development] eleven14:
Please to add truecrypt:

github.com/AuditProject/truecrypt-verified-mirror

Thanks.
[Android Software Development] Ultramanoid:
TrueCrypt is abandonware and has been for quite some time, years in fact ! On top of that, it already had several unresolved security vulnerabilities at the time development stopped. Hardly recommended to use it for encryption at all. Makes no sense. The closest thing duly maintained, audited, cross-platform and with TC-encrypted filesystems compatibility if that's required, would be the VeraCrypt project.

The provided EncFS build works perfectly well, and it's a better alternative at this point.
[Android Software Development] alecxs:
true, didn't notice about libc musl. good find, all I found was always about linker only.

here is some patch

https://gitlab.com/cryptsetup/cryptsetup/-/issues/665
[Android Software Development] misterhsp:
@DualJoe

A configure --help shows nothing like that which could help. The patching is far beyond my knowledge.
[Android Software Development] DualJoe:
They are working on it. Just wait for the next releases.
[Android Software Development] misterhsp:
Yes, that will probably also be the best.
[Android Software Development] alecxs:
try again cryptsetup v2.4.1
[Android Software Development] misterhsp:
2.4.1 ???

I see only 2.4.0

cryptsetup / cryptsetup · GitLab

Cryptsetup and LUKS - open-source disk encryption

gitlab.com

...
[Android Software Development] alecxs:
just git clone master, according to above link it is already merged (also the linker flags)
[Android Software Development] misterhsp:
Alpine now has a patch for this.

0001-Fix-symbol-version-test-if-dlvsym-is-not-available.patch\cryptsetup\main - aports - Alpine packages build scripts

git.alpinelinux.org

2.4.0 successfully built.

...
[Android Software Development] afridi.shahriar:
can u plz update to v2.4.0? thanks
[Android Software Development] misterhsp:
Here you go :)

...

/edit

Is aarch64.
[Android Software Development] afridi.shahriar:
is this

stable ? previously it was made by @DualJoe

btw, how to made these binaries from sourcecode??
[Android Software Development] misterhsp:
Yes is stable. The binarys running on my Note9.

...
[Android Software Development] afridi.shahriar:
btw, how to made these binaries? any guide?

can i make it in my phn with termux?
[Android Software Development] misterhsp:
In the first post DualJoe has already posted a howto. I also do it that way.
[Android Software Development] misterhsp:
cryptsetup 2.4.1 aarch64

...
[Android Software Development] afridi.shahriar:
sourceware.org Git - lvm2.git/summary

@mirfatif @DualJoe @misterhsp

can u plz compile arm64 baniry for "lvm2" ?

thanks
[Android Software Development] misterhsp:
alpine (aarch64) already has static binaries, they should work on Android (aarch64) (not tested)

Alpine Linux packages

pkgs.alpinelinux.org

apk search lvm2-static device-mapper-event-static device-mapper-static
lvm2-static-2.02.187-r1
device-mapper-event-static-2.02.187-r1
device-mapper-static-2.02.187-r1

...
[Android Software Development] afridi.shahriar:
yeah. but, how to download the binary?? can't find any download link from that page https://pkgs.alpinelinux.org/package/edge/main/aarch64/lvm2
[Android Software Development] misterhsp:
Mirror health
[Android Software Development] afridi.shahriar:
~ $ su

:/data/data/com.termux/files/home # /cache/lvm2

/cache/lvm2: syntax error: unexpected ';;'

/cache/lvm2[49]: .SIGN.RSA.alpine-devel@lists.alpinelinux.org-58199dcc.rsa.pub0000644000000000000000000000040013731733403022317: inaccessible or not found

/cache/lvm2[52]: �: inaccessible or not found

/cache/lvm2[52]: ��

*

p3�EQe~��: inaccessible or not found

/cache/lvm2: no closing quote

/cache/lvm2[52]: ������#0xtBV�: inaccessible or not found

/cache/lvm2[52]: ��12�^@0�2I^Y@: inaccessible or not found

/cache/lvm2[52]��

: inaccessible or not found

/cache/lvm2[52]:: inaccessible or not found

/cache/lvm2[52]: xx���h��4��D.symtab.strtab.shstrtab.rela.text.data.bss.rodata.str1.1.comment.note.GNU-stack.rela.eh_frame: inaccessible or not found

/cache/lvm2[53]: syntax error: unexpected '('

1|:/data/data/com.termux/files/home # lvm2 --help

/system/bin/sh: lvm2: inaccessible or not found

cache/lvm2 <

/cache/lvm2[49]: .SIGN.RSA.alpine-devel@lists.alpinelinux.org-58199dcc.rsa.pub0000644000000000000000000000040013731733403022317: inaccessible or not found

/cache/lvm2: syntax error: unexpected ';;'

/cache/lvm2[52]: �: inaccessible or not found

/cache/lvm2[52]: ��

*

p3�EQe~��: inaccessible or not found

/cache/lvm2[52]: ������#0xtBV�: inaccessible or not found

/cache/lvm2: no closing quote

/cache/lvm2[52]: ��12�^@0�2I^Y@: inaccessible or not found

/cache/lvm2[52]��

------

not working
[Android Software Development] misterhsp:
I can't help you there. Maybe Termux is the problem, or you don't have a static binary.

...
[Android Software Development] afridi.shahriar:
yeah. can u plz makemake lvm2 from sources?

or, is it too tough?
[Android Software Development] misterhsp:
I don't have time right now, maybe next week. LVM2 has many dependencies that need to be built before.

...
[Android Software Development] afridi.shahriar:
okay.
[Android Software Development] DualJoe:
Use 'tar xf' on the apk files. You probably just have uncompressed the first layer (gz) and not the 'tar' one.
[Android Software Development] afridi.shahriar:
i extracted using an app, and, it detected that as a gz file.

no problem with extracting, just the binary doesn't work properly
[Android Software Development] DualJoe:
Its very likely not extracted properly. The output clearly shows parts of the signature file that is part of a text file. The shell also seems to execute the file as script not as binary. Maybe your unpacker has problems with 'ustar tar' files or something like that. Try again with proper 'tar'.

It works for me on Termux (lvm2-2.02.187-r1.apk):
[Android Software Development] afridi.shahriar:
but, very hard to play with lvm on android. hehe

download link: https://alpine.pkgs.org/3.14/alpine-main-aarch64/lvm2-2.02.187-r1.apk.html
[Android Software Development] DualJoe:
The static libs are for compilation only. The binaries are in the archive i mentioned above.
[Android Software Development] afridi.shahriar:
ok.

i installes alpne linux.

inside it , i installed e2fsprogs and f2fs-tools.

but, cant format any partition using these binaries from here.(yes, im root)

[root@localhost ~]# mkfs.f2fs -f /u/blk/cust

F2FS-tools: mkfs.f2fs Ver: 1.14.0 (2020-08-24)

Info: Disable heap-based policy

Info: Debug level = 0

Info: Trim is enabled

Error: Failed to get the device stat!

[root@localhost ~]# mkfs.f2fs -f /dev/block/by-name/cust

F2FS-tools: mkfs.f2fs Ver: 1.14.0 (2020-08-24)

Info: Disable heap-based policy

Info: Debug level = 0

Info: Trim is enabled

Error: Failed to open the device!

[root@localhost ~]#

----

also installed parted (apk add parted)

[root@localhost ~]# parted

bash: parted: command not found

[root@localhost ~]# apk add parted

(1/1) Installing parted (3.4-r0)

Executing busybox-1.34.0-r5.trigger

OK: 64 MiB in 63 packages

[root@localhost ~]# parted

Error: No device found

Retry/Cancel? cancel

[root@localhost ~]# parted /dev/block/sda

Error: Error opening /dev/block/sda: Permission denied

Retry/Cancel?
[Android Software Development] DualJoe:
Depending on your rom/kernel/device the system/hypervisor might protect the partitions. I also wouldn't count all too much on GNU Linux disk tools in the Android world. There might be things that don't work or could harm your device severely (writing MBR/GPT or something). I would rather use well-tested tools instead.

'parted -l' (list) works for me in Termux. Maybe you have more luck in TWRP.
[Android Software Development] afridi.shahriar:
hey.

i discovered it!

actually ,

termux-alpine is working as proot.

not real root (0).

that's why these errors are showing.

even if i deny magisk root access to termux , still termux-alpine is showing as root and i read "termux-alpine" binary.

it's written as proot.

so, how can i become real root user from alpine?
[Android Software Development] afridi.shahriar:
can u plz update f2fs-tools to 1.14.0-3 ?

because 1.14.0 has critical bugs for resize.f2fs

example: create a 100MiB f2fs partition.

now increase the partition size to 1GiB (from parted)

and do: resize.f2fs

now instead of increasing f2fs, it will become corrupted! and, u can't mount/fsck it.

this bug is in v1.14.0

------

in v1.14.0-1,

u can resize it .

but, the preallocated area will become so high, it will nearly eat 50% of ur partition after resizing.

ex: u have a 100MiB f2fs partition. (45MiB reserved by f2fs preallocation of 100MiB)

do resize.f2fs (v1.14.0-2),

now, increase the partition to 1GiB, and, resize.f2ffs this partition.

now, u can mount the partition, but,

f2fs uses 490MiB of 1GiB as reserved!!!

----

this bug is fixed in v1.14.0-3 (2021 sept 9, arch_linux), i have tested this fix.

so , can u plz build this f2fs-tools v1.14.0-3 static aarch64 binary?

thanks
[Android Software Development] DualJoe:
This is a master snapshot (1603a3d1d).
[Android Software Development] afridi.shahriar:
thanks.

but, it still has the same bug as before. that, resizing a partition from 100MiB to 1GiB/more corrupts the partition.

----

can u plz make it from the archlinux's f2fs-tools 1.14.0.-3 sources?

as, only in Arch linux, its actually fixed.

(debian, Ubuntu, solus, fedora etcs - all has a bug of over provisioning 50% of the partition space after resizing)
[Android Software Development] DualJoe:
Check with 'fsck.f2fs -V' that it shows '2021-09-20' and you don't have any other version in your $PATH.

The commit they cherry-picked in Arch build 3 is already included. There is nothing left to do.
[Android Software Development] afridi.shahriar:
i kept them under /cache , and, did

su

/cache/mkfs.f2fs ...

....

/cache/resize.f2fs

and still it happened.

i checked manjaro and arch -- they r fixed in their latest version..

BTW, thanks for ur try!!!
[Android Software Development] DualJoe:
I've double-checked that the Arch commit is included and applied. Either it doesn't work on ARM (or something) or you are still using the wrong binary. 'resize.f2fs' is a symlink. Maybe it picks the '/system/bin/fsck.f2fs' one instead and not the new one in your folder. That's why i strongly adviced to check the binary with '-V'.