1

Is there any terminal (ADB) command for Android to change the launcher wallpaper?

  • 1
    If you mean your wallpaper, that will depend on the launcher app and Android version. You would need to know the specific Activity and method in the launcher app which deals with changing the wallpaper, and trigger it via the Activity Manager (am) command. – Tamoghna Chowdhury May 16 '16 at 12:01
  • yeah actually I mean wallpaper . my launcher is lenovo launcher & my android version is 4.4.2 – AmirrezaFiroozi May 16 '16 at 16:33
  • I think the wallpaper is managed by the SystemUI's com.android.systemui.ImageWallpaper service. Try setting an image by using Activity Manager (am startservice) as @Tamoghna said with -d argument specifying the picture's path. I'm not sure what Intent Action to use (in -a argument). – Gokul NC May 17 '16 at 16:46
  • One option (requires root access) is to replace the wallpaper file with your image but keeping the same name in the directory /data/system/users/0/ and making appropriate changes in wallpaper.xml file. You would also need to restart (soft/full) the device. – Firelord May 17 '16 at 19:29
1

I know this thread is old and dead, but it came up when I was searching the same topic. So I'm posting a response anyway for posterity.

This works for me on Android 5.1

am start -d file:////data/local/tmp/black_white.png -a android.service.wallpaper.CROP_AND_SET_WALLPAPER -f 0x1 com.android.launcher3/.WallpaperCropActivity

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.