lockscreen wallpaper

Post your questions and help other users.

Moderator: Martin

User avatar
Autumn-Leigh
Posts: 67
Joined: 15 Mar 2018 19:23
Location: UK
Contact:

Re: lockscreen wallpaper

Post by Autumn-Leigh » 31 Mar 2018 19:22

Desmanto wrote:
Autumn-Leigh wrote: may i ask if you have a flow to show me this please? i understand replacing the images, but am unable to understand how i get automagic to change the lockscreen wallpaper
I am creating it. But how you are going to use it? Need to confirm what you need first, since it affects the concept. If you only need to toggle between two, the flow is much simpler. But it will be more complex if you need more than 2, or dynamic one. And you also need to find that lockscreen wallpaper location first.

Automagic doesn't change the lockscreen, it simply replace the file. I simply copy one custom Wallpaper with the same resolution as the screen. Copy it to /data/data/com.hmct.vision/files/ (this folder is different in your phone) and rename it to lockscreen_wallpaper_custom_new.png
Then using Action execute root command

Code: Select all

rename /data/data/com.hmct.vision/files/lockscreen_wallpaper_custom.png /data/data/com.hmct.vision/files/lockscreen_wallpaper_custom_ori.png
rename /data/data/com.hmct.vision/files/lockscreen_wallpaper_custom_new.png /data/data/com.hmct.vision/files/lockscreen_wallpaper_custom.png
Basically it swap the original one with the new one i have there. To toggle it back, I use another root command and swap it back.

Code: Select all

rename /data/data/com.hmct.vision/files/lockscreen_wallpaper_custom.png /data/data/com.hmct.vision/files/lockscreen_wallpaper_custom_new.png
rename /data/data/com.hmct.vision/files/lockscreen_wallpaper_custom_ori.png /data/data/com.hmct.vision/files/lockscreen_wallpaper_custom.png
If you need more than simple toggling like above, you have to give numbering to the file. Use the first command for example wifi connected, and the second command for wifi disconnected.
I would like one wallpaper for wifi unavailable, and the normal lockscreen wallpaper (wallpaper) when it is available.
i cant seem to find the folder ether, I found /data/system/users/0/wallpaper but it shows my lock screen wallpaper from 10pm to 8.30am
I use nova launcher
YouTube Channel - https://youtu.be/fui3RO9EmNU
If anyone wants a shoutout, or has a flow they want me to do, be it theirs or a new one, let me know :)

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: lockscreen wallpaper

Post by Desmanto » 01 Apr 2018 05:08

If only toggling between two, then my previous post method can work. The only problem is to find the lockscreen wallpaper location.

What do you mean by : "I found /data/system/users/0/wallpaper but it shows my lock screen wallpaper from 10pm to 8.30am" ?

Maybe the lockscreen has 2 files, the real one and the backup. You usually need to replace only the real one. Try to use my windows recognizer flow, go to the setting which change the lockscreen wallpaper. Note down several of the package name you find. Then browser to /data/data/[packagename] you found just now to check whether any one of those app store the png file. The slower but sure method is to search for .png file in /data/data, if you use MiXplorer, need to use the advance search to search subfolder. It is very slow, but it will show you so many files, and you have to scan find the one that is your lockscreen wallpaper.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

User avatar
Autumn-Leigh
Posts: 67
Joined: 15 Mar 2018 19:23
Location: UK
Contact:

Re: lockscreen wallpaper

Post by Autumn-Leigh » 01 Apr 2018 15:02

Desmanto wrote:If only toggling between two, then my previous post method can work. The only problem is to find the lockscreen wallpaper location.

What do you mean by : "I found /data/system/users/0/wallpaper but it shows my lock screen wallpaper from 10pm to 8.30am" ?

Maybe the lockscreen has 2 files, the real one and the backup. You usually need to replace only the real one. Try to use my windows recognizer flow, go to the setting which change the lockscreen wallpaper. Note down several of the package name you find. Then browser to /data/data/[packagename] you found just now to check whether any one of those app store the png file. The slower but sure method is to search for .png file in /data/data, if you use MiXplorer, need to use the advance search to search subfolder. It is very slow, but it will show you so many files, and you have to scan find the one that is your lockscreen wallpaper.
Have done it whooppie, thank you.
May I ask what command you can do on root command please?
YouTube Channel - https://youtu.be/fui3RO9EmNU
If anyone wants a shoutout, or has a flow they want me to do, be it theirs or a new one, let me know :)

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: lockscreen wallpaper

Post by Desmanto » 01 Apr 2018 16:16

You can use anything the terminal emulator allow you to do. I usually find the built-in method first. Then search for how tasker do it. Then if still cannot, I will google "android terminal change wallpaper", just replace "change wallpaper" with the things you need.

Here some example only that I use in my flows :
rename = rename file
echo = output text or write it to file
chmod/chown = change permission/ownership of file
am broadcast = Automagic can do it natively, I use this in adb shell
dumpsys = to collect a lot of information/log, google for more usage.
busybox killall mediaserver = to restart mediaserver when it is bugging (running non stop causing wakelock). Need busybox
reboot = to reboot phone, into recovery or to bootloader
cat = output file content, actually used for concatenate
getevent = waiting for certain input key
sqlite3 = require sqlite3 binary, to query/edit sqlite database.

You can find example in the action, tap the ellipsis. Use it only as last resort, use Automagic's built-in element if possible.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

Post Reply