Teach PackageManager to handle <required-(not-)feature>
Introducing 'required-feature' and 'requred-not-feature' tags that could be used "inside" 'uses-permission' elements. Elements of both types should have non-empty 'android:name' attribute to specify the name of the feature. If the 'uses-permission' element contains 'required-feature' and/or 'required-not-feature' elements, the permission will only be "requested" if the system supports all the 'required-feature's and does not support any of the 'required-not-feature's. The new elemets are "replacement" of the existing 'android:required(Not)Feature' attributes that can be optionally added to 'uses-permission' elements, but allow to specify only 1 feature each. However the 'android:required(Not)Feature' attributes remain supported for compatibility and will be treated similarly to the 'require-(not-)feature' elements. Bug: 168079571 Test: make && flash Test: atest CtsContentTestCases:PermissionFeatureTest Change-Id: Id3043530ebac6bd11805a611cebbf08b45e12f68
Loading
Please register or sign in to comment