theCNG27
theCNG27

Reputation: 425

Run app as super user?

I wanted to test Unified Remote (WiFi Remote for your PC) and I wasn't able to connect to my PC in any way (although I could ping from PC to my Android). In the instructions it said I should try a ping from my Android to the PC, so I used the Android Terminal Emulator to try a ping and it just printed this:

ping: icmp open socket: Operation not permitted

My Android is rooted so I typed su and tried again and it worked. So I figured that Unified Remote needs su-rights to open a socket and connect to the server on my PC! The only problem is, that Unified Remote doesn't ask for su-rights... (Like the terminal. It didn't want root rights until i used su and I guess the same thing happens internally with Unified Remote)

Can I somehow start an App (in this case Unified Remote) with su-rights WITHOUT having it asking???

EDIT:

So now I tried 2 other remote control apps and none of them were able to find a server (neither detect it automaticly nor manually... And yes, I have installed and opened the server!) Again -> Ping works fine.... What surprises me is that only remote control apps have that problem... For example FTP with ES File Explorer works fine... Also I have an online game wich works fine too... I don't get it :(

Upvotes: 2

Views: 6212

Answers (2)

Dipesh Deb
Dipesh Deb

Reputation: 11

Android device

ping: icmp open socket: Operation not permitted

Solution:

After Root my android mobile - PING socket error occured and I solved the issue by setting "ping" file permission as given below:

           Read Write Execute
Owner       Y  -  Y  -   Y
Group       Y  -  N  -   Y
Others      Y  -  N  -   Y
------------------
Set UID:    Y   
Set GID:    
Sticky: 
------------------      
Octal Value:  4755  rwsr-xr-x
-------------------------------

You can edit permission by Root Explorer android software - Found - Play Store.

Upvotes: 1

EvZ
EvZ

Reputation: 12179

If the application it self not asking you for su rights than there is NO need to do it manualy.

I checked Google Play and in description of Unified Remote I dind't find any hint that it requires su rights.

Upvotes: 0

Related Questions