yashsingh1/xdaforums huggingface dataset:
[Android Software Development] misterhsp:
cryptsetup 2.5.0 static aarch64

Note from changelog:

[...]

* Remove cryptsetup-reencrypt tool from the project and move reencryption

to already existing "cryptsetup reencrypt" command.

[...]

...
[Android Software Development] xenosaur:
Attached 7z-zstd version 22.01. Compiled statically for both 32 and 64 bit ARM. This is 7z with additional algorithms support (brotli, zstd, lizard, lz4/lz5).
[Android Software Development] danger001:
Hello, maybe someone can build a static transmission-daemon for arm64?
[Android Software Development] MarkLev:
Please re-upload ntfs-3g or build new one for armv8.

Thank you
[Android Software Development] DualJoe:
For which scenario would this be useful? Its already in Termux repo.
[Android Software Development] danger001:
I don't use termux. The statistic binary of version 2.94 found on the github sometimes ends with segmentathion fault. Termux transmission requires libssl.so.3. I tried to make a symlink on libssl.so, but writes the cannot find libssl.so.3 verneed[0] in DT_NEEDED list for transmission-daemon.

If there's a solution, give me a reference.

I'd like to use a static binary
[Android Software Development] afridi.shahriar:
can u update rsync to the latest 3.2.5 aarch64?
[Android Software Development] DualJoe:
rsync326.aarch64.static.20220910.tar.gz

- compiled with md4, md5, zst, lz4 support
[Android Software Development] aryankaran:
can you provide htop-3.2.1 static binary //
[Android Software Development] DualJoe:
htop321.armv7.static.20220913.tar.gz
[Android Software Development] misterhsp:
gocryptfs 2.3 static (aarch64)
[Android Software Development] danger001:
Can we update the Veracrypt to the last version?
[Android Software Development] DualJoe:
Not sure if @mirfatif will do another build.

I'm wondering if its useful at all (beside having a nice challenge compiling it). Cryptsetup can mount VeraCrypt containers and if you want to create an encrypted container LUKS should be the better choice on Linux.
[Android Software Development] danger001:
when attempting to mount a container veracrypt through a cryptsetup, he's making a mistake, "

equired kernel crypto interface not available.

Ensure you have algif_skcipher kernel module loaded."

Although the Veracrypt is mounting and working without error
[Android Software Development] DualJoe:
veracrypt.v1.25.9.aarch64.static.20220922.tar.gz

Alternatively, there is 'tcplay-veracrypt' in Termux that might work as well.
[Android Software Development] danger001:
Thank you very much
[Android Software Development] aryankaran:
kindly provide fdisk and fIle binaries ... //
[Android Software Development] DualJoe:
fdisk.v2.38.1.aarch64.static.20220924.tar.gz

file.v5.43.aarch64.static.20220924.tar.gz

- put '.magic.mgc' into your $HOME folder
[Android Software Development] aryankaran:
Thanks a lot ...
[Android Software Development] aryankaran:
Requested brotli & python ..
[Android Software Development] lebigmac:
Hi @Borovets @DualJoe @aIecxs and others

Were you guys ever able to compile that static restorecon? What files are required for its compilation other than the libselinux.a (Thanks @DualJoe (y))
[Android Software Development] neerbiqs:
Hi! Could anyone upload 7za standalone for Android x86_64?
[Android Software Development] DualJoe:
They are both in Termux repo.

Follow the build files and its dependencies:

https://git.alpinelinux.org/aports/tree/testing/policycoreutils/APKBUILD
[Android Software Development] DualJoe:
Try this:

7za.v17.04.x86_64.static.20221010.tar.gz
[Android Software Development] aryankaran:
I know they are present in repo but need static one's for using in recovery .. that's why asked ...//
[Android Software Development] theOriginalSuperl2:
Thanks for these tools, they're super convenient!

Has anyone got badblocks from e2fsprogs compiled? Looks like my OnePlus 9R is faulty...
[Android Software Development] mirfatif:
badblocks is of no use with flash storage devices. See this if you are interested in more details.
[Android Software Development] theOriginalSuperl2:
I don't want to block writing to specific bad blocks, I just want to verify whether my storage is faulty or not.

Anyway, I found a copy of badblocks but surprisingly it find anything wrong, even with a non-destructive read-write test on the userdata partition. It is of course possible that the faulty part was not written to in that test, though, due to the non-direct logical -> physical nature of flash storage that that article describes.

That being said, I simply shrunk the filesystem to try and prevent writing to the faulty spot (it seems to crash consistently when the free space hits ~70GB, though I cannot explain why), which has worked.
[Android Software Development] afridi.shahriar:
can you please update to

