Commit Graph

1080 Commits

Author SHA1 Message Date
Bill Yi
2cb6462811 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Id7ea1883999b4ac8d73120cfe536a733daa24fc2
2021-07-23 16:12:32 +00:00
Bill Yi
55b2c31907 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I95676247c2d556777ad5ca4be64dc9bf9f025900
2021-07-20 21:02:28 +00:00
Bill Yi
8f9bd09206 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I455b8b017a3bc5e2745bf209bc43339315b5f3a4
2021-07-18 15:28:46 +00:00
Bill Yi
45f03ef391 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ie6db3052755923b9995ea0a49ee3fd647852ef4d
2021-07-02 10:19:56 +00:00
TreeHugger Robot
4e34795938 Merge "Don't export HeapDumpProvider." into rvc-dev am: 3b6512d824
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14901700

Change-Id: I13aee3c5fd3737a845155a770c704d2410f34d27
2021-06-29 18:34:13 +00:00
Bill Yi
9a5c939eed Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ib0157544d45e09e65a639797f88cf6c361e9dfc5
2021-06-26 12:21:51 +00:00
Bill Yi
6526097060 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I44cf0d6acf254e88dab5ed3c520c3ec658dccc51
2021-06-20 21:14:21 +00:00
Bill Yi
31420b59ab Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ide863471976456d92bcf443ba8c398e4b56955ab
2021-06-19 12:19:59 +00:00
Bill Yi
a8df98b150 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I3f345e9d3c7967e1623a1cb889b2a5c68190ce28
2021-06-11 12:21:27 +00:00
Kweku Adams
7d6e3a0b24 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
(cherry picked from commit a60c62bcb7)
2021-06-08 16:56:36 +00:00
Bill Yi
efab2dede5 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I9f70a3fea497024081a957e49640aae3f4ce7588
2021-06-07 14:42:54 +00:00
Bill Yi
c3052753e4 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ie678e83e53f86c290539f567308f4a0e8382548d
2021-05-17 04:01:34 +00:00
Bill Yi
1580119493 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Icd04e10fa5acfac2914c25cacb961f7b92dda732
2021-05-02 09:14:41 +00:00
Bill Yi
508cadb10a Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I9db9fd88f584b1bc001bc7038d8c365450b2968c
2021-04-19 15:01:20 +00:00
Bill Yi
b2d67f863c Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I8719bdaeb02ea7be5a59e9e0878c87d1cbf91b49
2021-03-30 21:19:15 -07:00
Bill Yi
3156171e77 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I87669a1e468060aedf8580200fc893815ed629a8
2021-03-27 07:01:49 +00:00
Gavin Corkery
a335516ab2 Add immutability flag to PendingIntents
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)
2021-02-24 21:37:23 +00:00
Bill Yi
de10e13450 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Id49401c227b5707affd6b07b90f79690e4384ea4
2021-02-13 03:16:31 -08:00
Bill Yi
07eacd8797 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Iaecbd8915ca89a4b276cdfb31f4396f669c9bd4c
2021-02-03 14:01:03 +00:00
Keun young Park
47bc43a414 add Shell-package-library to allow product type level update
- Car proeducts add additional car permissions to shell package for use cases
  like CTS
- This CL will allow overriding the Shell package rather than adding one
  more package with shared shell uid

Bug: 177099512
Test: Check added package when built in car product.
Change-Id: I6e9103c3275cb2e6df5dc586588eccd7d2ab6b06
Merged-In: I6e9103c3275cb2e6df5dc586588eccd7d2ab6b06
(cherry picked from commit bd16eb5267)
2021-01-21 17:33:47 +00:00
Bill Yi
1045d4cf8e Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I0852dfb7576e909d84ff62d4d5294e028dfa1c3d
2020-11-23 12:48:41 +00:00
Bill Yi
84e5cae5e8 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I652ec2029d0205de82b618fecec7e99a26b1bbd7
2020-10-31 00:37:18 +00:00
Bill Yi
fb00462317 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ie37bc4d2eaf2013f1a0b0cdb81e0521dc4633cd9
2020-08-26 07:47:47 -07:00
Agatha Man
39bcfc7c83 Remove car permissions from common shell package
Removing car permissions that were added into common shell so that they
can be re-evaulated to include into CarShell. Adding car permissions to
shell should be reviewed by car frameworks team to determine what can be
allowed to the end-user and in terms of car safety.

Bug: 160339243
Test: make then check permission for shell user with adb shell pm dump
com.android.shell

Change-Id: I5a3b2086f605ba31f4231ec425cb2cb7c51ea7e6
(cherry picked from commit 89e5cfe9d8)
Merged-In: I5a3b2086f605ba31f4231ec425cb2cb7c51ea7e6
2020-08-14 18:44:14 +00:00
TreeHugger Robot
41c75cc505 Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-qpr-dev 2020-07-28 00:13:16 +00:00
Bill Yi
f5c610d853 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ida6dce432fb043f0c0e24e8081502ee991bdf4bd
2020-07-27 14:58:49 -07:00
Agatha Man
5c17bba24d Add CAR_DIAGNOSTICS, CLEAR_CAR_DIAGNOSTICS, CONTROL_APP_BLOCKING,
and CAR_UX_RESTRICTIONS_CONFIGURATION permissions to run ATS tests

CarDeviceInfo requires CAR_DIAGNOSTICS, CLEAR_CAR_DIAGNOSTICS.
AtsCarHostTestCases requires CONTROL_APP_BLOCKING and
CAR_UX_RESTRICTIONS_CONFIGURATION.

Note: This change allows anyone with a usb cable to write an app
to call the protected APIs in her/his car.

Bug: 162120802
Test: make
Change-Id: I9d0e1266389170cca3624522820457e826bbc613
2020-07-27 21:03:15 +00:00
Bill Yi
8c4c530422 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I18c501af0e75d2afd6b857b02a93e03dfc9bab56
2020-07-18 23:37:31 -07:00
Agatha Man
39ba8c9cc3 Add CAR_DRIVING_STATE and CAR_CONTROL_AUDIO_VOLUME permissions to run
ATS tests

AtsCarHostTestCases and AtsCarDeviceApp requires CAR_DRIVING_STATE.
AtsDeviceInfo and AtsAudioDeviceTestCases requires
CAR_CONTROL_AUDIO_VOLUME.

Bug: 161193447
Test: m -j && run ats tests
Change-Id: Ib16c6c5e54b489479c872cfa826b055262b797bb
2020-07-17 17:48:36 +00:00
Joshua Duong
b497b40119 Merge changes from topic "adbwifi-cts" into rvc-dev am: 5ab3aa0c7b am: af1f67ebd4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12000446

Change-Id: I56de8c996bccc8c926547afdc322c36d381f557b
2020-06-30 01:09:39 +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
f543091ab8 Merge "Allow Background Location Access for Shell" into rvc-dev am: 811cf5d8f5 am: 86013d505f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11914608

Change-Id: Id715cf6426d157e3fc1bd036dead615afb3832e3
2020-06-19 19:17:05 +00: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
Rhed Jao
c83e455d98 Merge "Enable scrolling for bugreport info dialog" into rvc-dev am: fbc9630c3f am: 6f373ac372
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11745981

Change-Id: I7bfc66263fc73ce733191162e896589b636b07f9
2020-06-05 10:50:09 +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
c1baf5783b Merge "Adding LOADER_USAGE_STATS permission to shell" into rvc-dev am: dfdac64a90 am: ebededcbf3
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11725939

Change-Id: Icdd02ee90667b3a7bdb86822a4a06f42fd2f2d60
2020-06-05 01:57:14 +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
101eaed95a Merge "Add CAPTURE_AUDIO_OUTPUT permission required for GTS test" into rvc-dev am: 5bafce8420 am: 0bb87d4503
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11712625

Change-Id: I76e69b9f5123fdd72e416c5be4b2d3469d84807a
2020-06-04 01:36:12 +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
TreeHugger Robot
c117c453bd Merge "Add LOCATION_HARDWARE permission to shell." into rvc-dev am: 8a6ef8e52d am: 2a9258b974
Change-Id: I32438339b2c0bd2aa2f5674ccf2ca4e31a59d1a8
2020-05-28 21:51:43 +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
1c4bcda424 Merge "Add support for TvInputManager.acquireTvInputHardware CTS" into rvc-dev am: f49fa1a9ea am: b7e62faf05
Change-Id: I0759509548df5394233a23a1904c61de490c3eff
2020-05-27 04:59:31 +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
a08021a958 Merge "Take interactive bugreports on Android TV" into rvc-dev am: 1d22ea4eca am: ddf65460e4
Change-Id: Ifc03e176cc83bfb5220fbf094007e6430a2795ca
2020-05-22 10:35:40 +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
3f953bb49b Merge "Revert "Add a null home activity to Shell.apk"" into rvc-dev am: 6351c72746 am: e3d4b1b779
Change-Id: I370dcf83265a815fbc46351fefbbb79d651e924c
2020-05-18 23:39:53 +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