View Single Post
Old 09-10-2021, 07:57 PM   #111
mergen3107
Wizard
mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.
 
mergen3107's Avatar
 
Posts: 1,517
Karma: 5000046
Join Date: Feb 2012
Location: Cape Canaveral
Device: Kindle Scribe
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.
mergen3107 is offline   Reply With Quote