https://github.com/nmap/nmap
i wanted to compile nmap so i can use it in android
app/
src/
main/
assets/
nmap-arm64
nmap-arm
Assets are read-only at runtime, so your app must copy them out.
So basically it’s precompiled instructions
For android to run
Like using a terminal in android
But through the application
val binaryName = when {
abi.contains("arm64") -> "nmap-arm64"
abi.contains("armeabi") -> "nmap-arm"
else -> error("Unsupported ABI $abi")
I have to create a system that detects the instruction set
A lot of work to import native binaries from packages
But it allows way more control than using android’s built-in libraries. Graaa also kotlin sucks