Commit Graph

1518 Commits

Author SHA1 Message Date
Bill Yi
6d4d237190 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I0ca0eaddbab9d12f77a118c55ba73d8506f18a74
2021-07-23 16:15:30 +00:00
Bill Yi
5f4c39db39 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I18673bc24cf3d9b4ec537d9551ad682cd8e5c9fc
2021-07-20 21:05:55 +00:00
Bill Yi
b0f0391d22 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I64a617e004450a7fb28b9a1f2214aa4a1c930178
2021-07-15 18:32:44 +00:00
Bill Yi
53b437ab31 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Iaac4c241db59487aace7d7570fcada14e4c97f96
2021-07-14 03:50:37 +00:00
Nikita Ioffe
65eb22cc56 Grant INSTALL_PACKAGE_UPDATES permission to Shell
Bug: 188062003
Test: m
Change-Id: I342f64e666afa4202b8af69f04d64b05d40fac40
2021-07-09 00:52:08 +01:00
Bill Yi
0948be6a56 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I3b359da04d6f3c8f8f4f6ba47a35a587ab4f0c80
2021-07-02 10:22:39 +00:00
TreeHugger Robot
268e58afe4 Merge "Remove SCHEDULE_EXACT_ALARM from Shell" into sc-dev 2021-06-30 00:42:40 +00:00
Suprabh Shukla
d50bc69f94 Remove SCHEDULE_EXACT_ALARM from Shell
Shell doesn't need this permission and it confusing to the user
if visible in Settings.

Test: Shell doesn't appear in Settings under
Settings -> Apps -> Special app access -> Alarms & Reminders ->
3 dot menu -> Show system

Bug: 190775895
Change-Id: I98b051f37f3edf4f616f8847f691b956dafbdd12
Merged-In: I98b051f37f3edf4f616f8847f691b956dafbdd12
2021-06-29 16:27:28 -07:00
TreeHugger Robot
69a0939764 Merge "Give Shell the NOTIFY_PENDING_SYSTEM_UPDATE permission" into sc-dev 2021-06-29 16:57:01 +00:00
Alex Kershaw
1f5ef8e31d Give Shell the NOTIFY_PENDING_SYSTEM_UPDATE permission
This is required for GTS testing it, rather than having to instrument
GMS Core.

Bug: 182271592
Test: tested as part of other CLs in this topic
Change-Id: Id56e0d206afe0a9069d1510a3dae9a07141fff60
2021-06-29 11:52:04 +01:00
TreeHugger Robot
7058f9948f Merge "Allow Shell more permissions for TvInputManagerTest." into sc-dev 2021-06-28 11:05:00 +00:00
Bill Yi
a9c04b5bd6 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Iaacad6ae55e075d8f5dfcb74618062d248cb4686
2021-06-26 12:24:35 +00:00
Hongguang
757d741cd7 Allow Shell more permissions for TvInputManagerTest.
Bug: 171024152
Test: android.media.tv.cts.TvInputManagerTest
Change-Id: Iabea3ea72a5476892c848eaa8ebf4f93ad9b1000
2021-06-25 00:50:51 +00:00
Lucas Lin
fbc5d5d588 Add OBSERVE_NETWORK_POLICY for shell to test CTS
Both of NetworkPolicyManager#isUidNetworkingBlocked() and
NetworkPolicyManager#isUidRestrictedOnMeteredNetworks() are
required OBSERVE_NETWORK_POLICY but OBSERVE_NETWORK_POLICY is a
signature permission that CTS cannot acquire.
So add this permission for shell and call these 2 APIs with
shell identity to fix the problem.

Bug: 176289731
Test: atest CtsHostsideNetworkTests:HostsideNetworkPolicyManagerTests
Original-Change: https://android-review.googlesource.com/1737413
Merged-In: Iba7321c82e1a3ed773f99ccd4b9e3c24c607353f
Change-Id: Iba7321c82e1a3ed773f99ccd4b9e3c24c607353f
2021-06-22 05:46:59 +00:00
Bill Yi
b507cbdc22 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Icc0092ac2c4fad7ed3ce04582eed6b90f0aec782
2021-06-20 21:17:14 +00:00
Bill Yi
187901803b Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I2819aa08e417169038e419037f246e4ca4ce12ba
2021-06-17 22:07:14 +00:00
Bill Yi
43d1318f43 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I7e5604a3d35651a10450ac20039d12b5ce2e0b7d
2021-06-11 12:24:40 +00:00
Zak Cohen
46e5c0df76 Give shell android.permission.GET_TOP_ACTIVITY_INFO
Grant shell android.permission.GET_TOP_ACTIVITY_INFO for testing Launcher
tests that need access to AssistContentRequester in shell context.

