mirror of
https://github.com/cbeuw/Cloak.git
synced 2026-04-25 04:25:59 +03:00
[PR #326] Quich and lazy way to load and run cloak as dynamic library #318
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Cloak#318
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/cbeuw/Cloak/pull/326
Author: @a-sakharov
Created: 1/20/2026
Status: 🔄 Open
Base:
master← Head:master📝 Commits (6)
0013b7eQuich and lazy way to load and run cloak as dynamic libraryd0517dfLibrary mode (external main) now can be enabled with build flag4e2ef40Fix tabs/spacesb72c2c3Move libs building code to separate script2156217Enable special android log system from default to special tag "android_log"463103eDo not build protector_android by default for android. It's totally NOT necessary to be used📊 Changes
7 files changed (+69 additions, -8 deletions)
View changed files
➕
buildlibs.sh(+15 -0)➕
cmd/ck-client/external-main.go(+23 -0)📝
cmd/ck-client/log.go(+2 -2)📝
cmd/ck-client/log_android.go(+2 -2)📝
cmd/ck-client/protector.go(+2 -2)📝
cmd/ck-client/protector_android.go(+2 -2)➕
cmd/ck-server/external-main.go(+23 -0)📄 Description
Cloak is great, but it's now pretty limited in plaforms it can run at. This is step to run cloak on android as standalone app, not as part of shadowsocks.
Android system forbids you to use exec, but it's still possible to do fork+dlopen, and this changes looks like absolutely minimum to support this launch way
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.