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?
19th February 2015, 08:43 AM   |  #7  
Senior Member
Thanks Meter: 33
 
189 posts
Join Date:Joined: Sep 2012
I found this solution really good until kitkat , but now with lollipop does not work anymore , someone is able to change the codes ? I use a rom based cm now but I tried it with the stock without any results .
knows maybe an alternative method ?
thanks for any help

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes