I have made a program that works well, but I am in the process of improving it for my personal needs.
The day before yesterday the download after each modification worked fine, as well as the installation on my smartphone.
When the program started, everything was working fine too.
Since this morning the download is still working fine, as well as the installation on my smartphone.
But when I turn it on I have this message, which I didn't have before:
"Runtime Error
ConnectivityService: Netheir user 10246 nor curent process has android.permission.access_NETWORK_STATE "
Fortunately I am using a copy of my original program.
What happens, I also tried to use a copy of the original program WITHOUT any changes, the message is the same, so I can't use my program.
Can you help me please, it looks like it may be from Mit App Inventor, there may be a problem?
I don't know English, so this text is translated by Google translate, sorry ...
What are you doing in your app that it requires this permission? We had removed this permission from compiled apps because we believed that it was only really necessary for the companion to work (so we could obtain the IP address for establishing the live testing connection) and we do not believe that any other component in base App Inventor needs this permission. If you're using an extension in your app that talks to the connectivity service, the extension author will need to add the permission to their extension.
What is the advantage / benefit that this (standard) permission has now been removed?
It is / was (in my opinion) completely harmless and had no disadvantages.
Since there are a number of extensions that can check an Internet connection, the question remains whether the developers have declared this permission in the extensions, as they could assume that this permission is (was) always declared by default at AI2 and in all AI distros.
If removing this permission by default from compiled apps resolves the issue of most App Inventor apps being marked as trojans, then it is worth people having to update their extensions if they need to. Every major release of App Inventor would then end up with a bunch of posts that App Inventor has been "hacked," which is not the case.
Importantly:
As of Sept 2019, only 2% of App Inventor projects made use of extensions. It follows that fewer than those use extensions to check network connectivity.
The companion still includes the permission because it needs to check the network state when establishing peering with the web session, so any extensions will continue to work while live testing until the author updates the extension.
Thank you for your intervention, and that reassures me at least as regards my programming, because obviously I was questioning myself ...
My program must order an arduino (esp8266-01 web server) with its own WiFi SSID, in access point mode 192.168.4.1
This web server, when it is connected to the sector obviously in 5 volts, and started by my program, puts in contact 5 volts a small arduino ESP32-CAM camera with another SSID in access point 192.168.4.1
It works very well using the "TaifunWiFi" extension, but of course programmers (beginners like me) often want to improve their programs, this is my case, hi, hi ...
It is a coincidence that this deletion is taking place now, fortunately my program is in a phase of improvement because it works, but it is especially important not that I recompile this program, at the risk of blocking everything, it would be a shame .. .
No doubt I must take into account a sentence which nevertheless recommends wisdom:
"The best is the enemy of good"
But as I would still like to go a little further in my use, I will see the side of Anke's proposal that I also thank of course, but I admit not knowing the use of "APK Studio Editor" which I hope I can bypass this authorization, the given link will probably help me, but I will have to understand all this, gggrrrrrrrrr
I now added the permission android.permission.ACCESS_NETWORK_STATE into the wifi extension
you can download the latest version from the download section here https://puravidaapps.com/wifi.php