Bug: 190344718
Test: Local build and flash, ran test
Merged-In: I551e0bee413432653f39c91664d716f695311b6f
Change-Id: I551e0bee413432653f39c91664d716f695311b6f
2021-06-09 03:27:58 +00:00
Bill Yi
ab6521bb91 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I458cc3b1b672932f5e97ca47523444eda810c18f
2021-06-07 14:45:32 +00:00
Kweku Adams
a60c62bcb7 Don't export HeapDumpProvider.
Stop exporting HeapDumpProvider so apps can only access generated dumps
when the user explicitly shares them.

Bug: 184046948
Test: capture system heap dump in developer options and confirm test app
get SecurityException if it tries to access the dump directly, but gets
access when the dump is shared through the notification flow

Change-Id: Ibdca7cde4f563baa39163869289da5b79fc3a6db
2021-06-03 16:07:56 -07:00
TreeHugger Robot
6572539f65 Merge "Check "BIND_HOTWORD_DETECTION_SERVICE" permission before binding HotwordDetectionService" into sc-dev 2021-05-25 13:24:35 +00:00
Patrick Baumann
43628ca24c Updates OWNERS files
Bug: 186864416
Test: Builds
Change-Id: I04dfc5c2c7143825334ebc62742e335b8c889492
2021-05-21 14:13:18 -07:00
lpeter
e66524d14f Check "BIND_HOTWORD_DETECTION_SERVICE" permission before binding HotwordDetectionService
Bug: 187914415
Test: atest CtsVoiceInteractionTestCases
Test: atest CtsVoiceInteractionTestCases --instant
Change-Id: I4ccd8fd5b153f28fa4b1463f7412bb8067cc4ffd
2021-05-21 10:49:56 +08:00
Neil Fuller
bc9061fdf3 Merge "Add permission to shell for CTS test" into sc-dev 2021-05-19 16:11:12 +00:00
Neil Fuller
bc4a843f18 Add permission to shell for CTS test
This grants the shell app the SUGGEST_EXTERNAL_TIME permission needed
for the TimeManagerTest (CTS) to invoke the
TimeManager.suggestExternalTime() method during tests.

Bug: 184947690
Bug: 177079827
Test: See associated cts change
Merged-In: Ia1995ec9503dbd2b12e0b5b5f92a96e02f85beec
Change-Id: Ia1995ec9503dbd2b12e0b5b5f92a96e02f85beec
2021-05-18 14:04:55 +01:00
TreeHugger Robot
f477c8fb75 Merge "Don't allow non-system window overlays for bug report warnings." into sc-dev 2021-05-14 14:36:32 +00:00
Cassie Wang
7c41518fc2 Merge "Have the shell request AppSearch global query permission." am: f37a782378 am: 6e11df3fe7 am: 4dbd446328
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1704125

Change-Id: Ib0e16ff2dbcdb5655723058c02eab414b7beaf6d
2021-05-14 03:35:10 +00:00
Cassie Wang
4dbd446328 Merge "Have the shell request AppSearch global query permission." am: f37a782378 am: 6e11df3fe7
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1704125

Change-Id: Ife300434e555167d8e8808f8304f3e7761b17dfe
2021-05-14 03:15:56 +00:00
Cassie Wang
6e11df3fe7 Merge "Have the shell request AppSearch global query permission." am: f37a782378
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1704125

Change-Id: I17c5b35ac84d031ce259bb65ee49e4e619eab76f
2021-05-14 02:54:08 +00:00
Bill Yi
de447927b4 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I682a43f38f5f5f68d1ce54e1d85647a1f0b8a325
2021-05-13 16:07:45 +00:00
Varun Shah
d172b896ae Don't allow non-system window overlays for bug report warnings.
Bug: 175614079
Test: test PoC app
Change-Id: Ie4543c95a6b2d7de47360737b82a6dadde704053
2021-05-12 15:11:14 -07:00
Cassie Wang
aa50faacb7 Have the shell request AppSearch global query permission.
Permission to be defined in follow-ups.

Bug: 187113133
Change-Id: I74cd919d9ed19a1aac2e75397cb0d6d20b8bee02
Test: presubmit
2021-05-11 20:13:27 +00:00
Bill Yi
212fd2b7a0 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I5000390039e9495fe1aea6d6578e844b8d3fd593
2021-05-02 09:18:01 +00:00
Kholoud Mohamed
d4f1cb46f3 Merge "Add a new permission to install testOnly apps" am: 71d89f5d0d am: bc7a72187d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1689746

