# 文档笔记 **Repository Path**: rkl_212/document-notes ## Basic Information - **Project Name**: 文档笔记 - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-02-18 - **Last Updated**: 2026-03-03 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 文档笔记 #### tar ### tar分包压缩 tar -cvf - test | split -b 1M - test.tar.gz. 参考子链接 https://www.cnblogs.com/zhumengke/articles/13221973.html ### git diff ^M git config --global core.autocrlf input git config --global core.whitespace cr-at-eol #### 软件架构 软件架构说明 #### 安装教程 1. xxxx 2. xxxx 3. xxxx #### 使用说明 1. xxxx 2. xxxx 3. xxxx #### 参与贡献 #### 安装工具 ``` sudo apt install build-essential openssh-server vim net-tools gcc-arm-linux-gnueabi ``` #### 特技 #### 修改hdc为网络版本 ` const.security.developermode.state = "true" persist.hdc.mode.tcp = "enable" persist.hdc.port = "5555" developtools/hdc/src/daemon/etc/hdc.root.para ` #### 查看linux内核被污染 ` cat /proc/sys/kernel/tainted` hdc file send C:\df\202\libsprd7885_ril_adapter_1.0.z.so /vendor/lib64/ hdc file send C:\df\202\hilog.para /system/etc/param/ hdc file recv /system/etc/storage_daemon/disk_config d:\ hdc file send C:\df\libtel_core_service.z.so /system/lib64/ hdc file send C:\df\libtel_cellular_data.z.so /system/lib64/ hdc file send C:\df\libtel_call_manager.z.so /system/lib64/ hdc file send libtel_call_manager.z.so /system/lib64/ hdc file send C:\df\libsprd7885_ril_adapter_1.0.z.so vendor/lib64/ hdc file send D:\disk_config /system/etc/storage_daemon/ hdc file send D:\download\libnetsys_native_manager.z.so /system/lib64/platformsdk/ 这个原因是landup重启导致的,不是操作系统加载驱动 这是因为操作系统在加载或卸载相关的驱动程序时,需要重新初始化一些硬件模块,改变系统状态,并管理系统资源,这些过程可能会影响到用户界面的渲染和刷新。 1. git add * 2. git commit -m "xxxx" 3. 增加改动 4. git add * 5. git diff --cached > ***.patch /home/hack213/pc-ys/source/prebuilts/build-tools/linux-x86/bin/ninja -w dupbuild=warn -C /home/hack213/pc-ys/source/out/rk3568 -k1000000 images ./build.sh --product-name oriole --ccache --no-prebuilt-sdk --disable-package-image --fast-rebuild --gn-args allow_sanitize_debug=true --build-target=base/telephony/cellular_data:tel_cellular_data C:\hdc\hilog.bat base/telephony/call_manager:tel_call_manager ./build.sh --product-name laphone --ccache --no-prebuilt-sdk --disable-package-image --fast-rebuild --build-target base/telephony/call_manager:tel_call_manager ./build.sh --product-name laphone --ccache --no-prebuilt-sdk --disable-package-image --fast-rebuild --build-target base/telephony/core_service:tel_core_service ./build.sh --product-name laphone --ccache --no-prebuilt-sdk --disable-package-image --fast-rebuild --build-target base/telephony/cellular_data:tel_cellular_data ./build.sh --product-name laphone --ccache --no-prebuilt-sdk --disable-package-image --fast-rebuild --build-target device/soc/sprd/common/telephony:sprd7885_ril_adapter_1.0 java -jar hap-sign-tool.jar verify-profile -inFile callui.p7b -outFile callui_profile.json ./build.sh --product-name oriole --ccache --no-prebuilt-sdk --disable-package-image --fast-rebuild --build-target base/telephony/cellular_data/test:unittest tel_cellular_data_ui_test ./build.sh --product-name oriole --ccache --no-prebuilt-sdk --disable-package-image --fast-rebuild --build-target base/telephony/cellular_data/test/unit_test:tel_cellular_data_ui_test ./build.sh --product-name oriole --ccache --no-prebuilt-sdk --disable-package-image --fast-rebuild --build-target foundation/communication/netmanager_base/services/netmanagernative:netsys_native_manager hdc shell mount -o rw,remount /system/lib64/platformsdk/ hdc file send D:\download\libnetsys_native_manager.z.so /system/lib64/platformsdk/ sig/source/foundation/communication/netmanager_base/test/netmanagernative/BUILD.gn sig/source/foundation/communication/netmanager_base/services/netmanagernative/BUILD.gn //注意有个先后顺序 hdc shell mount -o rw,remount / hdc shell mount -o rw,remount /vendor hdc shell hilog -Q pidoff hdc shell hilog -Q domainoff hdc shell hilog -b DEBUG hdc shell param set hilog.debug.on true hdc shell param get persist.hdc.port 筱博哥,请教你一个问题呀?咱们AT+SFUN=5是close protocol stack,sim协议关闭还可以紧急通话吗? hilog | grep "state changed, from" 【B308】【modem】 辅助机给熄屏测试机打电话,测试机一直不接,设备会进入熄屏,并且停止响铃 https://e.gitee.com/kunyuan-hongke/projects/579136/bugs/table?issue=I8VN8X 叶总,你年前为解决I8VN8X的问题,引入了一个新的问题(测试机在通话过程中会熄屏,为修改之前在通话过程中是可以熄屏的),这就导致了I8VWET问题的二次亮屏后立即熄屏不复现了 repo init -u https://gitee.com/cooperation-teams-PC-YS/manifest -b OpenHarmony-5.1.0-Release -m rk3568.xml && repo sync -c -j20 && repo forall -c "git lfs pull" && bash build/prebuilts_download.sh && ./build.sh --product-name rk3568 --target-cpu arm64 --disable-package-image --gn-args enable_notice_collection=false --keep-ninja-going --patch cat | grep 'CoreService\|CellularData\|StateRegistry\|CallManager\|CellularCall\|Hril' > wifi.txt hilog -w start -t kmsg hilog -Q pidoff hilog -b D hilog -p off 373636343036653464633339062301ce python C:\laval-tools-master\new\laval-tools-master\stability_testing_tools\tools\stablility_test_tool_v1.0\monkey_test.py -d 373636343036653464633339062301ce -p hdc -i 1000 -t 1000 python C:\laval-tools-master\new\laval-tools-master\stability_testing_tools\tools\stablility_test_tool_v1.0\monkey_test.py -d 363738643331316432613533072201ce -p hdc -i 1000 -t 1000 python C:\laval-tools\stability_testing_tools\tools\stablility_test_tool_v1.0\monkey_test.py -d 373636343036653464633339062301ce -p hdc -i 1000 -t 1000 https://gitee.com/openharmony/telephony_call_manager/issues/IA68EI git commit -m "#IA7633 README_zh.md中蜂窝数据文档跳转链接不对更改为正确的链接 Signed-off-by: liuyong<1204518465@qq.com>" 开关机测试: python C:\laval-tools\stability_testing_tools\tools\stablility_test_tool_v1.0\reboot_test.py -d 356238306538313038303261112101ce -p hdc -c 10000 python C:\laval-tools\stability_testing_tools\tools\stablility_test_tool_v1.0\reboot_test.py -d 373636343036653464633339062301ce -p hdc -c 10000 python C:\laval-tools\tools\stablility_test_tool_v1.0\reboot_test.py -d 373636343036653464633339062301ce -p hdc -c 10000 const.bms.supportAppTypes="default,2in1,tablet" persist.ace.async.initialize=false https://gitee.com/openharmony/communication_bluetooth_service/issues/I9USF3 git commit -m "#I9USF3 bluetooth_service.cfg中增加ANSWER_CALL权限 Signed-off-by: liuyong<1204518465@qq.com>" #I9USF3 git commit -m " 单号:I9IQ4M 【B604】【始祖鸟】【稳定性专项】【开关机】4月19日-21日进行挂测60小时,出现cppcrash,进程:riladapter_host,崩溃so:libsprd7885_ril_adapter_1.0.z.so 问题根因:SendRilCommand中调用SetRilRespone可能构成竞态 解决方案:将SetRilRespone加锁 是否完成变为规范自检:Y 是否编译且自验证通过:Y 影响的设备与平台范围:laphone开发者手机 团队:H " 【SR】通过拓展坞可以连接鼠标键盘 https://e.gitee.com/kunyuan-hongke/projects/661927/requirements/table?issue=IAKLIZ git commit -m " 删除多上传的patch包 Signed-off-by:rkl_212 <1204518465@qq.com> " 【B613】【始祖鸟】【稳定性专项】【系统遍历】6月28日使用wukong工具进行60小时稳定性测试,出现jscrash 19个 【严重程度】一般 【预置条件】 1.无 【测试步骤】 执行命令python monkey_test.py -d 373636343036653464633339062301ce -p hdc -c 100000 进行12小时系统遍历 【预期结果】 正常开关机,无稳定性问题 【实际结果】 出现jscrash共19次 【恢复方法】 【问题概率】 【关联用例】(如是测试手工用例发现的问题,则填写用例编号。非手工用例发现的不填) 【对比测试结果】 【日志&&截图】见附 【发现日期&时间点】 【开发确认人】 【测试确认人】 【严重程度】中等 【预置条件】 1.无 【测试步骤】 执行命令python monkey_test.py -d 353661313937343062313333062101ce -p hdc -c 1000 进行12小时开关机压测 【预期结果】 正常开关机,无稳定性问题 【实际结果】 出现内核crash共计2次 【恢复方法】 【问题概率】 【关联用例】(如是测试手工用例发现的问题,则填写用例编号。非手工用例发现的不填) 【对比测试结果】 【日志&&截图】见附 【发现日期&时间点】 【开发确认人】 【测试确认人】 repo init -u https://gitee.com/cooperation-teams-PC-YS/manifest -b OpenHarmony-5.1.0-Release && repo sync -c -j20 && repo forall -c "git lfs pull" && ./build/prebuilts_download.sh && ./build.sh --product-name rk3568 --ccache --target-cpu arm64 --gn-args linux_kernel_version="linux-6.6" repo init -u https://gitee.com/cooperation-teams-PC-YS/manifest -b OpenHarmony-5.1.0-Release && repo sync -c -j20 && repo forall -c "git lfs pull" && ./build/prebuilts_download.sh && ./build.sh --product-name pd2508_laptop --ccache --target-cpu arm64 --gn-args enable_notice_collection=false --gn-args linux_kernel_version=linux-6.6 --gn-args gpu_model=ftg340 --patch git commit -m " 三方应用兼容性处理patch Signed-off-by:rkl_212 <1204518465@qq.com> " libbtframework.z.so wsl --shutdown diskpart 杀死虚拟进程 select vdisk file="C:\ubuntu\ext4.vhdx" compact vdisk vmwp.exe detach vdisk 结束虚拟机进程管理 sftp://ftp.unisoc.com 账号: neoway_open 密码: RZwL0XKR //开启飞行模式 echo -e "AT+SFUN=5\r" > /dev/stty_nr31 //关闭飞行模式 echo -e "AT+SFUN=4\r" > /dev/stty_nr31 hdc file recv /data/app/el2/0/database/com.ohos.settingsdata/entry/rdb/settingsdata.db ./ attach -p 818 breakpoint set --file call_manager_service.cpp --line 240 /data/service/el1/public/vpn/swanctl.conf /data/service/el1/public/vpn/strongswan.conf RN-朱帆 H-钟丽 H-刘小飞 邀请 H-祁小娟 cat /system/etc/selinux/config setenforce 0 getenforce { "component": "strongswan", "features": [] } git commit -m " 增加D300m的vendor仓代码 Signed-off-by: rkl_212 <1204518465@qq.com> " git commit -m " 整合d3000m的patch Signed-off-by: rkl_212 <1204518465@qq.com> " git commit -m " 单号:ICMXQO WPS无法联网,公共问题 Signed-off-by: rkl_212 <1204518465@qq.com> " git commit -m " 单号:ICRB46 描述: 解决文件分享找不到对端设备 问题根因:首次扫描设备失败,之前的停止扫描函数中,停止扫描指令发送给芯片了,芯片的上报结果提前返回,但是stop函数的状态代码还没有执行,上报给服务层一直是正在扫描的状态,导致后面的blue_server状态紊乱 解决方案:调整锁的位置,保证时序 是否完成编程规范自检: Y 是否编译且验证通过: Y 影响的设备与平台范围:rk3568 Signed-off-by:rkl_212 <1204518465@qq.com> " 1.提交记录: git commit -m " rk3568运行pc软件替换AudioPicker.hap和FilePicker.hap Signed-off-by: rkl_212 <1204518465@qq.com> " 网络常见问题: https://docs.openharmony.cn/pages/v4.1/zh-cn/application-dev/reference/apis-network-kit/js-apis-net-mdns.md https://laval.csdn.net/user/discuss/661f327ba2b0512255633ca1 ./build.sh --product-name oriole --ccache --no-prebuilt-sdk --disable-package-image --fast-rebuild 【AR】框架层监控VPN连接状态 https://e.gitee.com/kunyuan-hongke/projects/661927/requirements/table?issue=IAKL4B 【AR】框架层提供删除VPN配置接口 https://e.gitee.com/kunyuan-hongke/projects/661927/requirements/table?issue=IAKKHQ git commit -m " 添加注释,区分飞腾与兼容性修改 Signed-off-by: rkl_212 <1204518465@qq.com> " sig repo init -u https://gitee.com/openharmony-sig/manifest -m devboard_developphone2_5.0.xml 修改 ./build.sh --product-name oriole --gn-args allow_sanitize_debug=true -–ccache --patch --no-prebuilt-sdk git commit -m " 单号:IAKKHQ 将strongswan中的二进制可执行程序由默认的/system/bin,调整到/vendor/soc_plateform/bin,引起的找不到二进制可执行程序; Signed-off-by: rkl_212 <1204518465@qq.com> " git commit -m " 整改兼容性处理代码 Signed-off-by: rkl_212 <1204518465@qq.com> " laval打包脚本 //需要修改的地方: 参与编译 https://gitee.com/openharmony/vendor_hihope/pulls/1255/files 内核修改地方 https://gitee.com/openharmony/kernel_linux_config/pulls/383/files git clone https://gitee.com/cooperation-team-7885/third_party_strongswan.git -b strongswan 风行视频安装: hdc bm install entry-default-signed.hap xshell: ifconfig eth0 169.254.13.0 netmask 255.255.0.0 route add default gw 169.254.13.1 dev eth0 param set persist.hdc.port 52188 hdcd -t & cmd: hdc tconn 169.254.13.0:52188 hdc shell hdc tconn 192.168.3.109:52188 hdc tconn 192.168.3.111:52188 Link encap:Ethernet HWaddr 40:45:da:6e:ae:69 Link encap:Ethernet HWaddr 40:45:da:31:6e:e9 inet addr:192.168.3.112 Bcast:192.168.3.255 Mask:255.255.255.0 【一期】TV子系统共建 IB6TGK git commit -m " 单号:IB6TGK 【一期】TV子系统共建 Signed-off-by:splane_liu " Signed-off-by:splane_liu IB7NNI git commit -m " 单号:IB7NNI 【一期】支持“网络”设置 Signed-off-by:rkl_212 <1204518465@qq.com> " hdc shell hilog -G 200M ::开启落盘,单个文件设置为60M,20个文件循环存盘 hdc shell hilog -w stop hdc shell hilog -w start -l 60M -n 20 hdc shell power-shell setmode 602 hdc shell hilog -p off 蓝牙框架层上报广播停止事件 OnStopResultEvent 蓝牙框架层上报广播完成事件 OnStartResultEvent 蓝牙框架层下发停止广播 StopAdvertising 牙框架层下发开始广播 StartAdvertising 在服务层 搜索: OnStopResultEvent|OnStartResultEvent|StopAdvertising|StartAdvertising|ble_sched_event.c:330, msg event|adv start complete cb|adv stop complete cb:clientId|StopAdv|IotcBleStartAdv BleEventDisconnectHandler BleAdvCtrlResume BleAdvCtrlStart BleAdapterAdvCtrlStart IotcBleStartAdv 【迭代三】【富瘦控制】【WiFi/BLE Combo】【自动化测试】【APP】APP端扫描到设备并进行配网,概率性失败,无法完成配网 git commit -m " 单号:ICU2SU 【迭代三】【富瘦控制】【WiFi/BLE Combo】【自动化测试】【APP】APP端扫描到设备并进行配网,概率性失败,无法完成配网 分析原因:收到terminateAdvSetEvt事件后,蓝牙服务层会重新开启广播 解决方案:收到terminateAdvSetEvt事件后,蓝牙服务层会不开启广播 Signed-off-by:rkl_212 <1204518465@qq.com> "