Is there a safe way to shuffle screensavers (or make the system select them randomly) located in /data/local/assets/images/ ?
Currently the only way I see is to run a shell script that renames those “standby-n.png” randomly after boot completed. Magisk has a directory for such shell scripts. However I am not sure how will it behave.
I only tested it manually: via SSH, renamed the screensaver number that was supposed to be the next one (e.g. number 2 if I only put the device to sleep once after fresh boot). The substitution worked well. If the next file is not strictly named in that format (for example standby-2A.png), it uses some pre-cached stock image of 600x800 px. I replaced those in /system/media/ — but this didn’t change a thing. I don’t know where these pre-cached things come from, maybe from disabled com.onyx.
I should probably also make a check of chmod (777) for those files.
|