Change-Id: Iddb8ddbd27e4a21dbd34420501797c190480d45a
2021-04-29 10:03:44 +00:00
Kholoud Mohamed
bc7a72187d Merge "Add a new permission to install testOnly apps" am: 71d89f5d0d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1689746

Change-Id: I337626f46f9e44322c537ad2243dc0185f45b83e
2021-04-29 09:43:10 +00:00
kholoud mohamed
f01ffd8b53 Add a new permission to install testOnly apps
Added a new permission INSTALL_TEST_ONLY_PACKAGE
and granted it to shell, this will allow installing
testOnly apps from a testAPI.

Test: N/A
Bug: 183716601
Merged-In: I047a4013fb3462db3487eab2d1635ea75ae29264
Change-Id: I047a4013fb3462db3487eab2d1635ea75ae29264
2021-04-28 10:32:03 +01:00
Bill Yi
b38bca309b Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I764d57b36763c51604c38e297e8eb324d706d780
2021-04-22 09:23:32 -07:00
Treehugger Robot
71d1186b1b Merge "Shell: Allow usage of UwbManager ranging API" am: d0c859c58f am: 8125586204 am: 3897959f77
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1680127

Change-Id: Ib84bc63ccf536686aa0d17ff97e3dcddf73819a9
2021-04-21 19:30:58 +00:00
Treehugger Robot
3897959f77 Merge "Shell: Allow usage of UwbManager ranging API" am: d0c859c58f am: 8125586204
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1680127

Change-Id: I47cfd0a6d943037b40864df415b56222ff0cdd30
2021-04-21 19:02:58 +00:00
Treehugger Robot
8125586204 Merge "Shell: Allow usage of UwbManager ranging API" am: d0c859c58f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1680127

Change-Id: I92b3071f8a9c88b3f9ff067ea55fd61ef402bb3e
2021-04-21 18:37:45 +00:00
Treehugger Robot
d0c859c58f Merge "Shell: Allow usage of UwbManager ranging API" 2021-04-21 18:26:11 +00:00
TreeHugger Robot
16472322f9 Merge "Pipe start op throught app ops policy and delegate" into sc-dev 2021-04-21 15:06:11 +00:00
Kholoud Mohamed
48cf9cdfb0 Merge "Add a new permission to install testOnly apps" into sc-dev 2021-04-21 11:07:50 +00:00
Svet Ganov
8b1aad623e Pipe start op throught app ops policy and delegate
bug: 185504196

Test: atest CtsAppOpsTestCases
      atest CtsPermissionTestCases
      atest CtsPermission2TestCases
      atest CtsPermission3TestCases
      atest CtsPermission4TestCases
      atest CtsPermission5TestCases

Change-Id: I5869a3e9719830f59624519f2d54f0765119cf5f
2021-04-21 08:06:35 +00:00
Treehugger Robot
fd03622048 Merge "Adding a permission to Shell for testing" am: 7342dafaa5 am: 23f9ef4d2b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1679721

Change-Id: I6f02958325c6c6a5f944bf4220338e950b7b0d10
2021-04-21 02:52:28 +00:00
Treehugger Robot
23f9ef4d2b Merge "Adding a permission to Shell for testing" am: 7342dafaa5
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1679721

Change-Id: I8d412d08c63660956b282566ef3ecd09add58c12
2021-04-21 02:15:13 +00:00
Hyundo Moon
013cf241a1 Merge changes from topic "system_mr2_media_content_control" into sc-dev
* changes:
  System MediaRouter2: Resolve API review
  Change MODIFY_AUDIO_ROUTING permission to MEDIA_CONTENT_CONTROL
2021-04-21 01:45:42 +00:00
Suprabh Shukla
508e114192 Adding a permission to Shell for testing
Adding UPDATE_DEVICE_STATS to enable testing alarms with WorkSource
objects.

Test: atest CtsAlarmManagerTestCases

Bug: 185530825
Change-Id: Ia0f8afa6dc1a13c95553b691f352c6d8c7ae5ccf
Merged-In: Ia0f8afa6dc1a13c95553b691f352c6d8c7ae5ccf
2021-04-20 15:32:03 -07:00
Shubang Lu
c505cc19a2 Merge "TIF: Change the isForeground API to isVisible and isMainSession" into sc-dev 2021-04-20 20:19:42 +00:00
kholoud mohamed
dead379e48 Add a new permission to install testOnly apps
Added a new permission INSTALL_TEST_ONLY_PACKAGE
and granted it to shell, this will allow installing
testOnly apps from a testAPI.

Test: N/A
Bug: 183716601
Change-Id: I047a4013fb3462db3487eab2d1635ea75ae29264
2021-04-20 15:37:30 +00:00