1. Download our Official Android App: Forums for Android!

Support Root user internet access issue, via adb or via application

Discussion in 'Android Help' started by remipsmlsl, Apr 13, 2016.

  1. remipsmlsl

    remipsmlsl Lurker
    Thread Starter
    Rank:
    None
    Points:
    6
    Posts:
    3
    Joined:
    Apr 13, 2016

    Apr 13, 2016
    3
    2
    6
    Male
    Hello everybody !

    I'm a noob on Android and I have a strange problem. I rooted my Wiko Pulp Fab (Lollipop 5.1) with KingRoot (after so many tries with other solutions) and now when I get root internet seems doesn't work.

    I intend to use Linux Deploy and it can't download distribs (I tried use domain names and IPs, no difference)

    And when I connect to my phone's shell with adb I have the same problem.

    Normal user in shell, connection work:
    Code (Text):
    1.  
    2. shell@l5261:/ $ ping wikipedia.fr
    3. PING wikipedia.fr (78.109.84.114) 56(84) bytes of data.
    4. 64 bytes from wikimedia2.typhon.net (78.109.84.114): icmp_seq=1 ttl=56 time=17.9 ms
    5. 64 bytes from wikimedia2.typhon.net (78.109.84.114): icmp_seq=2 ttl=56 time=29.8 ms
    6. 64 bytes from wikimedia2.typhon.net (78.109.84.114): icmp_seq=3 ttl=56 time=30.1 ms
    7. 64 bytes from wikimedia2.typhon.net (78.109.84.114): icmp_seq=4 ttl=56 time=30.0 ms
    8. 64 bytes from wikimedia2.typhon.net (78.109.84.114): icmp_seq=5 ttl=56 time=29.1 ms
    9. ...
    10.  
    Root in shell, connection doesn't work:
    Code (Text):
    1.  
    2. root@l5261:/ # ping wikipedia.fr
    3. connect: Bad file number
    4. 2|root@l5261:/ # ping 78.109.84.114
    5. connect: Bad file number
    6.  
    I tried ping and other binaries, it doesn't work.

    What's wrong ? I heard that is a C message error about socket usage, but how can I fix it ?

    Maybe it is a problem with KingRoot ? I tried many many solutions to root my phone but nothing work. I tried to install "su" myself with adb or fastboot but it doesn't work (I don't know very much Android yet, I'd just beginning learn few days ago).

    Many thanks for your help !
     

    Advertisement

  2. remipsmlsl

    remipsmlsl Lurker
    Thread Starter
    Rank:
    None
    Points:
    6
    Posts:
    3
    Joined:
    Apr 13, 2016

    Apr 13, 2016
    3
    2
    6
    Male
    I found a solution so I publish it here, maybe it can help !

    If this error appear, it is probably beacause SELinux is in enforce mode. SELinux is a security module who restrict users.

    To display refused operations:
    Code (Text):
    1. # dmesg | grep -i denied
    To activate SELinux permissive mode:
    Code (Text):
    1. # setenforce 0
    That's all !
     
    electricpete likes this.
  3. electricpete

    electricpete Android Expert
    Rank:
     #68
    Points:
    393
    Posts:
    2,065
    Joined:
    Jan 7, 2012

    Jan 7, 2012
    2,065
    1,021
    393
    Male
    Electrical Engineer
    Thanks for sharing.

    I will mention this is a less secure way to run your device. You are more susceptible to certain attacks (privilege escalation attacks) since a portion of your device's built in security is disabled in SELinux permissive mode.
     
  4. remipsmlsl

    remipsmlsl Lurker
    Thread Starter
    Rank:
    None
    Points:
    6
    Posts:
    3
    Joined:
    Apr 13, 2016

    Apr 13, 2016
    3
    2
    6
    Male
    That's right I just use that to download img with LinuxDeploy, after I will try to find another solution. Thanks for your advice !
     
    electricpete likes this.

Share This Page

Loading...