Error "ping: unknown host ..." when using Shell Script with Helper App

floyd

New member
I've tried to create a simple shell script in Macrodroid:
ping -c3 google.com

If I launch the script without using the helper app, the output is:

PING google.com (216.58.205.46) 56(84) bytes of data.
64 bytes from mil07s19-in-f14.1e100.net (216.58.205.46): icmp_seq=1 ttl=117 time=16.8 ms
64 bytes from mil07s19-in-f14.1e100.net (216.58.205.46): icmp_seq=2 ttl=117 time=45.9 ms
64 bytes from mil07s19-in-f14.1e100.net (216.58.205.46): icmp_seq=3 ttl=117 time=28.9 ms

--- google.com ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2006ms
rtt min/avg/max/mdev = 16.834/30.598/45.986/11.958 ms


But if I use helper app (I need this 'cause I want to write the output of a curl command in a file), I get the error message:
ping: unknown host google.com

I'm testing this on a Galaxy Tab A7 (SM-T500) without root access, with One UI Core 4.1 and Android 12.
Macrodroid version: 5.39.4
Macrodroid Helper version: 1.13
How can I solve this? On my phone (Galaxy A52s Android 14, helper version 1.7) it works good.
 

floyd

New member
Update: I tried to install the 1.13 version on my phone, and the same problem occurs. So I reinstalled the 1.7 version and installed the same version on tablet too. This solved the problem, so it seems that this new version of the Helper app can't connect to internet...
 

MacroDroidDev

Administrator
Staff member
The permission is definitely there in the code. I might be misremembering but I think I said I will add this change next time I have to do an update for some other reason. I don't like updating the helper file unless I need to because it creates a lot of support issues and confuses some users.
 

MacroDroidDev

Administrator
Staff member
@floyd I've just posted a new helper file here that should not have internet permission and allow you shell script to work:

 
Top