Tooling run with the shell needs to be able to sample sensors above
200hz to facilitate with running tests.
Fixes: 183240340
Test: Run tool that requires the permission to sample at a high rate
Change-Id: Ic6782ea5afe750d3ec3167d11eef791881dceb53
An upcoming platform change is introducing a new "Nearby devices"
runtime permission which contains the new BLUETOOTH_CONNECT and
BLUETOOTH_SCAN permissions.
We have logic in place to use <split-permission> to translate the
older BLUETOOTH and BLUETOOTH_ADMIN permissions into these new
runtime permissions, but modern apps will need to pivot to
requesting them directly as part of targeting Android S.
This change requests both the old and new permissions to avoid
breakage while the new permission enforcement is being phased in.
Bug: 181813006
Test: atest CtsPermission2TestCases
Test: atest CtsPermission3TestCases
Test: atest CtsStatsdAtomHostTestCases
Change-Id: I39f45e7d22d132d44c84017cd98e6d9e98533c7f
I've decided to use a new permission since it needs to be added to
the settings app, which doesn't have INTERNAL_SYSTEM_WINDOW permission,
so I didn't want to add it as it may enable it to do some other things
it's not supposed to do.
Bug: 182448615
Test: atest android.widget.cts.ToastTest as regression test
Test: atest NotificationManagerServiceTest
Change-Id: I6adc84856f1fe9c33e0ad8470e7248a20587a1e9
Created a new permission to allow setting and verifying lock screen
credentials.
Test: N/A
Bug: 182260585
Change-Id: I3cf624f063ba582bc8d3b6aeeb11a46a2ab37636
Add permission for app hibernation state manipulation.
Bug: 183058954
Test: run hibernation job and confirm the API works for
PermissionController
Change-Id: Id57ee57f49710d0b8a49a4ec561800db43089f87
We added a new permission "MANAGE_HOTWORD_DETECTION" to allow
the application that held this permission to be able to use
setHotwordDetectionServiceConfig functions.
In order to avoid the feature leakage, we submit the change
about Shell in internal branch.
Bug: 178346114
Test: atest CtsVoiceInteractionTestCases
Test: atest PermissionPolicyTest
Change-Id: I8829c3c389fb5fe4b06ffcf21870db50fa2ede4b
Created a new permission to allow access to device audio
state and granted it to shell.
Test: N/A
Bug: 182260585
Change-Id: If1bfcb1341402717fec74cc704caa7e1eb18fa2e
There is no security risk in getFontConfig without calling permissions
but for keeping compatibility it is recommended to have permissions
to all (non-mainline) system APIs.
To be able to test these APIs, grant UPDATE_FONTS permission to shell.
Bug: 181796732
Test: atest FontManagerTest
Change-Id: Ic1f663e1e01f3625a076e68949f717366e79f5fa
This adds a permission that allows the holder to provide the source
package when setting the primary clip in clipboard. This will be done
using a new system API.
This is needed to ensure that the clipboard access notifications can be
properly attributed. For example, when a copy is performed through the
share sheet, the data should be attributed to the app that opened the
share sheet, not Android System.
Bug: 180577866
Test: builds
Change-Id: If3193d476fa923b849b505ad8b6dd893a2feae8f
BIND_VOICE_INTERACTION permission was added for GTS test code usage.
The GTS test cases relying on this permission previously have been
refactored to not require the permision any longer.
Bug: 178984748
Test: gts-tradefed run gts -m GtsAssistIntentTestCases
Change-Id: I6811b929d65400af39e17c75c638bc2c1fd9ef7e
1. Add shell command to allow a temporary override of the
TranslationService that helps e2e CTS tests.
2. Add permission to allow the shell call the UiTranslationManager
APIs for the tests.
3. Dump translation systemservice and activity translation related
information to help debugging
We don't want to leak translation feature now, so we submit the
change about Shell in internal branch.
Bug: 179047265
Test: manual.
1. Switch to temp TranslationService by "adb shell cmd transformer set
<myTranslationService> 12000" and make sure only the same app can
access the APIs when switching to the temp service.
2. adb shell dumpsys transformer
3. adb shell dumpsys activity <myactivity> --translation
(We set "transformer" now to prevent feature leak, the final value is
translation)
Change-Id: I2573b7ea226bd805a951f8346d5370d9c9776364
Rename the apis to be more consistent.
Also expose to test api.
Have the aosp mark that it supports the toggle features by default.
Test: atest CtsSensorPrivacyTestCases
Bug: 162549680
Change-Id: Ib38c16adfc5cec931347e1a1891618983d78248b
Explicitly set FLAG_IMMUTABLE for all PendingIntents
in BugreportProgressService.
Test: Builds
Bug: 170165227
Bug: 171830604
Bug: 178803845
Change-Id: Iae1489b9c8fa323448e60615e99ad96aee1cd1d7
Merged-In: Iae1489b9c8fa323448e60615e99ad96aee1cd1d7
(cherry picked from commit 2d38f6e4f0)
Define a new ACCESS_RCS_USER_CAPABILITY_EXCHANGE permission and move from MODIFY_PHONE_STATE to ACCESS_RCS_USER_CAPABILITY_EXCHANGE permission for associated APIs.
Bug: 174861641
Bug: 154764486
Test: atest -c CtsTelephonyTestCases:android.telephony.ims.cts.RcsUceAdapterTest
Merged-In: I863f2e6e1afffce5e8ea103790cf368c59734029
Merged-In: I978161a230ce23e17d3b16cc92c3e82ea1cbb407
Change-Id: I3b524158b81dc4437812e7b57fb3adcd17c02c71
Created the following new permissions and granted it to shell:
* FORCE_DEVICE_POLICY_MANAGER_LOG: will be used to expose
DPM#forceNetworkLogs and DPM#forceSecurityLogs as TestAPIs.
* CLEAR_FREEZE_PERIOD: will be used to expose
DPM#clearSystemUpdatePolicyFreezePeriodRecord as a TestAPI.
Bug: 180500227
Test: atest PermissionPolicyTest#platformPermissionPolicyIsUnaltered
Change-Id: I8a2a49aa45704d8991e9cf3689b5259442fb1db3
This is needed to write tests for speech recognition API.
Bug: 177915986
Test: patched and verified on internal master
Change-Id: Ia89584a23ad4c073bf0dea888972faf3fe6d3e76