Two android applications passing data

Skip to first unread message

Spam Blocker

May 10, 2022, 5:41:19 PM5/10/22
to android-ndk
I am building two android applications that need to pass video data between them.  I have tried sockets but that sends the multicast data out the WiFi port.  I have tried abstract sockets but I always get 'permission denied' from the app trying to connect to my 'server' app.  I have tried FIFO files, but I get 'permission denied' when the client tries to open the pipe. 

I would prefer to use abstract sockets if I had my choice.   I have scoured the internet and I have read that the new file system (API 28 +) doesn't give group permissions so that apps can access each others named pipes or abstract sockets.

Both of these applications are using JNI to create abstract sockets and FIFOs.  I have followed the instructions for using the applications file system.   I wrote a stand alone abstract sockets linux code that worked.

Any help here is greatly appreciated.  I am stuck.

Spam Blocker

May 16, 2022, 11:46:40 PM5/16/22
Backing up to API 27 fixed the issue. 

You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit


May 17, 2022, 4:53:30 PM5/17/22
to android-ndk
note that if you're shipping in the Play Store, they have additional rules that limit the usefulness of trying to avoid recent security restrictions in this way: 

Reply all
Reply to author
0 new messages