Grant Camera Permissions to DialerPackage
The Dialer apps now need camera permissions because they support video calling. Having the app ask for permission at runtime is not reasonable because this is difficult to do in situations like: - incoming video calls - outging emergency video calls It also would lead to a poor user experience in the scenario mentioned above. We already do this for a couple other permissions including microphone permissions, and since the idea here is the same we are requesting camera permissions for the dialer app as well to support video calling. bug=30036076 Change-Id: Ie2c1bdbcb97236e8497339512dcdb8d921641cf6
This commit is contained in:
@@ -619,6 +619,7 @@ final class DefaultPermissionGrantPolicy {
|
||||
grantRuntimePermissionsLPw(dialerPackage, CONTACTS_PERMISSIONS, userId);
|
||||
grantRuntimePermissionsLPw(dialerPackage, SMS_PERMISSIONS, userId);
|
||||
grantRuntimePermissionsLPw(dialerPackage, MICROPHONE_PERMISSIONS, userId);
|
||||
grantRuntimePermissionsLPw(dialerPackage, CAMERA_PERMISSIONS, userId);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -656,6 +657,7 @@ final class DefaultPermissionGrantPolicy {
|
||||
grantRuntimePermissionsLPw(dialerPackage, CONTACTS_PERMISSIONS, false, true, userId);
|
||||
grantRuntimePermissionsLPw(dialerPackage, SMS_PERMISSIONS, false, true, userId);
|
||||
grantRuntimePermissionsLPw(dialerPackage, MICROPHONE_PERMISSIONS, false, true, userId);
|
||||
grantRuntimePermissionsLPw(dialerPackage, CAMERA_PERMISSIONS, false, true, userId);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user