Skip to content

add /proc/net UID fallback for Android < API 30#137

Merged
yiguodev merged 2 commits into
XTLS:mainfrom
codewithtamim:feat/android-proc-uid-fallback
Jul 15, 2026
Merged

add /proc/net UID fallback for Android < API 30#137
yiguodev merged 2 commits into
XTLS:mainfrom
codewithtamim:feat/android-proc-uid-fallback

Conversation

@codewithtamim

@codewithtamim codewithtamim commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Added UID parsing logic for android < API 30 as getConnectionOwner is not available in that. logic mainly taken from pcapdroid which works just fine.
cc @yiguodev

From my test works perfectly :
image

@yiguodev
yiguodev merged commit 405b9d8 into XTLS:main Jul 15, 2026
2 checks passed
wejg pushed a commit to wejg/libXray that referenced this pull request Jul 24, 2026
* 'main' of https://github.com/XTLS/libXray:
  add /proc/net UID fallback for Android < API 30 (XTLS#137)
  Update Xray-core to v26.7.11 (XTLS#136)
  Harden Xray lifecycle and build tooling (XTLS#135)
  Remove Invoke env and desktop wrapper (XTLS#134)
  Restore invoke env and desktop wrapper (XTLS#133)
  Align Invoke response models (XTLS#132)
  Dev 26.7 1 (XTLS#131)
  Merge pull request XTLS#130 from XTLS/dev-26.6-3
  feat: add automated build workflow for all platforms
  Update Xray-core to v26.6.27
  Avoid splitting share input during format checks
  Refine share input format detection
  Remove DNS resolver wrapper

# Conflicts:
#	build/template/main.gotemplate
#	go.mod
#	go.sum
#	xray/ping.go
#	xray/xray.go
#	xray_wrapper.go
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.

2 participants