14 Star 70 Fork 465

OpenHarmony/developtools_hdc

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
hdcd.root.cfg 5.59 KB
一键复制 编辑 原始数据 按行查看 历史
{
"jobs" : [{
"name" : "post-fs-data",
"cmds" : [
"mkdir /data/service/el1/public/hdc 0775 root shell",
"restorecon /data/service/el1/public/hdc"
]
},{
"name" : "param:persist.hdc.control=false",
"condition" : "persist.hdc.control=false",
"cmds" : [
"setparam persist.hdc.control.shell false",
"setparam persist.hdc.control.file false",
"setparam persist.hdc.control.fport false"
]
},{
"name" : "param:persist.hdc.control=true",
"condition" : "persist.hdc.control=true",
"cmds" : [
"setparam persist.hdc.control.shell true",
"setparam persist.hdc.control.file true",
"setparam persist.hdc.control.fport true"
]
},{
"name" : "param:persist.hdc.control_system=true",
"condition" : "persist.hdc.control_system=true",
"cmds" : [
"setparam persist.hdc.control true"
]
},{
"name" : "param:persist.hdc.control_system=false",
"condition" : "persist.hdc.control_system=false",
"cmds" : [
"setparam persist.hdc.control false"
]
},{
"name" : "param:persist.hdc.replace=true",
"condition" : "persist.hdc.replace=true",
"cmds" : [
"stop hdcd",
"chmod 0755 /data/hdcd",
"chmod 0644 /data/libuv.so",
"chmod 0644 /data/libhdc.dylib.so",
"chmod 0644 /data/libylong_runtime.dylib.so",
"sleep 1",
"copy /data/hdcd /system/bin/hdcd",
"copy /data/libuv.so /system/lib64/libuv.so",
"copy /data/libuv.so /system/lib/libuv.so",
"copy /data/libhdc.dylib.so /system/lib64/libhdc.dylib.so",
"copy /data/libhdc.dylib.so /system/lib/libhdc.dylib.so",
"copy /data/libylong_runtime.dylib.so /system/lib64/libylong_runtime.dylib.so",
"copy /data/libylong_runtime.dylib.so /system/lib/libylong_runtime.dylib.so",
"start hdcd",
"setparam persist.hdc.replace false"
]
},{
"name" : "boot && param:const.hdc.secure=0",
"condition" : "boot && const.secure=0",
"cmds" : [
"setparam const.hdc.secure 0"
]
},{
"name" : "param:persist.hdc.mode.tcp=enable",
"condition" : "persist.hdc.mode.tcp=enable",
"cmds" : [
"stop hdcd",
"sleep 1",
"start hdcd"
]
},{
"name" : "param:persist.hdc.mode.tcp=disable && param:persist.hdc.mode.usb=enable",
"condition" : "persist.hdc.mode.tcp=disable && persist.hdc.mode.usb=enable",
"cmds" : [
"stop hdcd",
"sleep 1",
"start hdcd"
]
},{
"name" : "param:persist.hdc.mode.tcp=disable && param:persist.hdc.mode.usb=disable",
"condition" : "persist.hdc.mode.tcp=disable && persist.hdc.mode.usb=disable",
"cmds" : [
"stop hdcd"
]
}
],
"services" : [{
"name" : "hdcd",
"path" : ["/system/bin/hdcd"],
"uid" : "root",
"gid" : [ "root", "shell", "log", "readproc", "file_manager", "user_data_rw" ],
"setuid" : true,
"socket" : [{
"name" : "hdcd",
"family" : "AF_UNIX",
"type" : "SOCK_SEQPACKET",
"protocol" : "default",
"permissions" : "0660",
"uid" : "root",
"gid" : "shell"
}],
"critical" : [ 0, 5, 10 ],
"apl" : "normal",
"permission" : [
"ohos.permission.CHANGE_ABILITY_ENABLED_STATE",
"ohos.permission.DUMP",
"ohos.permission.GET_BUNDLE_INFO_PRIVILEGED",
"ohos.permission.INSTALL_BUNDLE",
"ohos.permission.REMOVE_CACHE_FILES",
"ohos.permission.ACCELEROMETER",
"ohos.permission.CLEAN_BACKGROUND_PROCESSES",
"ohos.permission.START_ABILITIES_FROM_BACKGROUND",
"ohos.permission.PERMISSION_USED_STATS",
"ohos.permission.NOTIFICATION_CONTROLLER",
"ohos.permission.PUBLISH_SYSTEM_COMMON_EVENT",
"ohos.permission.CLEAN_APPLICATION_DATA",
"ohos.permission.START_SYSTEM_DIALOG",
"ohos.permission.GET_RUNNING_INFO"
],
"permission_acls" : [
"ohos.permission.CHANGE_ABILITY_ENABLED_STATE",
"ohos.permission.DUMP",
"ohos.permission.GET_BUNDLE_INFO_PRIVILEGED",
"ohos.permission.INSTALL_BUNDLE",
"ohos.permission.REMOVE_CACHE_FILES",
"ohos.permission.START_ABILITIES_FROM_BACKGROUND",
"ohos.permission.PERMISSION_USED_STATS",
"ohos.permission.NOTIFICATION_CONTROLLER",
"ohos.permission.PUBLISH_SYSTEM_COMMON_EVENT",
"ohos.permission.CLEAN_APPLICATION_DATA",
"ohos.permission.START_SYSTEM_DIALOG",
"ohos.permission.GET_RUNNING_INFO"
],
"sandbox" : 0,
"start-mode" : "condition",
"secon" : "u:r:su:s0",
"disabled" : 1
}
]
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/openharmony/developtools_hdc.git
git@gitee.com:openharmony/developtools_hdc.git
openharmony
developtools_hdc
developtools_hdc
OpenHarmony-5.0.1-Release

搜索帮助