Sudden "permission denied" errors on file accesses

For the past few months on this device (and several more on past devices), I have been using a wallpaper image shuffler via Tasker that ultimately sends an image path like “/storage/emulated/0/Pictures/wp/<path>” to KLWP.

As of today, this no longer works, for some reason. I checked the system logs using the Logcat Reader app (which seems to no longer be on the Play Store), and KLWP writes this message:

java.lang.IllegalArgumentException: java.io.IOException: Unable to read file /storage/emulated/0/Pictures/wp/vt/95rn16/mikeneko/illust_97944324_20230405_191414.png
	at org.kustom.lib.content.source.e.p(Unknown Source:137)
	at org.kustom.lib.content.source.e.n(Unknown Source:0)
	at org.kustom.lib.content.source.c.d(Unknown Source:25)
	at org.kustom.lib.content.request.i.G(Unknown Source:68)
	at org.kustom.lib.content.request.i.A(Unknown Source:21)
	at org.kustom.lib.content.request.a.U(Unknown Source:0)
	at org.kustom.lib.content.request.a.w(Unknown Source:0)
	at org.kustom.lib.content.request.d.u(Unknown Source:42)
	at org.kustom.lib.content.request.d.d(Unknown Source:3)
	at org.kustom.lib.render.view.d.onDraw(Unknown Source:18)
	at android.view.View.draw(View.java:23209)
	at android.view.View.draw(View.java:23082)
	at android.view.ViewGroup.drawChild(ViewGroup.java:4529)
	at org.kustom.lib.render.view.s.m(Unknown Source:2)
	at org.kustom.glengine.sprites.a.N(Unknown Source:95)
	at org.kustom.glengine.sprites.c.O(Unknown Source:162)
	at org.kustom.glengine.e.i(Unknown Source:259)
	at org.kustom.glengine.e.k(Unknown Source:9)
	at org.kustom.glengine.e.j(Unknown Source:1)
	at org.kustom.wallpaper.K$a.m(Unknown Source:392)
	at org.kustom.glengine.b.run(Unknown Source:88)

I’m not sure why it suddenly can’t read these files anymore. I haven’t had any system updates or anything; I did recently disable/reenable all my Magisk superuser permissions and modules to test some (unrelated) issues the previous day, but I can’t see how it could be related.

Using:

  • Sony Xperia 1 IV (XQ-CT62)
  • Android 13
  • Root via Magisk 27
  • KLWP 3.77b429514beta (and the current stable 3.76b…)

Test case: create a text object with formula:

$sh("echo bau >> /storage/emulated/0/Pictures/wp/qq.txt")$

Preview field should say sh: can't create /storage/emulated/0/Pictures/wp/qq.txt: Permission denied