#Compiling nmap so I can use it inside of android studio

12 messages · Page 1 of 1 (latest)

inland zephyr
#

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

GitHub

Nmap - the Network Mapper. Github mirror of official SVN repository. - nmap/nmap

zenith ploverBOT
#

When your question is answered use !solved or the button below to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.

honest flower
#

You can install nmap in termux

inland zephyr
#

I know

#

I’ve already done that for testing

#

But I want to make my own application

inland zephyr
#

Do I compile

honest flower
#

If I'm not replying, it means I don't know 😛

inland zephyr
#

😭

#

You’re an expert