To stop the script:
sudo pkill backup-ip.sh
It's true that I've not taken into account the case where LTE is activated, but mobile data is disabled.
To stop the script:
sudo pkill backup-ip.sh
It's true that I've not taken into account the case where LTE is activated, but mobile data is disabled.
You can publish on youtube or other video platform.
For the record I will publish a new version with update Signal-Desktop version, in early june.
You can find a workaround script, for Network connectivity jump here:
Would you consider doing a confined version of the app without a background deamon, and with the go part only running when the app itself is running? I think it would be usefull for those who don't want notifications all the time, and don't want their battery to be drained by the deamon or are not comfortable with having a whatsapp deamon running at all time. And it would be easier to publish on the openstore!
Thank's a lot for your work! 
May you please suggest a complete procedure to test
1°) With adb create the script with
nano /home/phablet/backup-ip.sh
and paste the content
2°) Give execution rights:
chmod +x /home/phablet/backup-ip.sh
3°) Start the script with:
sudo su -c "/home/phablet/backup-ip.sh > /home/phablet/log-backupip 2>&1 &"
It will then be running until next reboot.
Did you notice side effects (you said that, i have a Volla 22 too) ?
The only thing that I've noted so far, is that If I enable airplane mode with a wrong timing (bad luck), it might go into a loop of disabling / re-eabling the modem. But then I switch off and on, the airplane mode it goes fine.
Here is the script that I currently use, it improves greatly the usability of my phone, because it reduces dramatically the need to go in the settings to restart cellular connexion, in order to get access to the Internet.
Though it's not perfect and might have side effects, use at your own risks!
#!/bin/bash
MODEM="/ril_0"
HOST_TO_PING="8.8.8.8 www.google.com ubports.com 1.1.1.1 9.9.9.9 cloudflare.com amazon.com microsoft.com wikipedia.org apple.com"
function get_modem_iface()
{
/usr/share/ofono/scripts/list-contexts |awk -v target="$1" '
/^\[ \/ril_/ { r=$2 }
/Type = internet/ { i=1 }
/Interface=ccmni/ && r==target && i {
sub(/^.*Interface=/, "")
sub(/ .*/, "")
print
exit
}
'
}
IFACE=$(get_modem_iface $MODEM)
i=0;
while true; do
if [ "$IFACE" = "" ]; then
IFACE=$(get_modem_iface $MODEM)
fi
ifconfig $IFACE | grep -v inet6 | grep inet > /dev/null 2>&1
if [ "$?" -ne "0" ]; then
gdbus call --system --dest org.ofono --object-path "$MODEM" --method org.ofono.NetworkRegistration.GetProperties | grep "'Technology': <'lte'>" > /dev/null 2>&1
if [ "$?" -eq "0" ]; then
date
echo "IFACE: $IFACE";
echo "IP loss detected"
/usr/share/ofono/scripts/offline-modem $MODEM
/usr/share/ofono/scripts/online-modem $MODEM
sleep 5;
IFACE=$(get_modem_iface $MODEM)
fi
else
route=$(ip route show default)
if [ "$route" = "" ]; then
gdbus call --system --dest org.ofono --object-path "$MODEM" --method org.ofono.NetworkRegistration.GetProperties | grep "'Technology': <'lte'>" > /dev/null 2>&1
if [ "$?" -eq "0" ]; then
date
echo "IFACE: $IFACE";
echo "Route loss detected"
/usr/share/ofono/scripts/offline-modem $MODEM
/usr/share/ofono/scripts/online-modem $MODEM
sleep 5;
IFACE=$(get_modem_iface $MODEM)
fi
fi
fi
i=$((i+1))
if [ "$i" -gt "15" ]; then
i=0;
gdbus call --system --dest org.ofono --object-path "$MODEM" --method org.ofono.NetworkRegistration.GetProperties | grep "'Technology': <'lte'>" > /dev/null 2>&1
if [ "$?" -eq "0" ]; then
internetaccess=0;
for host in $HOST_TO_PING ; do
ping -W 1 -c 1 $host >/dev/null 2>&1
if [ "$?" -eq "0" ]; then
internetaccess=1;
break;
else
echo "Ping to $host failed, trying next one in 4s ...."
sleep 4;
fi
done
if [ "$internetaccess" -eq "0" ]; then
date
echo "IFACE: $IFACE";
echo "Internet access loss detected"
/usr/share/ofono/scripts/offline-modem $MODEM
/usr/share/ofono/scripts/online-modem $MODEM
sleep 5;
IFACE=$(get_modem_iface $MODEM)
fi
fi
fi
sleep 20;
done
A good test is to see if the connection is still lost after reboot or complete shutdown and startup.
This is not really the purpose of the script for now. The purpose of the script is that, when you keep the phone up, and you travel, Internet remain accessible at any moment, without needing to manualy go in the settings to restart the connection.
Ok well I don't know, are you testing with a specific wifi network with captive portal? Does it support RFC 8910 and RFC 8908, or is it legacy? Did you try with other wifi networks?
Ps: You can also retry with mobile data disabled, sometimes it's better.
What do you mean, do you get the notification when you connect to the wifi network with captive portal?
(You should not open the app from the app grid, it is useless, it will open when you click on the notification, in the notification panel, like in the video)
With the latest version of the script you need to install this app first:
https://github.com/pparent76/Captiveviewer-UT/releases/tag/0.1.0
Then install the latest version of the script, and chmod +x the script, and reboot
Then you should get a notification when you connect to a wifi with captive portal, and if you click the notification it will open the captive portal app.
I've written a workaround script that I'm currently testing, that detects an IP loss on the interface and automatically reinitialize the modem when it happens. For now it seems to work quite well, and even seems to have a positive impact on VoLTE connexion. I will test it for a few days, and if everything goes well, I will publish it here.
Ok but could you record the screen when it fails to import the file with:
https://open-store.io/app/screenrecorder.ubports
because I fail to see what could be happening.
Can you tell which version of UT are you using, and post a video screenshot? because on all the phones that I own it works fine, so I would need to see visually whats happens on your phone.
You need to open file directly from Signal app, by clicking on the "+" in the bottom right hand corner of a chat, and then select the gallery app, to select the file to import.
It's true that there is currently something that should not be: Signal appears in the application grid in content Hub, as an option to export an image to, it should not, this does not work that way, only the other way around import the picture from the signal app. I will correct that in next revision.
I'm not sure to understand your message? You want to give me a script about what?
Thank's! 