Added read_phone_state for action setDataConnection

This commit is contained in:
Jens 2021-05-18 22:30:01 +02:00
parent 1560fd3343
commit 5ffb36a87f
4 changed files with 23 additions and 24 deletions

View File

@ -192,7 +192,7 @@
<activity android:name=".ActivityManageTriggerWifi" /> <activity android:name=".ActivityManageTriggerWifi" />
<activity android:name=".ActivityVolumeTest" /> <activity android:name=".ActivityVolumeTest" />
<activity android:name=".ActivityPermissions"></activity> <activity android:name=".ActivityPermissions"></activity>
<activity android:name=".ActivityManageTriggerNotification"></activity> <activity android:name=".ActivityManageTriggerNotification" />
<service <service
android:name=".receivers.NotificationListener" android:name=".receivers.NotificationListener"
@ -204,6 +204,13 @@
</service> </service>
<activity android:name=".ActivityPermissions" />
<!-- https://developer.android.com/about/versions/pie/android-9.0-changes-28#apache-p-->
<uses-library android:name="org.apache.http.legacy" android:required="false"/>
<service <service
android:name=".receivers.ActivityDetectionReceiver" android:name=".receivers.ActivityDetectionReceiver"
android:exported="false" android:exported="false"
@ -212,13 +219,6 @@
<meta-data <meta-data
android:name="com.google.android.gms.version" android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" /> android:value="@integer/google_play_services_version" />
<activity android:name=".ActivityPermissions"></activity>
<!-- https://developer.android.com/about/versions/pie/android-9.0-changes-28#apache-p-->
<uses-library android:name="org.apache.http.legacy" android:required="false"/>
<service android:name=".location.GeofenceIntentService"/> <service android:name=".location.GeofenceIntentService"/>

View File

@ -188,14 +188,6 @@
<activity android:name=".ActivityManageTriggerWifi" /> <activity android:name=".ActivityManageTriggerWifi" />
<activity android:name=".ActivityVolumeTest" /> <activity android:name=".ActivityVolumeTest" />
<activity android:name=".ActivityPermissions"></activity> <activity android:name=".ActivityPermissions"></activity>
<!-- https://developer.android.com/about/versions/pie/android-9.0-changes-28#apache-p-->
<uses-library android:name="org.apache.http.legacy" android:required="false"/>
<service android:name=".location.GeofenceIntentService"/>
<activity android:name=".ActivityManageTriggerNotification" /> <activity android:name=".ActivityManageTriggerNotification" />
<service <service
@ -208,6 +200,12 @@
</service> </service>
<activity android:name=".ActivityPermissions" />
<!-- https://developer.android.com/about/versions/pie/android-9.0-changes-28#apache-p-->
<uses-library android:name="org.apache.http.legacy" android:required="false"/>
<provider <provider
android:name=".FileShareProvider" android:name=".FileShareProvider"
android:authorities="com.jens.automation2" android:authorities="com.jens.automation2"

View File

@ -183,7 +183,7 @@
<activity android:name=".ActivityManageTriggerWifi" /> <activity android:name=".ActivityManageTriggerWifi" />
<activity android:name=".ActivityVolumeTest" /> <activity android:name=".ActivityVolumeTest" />
<activity android:name=".ActivityPermissions"></activity> <activity android:name=".ActivityPermissions"></activity>
<activity android:name=".ActivityManageTriggerNotification"></activity> <activity android:name=".ActivityManageTriggerNotification" />
<service <service
android:name=".receivers.NotificationListener" android:name=".receivers.NotificationListener"
@ -195,6 +195,13 @@
</service> </service>
<activity android:name=".ActivityPermissions" />
<!-- https://developer.android.com/about/versions/pie/android-9.0-changes-28#apache-p-->
<uses-library android:name="org.apache.http.legacy" android:required="false"/>
<service <service
android:name=".receivers.ActivityDetectionReceiver" android:name=".receivers.ActivityDetectionReceiver"
android:exported="false" android:exported="false"
@ -203,13 +210,6 @@
<meta-data <meta-data
android:name="com.google.android.gms.version" android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" /> android:value="@integer/google_play_services_version" />
<activity android:name=".ActivityPermissions"></activity>
<!-- https://developer.android.com/about/versions/pie/android-9.0-changes-28#apache-p-->
<uses-library android:name="org.apache.http.legacy" android:required="false"/>
<service android:name=".location.GeofenceIntentService"/> <service android:name=".location.GeofenceIntentService"/>

View File

@ -524,6 +524,7 @@ public class ActivityPermissions extends Activity
addToArrayListUnique(Manifest.permission.WRITE_SETTINGS, requiredPermissions); addToArrayListUnique(Manifest.permission.WRITE_SETTINGS, requiredPermissions);
addToArrayListUnique(Manifest.permission.ACCESS_NETWORK_STATE, requiredPermissions); addToArrayListUnique(Manifest.permission.ACCESS_NETWORK_STATE, requiredPermissions);
addToArrayListUnique(Manifest.permission.CHANGE_NETWORK_STATE, requiredPermissions); addToArrayListUnique(Manifest.permission.CHANGE_NETWORK_STATE, requiredPermissions);
addToArrayListUnique(Manifest.permission.READ_PHONE_STATE, requiredPermissions);
/* Permission was not required anymore, even before Android 6: https://su.chainfire.eu/#updates-permission /* Permission was not required anymore, even before Android 6: https://su.chainfire.eu/#updates-permission
addToArrayListUnique(permissionNameSuperuser, requiredPermissions);*/ addToArrayListUnique(permissionNameSuperuser, requiredPermissions);*/
break; break;