By using DeviceDefault instead of Material, this UI is now
resilient to any platform-level theme changes.
Change-Id: I43ce61b36f4c089ee07f754088abe2dfe6700877
Fixes: 30173174
Remove MANAGE_USERS permission from shell and whitelist it for
some specific functionality.
Bug: 29189712
Change-Id: Ifb37448c091af91991964511e3efb1bb4dea1ff3
am: 5d5ddfa80e
* commit '5d5ddfa80ecb482e34ed4bfebae2c7308269a1c4':
Register change Uri and notify changes in bugreportServices.
Change-Id: I02eadb5e4c4b7735bf3f1ac142e75a513f12ca85
am: 5d5ddfa80e
* commit '5d5ddfa80ecb482e34ed4bfebae2c7308269a1c4':
Register change Uri and notify changes in bugreportServices.
Change-Id: Ic118dd61f0471f61af3fe5fbace8a0dbae258484
But make sure that we don't allow Shell or other apps
to disable an active profile or device owner.
Also limit exactly what states Shell can switch apps
between, similar to Settings UI.
This is required for some CTS tests
Bug: 27924655
Change-Id: I958f0d1de7f0bc1f5a0cbf853d57dfdeb2f9ad59
am: 34510eb
* commit '34510eb2933b98f0c8c73f9a7be5eae911a14210':
Don't opt-out of warning dialog by default on user builds.
Change-Id: I4cb37a050cbed326ca78e9d3ace672819059e825
am: 34510eb
* commit '34510eb2933b98f0c8c73f9a7be5eae911a14210':
Don't opt-out of warning dialog by default on user builds.
Change-Id: If33f3e00bf1e87a136120beddbc9b5d52be69a85
am: f39f044
* commit 'f39f04407e6c50d57aaa2358b2f46bc79a94cf4f':
Show a toast when details cannot be added to zip file.
Change-Id: I09e6bece0225d01cf0eaafa8e64e88bfe40a7f0e
am: 3053c3f2a9
* commit '3053c3f2a94b24ceeed9c46cb84045c285d3523b':
Set BugreportProgressService to run on foreground.
Change-Id: I6ff60394218bceac0fdd4eed4839f5819f532180
BugreportProgressService do not persist the user-provided
information (like details and screenshot paths), so if it's killed by
the framework, that info is lost.
Running it as foreground mitigates the changes of it being killed.
BUG: 27431998
BUG: 28291423
Change-Id: I2f58507beb38309628f2f19d3f7f950d07eca16f
am: 0304688
* commit '03046888822d07ec020eb7a2f685be4f7bcded31':
Only try to add details to zip once.
Change-Id: I629618cc5cf105584ebf911b3de1b6649f1c59c6
When the user enters details (title or description) to the bugreport,
Shell tries to add a title.txt (and/or description.txt) to the zip and
uses 2 instance variables (addedDetailsToZip and addingDetailsToZip) to
control its state.
The problem with the current approach is that if there is a failure
adding the entries (for example, if the entries already exist), these
variables are not updated and hence when the user taps Share, it will
try to add the entries again, which most likely would fail.
BUG: 28291423
Change-Id: I56a71256be4f8de15f8126b815334277319e8e8a
am: 28baa37
* commit '28baa37a5676297b7972cfd90a07fff5f54cf19b':
Show "Android System" instead of "Shell" on notifications.
Change-Id: If1238072e38b7dd4b6b5f10a0e325edfc455cdc1
One of the changes in the 'interactive bugreport' bugreport workflow
introduced on N is that the initial screenshot was taken right away (by
Shell, not dumpstate).
Unfortunately, such initial screenshot is often delayed when the system
is overload. Also, if the user is not interested in a screenshot, it
would be adding more load on the system unnecessarily.
Given these issues, and the fact that the user can still easily take an
initial screenhsot by selecting the proper notification action, the
initial screenshot is being removed.
BUG: 28167977
Change-Id: I2cf6616ce3124102b62ec9a36dc5a0ce6455a909
When tests run for the first time, the list of activities that can
handle ACTION_SEND_MULTIPLE might not be scrollable, which was cause the
scrollForward() method to fail.
BUG: 27431998
Change-Id: I5992bc9fec6291c74c4af7887ee66eb4f96e87c0
am: 7fd1cbd
* commit '7fd1cbd49d0ace00c65229f65252136902aedaf3':
Revert warning logic so it has a "don't show again" message.
Change-Id: Ie2ca3b9be95991b8d0087bd83c49ed85df33b0c9
When a bugreport is finished with a pending notification, it already
display a subtext explaining the situation - not only the extra title is
redundant, but it's too large.
BUG: 27583025
Change-Id: I8d8171faf7b8b86b34f6d860555839918be10550