Run Shell pgrep error

13 views
Skip to first unread message

Osh

unread,
May 21, 2024, 5:47:52 AMMay 21
to Tasker
Have recently upgraded to a new device with Android 11.

Previously I was using Secure Settings plugin to run a shell command to get the OOMADJ value of a background process, and it worked flawlessly. Now, not so much.

As I understand it, I can run shell commands directly in Tasker. However when running the command cat /proc/$(pidof com.waze.android)/oom_adj  I get the following error:

10.40.13/LicenseCheckerTasker Checking cached only
10.40.13/LicenseCheckerTasker cache validity left -54428
10.40.13/LicenseCheckerTasker Cached status: Licensed
10.40.13/LicenseCheckerTasker Cached only: Licensed
10.40.13/E Run Shell: %OOMADJ -> %OOMADJ
10.40.13/E Run Shell:  ->
10.40.13/E Run Shell:  ->
10.40.13/Shell runBackground cat /proc/$(pidof com.waze.android)/oom_adj root: true timeout: 3000
10.40.13/Shell start process-thread ID 6030
10.40.13/Ew add wait type Shell12 time 2147483647
10.40.13/Ew add wait type Shell12 done
10.40.13/E add wait task
10.40.13/E Error: null

Where am I going wrong?
Reply all
Reply to author
Forward
0 new messages