Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[Q] change live wallpaper with tasker

OP furious84

12th January 2014, 05:44 PM   |  #1  
OP Member
Flag spilimbergo (pn) italy
Thanks Meter: 5
 
70 posts
Join Date:Joined: Aug 2010
More
hi all,my question is:
is there a way to change live wallpaper using the app tasker?
for example have a live wallpaper for when i use n7 at home and one different for when i use in car.
3rd May 2014, 02:11 AM   |  #2  
Junior Member
Thanks Meter: 3
 
3 posts
Join Date:Joined: Sep 2010
Quote:
Originally Posted by furious84

hi all,my question is:
is there a way to change live wallpaper using the app tasker?
for example have a live wallpaper for when i use n7 at home and one different for when i use in car.


I've found solution! :3


This command sets live wallpaper¹:
Code:
service call wallpaper 2 i32 1 s16 "[package name]" s16 "[class name]"
This command allows to get name of active live wallpaper:
Code:
service call wallpaper 4
And this command disables it:
Code:
service call wallpaper 5

More details here²:
  • android/app/IWallpaperManager.java
  • com/android/server/WallpaperManagerService.java

¹ Application must have SET_WALLPAPER_COMPONENT permission, and this permission available only for applications from /system/. So, in your case you need superuser privileges.

² There were links to source code, but xda doesn't allow me to post it. You can found it yourself — just search "grepcode [filename]" in google.



Sorry for my english.
The Following User Says Thank You to 4ufak For This Useful Post: [ View ]
3rd May 2014, 02:25 AM   |  #3  
OP Member
Flag spilimbergo (pn) italy
Thanks Meter: 5
 
70 posts
Join Date:Joined: Aug 2010
More
Quote:
Originally Posted by 4ufak

I've found solution! :3


This command sets live wallpaper¹:

Code:
service call wallpaper 2 i32 1 s16 "[package name]" s16 "[class name]"
This command allows to get name of active live wallpaper:
Code:
service call wallpaper 4
And this command disables it:
Code:
service call wallpaper 5

More details here²:
  • android/app/IWallpaperManager.java
  • com/android/server/WallpaperManagerService.java

¹ Application must have SET_WALLPAPER_COMPONENT permission, and this permission available only for applications from /system/. So, in your case you need superuser privileges.

² There were links to source code, but xda doesn't allow me to post it. You can found it yourself — just search "grepcode [filename]" in google.



Sorry for my english.

Really Thank You very much, sincerelly i decided To use Car home ultra like home when n7 is plug in Car (then i didn t need wallpaper, But i will try.
Ps your English is better then mine. I m from italy, And you?

Inviato dal mio Nexus 7 utilizzando Tapatalk
3rd May 2014, 02:34 AM   |  #4  
Junior Member
Thanks Meter: 3
 
3 posts
Join Date:Joined: Sep 2010
Here's the script (.txt, because it is a very strange forum). Without arguments script disables live wallpapers, overwise sets livewallpaper - first arguments is package name, second is class name. For example:

Code:
/data/lwmgr.sh com.h6ah4i.android.music_visualizer2 com.h6ah4i.android.music_visualizer_wallpaper.MusicVisualizerWallpaperService
Don't forget to copy script into right place and set right permissions.

lwmgr.txt
The Following User Says Thank You to 4ufak For This Useful Post: [ View ]
3rd May 2014, 02:41 AM   |  #5  
Junior Member
Thanks Meter: 3
 
3 posts
Join Date:Joined: Sep 2010
Quote:
Originally Posted by furious84

Really Thank You very much, sincerelly i decided To use Car home ultra like home when n7 is plug in Car (then i didn t need wallpaper, But i will try.
Ps your English is better then mine. I m from italy, And you?

Inviato dal mio Nexus 7 utilizzando Tapatalk

It's my pleasure, glad to help. I'm from Russia. :3
The Following User Says Thank You to 4ufak For This Useful Post: [ View ]
8th June 2014, 09:49 AM   |  #6  
Member
Thanks Meter: 5
 
48 posts
Join Date:Joined: Apr 2012
Basic understanding of shell and Tasker
I really would like to get Live Wallpaper switching to work. I tried entering the txt into the shell but it doesn't work or return the correct values. Could you help me out?
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes