1{ 2 "jobs" : [{ 3 "name" : "post-fs-data", 4 "cmds" : [ 5 "mkdir /data/service/el1/public/hdc 0775 root shell", 6 "restorecon /data/service/el1/public/hdc" 7 ] 8 },{ 9 "name" : "param:persist.hdc.control=false", 10 "condition" : "persist.hdc.control=false", 11 "cmds" : [ 12 "setparam persist.hdc.control.shell false", 13 "setparam persist.hdc.control.file false", 14 "setparam persist.hdc.control.fport false" 15 ] 16 },{ 17 "name" : "param:persist.hdc.control=true", 18 "condition" : "persist.hdc.control=true", 19 "cmds" : [ 20 "setparam persist.hdc.control.shell true", 21 "setparam persist.hdc.control.file true", 22 "setparam persist.hdc.control.fport true" 23 ] 24 },{ 25 "name" : "param:persist.hdc.control_system=true", 26 "condition" : "persist.hdc.control_system=true", 27 "cmds" : [ 28 "setparam persist.hdc.control true" 29 ] 30 },{ 31 "name" : "param:persist.hdc.control_system=false", 32 "condition" : "persist.hdc.control_system=false", 33 "cmds" : [ 34 "setparam persist.hdc.control false" 35 ] 36 },{ 37 "name" : "param:persist.hdc.daemon.auth_cancel=true", 38 "condition" : "persist.hdc.daemon.auth_cancel=true", 39 "cmds" : [ 40 "reset hdcd" 41 ] 42 },{ 43 "name" : "boot && param:const.secure=1", 44 "condition" : "boot && const.secure=1", 45 "cmds" : [ 46 "setparam const.hdc.secure 1" 47 ] 48 },{ 49 "name" : "param:persist.hdc.mode.tcp=enable", 50 "condition" : "persist.hdc.mode.tcp=enable", 51 "cmds" : [ 52 "stop hdcd", 53 "sleep 1", 54 "start hdcd" 55 ] 56 },{ 57 "name" : "param:persist.hdc.mode.tcp=disable && param:persist.hdc.mode.usb=enable", 58 "condition" : "persist.hdc.mode.tcp=disable && persist.hdc.mode.usb=enable", 59 "cmds" : [ 60 "stop hdcd", 61 "sleep 1", 62 "start hdcd" 63 ] 64 },{ 65 "name" : "param:persist.hdc.mode.tcp=disable && param:persist.hdc.mode.usb=disable", 66 "condition" : "persist.hdc.mode.tcp=disable && persist.hdc.mode.usb=disable", 67 "cmds" : [ 68 "stop hdcd" 69 ] 70 } 71 ], 72 "services" : [{ 73 "name" : "hdcd", 74 "path" : ["/system/bin/hdcd"], 75 "uid" : "shell", 76 "gid" : [ "shell", "log", "readproc", "file_manager", "netsys_socket" ], 77 "socket" : [{ 78 "name" : "hdcd", 79 "family" : "AF_UNIX", 80 "type" : "SOCK_SEQPACKET", 81 "protocol" : "default", 82 "permissions" : "0660", 83 "uid" : "shell", 84 "gid" : "shell" 85 }], 86 "critical" : [ 0, 5, 10 ], 87 "apl" : "normal", 88 "permission" : [ 89 "ohos.permission.DUMP", 90 "ohos.permission.GET_BUNDLE_INFO_PRIVILEGED", 91 "ohos.permission.INSTALL_BUNDLE", 92 "ohos.permission.REMOVE_CACHE_FILES", 93 "ohos.permission.CLEAN_BACKGROUND_PROCESSES", 94 "ohos.permission.START_ABILITIES_FROM_BACKGROUND", 95 "ohos.permission.CLEAN_APPLICATION_DATA", 96 "ohos.permission.START_SYSTEM_DIALOG", 97 "ohos.permission.GET_RUNNING_INFO" 98 ], 99 "permission_acls" : [ 100 "ohos.permission.DUMP", 101 "ohos.permission.GET_BUNDLE_INFO_PRIVILEGED", 102 "ohos.permission.INSTALL_BUNDLE", 103 "ohos.permission.REMOVE_CACHE_FILES", 104 "ohos.permission.START_ABILITIES_FROM_BACKGROUND", 105 "ohos.permission.CLEAN_APPLICATION_DATA", 106 "ohos.permission.START_SYSTEM_DIALOG", 107 "ohos.permission.GET_RUNNING_INFO" 108 ], 109 "sandbox" : 0, 110 "start-mode" : "condition", 111 "secon" : "u:r:hdcd:s0", 112 "disabled" : 1 113 } 114 ] 115} 116