# device **Repository Path**: one_produced_two/device ## Basic Information - **Project Name**: device - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-02-08 - **Last Updated**: 2023-07-26 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # device #### 介绍 本仓库提供设备烧写,部分常用内容记录 #### 代码下载 - repo init -u https://gitee.com/openharmony/manifest.git -b master --no-repo-verify - repo sync -c - repo forall -c 'git lfs pull' #### 代码编译 ##### 3516 - bash build/prebuilts_download.sh - ./build.sh --product-name Hi3516DV300 --ccache ##### rk3568 - bash build/prebuilts_download.sh - ./build.sh --product-name rk3568 --target-cpu arm64 --ccache - ./build.sh --product-name rk3568 --ccache --gn-args is_asan=true ##### xts编译 - ./build.sh system_size=standard target_subsystem=powermgr product_name=rk3568 ##### powermgr Test ./build.sh --product-name rk3568 --target-cpu arm64 --ccache --build-target battery_manager_test --build-target battery_statistics_test --build-target display_manager_test --build-target power_manager_test --build-target thermal_manager_test #### 单个用例执行 - run -t ST -tp thermal -ts ThermalMgrDialogTest -tc ThermalMgrDialogTest.ThermalMgrDialogTest002 #### hap - 判断是否是系统应用 bm dump -n 包名 | grep -i systemapp #### 跳过锁屏 - 单次跳过锁屏的话可以模拟一下页面滑动 hdc shell uinput -T -m 500 1000 500 500 400 #### 截屏 - hdc_std shell snapshot_display #### 接近光&环境光 - 宏配置 ``` // 配置路径 kernel/linux/config/linux-5.10/arch/arm64/configs/rk3568_standard_defconfig // 环境光 CONFIG_DRIVERS_HDF_SENSOR_ALS CONFIG_DRIVERS_HDF_SENSOR_ALS_BH1745 // 接近光 CONFIG_DRIVERS_HDF_SENSOR_PROXIMITY CONFIG_DRIVERS_HDF_SENSOR_PROXIMITY_APDS9960 ``` - 接近光接线图 ![](img/接近光接线图.png "接近光接线图")