Use INJECT_EVENTS permission for UiBench tests

Ensure UiBenchActivityTransitionsAnimationMicrobenchmark launching
EditTextTypeActivity that calls sendKeyDownUpSync is allowed without
throwing SecurityException.

Bug: 241190603
Test: atest UiBenchEditTextTypingMicrobenchmark
Change-Id: Id3c3490d7ab98a17da4e07d8d62d048c98ff1ec4
This commit is contained in:
Ming-Shin Lu
2023-06-14 10:13:38 +00:00
parent 7502484675
commit 8a65461a06
2 changed files with 2 additions and 0 deletions

View File

@@ -24,5 +24,6 @@ android_test {
"androidx.recyclerview_recyclerview",
"androidx.leanback_leanback",
],
certificate: "platform",
test_suites: ["device-tests"],
}

View File

@@ -18,6 +18,7 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.android.test.uibench">
<uses-permission android:name="android.permission.INJECT_EVENTS" />
<application android:allowBackup="false"
android:theme="@style/Theme.AppCompat.Light.DarkActionBar"