10-22-2019 01:40 AM
10-22 09:56:18.144 5269 5269 W UnityMain: type=1400 audit(0.0:19): avc: denied { getattr } for path="/sys/devices/virtual/net/lo/flags" dev="sysfs" ino=27775 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:sysfs:s0 tclass=file permissive=0
10-22 09:56:18.144 5269 5269 W UnityMain: type=1400 audit(0.0:20): avc: denied { getattr } for path="/sys/class/net/lo" dev="sysfs" ino=27754 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:sysfs:s0 tclass=lnk_file permissive=0
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.UPDATE_DEVICE_STATS" />
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
<uses-permission android:name="android.permission.CHANGE_WIFI_MULTICAST_STATE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
void Start()
{
#if PLATFORM_ANDROID
if (!Permission.HasUserAuthorizedPermission(Permission.ExternalStorageWrite))
{
Permission.RequestUserPermission(Permission.ExternalStorageWrite);
}
if (!Permission.HasUserAuthorizedPermission("android.permission.INTERNET"))
{
Permission.RequestUserPermission("android.permission.INTERNET");
}
if (!Permission.HasUserAuthorizedPermission("android.permission.ACCESS_WIFI_STATE"))
{
Permission.RequestUserPermission("android.permission.ACCESS_WIFI_STATE");
}
if (!Permission.HasUserAuthorizedPermission("android.permission.UPDATE_DEVICE_STATS"))
{
Permission.RequestUserPermission("android.permission.UPDATE_DEVICE_STATS");
}
if (!Permission.HasUserAuthorizedPermission("android.permission.ACCESS_NETWORK_STATE"))
{
Permission.RequestUserPermission("android.permission.ACCESS_NETWORK_STATE");
}
if (!Permission.HasUserAuthorizedPermission("android.permission.CHANGE_WIFI_MULTICAST_STATE"))
{
Permission.RequestUserPermission("android.permission.CHANGE_WIFI_MULTICAST_STATE");
}
if (!Permission.HasUserAuthorizedPermission("android.permission.CHANGE_WIFI_STATE"))
{
Permission.RequestUserPermission("android.permission.CHANGE_WIFI_STATE");
}
#endif
}