Access protected UNIX domain sockets from Android app (using root)
问题 I need to access a UNIX domain socket from my Android app. Its file is located in /dev , so I need root permissions to open it. My phone is rooted, so gaining this permissions is not a problem. However, I failed to find a way to access this socket from root and forward the communication to my app. AFAIK, the only way Android apps can get root permissions is through the su tool, so I need to find a native tool (already installed in the phone) that can make a bridge between STDIN/STDOUT and