You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I successfully compiled tmux (current version in the repo) in Android 15 for usage in adb shells on phones running the Android OS.
That works very well -- but only for the root user.
The user shell (this is the user used for adb shells) does not have permissions in SELinux to use sockets in the current Android version.
On phones with root access I can get around that limitation by adding the missing SELinux policies with (for example) the Magisk tool
magiskpoliciy, e.g:
# allow tmux for non-root user
#
# these commands must be executed by the user root
#
magiskpolicy --live "allow shell shell_data_file sock_file { create getattr setattr write unlink }"
magiskpolicy --live "allow shell devpts chr_file { read write open }"
But on phones without root access that is not possible and tmux does not work in adb shells.
Is it possible to replace the use of sockets with something else?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I successfully compiled tmux (current version in the repo) in Android 15 for usage in adb shells on phones running the Android OS.
That works very well -- but only for the root user.
The user shell (this is the user used for adb shells) does not have permissions in SELinux to use sockets in the current Android version.
On phones with root access I can get around that limitation by adding the missing SELinux policies with (for example) the Magisk tool
magiskpoliciy, e.g:
But on phones without root access that is not possible and tmux does not work in adb shells.
Is it possible to replace the use of sockets with something else?
(see this post on XDA for some details:
https://xdaforums.com/t/guide-how-to-run-long-running-programs-in-an-adb-shell.4709036/
)
Beta Was this translation helpful? Give feedback.
All reactions