Tuesday, 24 January 2023

Can a non-privileged Linux native executable in Android communicate with a regular application using Binder?

In order to test and control my regular android application, I wrote a command line Linux test program and used adb shell to execute this test program.

I can send a broadcast or start an actvity to/from my android application indirectly by executing commands such as am via exec, but I can't directly establish a Binder connection between my android application like getService()/startActivityForResult()/bindService().

My Linux execuatable is also not a privileged program, so I should not be able to use ServiceManager to publish my services directly in the system.

Is there any way for me to establish a Binder connection with a regular application?



from Can a non-privileged Linux native executable in Android communicate with a regular application using Binder?

No comments:

Post a Comment