NeoTerm icon indicating copy to clipboard operation
NeoTerm copied to clipboard

Cannot execute `su` or `sudo` (SuperSU installed)

Open hjkcai opened this issue 7 years ago • 5 comments

When executing su or sudo, the current session gets stuck and I can only exit that tab. No SuperSU prompt is shown. Both normal session and system shell session have this problem. I am using SuperSU 2.82 SR3 on Android O on Pixel.

wechatimg113

hjkcai avatar Aug 28 '17 16:08 hjkcai

I tested on my pixel but I cannot reproduce the problem. Maybe there is something wrong with SuperSU app I suppose?

Try following methods, if persists, please let me know:

  1. Ctrl + c to terminate su call or force stop NeoTerm
  2. Back to your launcher and open SuperSU
  3. Back to NeoTerm and try su or sudo again

imkiva avatar Aug 29 '17 03:08 imkiva

It is not working :( Here are some log from logcat after executing su:

08-29 14:33:04.180 11421 11421 W cmd     : type=1400 audit(0.0:5424): avc: denied { read write } for path="/dev/pts/9" dev="devpts" ino=12 scontext=u:r:system_server:s0 tcontext=u:object_r:untrusted_app_devpts:s0:c512,c768 tclass=chr_file permissive=0
08-29 14:33:04.181 11421 11421 W cmd     : Failure calling service activity: Failed transaction (2147483646)

And sending Ctrl+C has no response at all wechatimg114

hjkcai avatar Aug 29 '17 06:08 hjkcai

Oh I know, it's because SELinux compatibility is not so good. Thanks a lot! If you would like to find a "Quick Way" to make it work, just disable SELinux. We will finally fix this but it maybe a long time...

imkiva avatar Aug 29 '17 18:08 imkiva

Thanks for your nice work

hjkcai avatar Aug 30 '17 01:08 hjkcai

I have the same problem on Nitrogen OS based on 8.1 too...

Kissycat avatar Jan 20 '18 09:01 Kissycat