cryptsetup 2.6.0

parted 3.5

rsync 3.2.5 ?

@misterhsp @mirfatif @DualJoe
[Android Software Development] misterhsp:
At your own risk, not tested. (aarch64)

...
[Android Software Development] afridi.shahriar:
you also shared 2.5.0 previously.

so what did u mean by "At your own risk, not tested"??
[Android Software Development] misterhsp:
That I have not tested because I currently have very little time. But it should be fine. If you notice something, let me know.

...
[Android Software Development] afridi.shahriar:
ok.i got it. using it...
[Android Software Development] afridi.shahriar:
hey, there's a bug in this v1.15.0 build, that is: UUID of the created filesystem becomes null!

(also if i try to insert UUID manually (mkfs.f2fs -U $(uuidgen), still it doesnt work)

I have checked with manjaro, arch, suse's mkfs.f2fs tool v1.15.

they dont have this bug.

so, its a bug in this binary.

@DualJoe your previous f2fs-tools_v1.14.0_aarch64_static_20210113 didn't have this bug.

@misterhsp @mirfatif

can some rebuild this f2fs-tools v1.15.0 from archlinux's sources?
[Android Software Development] MarkLev:
Could anyone please provide "setcon" and "getcon" for arm64-v8a?

It is to set/get security/selinux context of a process.

setcon(3) - Linux man page​

where can I find the source code of function "setcon" in libselinux?​
[Android Software Development] mirfatif:
getcon and setcon are APIs, not binaries. You need to write a program which links to libselinux to use these APIs. There's getpidcon, but no setpidcon.

Simply a process can get/set its own context e.g. in a script, by reading/writing from/to /proc/self/attr/current.
[Android Software Development] MarkLev:
Thanks a lots!!

I am trying to access termux through adb shell

Follow the instructions, I can access it via adb.

But since bash was invoked directly from su shell, it lacks net and storage permission `groups=3003(inet),9997(everybody)`.

I went on a lots of searches on the Internet since I did not know what should be done to fix the issue. Fortunately, after some days I found: How to run a program in an app context with Magisk?

It seems describing exactly what I need, except nsenter, setpriv can no longer be downloaded (404 Not found)

Could anyone please compile these 2 nsenter, setpriv for arm64-v8a?

And maybe Minijail mentioned in the article too?
[Android Software Development] mirfatif:
That SE answer was written by me. I'll try to compile / upload both binaries once I get time.
[Android Software Development] DualJoe:
What about this one?

Edit: 2nd release. Fixed missing uuid.h.
[Android Software Development] MarkLev:
Crazy, what a chance it was!!

Thanks a lots for the SE answer, it was very details. I learnt quite a few good things from it!
[Android Software Development] afridi.shahriar:
yeah. its working properly.

btw, is it possible to build zsh, fish as static binary for aarch?

to get auto suggestion inside android terminal!
[Android Software Development] misterhsp:
cryptsetup-static 2.6.1 (aarch64)
[Android Software Development] buengeut:
Hi all, can anyone give me wget static.

Thanks.
[Android Software Development] Testing33:
encFS successfully mounting but decrypted folder always remain empty.

Even if i put some files in decrypted folder then unmounting it then also it doesn't encrypting the files.

in terminal everything working fine but nothing is getting changed at folder sides.

please help me here.

Android 13
[Android Software Development] DualJoe:
You probably cannot overmount sdcardfs. Try to mount it to a safe place first (outside sdcardfs) and then bind mount it to the primary sdcardfs folder.

/bin/su -mm -c 'mount -o bind /mnt/myencfs /mnt/runtime/default/emulated/0/myencfs'

I'm not sure though if its already too late at runtime (instead of boot time). I personally overmount folders on sdcard in '/data/adb/service.d' (Magisk boot scripts).

The sdcard overmount behavior changes with every Android version. Its a mess indeed.
[Android Software Development] Testing33:
I tried yours and one another different approach as well and both worked.

su -mm -c "encfs --public -o gid=9997,nonempty,noatime,noexec,nodev,nosuid -S /mnt/media_rw/3B86-9400/.Encrypted /mnt/runtime/default/emulated/0/Decrypted.

But now only issue remaining with EncFS is that if we refresh Android media-store then only files from base directory and level 1 directory are getting synced into Gallery but folder level 2,3's files etc remains not synced.

How to resolve level 2,3 syncing issue ?

Please take a look at below ss showing example decrypted directory structure:

(just ignore names and their size bcoz i created text file as jpg file for illustration purpose only).
[Android Software Development] DualJoe:
Maybe try some other places like /data/media/0.

Or try to restart the media-store service (if there is one) to get it into the same mountspace. That's a wild guess though.
[Android Software Development] Testing33:
I tried it, only base level folder's images are getting synched into Gallery, level 1 and further dir are not.

Other encfs sub directories also should be synced. It seems encfs sub directories has some kind of scope or linking issue.
[Android Software Development] DualJoe:
Or file/user permissions are enforced by sdcardfs or Android API.
[Android Software Development] misterhsp:
gocryptfs-static-2.3.1 aarch64

...
[Android Software Development] Testing33:
May be . but i checked permissions of mounted dir and files and they are same as of what other normal folders have.

One crude solution i have found for syncing mediia files to gallery is mounting(with mount -o bind )individual decrypted sub directories to another new folders in root directory of storage.

This method has own limitation as stated above dir can be mounted to only those folders which are present in root of storage ie. ex. /storage/emulated/0/

but this will create another whole mess of lot of folders in root of storage. 😇
[Android Software Development] afridi.shahriar:
can you build "ftp" aarch64 binary?

(Asking it for access files from WiFi network)

@misterhsp @DualJoe
[Android Software Development] afridi.shahriar:
smbnetfs shows "I/O error"

probably its too old to work.

any fix?

can you please add zsh-static?

also build ftp-static?
[Android Software Development] bibikalka:
Would it be possible to compile the most vanilla static armv7 modern zip/unzip command line packages? Many thanks in advance!

Seems like there are different tools here and there, but nothing that's in one place, and actually just does the job without issues. Total Commander unzip seems glitchy, for example (does not handle split zip files). The old zip i found ( https://code.google.com/archive/p/zip-for-android/ ) would complain about 2GB file size, even if the file system supports more (exFAT).

Or perhaps I did not find a good existing package yet!
[Android Software Development] alecxs:
How about p7zip? Latest version is v22 not compiled yet.

https://github.com/p7zip-project/p7zip
[Android Software Development] afridi.shahriar:
mke2fs-progs has an update, v 1.47.0

can someone plz update it?
[Android Software Development] bibikalka:
Yep, this looks good! I might be able to get by with the existing version - will try it!

PS. It seems the latest is v17.05. Perhaps worth updating at some point? DualJoe
[Android Software Development] Alonso_Quixana:
I need assistance... every post here looks as if it's solely meant for people with a diploma in Linux Administration, but I'm just a 'normal' Android user...

All I actually want is mounting a VeraCcrypt parrtition that is on my external SD card to an internal folder on my Android device (alternatively just a VeraCrypt container). The app 'EDS' (paid version) always gives an error when I try to mount a container to an internal folder (so any program can use the contents normally).

On this thread, there was mention of veracrypt.v1.25.9.aarch64.static.20220922.tar.gz and also tcplay-veracrypt for Termux. However, not a single word how to install/use any of this (see above - not everyone is a Linux Pro)...

So, could anyone here PLEASE explain to me in simple words what exactly I have to do to mount a Veracrypt partition (or container) with the tools offered here? I use a Motorola Moto G7 play with Android 10...

On a different note, I also never managed to get TWRP working on that phone ( see https://xdaforums.com/t/moto-g7-play-xt1952-1-please-help-with-twrp-install.4556333/ ) ... anyone here with the same phone who got it working successfully?
[Android Software Development] switchem:
I could use some help with that exact scenario as well. I installed the fbind Magisk module, installed cryptsetup by the terminal commands in Termus: pkg install root-repo && pkg install cryptsetup
[Android Software Development] afridi.shahriar:
can you plz build zsh and fish static aarch64 build?
[Android Software Development] afridi.shahriar:
can update the e2fsprogs to 1.47.0?

and, share a tutorial how to build aarch64 builds from a x86 linux pc?
[Android Software Development] misterhsp:
Is it somehow possible to make a mounted gocryptfs (/storage/cryptfs) visible as sdcardfs? I can only get there with root privileges.

Thenks...
[Android Software Development] Alonso_Quixana:
Really now... everyone on this thread talked so knowledgeable, as if all the stuff here were nothing but child's play to them.. and now, when someone of lesser education (me) dares to ask, PLEASE HELP ME AND EXPLAIN HOW THOSE TOOLS ARE ACTUALLY INSTALLED AND USED, nobody replies?

Is really nobody here who can explain to me in simple words how to mount a Veracrypt partition (or alternatively just a container) with the tools offered on this thread? (see my earlier post) I'm quite sure there are more than just me who want to know too...
[Android Software Development] DiamondJohn:
If you read the thread title, its NOT an instructional thread explaining how to use the binaries, Its about the supply of binaries. taking it to the extreme, the explanation would be OT.

How to use a binary would be found by searching the internet, I think that is even a rule of XDA. Maybe you could even start your own thread asking your particular question or post it in the ask anything thread(s)
[Android Software Development] Borovets:
Hi all. Help me build the latest versions of sed and grep (aarch64, static) - because it doesn't compile correctly for me. Thanks for helping out... :cry:
[Android Software Development] afridi.shahriar:
@Borovets simply download busybox-static

and, rename it to "sed"

it will become like sed static binary
[Android Software Development] afridi.shahriar:
Just download toybox-static aarch64, rename it to grep.

it will work as a static grep ! @Borovets
[Android Software Development] Alonso_Quixana:
Ok, my mistake then - I really didn't notice from the title that you can't ask here how to actually do it.

A simple explanation how to use a (Linux/Android) binary is NOT easily found on the internet, especially not for a Windows user. I would not bother others if I hadn't searched high and low, far and wide and tried everything possible within my knowledge...

So I still have this problem how to mount a Veracrypt-encrypted SD partition or container (off-topic or not). If you do know how, maybe you could just PM me and help, please?
[Android Software Development] misterhsp:
Too bad that no one has an idea how to realize this.

...
[Android Software Development] mirfatif:
Visibility problem is due to isolated mount namespace. Search this thread. It has already been discussed many times.

But you'll still need root due to the reason already explained to you:

You can use bindfs over gocryptfs to achieve the fixed permissions behavior.
[Android Software Development] misterhsp:
Do you have an example of bindfs?

...
[Android Software Development] afridi.shahriar:
it won't work with bindfs.

I tried. but, didn't work.

btw, you can use it with root by mounting at /mnt/media_rw/disk

can anyone build the latest fscrypt 0.3.4??

@mirfatif
[Android Software Development] misterhsp:
And it does work with bindfs!

Thanks for your hints

bindfs -o nosuid,nodev,noexec,noatime,context=u:object_r:sdcardfs:s0 -u 0 -g 9997 -p a-rwx,ug+rw,ugo+X --create-with-perms=a-rwx,ug+rw,ugo+X --xattr-none --chown-ignore --chgrp-ignore --chmod-ignore /storage/gocryptfs /mnt/runtime/write/emulated/0/gocryptfs

Source:

How to bind mount a folder inside /sdcard with correct permissions?

I am using a Sony Xperia M4 Aqua. As is well known, the internal memory is rather small. Especially the Media directory of WhatsApp uses a lot of precious space, therefore I am trying to move it to...

android.stackexchange.com
[Android Software Development] Ultramanoid:
Just put them yourself in /system/bin, and give appropriate permissions. No issues here.
[Android Software Development] UltraM8:
Is it possible to get readelf for android?
[Android Software Development] eleven14:
TrueCrypt is fully audited:

opencryptoaudit.org

But VeraCrypt is not.

EncFS is file-based encryption scheme but TrueCrypt is container-based scheme.

In general, many encryption schemes with binaries are better than one or few.
[Android Software Development] Ultramanoid:
I'm sorry but you have it completely backwards. TrueCrypt is abandonware with no more development, it was dropped years ago by its official developers, has issues that will never be solved, and VC has been audited and patched for both the issues found in TC and its own, with development ongoing and active.

Yes, EncFS is file-based as opposed to container or full-disk, but it is also in active development, maintained, and has been audited, and as of today the only completely cross-platform encryption you can use between Android and other OSes.

If you want to use unsafe abandonware is up to you. But get the facts straight.

Edit : Just bothered to check myself the exact date; the last version of TC was released in 2014, the developers officially quit then, and recommended users to move on to something other than TC, no more development has been done on TC since that moment. That last version by the way was the very questionable 7.2 which nobody would recommend, the way they dropped it. Mirrors appeared everywhere with the much more trustworthy 7.1a, that was released much earlier than that. So we're talking software to manage data securely that was discontinued about 5 years ago and not recommended anymore by its own developers 4 years ago.
[Android Software Development] eleven14:
Ok)

Please to add VeraCrypt:

github.com/veracrypt/VeraCrypt

Thanks.
[Android Software Development] buengeut:
Why not use Cryptsetup (container based).

I'm happy to use EncFS on Android, Linux, and Windows (EncFSMP).
[Android Software Development] eleven14:
How to create a TrueCrypt/VeraCrypt container with Cryptsetup?
[Android Software Development] buengeut:
That's not possible, why not use LUKS container.
[Android Software Development] eleven14:
Because TrueCrypt/VeraCrypt binaries is more convenient and familiar for me and there are many options on the command line which are absent in cryptsetup.

Also in LUKS isn't possible to use password with many key files.
[Android Software Development] DualJoe:
Yes, done. See 1st post.
[Android Software Development] UltraM8:
Awesome, thx!
[Android Software Development] LexS007:
testdisk and photorec doesn't works. You need to add ./l/linux file too, proof

You can download full arm release here
[Android Software Development] DualJoe:
Check symlink /etc->/system/etc.
[Android Software Development] buengeut:
[MENTION=4293606]DualJoe[/MENTION], Can you build nethogs

Thanks.
[Android Software Development] DualJoe:
[MENTION=8344367]buengeut[/MENTION]:

Done! See 1st post.

Nice speedmeter with 'nethogs -d0' and nice traffic counter with 'nethogs -v1'. Thx! :good:
[Android Software Development] 白い熊:
[MENTION=4293606]DualJoe[/MENTION] can you build rsync?
[Android Software Development] DualJoe:
rsync is in termux already. If you need static build anyway let me know.
[Android Software Development] 白い熊:
Yeah, I'd like a static one, since for all the stuff in Termux to run as root I need to export LD_LIBRARY_PATH with Termux's /usr/lib...
[Android Software Development] DualJoe:
Did you try 'tsu' yet? Its especially for preparing env. Edit: Nevermind, you probably want to run it outside termux env.

Nevertheless, rsync/static is ready on 1st post. I'm not all too familiar with rsync though. I've seen there is some (probably optional) stuff with /etc/rsyncd.conf going on so i configured rsync *.conf files to /data/etc (--with-rsyncd-conf=/data/etc/rsyncd.conf) as standard /etc->/system/etc might be r/o for most people. Edit: On the other hand.. it seems to be for the daemon only and the file just needs to be configured once. Whatever, can be manually configured anyway.
[Android Software Development] misterhsp:
But what with gocryptfs yet another problem. It does not return the shell prompt with the -nosyslog option. I have already tried everything possible, it just does not want.

...
[Android Software Development] mirfatif:
That's expected. See man page and how to detach a process from shell terminal.
[Android Software Development] misterhsp:
gocryptfs-static-2.3.2 aarch64

...
[Android Software Development] afridi.shahriar:
can you please compile the fscrypt 0.3.4?
[Android Software Development] misterhsp:
No, I can't. Already tried several times.

...
[Android Software Development] blackeangel:
Hi! Can anyone compile statically file last version arm7vl?
[Android Software Development] misterhsp:
fscrypt-static 0.3.4 aarch64

I would be happy if you give me feedback if this all works as you think.

I have only briefly tested whether the binary runs.
[Android Software Development] afridi.shahriar:
yeah. its working.
[Android Software Development] misterhsp:
gocryptfs-static-2.4.0 aarch64

...
[Android Software Development] unoaman:
Can someone help with https://github.com/mmaraya/netkit-ftp
[Android Software Development] misterhsp:
DualJoe probably doesn't show up here anymore? The first post should be updated.​

....
[Android Software Development] xenosaur:
Update 7z-std 23.01 binaries for both bitness (static).

Added sha3, blake3, sha384/512, arm64 filter, lzham compression.
[Android Software Development] sd24sep:
Does anyone has an idea about how to access a file in sdcard under Android 11+ using cryptsetup? Cryptsetup can not read encrypted file in Android 11+ (due to SAF I guess), had no problem in Android 10.
[Android Software Development] misterhsp:
cryptsetup-static 2.7.0 (aarch64)
[Android Software Development] smartman_ru:
Are all binaries available in one archive at once?
[Android Software Development] DualJoe:
Not that I'm aware of.
[Android Software Development] misterhsp:
cryptsetup-static 2.7.1 (aarch64)
[Android Software Development] Ultramanoid:
On the crypsetup note, anybody willing and able to build the latest VeraCrypt again ( 1.26.7 ) ?
[Android Software Development] misterhsp:
I tried this once with veracryot, but I can't find the right option for a static build. The result is always dynamically linked.

/hsp
[Android Software Development] misterhsp:
@Ultramanoid

Now I've got it right.

veraycrypt-static 1.26.7 (aarch64)
[Android Software Development] Ultramanoid:
This is a tricky one indeed. Much appreciated, thank you.
[Android Software Development] xenosaur:
gptfdisk updated to 1.0.10 version

compiled for both bitnesses
[Android Software Development] misterhsp:
fscrypt-static 0.3.5 (aarch64)