Loading res/values/config.xml +4 −0 Original line number Diff line number Diff line Loading @@ -46,4 +46,8 @@ different source (connection service) from the existing ringing call when reaching maximum ringing calls. --> <bool name="silence_incoming_when_different_service_and_maximum_ringing">false</bool> <!-- Determines if the granting temporary location permission to the default dialer during an emergency call should be allowed. The default is false. --> <bool name="grant_location_permission_enabled">false</bool> </resources> src/com/android/server/telecom/EmergencyCallHelper.java +4 −0 Original line number Diff line number Diff line Loading @@ -75,6 +75,10 @@ public class EmergencyCallHelper { } private boolean shouldGrantTemporaryLocationPermission(Call call) { if (!mContext.getResources().getBoolean(R.bool.grant_location_permission_enabled)) { Log.i(this, "ShouldGrantTemporaryLocationPermission, disabled by config"); return false; } if (call == null) { Log.i(this, "ShouldGrantTemporaryLocationPermission, no call"); return false; Loading Loading
res/values/config.xml +4 −0 Original line number Diff line number Diff line Loading @@ -46,4 +46,8 @@ different source (connection service) from the existing ringing call when reaching maximum ringing calls. --> <bool name="silence_incoming_when_different_service_and_maximum_ringing">false</bool> <!-- Determines if the granting temporary location permission to the default dialer during an emergency call should be allowed. The default is false. --> <bool name="grant_location_permission_enabled">false</bool> </resources>
src/com/android/server/telecom/EmergencyCallHelper.java +4 −0 Original line number Diff line number Diff line Loading @@ -75,6 +75,10 @@ public class EmergencyCallHelper { } private boolean shouldGrantTemporaryLocationPermission(Call call) { if (!mContext.getResources().getBoolean(R.bool.grant_location_permission_enabled)) { Log.i(this, "ShouldGrantTemporaryLocationPermission, disabled by config"); return false; } if (call == null) { Log.i(this, "ShouldGrantTemporaryLocationPermission, no call"); return false; Loading