security - can two applications in android communicate using local sockets? -


i have question in android documentation mentioned android process can communicate using local sockets. mean 2 applications different user id can communicate using local sockets , "bypass" sandbox?

it indeed possible ipc using local sockets on android, see localsocketserver , localsocket classes. these translate unix sockets in abstract namespace.

a word of warning though: samsung has started restricting local socket use in cases through selinux in latest firmwares (unfortunately not use same policies aosp). i'm not clear on details, have seen instances selinux blocked local socket connecting on these firmwares. depends on selinux context of different processes trying use local socket not matching. sure test if end going route.


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -