Commit Graph

1101 Commits

Author SHA1 Message Date
Gavin Corkery
8fafabfed1 Merge changes from topic "bugreporting-aosp-sync"
* changes:
  Fix consent timed out to sharing bugreport data
  Add BugreportManagerTestCases to bugreport presubmit
  Enable bug report tests in pre/postsubmit
  Run bugreport unit test without script
2020-10-21 11:48:11 +00:00
Bill Yi
db3f7703bb Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I1420e9937d8d303da1f1abbb8ff37da74275bea1
2020-10-05 06:27:38 -07:00
Neil Fuller
770f5ab2db Add a new permission in AOSP
This adds a new permission in AOSP, so it can be referenced by the Shell
command, which presubmit suggests has to be maintained in AOSP.

Bug: 159891384
Test: build only
Exempt-From-Owner-Approval: jsharkey@ approved but it appears to have reset...?
Change-Id: Ic7d403e20731e9d6bd82d5b2e2758cc61989cc59
2020-09-30 08:39:25 +00:00
Dieter Hsu
6765448386 Enable bug report tests in pre/postsubmit
Bug: 155604488
Test: atest --test-mapping --dry-run \
          services/core/java/com/android/server/os:presubmit
Test: atest --test-mapping --dry-run core/java/android/os:presubmit
Change-Id: I054d05d4fa8ff02f1c404d0883c382a2d5911f88
Merged-In: I054d05d4fa8ff02f1c404d0883c382a2d5911f88
(cherry picked from commit 848113e595)
2020-09-29 18:54:32 +01:00
Treehugger Robot
986e49df72 Merge "Update language to comply with Android's inclusive language guidance" 2020-09-28 14:11:49 +00:00
Marin Shalamanov
7fb5deb779 Merge "Add permission to override display mode requests" 2020-09-21 12:23:13 +00:00
Marin Shalamanov
8f2f6d1465 Add permission to override display mode requests
This permission will be used for testing purposes
to override the display mode requests in DisplayModeDirector.

Bug: 159113268
Bug: 158316271
Test: m
Change-Id: Ibcafc50badcda929c3c3b446b6d0d9045c2a5b6d
Merged-In: I257636ae2a6ed74044e71e49a99024682c3a92c5
2020-09-21 14:04:48 +02:00
Bill Yi
5b49c68d11 Merge mainline-release 6664920 to master - DO NOT MERGE
Merged-In: Id04ea331831e8b26ba99478848392b40a92548d5
Change-Id: I888da0c9475f2d00602d917d2f58169f8d7c93a4
2020-09-17 21:56:59 -07:00
Sergey Nikolaienkov
ec82033d3e Merge "Add GET_INTENT_SENDER_INTENT permission to Shell" am: 104d2f92b3
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1385856

Change-Id: Ice3e441cc9c0df8d0a6acc016bb74375e081bd67
2020-09-09 07:23:52 +00:00
Sergey Nikolaienkov
104d2f92b3 Merge "Add GET_INTENT_SENDER_INTENT permission to Shell" 2020-09-09 07:09:11 +00:00
Bill Yi
7ffaf9920b Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ie97ecf1dd2063063851b827c19f7d17c27e7a158
2020-09-04 21:58:37 +00:00
Bill Yi
1a29d74066 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I9bf56140e3ab788a4765fc80c4125f90796727a5
2020-09-03 04:54:48 +00:00
Xin Li
628590d7ec Merge Android R (rvc-dev-plus-aosp-without-vendor@6692709)
Bug: 166295507
Merged-In: I3d92a6de21a938f6b352ec26dc23420c0fe02b27
Change-Id: Ifdb80563ef042738778ebb8a7581a97c4e3d96e2
2020-08-31 21:21:38 -07:00
Nikolas Havrikov
0179047fef Add GET_INTENT_SENDER_INTENT permission to Shell
This is needed for a CTS test for picture-in-picture on TV.

As per go/privapp-permission:
1. This is the exact permission that guards specifically the
`PendingIntent::getIntent` method which is used in the test.

2. Two alternatives were considered:
a) Create another permisison and `@hide` it. However, this offers no
security benefit at the cost of maintenance overhead.
b) Do not create the test in the first place.

Bug: 153435517
Test: atest CtsSystemUiTestCases:PipNotificationTests
Change-Id: I04a5c82334a676351828fb82f2ac5886c888a0bc
2020-08-17 09:51:26 +00:00
Alice Kuo
5c75720453 Update language to comply with Android's inclusive language guidance
See https://source.android.com/setup/contribute/respectful-code for reference

 #inclusivefixit

Bug: 162536543
Change-Id: I468147a439c1a60488def7db3e44bfc361bddbe4
2020-08-03 15:42:39 +00:00
Treehugger Robot
a5a04bbb4e Merge "Adding LOADER_USAGE_STATS permission to shell" 2020-07-23 22:45:36 +00:00
Nikolas Havrikov
74941c20ed Make Shell require permission for a new CTS test
The permission RESET_APP_ERRORS is required for UnsupportedErrorDialogTests

Bug: 159443507
Test: built locally
Change-Id: I4d110278eb48799caf29f0582536a4dca10f10c1
2020-07-08 12:09:27 +00:00
Joshua Duong
265b25bfe4 Merge changes from topic "adbwifi-cts" into rvc-dev am: 5ab3aa0c7b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12000446

Change-Id: I7e0ecc743d2e831f208865df3604c5f7a3fa8820
2020-06-30 00:57:47 +00:00
Joshua Duong
b47d1e6100 Merge changes from topic "adbwifi-cts" into rvc-dev am: 5ab3aa0c7b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12000446

Change-Id: I27c6493f075ace2e9c12f9b7f359f42ccbb1406f
2020-06-30 00:57:37 +00:00
Joshua Duong
f2e03b393f Add shell permissions for CTS test (AdbManagerTest).
Bug: 159936209

Test: atest CtsAdbManagerTests
Change-Id: I896b53df582cceb7d1b0d6694d00064b0fb57b94
2020-06-25 15:03:19 -07:00
Nathan Harold
5a9fc5947c Merge "Allow Background Location Access for Shell" into rvc-dev am: 811cf5d8f5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11914608

Change-Id: I1c21b4ac3d5c019047e50252df4e6e07def4add2
2020-06-19 19:05:37 +00:00
Nathan Harold
c1197612dd Merge "Allow Background Location Access for Shell" into rvc-dev am: 811cf5d8f5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11914608

Change-Id: Ic22846e6f3337b2ebe7a6448829616a8a29056b3
2020-06-19 19:05:29 +00:00
Nathan Harold
1242fac1ae Allow Background Location Access for Shell
The shell has COARSE and FINE permission, but it
needs background access to support CTS test cases
that must be run with elevated permissions from
the shell.

Bug: 159236070
Test: atest PhoneStateListenerTest#testBarringInfo

Merged-In: Iba3fcb3a43c5df3c30dadf6b7733eaee03d1d0e3
Change-Id: Iba3fcb3a43c5df3c30dadf6b7733eaee03d1d0e3
(cherry picked from commit 89796d4936)
2020-06-19 09:09:37 -07:00
Nathan Harold
89796d4936 Allow Background Location Access for Shell
The shell has COARSE and FINE permission, but it
needs background access to support CTS test cases
that must be run with elevated permissions from
the shell.

Bug: 159236070
Test: atest PhoneStateListenerTest#testBarringInfo

Change-Id: Iba3fcb3a43c5df3c30dadf6b7733eaee03d1d0e3
2020-06-19 09:03:29 -07:00
Bill Yi
0edbd7bf02 Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Change-Id: I4ee30f50c8fc9ad7a9884eb5403a070f2ca40be0
2020-06-14 01:24:36 +00:00
Dimuthu Gamage
daa941fab0 Adding LOADER_USAGE_STATS permission to shell
This is expected to be used with adoptShellPermission in the Incremental CTS tests.

Test: atest android.content.pm.cts.PackageManagerShellCommandTest
(There will be future tests relying on this)

Bug: 158024822
Change-Id: I4f146337429679edddba698aa88bb9b2cb883ab9
Merged-In: I4f146337429679edddba698aa88bb9b2cb883ab9
2020-06-08 14:16:23 -07:00
Xin Li
d7785982ac Merge "Merge QQ3A.200605.002 into master" 2020-06-06 01:41:11 +00:00
Rhed Jao
8a3477957b Merge "Enable scrolling for bugreport info dialog" into rvc-dev am: fbc9630c3f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11745981

Change-Id: If0a3da85728bd93917095f90560f52150db15fdc
2020-06-05 10:25:57 +00:00
Rhed Jao
fbc9630c3f Merge "Enable scrolling for bugreport info dialog" into rvc-dev 2020-06-05 10:23:59 +00:00
Rhed Jao
de2109b178 Enable scrolling for bugreport info dialog
Bug: 156291300
Test: Scrolls the dialog with largest display and font size.
Change-Id: Ic1c101612fb8cc0c281d96b62fee3f9309e6a66f
2020-06-05 14:20:41 +08:00
TreeHugger Robot
a5d1f680c8 Merge "Adding LOADER_USAGE_STATS permission to shell" into rvc-dev am: dfdac64a90
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11725939

Change-Id: I5a74b35afd83e468e52ab252e86601a2364d0c61
2020-06-05 01:41:03 +00:00
Dimuthu Gamage
a2b2226d6b Adding LOADER_USAGE_STATS permission to shell
This is expected to be used with adoptShellPermission in the Incremental CTS tests.

Test: atest android.content.pm.cts.PackageManagerShellCommandTest
(There will be future tests relying on this)

Bug: 158024822
Change-Id: I4f146337429679edddba698aa88bb9b2cb883ab9
2020-06-04 23:43:47 +00:00
Sung Min Lee
2b3c00b99f Add CAPTURE_AUDIO_OUTPUT permission required for GTS test
GtsDialerAudioTestCases require this privileged permission for testing in GTS.

Bug: 157243201
Test: run gts -m GtsDialerAudioTestCases
Change-Id: I32516e5dcf966b05cfb8ab4956a0cdb183298f2a
Merged-In: I32516e5dcf966b05cfb8ab4956a0cdb183298f2a
2020-06-03 22:09:35 -07:00
Sung Min Lee
3c0fe83b63 Merge "Add CAPTURE_AUDIO_OUTPUT permission required for GTS test" into rvc-dev am: 5bafce8420
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11712625

Change-Id: I59aa0b8b5327685cd6658a6a0a382f61c1d3ea7a
2020-06-04 01:22:17 +00:00
Sung Min Lee
a90b1fcaca Add CAPTURE_AUDIO_OUTPUT permission required for GTS test
GtsDialerAudioTestCases require this privileged permission for testing in GTS.

Bug: 157243201
Test: run gts -m GtsDialerAudioTestCases
Change-Id: I32516e5dcf966b05cfb8ab4956a0cdb183298f2a
2020-06-02 21:24:59 -07:00
Ashwini Oruganti
02f8c0f5ef Add an exported flag in manifest
With b/150232615, we will need an explicit value set for the exported
flag when intent filters are present, as the default behavior is
changing for future versions. This change adds the value reflecting the
previous default to the manifest.

These changes were made using an automated tool, the xml file may be
reformatted slightly creating a larger diff. The only "real" change is
the addition of "android:exported" to activities, services, and
receivers that have one or more intent-filters.

Bug: 150232615
Test: TH
Exempt-From-Owner-Approval: mechanical refactoring
Change-Id: Ic2a2b9ee1c9bae64690691a95b885f4b69cb21f8
Merged-In: Ic2a2b9ee1c9bae64690691a95b885f4b69cb21f8
2020-05-29 19:51:27 +00:00
TreeHugger Robot
fc7c4138ef Merge "Add LOCATION_HARDWARE permission to shell." into rvc-dev am: 8a6ef8e52d
Change-Id: Ica09e8dba5b17f0df7d15f980c284b48defac8d0
2020-05-28 19:45:06 +00:00
Wei Wang
96f7636149 Add LOCATION_HARDWARE permission to shell.
A few location System APIs require LOCATION_HARDWARE permssion. Adding
this permission to shell so CTS tests can adopt this permission.

Bug:154347471

Test: atest PrivilegedLocationPermissionTest
Change-Id: I4abe4dc044ec4a3ab62352cc0f4a1726bebac633
2020-05-27 17:53:31 -07:00
TreeHugger Robot
629cac54f6 Merge "Add support for TvInputManager.acquireTvInputHardware CTS" into rvc-dev am: f49fa1a9ea
Change-Id: I5a4cbbb4bda0e975129108ee32dd3c1965bed24f
2020-05-27 04:48:53 +00:00
TreeHugger Robot
f49fa1a9ea Merge "Add support for TvInputManager.acquireTvInputHardware CTS" into rvc-dev 2020-05-27 04:39:45 +00:00
Robin Lee
699592ebcb Merge "Take interactive bugreports on Android TV" into rvc-dev am: 1d22ea4eca
Change-Id: Id1d787c9445d4a954a8ebb8f3d88d7f1b53edc5c
2020-05-22 10:23:35 +00:00
Robin Lee
1d22ea4eca Merge "Take interactive bugreports on Android TV" into rvc-dev 2020-05-22 09:58:53 +00:00
Robin Lee
93059d2f0b Take interactive bugreports on Android TV
We want to take a screenshot immediately, not after dumpsys finished.
This also gives the user some feedback that we took a screenshot when
they were paying attention, whereas the notification might go under
the radar if posted the 30-90 seconds later it will be shown
otherwise.

Also gives us the progress notification in the Android TV notification
tray, which helps the user keep track of what is going on and how long
it is expected to take.

Previously either no feedback was shown at all on key press, or a simple
Toast was shown on selecting the bugreport option from the TV Settings
app.

Test: Press DPAD_CENTER + BACK, observe screenshot and progress.
Fix: 151865303
Change-Id: I78753697a7867042d28364a6b6d61fdb96f8bc96
2020-05-21 20:19:03 +00:00
Treehugger Robot
2aabf5f792 Merge "Revert "Add a null home activity to Shell.apk"" am: fa8eb3f146
Change-Id: I29823d88ad54c5c8cf67ebc100d0d00f8c7282fd
2020-05-19 03:47:24 +00:00
Treehugger Robot
fa8eb3f146 Merge "Revert "Add a null home activity to Shell.apk"" 2020-05-19 03:29:23 +00:00
Isaac Chen
5bc026a72d Revert "Add a null home activity to Shell.apk"
This reverts commit 6b1c4a9e09.

Bug: 149226068
Bug: 149307007
Bug: 149780604
Test: $ lunch aosp_crosshatch-userdebug; m
      # flash and boot on a crosshatch
      # Settings -> Apps & notifications -> Default apps -> Home apps
      # Only Quickstep home is there; no Shell home any more
      $ lunch csi_arm64-userdebug; m
      # flash the resulted system.img on a crosshatch and boot
      $ atest DeviceHealthTests # all passed
Change-Id: I927b7dae779da25589f2198e0480c0f2a788a7e4
Merged-In: I927b7dae779da25589f2198e0480c0f2a788a7e4
(cherry picked from commit 539298c1b9)
2020-05-19 10:30:23 +08:00
TreeHugger Robot
01b3848ade Merge "Revert "Add a null home activity to Shell.apk"" into rvc-dev am: 6351c72746
Change-Id: I46fddd88ef99f71cb8574420be0782bb5be90b7e
2020-05-18 17:32:13 +00:00
TreeHugger Robot
6351c72746 Merge "Revert "Add a null home activity to Shell.apk"" into rvc-dev 2020-05-18 17:28:46 +00:00
TreeHugger Robot
c86a144dd0 Merge "Import translations. DO NOT MERGE" into rvc-dev 2020-05-15 20:09:36 +00:00
Bill Yi
197c8d4e8f Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Change-Id: I2df45fec7fcb399134f93a57adc889d392bfcf15
2020-05-15 11:43:52 +00:00