I have an application that is installed on the STB prefix.
I'm trying in this application with the command: Process pr = Runtime.getRuntime ().exec ("cat /sys/class/net/eth0/address"); get mac address, but this string returns null .
At the same time, if you enter the adb shell "cat /sys/class/net/eth0/address" command adb shell "cat /sys/class/net/eth0/address" through the terminal, then in response, I get a full-fledged mac address.
Permissions of the file -r - r - r--, i.e. absolutely all users can read it.
Please tell me how is this possible?
shelluser on whose behalf the commands executed as theadb shell командаare executed on the device. - aleksandr barakin