Android11 mtk 第二次设置壁纸,锁屏壁纸不变的问题
1、情景:近日测试人员发现第一次更换壁纸后,主屏幕壁纸和锁屏壁纸均会改变;但第二次更换壁纸后,主屏幕壁纸会改变而锁屏壁纸不会改变。
2、要求:主屏幕壁纸和锁屏壁纸军改变
3、解决
路径:****\frameworks\base\services\core\java\com\android\server\wallpaper\WallpaperManagerService.java
synchronized (mLock) {if (DEBUG) Slog.v(TAG, "setWallpaper which=0x" + Integer.toHexString(which));WallpaperData wallpaper;/* If we're setting system but not lock, and lock is currently sharing the system* wallpaper, we need to migrate that image over to being lock-only before* the caller here writes new bitmap data.*//* if (which == FLAG_SYSTEM && mLockWallpaperMap.get(userId) == null) {Slog.i(TAG, "Migrating current wallpaper to be lock-only before"+ "updating system wallpaper");