modify bootanimation install dir to graphic

Signed-off-by: xiongdawei <xiongwei84@huawei.com>
This commit is contained in:
xiongdawei 2023-01-10 11:57:35 +08:00
parent b45ddaef67
commit 1ad02ff220
2 changed files with 6 additions and 6 deletions

View File

@ -85,18 +85,18 @@ ohos_executable("bootanimation") {
## Build bootanimation }}}
## Install data/*.jpg to /system/etc/init/ {{{
## Install data/*.jpg to /system/etc/graphic/ {{{
ohos_prebuilt_etc("bootanimation_pics") {
source = "data/bootpic.zip"
relative_install_dir = "init"
relative_install_dir = "graphic"
part_name = "graphic_standard"
subsystem_name = "graphic"
}
ohos_prebuilt_etc("bootanimation_sounds") {
source = "data/bootsound.wav"
relative_install_dir = "init"
relative_install_dir = "graphic"
part_name = "graphic_standard"
subsystem_name = "graphic"
}
## Install data/*.jpg to /system/etc/init/ }}}
## Install data/*.jpg to /system/etc/graphic/ }}}

View File

@ -18,8 +18,8 @@
using namespace OHOS;
static const std::string BOOT_CUSTOM_PATHSUFFIX = "etc/bootanimation/bootanimation_custom_config.json";
static const std::string BOOT_PIC_ZIP = "/system/etc/init/bootpic.zip";
static const std::string BOOT_SOUND_URI = "file://system/etc/init/bootsound.wav";
static const std::string BOOT_PIC_ZIP = "/system/etc/graphic/bootpic.zip";
static const std::string BOOT_SOUND_URI = "file://system/etc/graphic/bootsound.wav";
bool BootAnimationConfig::ReadPicZipFile(ImageStructVec& vec, int32_t& freq)
{