diff --git a/en/demo/Smart_Band_Example.md b/en/demo/Smart_Band_Example.md index 88c2d7fb0b482fd46026b23a8698cee37357d443..6a85c8d45c64d0f5dc5b2dc1674d18c7c7f62686 100644 --- a/en/demo/Smart_Band_Example.md +++ b/en/demo/Smart_Band_Example.md @@ -91,8 +91,16 @@ The font and image resources used in Bandx are located in ‘apps/packages/demos ```bash ./emulator.sh vela ``` +2. Enter the /data directory to create the font and image subdirectories: -2. Push resources to the device by using emulator-supported ADB. Open a new terminal in the root directory of openvela repository, type “adb push” followed by the file path to transfer the resources to the appropriate location. + ```bash + cd /data + mkdir font + mkdir image + cd + ``` + +3. Push resources to the device by using emulator-supported ADB. Open a new terminal in the root directory of openvela repository, type “adb push” followed by the file path to transfer the resources to the appropriate location. ```bash # Install adb @@ -100,7 +108,7 @@ The font and image resources used in Bandx are located in ‘apps/packages/demos # Push resources adb push apps/packages/demos/bandx/resource/font/assets/* /data/font/ - adb push apps/packages/demos/bandx/resource/image/assets /data/image/ + adb push apps/packages/demos/bandx/resource/image/assets/* /data/image/ ``` **Note**: If “BANDX_BASE_PATH” is changed to a non-default value like “/tmp”, the resource files must also be moved to the “/tmp/font/” and “/tmp/image/” directories.Otherwise, a “resource not found” error will occur. diff --git a/zh-cn/demo/Smart_Band_Example_zh-cn.md b/zh-cn/demo/Smart_Band_Example_zh-cn.md index 6299dabb5a25f8359a958cf90e29c732e80add4a..bb6193c0f0fa5ede1b01d1ad2ca9bdfa5c9bd3f7 100644 --- a/zh-cn/demo/Smart_Band_Example_zh-cn.md +++ b/zh-cn/demo/Smart_Band_Example_zh-cn.md @@ -92,7 +92,16 @@ Bandx 中使用的字体和图像资源位于 `apps/packages/demos/bandx/resourc ./emulator.sh vela ``` -2. 使用模拟器支持的 `ADB` 将资源推送到设备,在 openvela 仓库的根目录下打开一个新的终端,输入 `adb push` 后跟文件路径,即可将资源传输到相应位置。 +2. 进入 /data 目录创建 font 和 image 子目录: + + ```bash + cd /data + mkdir font + mkdir image + cd + ``` + +3. 使用模拟器支持的 `ADB` 将资源推送到设备,在 openvela 仓库的根目录下打开一个新的终端,输入 `adb push` 后跟文件路径,即可将资源传输到相应位置。 ```bash # 安装adb @@ -100,7 +109,7 @@ Bandx 中使用的字体和图像资源位于 `apps/packages/demos/bandx/resourc # 推送资源 adb push apps/packages/demos/bandx/resource/font/assets/* /data/font/ - adb push apps/packages/demos/bandx/resource/image/assets /data/image/ + adb push apps/packages/demos/bandx/resource/image/assets/* /data/image/ ``` 如果将 `BANDX_BASE_PATH` 更改为非默认值,如 `/tmp`,则资源文件也必须传输到 `/tmp/font/` 和 `/tmp/image/` 目录。否则将出现找不到资源的错误。