Skip to content
Snippets Groups Projects
Commit 2a6c1e99 authored by Steve Kondik's avatar Steve Kondik
Browse files

vnc: Add system-level integration

 * RC script, included automatically when added to PRODUCT_PACKAGES
 * SELinux policy, add to BOARD_SEPOLICY_DIRS
 * Disable spammy debug output
parent 95027eaf
No related branches found
No related tags found
No related merge requests found
......@@ -28,11 +28,14 @@ LOCAL_STATIC_LIBRARIES += \
libvncserver
LOCAL_CFLAGS := -Ofast -Werror -std=c++11
LOCAL_CFLAGS += -DLOG_NDEBUG=0
#LOCAL_CFLAGS += -DLOG_NDEBUG=0
#LOCAL_CXX := /usr/bin/include-what-you-use
LOCAL_INIT_RC := etc/vncflinger.rc
LOCAL_MODULE := vncflinger
LOCAL_MODULE_TAGS := optional
include $(BUILD_EXECUTABLE)
TODO 0 → 100644
Various things that need done:
Orientation change
FPS reporting
Copy/paste
Commandline args for tuning (port, encodings, etc)
Authentication
service vncflinger /system/bin/vncflinger
class late_start
disabled
user system
group system input inet readproc
on property:persist.vnc.enable=true
start vncflinger
on property:persist.vnc.enable=false
stop vncflinger
/system/bin/vncflinger u:object_r:vncflinger_exec:s0
type vncflinger_exec, exec_type, file_type;
type vncflinger, domain;
init_daemon_domain(vncflinger)
binder_use(vncflinger)
net_domain(vncflinger);
# uinput
allow vncflinger uhid_device:chr_file rw_file_perms;
# read buffers from surfaceflinger
allow vncflinger ion_device:chr_file r_file_perms;
allow vncflinger surfaceflinger_service:service_manager find;
binder_call(vncflinger, surfaceflinger);
# buffer callbacks
binder_call(surfaceflinger, vncflinger);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment