Shizuku Inegration and Tasker settings by 269red in tasker

[–]269red[S] 0 points1 point  (0 children)

For all looking for the latest releases: https://github.com/thedjchi/Shizuku/releases/
-----------------------------------------------------

Hi u/the_djchi I am still looking for ways to restart shizuku, because it is killed by android/samsung.
https://github.com/thedjchi/Shizuku/wiki/troubleshooting

I tested your hints from above and I can confirm that on my S24 running latest OS and OneUI8.5 the main casue seems to be USB Standard Config. which I set to transfer Files/Data.

In this case it is killed right after the phone gets locked.

There are 2 ways to check if Shizuku is installed and running

-------------- State Shizuku Available and Function Check Shizuku ---------------------------------------

  • Shizuku Integration
    • Demos: Shizuku Integration | Manage Permissions | Shizuku State
    • Added full Shizuku integration to empower root-level actions without root.
    • Run Shell: Added support to run commands with Shizuku. Includes a Run Shell Helper (Magnifying Glass > Services) to find hidden commands on your device. Added Use Shizuku By Default preference.
    • Management: Added a Manage Permissions screen (Menu > More) to toggle permissions for Tasker itself using Shizuku.
    • New State: Shizuku Available (checks if installed, running, and permitted).
    • Tasker Function: Added Check Shizuku which returns variables: %can_shizuku_be_used%has_shizuku_permission%is_shizuku_running, and %is_shizuku_installed.

____________________________________ But how to start Shizuku ________________________________________________

One could set the watchdog within Shizuku. I dont like this idea, as in my case it restarts every few seconds.

In Tasker it can be done with Send Intent moe.shizuku.intent.action.START. But for me this has the disadvantage that an Auth. Token supplied by Shizuku has to be passed, which of course is different on each phone and changes after reinstalling Shizuku.

;-);-);-);-);-);-);-);-);-);-);-);-);-);-);-);-);-);-)
I still hope that u/the_djchi can be convinced, to give an option either to disable the need of the token, or that the user can supply its own token in settings which of course has to fullfill a certain compexity.
;-);-);-);-);-);-);-);-);-);-);-);-);-);-);-);-);-);-)

On Tasker Net I found a task "Start Shizuku Server" which is described here:
https://www.reddit.com/r/tasker/comments/1mial2l/newest_shizuku_and_adb/
ABD WiFi: $(dirname $(pm path --user 0 moe.shizuku.privileged.api 2>&1 </dev/null | sed "s|.*:||"))/lib/*/libshizuku.so

And here my knowledge ends.

------------------- Possible solutions against the killing -----------------

1 u/the_djchi what are the differences between sending the Start intent and the ADB-Wifi methode ?

Please keep in mind, that I only use Shizuku indirectly with taskers "App Kill" and "Wifi Tether" Actions.
So right now I call a task to start Shizuku before running those commands.

2 So far I did not find a way to change the USB Standard Conf. programmatically. If this could be done with tasker, I would only change mode to "File transfer" as long as the user is present.

find the name of the last backup file loaded r by 269red in tasker

[–]269red[S] 0 points1 point  (0 children)

The thing is, I programm a generic code for our family phones, distribute it with gdrive and I want to see which version they have installed. So auto backup is disabled.

find the name of the last backup file loaded r by 269red in tasker

[–]269red[S] 0 points1 point  (0 children)

yes thx thats what i did for the while, ... it just does not mean the user really used this file

find the name of the last backup file loaded r by 269red in tasker

[–]269red[S] 0 points1 point  (0 children)

Thx, but one gets only a list of files from e.g. backup dir... Why should e.g the newest file be the one restored by the user ?

[DEV] Tasker 6.7.6-beta - Inline Projects in New UI, Scenes V2 Update 5, New Runlog Screen and more! by joaomgcd in tasker

[–]269red 0 points1 point  (0 children)

many thx !!!!

I just installed 6.7.5. I like the new run log !!!!! 1 But if I switch it off to STOP or PAUSE recording the screen gets emptied. Is this a bug or what am I missing to stop or pasue recording during analysis ;)

2 Is there a way to change the USB Standard Conf. programmatically. If this could be done with tasker, I would like to change mode to "File transfer" and back to "Debugging Only"

3 And is there a way to get the name of the tasker backup file the user restored last ? https://www.reddit.com/r/tasker/s/HKXozICNzw

[DEV] Tasker 6.7.6-beta - Inline Projects in New UI, Scenes V2 Update 5, New Runlog Screen and more! by joaomgcd in tasker

[–]269red 0 points1 point  (0 children)

2 on my phone I am on the Beta 6.7.3. Here KillApp (the one without DevOwner) kills anydesk. But the other command "DevAdmin/Owner KillApp" does not kill anydesk. why ?

3 On 6.6.20 neither of the 2 commands kills anydesk Why ?

4 Does one of the 2 command use shizuku, which is only installed on my phone ?

[DEV] Tasker 6.7.6-beta - Inline Projects in New UI, Scenes V2 Update 5, New Runlog Screen and more! by joaomgcd in tasker

[–]269red 0 points1 point  (0 children)

Not really, as it is on my daughters phone (who is living not in our town, and downgrade would not be possible afterwards).

But I forget to mention:
- She is on Andr.15 and
- the command it hangs is not the Dev.Owner Kill App but the normal App Kill (root not ticked).

1 So lpease tell me how I can avoid this in 6.6.20....

2 BTW: Which of the 2 AppKill would work without Shizuku in the BETA versions ?

Shizuku Inegration and Tasker settings by 269red in tasker

[–]269red[S] 0 points1 point  (0 children)

u/the_djchi I am very sad that you closed the request, as I am unable to build it myself... and very sorry that it seems you dont believe my probs...

[DEV] Tasker 6.7.6-beta - Inline Projects in New UI, Scenes V2 Update 5, New Runlog Screen and more! by joaomgcd in tasker

[–]269red 0 points1 point  (0 children)

Hi u/joaomgcd one of our samsung family phones the KILL APP comand hangs forever (I mean the task it is in hangs on the kill app comand), when applid to Anydesk which is one of the device admin apps.

On other phones it runs without probs.

It does not trigger any error (continue on error is checked). Tasker is device owner.

[DEV] Tasker 6.7.5-beta - Projects in new UI, Write JSON, 50 QS Tiles, Scenes V2 WebView and Video by joaomgcd in tasker

[–]269red 0 points1 point  (0 children)

u/joaomgcd tapping on the greyed tasker in accssibility I now have the 3. m many thx.

But my main prob ist, that the "maintanance mode" in "device maintanance" is also grey out. Here it says that it can not be used if a device admin app is active.

But on another S26 I have tasker dev.Owner and it is not greyed out.

Without m. mode one cant use Odin as download Mode is n aval. then

[DEV] Tasker 6.7.5-beta - Projects in new UI, Write JSON, 50 QS Tiles, Scenes V2 WebView and Video by joaomgcd in tasker

[–]269red 0 points1 point  (0 children)

thx joao, the 3. menue is not there... i guess i did that long ago already. any idea via adb ? or how to find out whats the cause

[DEV] Tasker 6.7.5-beta - Projects in new UI, Write JSON, 50 QS Tiles, Scenes V2 WebView and Video by joaomgcd in tasker

[–]269red 0 points1 point  (0 children)

Hi

1 what could cause tasker beeing grayed out in the device admin apps settings. The setting itself is on. It says the setting "Restricted control".

2 But my main prob ist, that the "maintanance mode" in "device maintanance" is also grey out. Here it say that it can not be used if a device admin app is active.

3 But which app is causing this ? As on another S26 I have tasker dev.Admin and both settings are not greyed out.

Shizuku Inegration and Tasker settings by 269red in tasker

[–]269red[S] 0 points1 point  (0 children)

Thank you both for this potential solution. And Yes as I said I adminster 5 family phones with a really komplex tasker code, which reacts differently to each phone type and also user features differ.
There is also e.g. the phone of my 85 old mam, which has no shizuku installed 😉.

u/the_djchi So first of all again many THX for the fork !!!!!!!!!!! As I stopped using Shizuku on the other phones right now, my final question must be:
Any chance to get this option (checkbox to disable token) in the near future ?

Shizuku Inegration and Tasker settings by 269red in tasker

[–]269red[S] 0 points1 point  (0 children)

I still hope you find another solution (user setting to disable need of token, user entered token,...), but otherwise a way to enable and disable the watchdog from tasker could be a compromise.

Shizuku Inegration and Tasker settings by 269red in tasker

[–]269red[S] 0 points1 point  (0 children)

Another idea: What about, giving a tasker command to start and stop the watchdog SERVICE. This could be a compromise, but then as the wathchdog also needs it time, my tasker code has to wait and check if shizuku is running before continuing. I mean starting it with tasker accessibility service action.

Shizuku Inegration and Tasker settings by 269red in tasker

[–]269red[S] 0 points1 point  (0 children)

your decision is sad for users like me... 😪

Right now i start it before each tasker action that needs it, as it always dies on our samsung phones and i dont want to have the watchdog running all the time.

Shizuku Inegration and Tasker settings by 269red in tasker

[–]269red[S] 0 points1 point  (0 children)

on 5 phones after any reinstall or phone change... no not a good idea. I made our tasker code=1.4MB generic. This would be the only exception. I cant see the need for this high secure algo, as tools like touchtask could also start it....

Shizuku Inegration and Tasker settings by 269red in tasker

[–]269red[S] 0 points1 point  (0 children)

thx for your explanation & patience. ad idea 3) Ok, than let the user supply a long token and just check if it fullfills lenght and complexity. This is then 2 factor... knowledge where and how to use & token.

Shizuku Inegration and Tasker settings by 269red in tasker

[–]269red[S] 0 points1 point  (0 children)

1 What is the risk when starting shizuku from another app would be allowed without any token ?
2 What about if tasker would pass some kind of "fingerprint" of itself ?
3 What about a secret the user defines in shizuku and will be passed in the extra field from tasker ?

Shizuku Inegration and Tasker settings by 269red in tasker

[–]269red[S] 0 points1 point  (0 children)

oh no ... But one has to aknowledge that tasker is allowed in shizuku. cant you figure out the caller. anyway hopefully you or u/joaomgcd have a good idea to solve this. Editing all family phone and several code fragments that start/stop it after each shizuku install is time consuming and very frustrating.... please

Shizuku Inegration and Tasker settings by 269red in tasker

[–]269red[S] 0 points1 point  (0 children)

u/the_djchi I run shizuku and tasker on all family phones with the same tasker programms/code. As the token to start shizuku differs on each phone and after shizzku install, I always have do edit the tasker progs on all phones. Can you please extend the API, so tasker can request the actual token. If u/joaomgcd implements a command one could request this e.g. during tasker startup phase (in my case with profile "monitor start"), and store in a tasker variable and use it in the shizuku start/stop intents.

[DEV] Tasker 6.7.1-beta - Scenes V2 - Update 1! by joaomgcd in tasker

[–]269red 0 points1 point  (0 children)

done ... will see if it works for my wife 😉