Open NewUserHa opened 1 month ago
Probably you should try to uninstall Termux and all Termux plugins. Sometimes Android does not give Internet permission in the case if you install plugin and after that installing Termux itself, some bug related to sharedUserId
.
First re-enable selinux with su -c 'setenforce enforcing'
since you disabled it and then follow instructions below. Follow them without uninstalling app and in your current state where internet does not work in termux.
Send text output (not screenshots!) of following. Ideally, email the files to agnosticapollo@gmail.com since they may contain sensitive info unless you can remove it.
su -c 'auditctl -r 0'
to disable selinux avc entries rate limit if you have root.readlink /proc/self/ns/net
as termux user and send output.readlink /proc/self/ns/net
from an adb shell or su -c 'readlink /proc/$(pidof package_name)/ns/net'
where package_name
is for an app that does have a working internet connection and send output.ping 8.8.8.8
or apt update
and then quickly run su -c 'dmesg > /sdcard/dmesg.txt; logcat -d /sdcard/logcat1.txt'
and send dmesg.txt
and logcat1.txt
files.su -c 'logcat -d > /sdcard/logcat2.txt'
and send logcat2.txt
file.readlink /proc/self/ns/net
:
termux net:[4026531840]
shell net:[4026531840]
browser net:[4026531840] (browser is able to access websites)
got the three files. what is the thing need to look at
reinstalling all termux and termux-api doesn't help
Well, net namespace are the same for all, and disabling selinux didn't help either, the correct net group was there too in app process of someone else, so running out of ideas what could be wrong. Maybe dmesg reveals something.
what is the thing need to look at
Any errors or entries that may be related that could explain the issue.
there are many lines like this with the same tcontext of termux "s0:c187,c257,c512,c768"
Do these happen with selinux in enforcing mode?
selinux enforcing mode is the default mode.
Problem description
fresh installed.
pkg update
failping 127.0.0.1
gotsocket: connection refused
error on Generic System Image crDroid 10.1with root, ping is able to work. But pkg can only in non-root
setenforce 0
doesn't help;clean storage
doesn't helpSteps to reproduce the behavior.
fresh installed.
pkg update
thenping 127.0.0.1
What is the expected behavior?
No response
System information