You are advised to keep the wallpaper configured for the lock screen the same as the unlock_wallpaper_X.jpg image in the wallpaper folder.
The const attribute in the <Var> tag is a constant attribute. Once the attribute is set to true for a variable in the tag, the variable's value will not change.
If you want to persist variables in the <Var> tag, that is, to remember the variable values after screen turn-on/off and unlock, you must declare persistence for the tag before using it.
The space attribute in the <Time> tag specifies the space between time images.
Copy the script used for automatic packaging to a .txt file and change the file name extension to .bat for the script to take effect.
Save the script to the unlock/lockscreen directory of the small theme package and double-click the script to use it.
To run this script, ensure that the WinRAR software is available on your PC, or USB debugging has been enabled on your phone. You can modify the WinRAR software path through set WINRAR_PATH. The created lock screens will be automatically placed in Me > Themes in the HUAWEI Themes app once the script works.
@echo off
set WINRAR_PATH=C:\Program Files\WinRAR
set PATH=%WINRAR_PATH%;%PATH%
set str=%~dp0
set remain=%str:~0,-19%
:loop
for /f "tokens=1* delims=\" %%a in ("%remain%") do (
set name=%%a
set remain=%%b
)
-
if defined remain goto :loop
echo %name%
cd ..
cd ..
winrar a -r ../%name%.zip .\*
cd ..
ren %name%.zip %name%.hwt
adb push %name%.hwt /sdcard/Huawei/Themes
del %name%.hwt