We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents cc084f1 + ebac48c commit db904b4Copy full SHA for db904b4
services/java/com/android/server/WallpaperManagerService.java
@@ -476,6 +476,13 @@ public ParcelFileDescriptor setWallpaper(String name) {
476
ParcelFileDescriptor updateWallpaperBitmapLocked(String name) {
477
if (name == null) name = "";
478
try {
479
+ if (!WALLPAPER_DIR.exists()) {
480
+ WALLPAPER_DIR.mkdir();
481
+ FileUtils.setPermissions(
482
+ WALLPAPER_DIR.getPath(),
483
+ FileUtils.S_IRWXU|FileUtils.S_IRWXG|FileUtils.S_IXOTH,
484
+ -1, -1);
485
+ }
486
ParcelFileDescriptor fd = ParcelFileDescriptor.open(WALLPAPER_FILE,
487
MODE_CREATE|MODE_READ_WRITE);
488
mName = name;
0 commit comments