Skip to content

Linux backend via NativeAccess + JitPack JDK 11 config#3

Merged
ChristopherProject merged 1 commit into
masterfrom
nextgen
May 16, 2026
Merged

Linux backend via NativeAccess + JitPack JDK 11 config#3
ChristopherProject merged 1 commit into
masterfrom
nextgen

Conversation

@ChristopherProject
Copy link
Copy Markdown
Owner

@ChristopherProject ChristopherProject commented May 16, 2026

Superseded by #4 — the development branch has been renamed from nextgen to experimental to avoid confusing downstream users.

Platform dispatch is centralised in it.adrian.code.platform.NativeAccess,
which reflectively loads either WindowsAccess (kernel32/user32/shell32
via JNA) or LinuxAccess (/proc/<pid>/{maps,mem,comm,exe} + libc geteuid)
so the unused backend's native libraries are never initialised.

Pointer, Memory and ProcessUtil.getProcessPidByName route through this
interface and work on both platforms. The pre-existing Windows-only
helpers (ProcessUtil.getModule, Shell32Util, SignatureManager,
SignatureUtil) and the WinNT.HANDLE-based Pointer constructor are kept
for backward compatibility.

README updated with the dual-platform requirements, Linux examples,
architecture overview and revised caveats.
@ChristopherProject ChristopherProject merged commit e0c676b into master May 16, 2026
1 check passed
@ChristopherProject ChristopherProject changed the title Add Linux backend behind a NativeAccess abstraction Linux backend via NativeAccess + JitPack JDK 11 config May 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant