c - android internal socket connection fails with a daemon service -


i've gstreamer decoder application written in 'c' decodes h264 frame in android. want camera service communicate application. this, i've used sockets (dgram). creating unix pf_inet socket path "/data/cam_file".

now issue is, if run gstreamer application command line (adb shell), able connect camera service , exchange data, if make gstreamer application daemon service (with late_start option), socket connection fails. fails if fork gstreamer application using processbuilder() camera app source. clues?

this issue solved. issue permissions of native service. set user 'root' due other services not able connect in init..rc. if set user 'system' other services able connect. remember add 'system' in 'group' settings of service connecting native service. hope beginners.


Comments

Popular posts from this blog

ruby on rails - RuntimeError: Circular dependency detected while autoloading constant - ActiveAdmin.register Role -

c++ - OpenMP unpredictable overhead -

javascript - Wordpress slider, not displayed 100% width -