Termux-packages: net-tools ifconfig command throw limited output

Created on 17 Mar 2020  路  4Comments  路  Source: termux/termux-packages

Problem description

Warning: cannot open /proc/net/dev (Permission denied). Limited output.
lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
inet 127.0.0.1  netmask 255.0.0.0
unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  txqueuelen 1  (UNSPEC)

Steps to reproduce

Expected behavior

Additional information

Packages CPU architecture: aarch64
Subscribed repositories:
deb https://termux.org/packages/ stable main
# science-repo (sources.list.d/science.list)
deb https://dl.bintray.com/grimler/science-packages-24 science stable
# game-repo (sources.list.d/game.list)
deb https://dl.bintray.com/grimler/game-packages-24 games stable
# unstable-repo (sources.list.d/unstable.list)
deb https://dl.bintray.com/xeffyr/unstable-packages unstable main
Updatable packages:
All packages up to date
Android version:
10
Kernel build information:
Linux localhost 4.9.186-perf+ #2 SMP PREEMPT Fri Feb 28 01:48:42 CST 2020 aarch64 Android
Device manufacturer:
realme
Device model:
RMX1921

Most helpful comment

It is not possible to access /proc/net on android >= 10 without root, there's nothing we can do about this.

All 4 comments

It is not possible to access /proc/net on android >= 10 without root, there's nothing we can do about this.

yes bro i saw it ..

Any solution so far.... Hav same problem

@jonasyumi Device rooting is the solution for ifconfig. Termux can't overcome SELinux restrictions without root.

Proot'ed environment does not provide you privileges for getting network info, even if id shows that you "root" (fake root).

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Wetitpig picture Wetitpig  路  3Comments

tigran123 picture tigran123  路  3Comments

neitsab picture neitsab  路  3Comments

divyakutty picture divyakutty  路  3Comments

bbtdev picture bbtdev  路  3Comments