Commit Graph

1135 Commits

Author SHA1 Message Date
Artur Satayev
7e8dbfd719 Add warning about play updatable apps.
Test: comment change

Change-Id: I2e3adf16e43a797732aa15f7f042e885d1238d04
2019-07-05 12:29:52 +01:00
Andreea Iovan
97af579aca Merge "Add default alarm tone." 2019-06-27 23:48:17 +00:00
Andreea
1ab0502d37 Add default alarm tone.
Alarms were removed previously to reduce the space required for the
system image. But we still need a default one for the RingtoneManager
tests.

Bug: 110449143
Test: cts -m CtsMediaTestCases -t android.media.cts.RingtoneManagerTest#testSetType
Change-Id: Iee91156059f3440fbb6a0b28765dd3bb0b997cf5
(cherry picked from commit ecf1bfc3e4109d6f43b3fe4d27bc8035fbd462d8)
2019-06-27 14:12:29 -07:00
Siarhei Vishniakou
98498749fd Merge "Keylayout for xbox pdp controller" into qt-dev am: 927d44d9eb am: 9dec042f6a
am: f8020cc19b

Change-Id: I4104420c5ddd4943ed89f23a6f44822a58e7e997
2019-06-25 02:13:21 -07:00
Alan Stokes
cc327c3c94 Merge "Explicitly grant START_ACTIVITIES_FROM_BACKGROUND to com.android.phone." 2019-06-25 07:36:41 +00:00
Siarhei Vishniakou
75cf61f687 Keylayout for xbox pdp controller
Add layout for Xbox pdp controller

Test: tested with a custom app
Bug: 132451971
Change-Id: I35e0998e2643eae031141186637e5eb349334bcd
2019-06-24 14:41:51 -07:00
Siarhei Vishniakou
f178783e33 Merge "Keylayout for xbox controllers" into qt-dev am: 287b20ae0e am: f6e540e970
am: cb43b6a351

Change-Id: Ifb116b223e6ffd5b9224fc4bdb5593fe215bdaae
2019-06-24 13:19:00 -07:00
TreeHugger Robot
287b20ae0e Merge "Keylayout for xbox controllers" into qt-dev 2019-06-24 19:40:19 +00:00
Siarhei Vishniakou
57a20b70c8 Keylayout for xbox controllers
Add layout for Xbox elite controller

Test: tested with a custom app
Bug: 132451971
Change-Id: I1c600bc2c41db9d79d7a4e184ef41abe2b5f860e
2019-06-24 11:30:01 -07:00
TreeHugger Robot
269907a310 Merge "Revert "Whitelist START_ACTIVITIES_FROM_BACKGROUND permission for"" into qt-dev 2019-06-20 23:49:39 +00:00
Wenjie Zhou
46a4491253 Revert "Whitelist START_ACTIVITIES_FROM_BACKGROUND permission for"
This reverts commit 0999f93e4a.

Reason for revert: There is a better choice (ag/8051966) than adding the permission to resolve b/130827484

Bug: 130827484
Change-Id: I1b8fd74a173d4b0ef981e51f7e0a9c5f84d5f416
2019-06-20 23:48:59 +00:00
TreeHugger Robot
ba93bf275e Merge "Add mapping for KEYCODE_ASSIST" 2019-06-20 16:05:14 +00:00
Siarhei Vishniakou
4055c79b56 Add mapping for KEYCODE_ASSIST
Linux has defined KEY_ASSISTANT, but it is not currently mapped in
Android by default. Add the missing mapping here.

Bug: None
Test: None
Change-Id: I85dfecf599ebb69dd2b9ac602b1fc425e13f93c4
2019-06-19 15:31:04 -07:00
Michal Karpinski
a98e7b66b3 Merge "Merge "Add START_ACTIVITIES_FROM_BACKGROUND permission for com.android.providers.downloads" into qt-dev am: ec3ba99e95 am: 8fdf790def" into qt-r1-dev-plus-aosp
am: 0b89f2ead7

Change-Id: Iebe47e816a89243874eb62aa97ab393a47ca320b
2019-06-18 15:28:07 -07:00
Roshan Pius
bf56cc0089 privapps-permission: Grant REQUEST_NETWORK_SCORES to car system apps
NETWORK_REQUEST_SCORES is being changed to a privileged permission from
signature only permission. The wifi stack needs to obtain this permission,
so it can no longer be signature only.

Bug: 113174748
Bug: 135480528
Test: Compiles
Change-Id: Ia824676ee4ddc935346ae22b0aabd6ed4661743f
2019-06-18 09:46:28 -07:00
Michal Karpinski
efa05d9179 Add START_ACTIVITIES_FROM_BACKGROUND permission for
com.android.providers.downloads

Required because DownloadManager needs to whitelist
a broadcast for bg activity starts.

Bug: 135515407
Test: builds, boots (it wouldn't without this)
Change-Id: Id6c22d1397417bbc10e2829e563f29cbccccd8bf
2019-06-18 15:39:50 +01:00
Roshan Pius
b5a227d22a Merge "privapps-permission: Make REQUEST_NETWORK_SCORES a privilged permission" 2019-06-17 19:59:52 +00:00
Roshan Pius
82f37f83a8 privapps-permission: Make REQUEST_NETWORK_SCORES a privilged permission
The wifi stack (signed by Google on non-Pixel devices) need to obtain this permission,
so it can no longer be signature only.

Bug: 113174748
Test: Compiles
Change-Id: Id9557a6d164a40698ee7d1e5926e56fd616868d0
2019-06-17 08:56:43 -07:00
Siarhei Vishniakou
6380bcddf9 Merge "Add key layout for Nintendo Switch controller" into qt-dev am: 6eca92dd43 am: 471367ad9b
am: afb0fa5351

Change-Id: Ic22ea32882d89dad2ad436c90408c289848c35c6
2019-06-14 17:42:03 -07:00
TreeHugger Robot
6eca92dd43 Merge "Add key layout for Nintendo Switch controller" into qt-dev 2019-06-15 00:00:06 +00:00
Siarhei Vishniakou
94db68e031 Add key layout for Nintendo Switch controller
The controller for Nintendo Switch is currently missing a key layout,
and the resulting codes are incorrect. Provide the appropriate map here.

Also, update some button mappings for the Xbox 360 controller.

Bug: 135136477
Test: Tested using "gamepad tester". CTS test will be added in a future
release. Tested using custom app.

Change-Id: I1ffcabdcc11aa83316c483ea49cb10fc85f6264f
2019-06-14 11:45:21 -07:00
Alan Stokes
953484ea44 Explicitly grant START_ACTIVITIES_FROM_BACKGROUND to com.android.phone.
It's needed because when we broadcast ACTION_SIM_SLOT_STATUS_CHANGED
we want to allow the receiving app to start an activity from the
background.

The app already has it implicitly, since it has the same shared UID as
com.android.stk which has the permission for unrelated reasons. Making
it explicit makes it less likely it will lose the permission
accidentally re-introducing a subtly bug.

Bug: 132691768
Test: Builds
Change-Id: I85669423e628b4534a3f28efd17947ca2481454e
2019-06-14 16:06:36 +01:00
Siarhei Vishniakou
6b77f74756 Merge "Add keylayout for Xbox One USB controller" into qt-dev am: 77c1c938a5 am: a0c0e2f8c9
am: b18b8c081a

Change-Id: I19c3e94230748d1fa61b5de74cc070a5b90964f8
2019-06-13 10:23:06 -07:00
TreeHugger Robot
77c1c938a5 Merge "Add keylayout for Xbox One USB controller" into qt-dev 2019-06-13 16:51:03 +00:00
Siarhei Vishniakou
07749b72c6 Add keylayout for Xbox One USB controller
We are currently missing the key layout for the Xbox One USB controller
with the following meta information:
vendor 045e, product 02ea

This layout was copied from product 02d1.

Also fix the mappings of the middle buttons to generate "select - mode -
start", similar to what has already been done for the other xbox
controllers in ag/4836521 and ag/3162575

Bug: 132451971
Bug: 133514907

Test: tested using 'gamepadtester'. CTS tests will be added later.

Change-Id: Ie18bce987b512211d3e91bd1f7334afe11d83cf8
2019-06-11 11:12:21 -07:00
Jichao Li
8878b39ccb Revert "Merge "Whitelist START_ACTIVITIES_FROM_BACKGROUND permission for permissionController" into qt-dev am: 3206a17e5d am: c109f431a4"
This reverts commit de80ad4df7.

Reason for revert: Revert in R, as a more complete solution in PermissionController will make the permission unnecessary.

Change-Id: Ic8401cd88438d7fb177a21f33db1c2ee1e51aa6a
2019-06-07 21:42:12 +00:00
Hongyang Jiao
de80ad4df7 Merge "Whitelist START_ACTIVITIES_FROM_BACKGROUND permission for permissionController" into qt-dev am: 3206a17e5d am: c109f431a4
am: 0d3ce1d0b6

Change-Id: Ie5fa6cebfd7c4c83ab9149e0704f42430475c811
2019-06-07 14:36:59 -07:00
Hongyang Jiao
3206a17e5d Merge "Whitelist START_ACTIVITIES_FROM_BACKGROUND permission for permissionController" into qt-dev 2019-06-07 21:08:02 +00:00
Fabian Kozynski
e1247b3478 Merge "Restore WATCH_APPOPS permission for systemui" into qt-dev am: 76de5167ab am: 7b82702b18
am: 133e74adad

Change-Id: I2d9a72eae56a4c078a7d52f4b6ca13827ffe191a
2019-06-07 12:11:37 -07:00
jiaohy
0999f93e4a Whitelist START_ACTIVITIES_FROM_BACKGROUND permission for
permissionController

Bug:134429397
Test: Locally flash on sailfish
Change-Id: I650c08a7f0a823085e0eaa0e1cae8b5b44cabd8f
2019-06-07 11:46:00 -07:00
Fabian Kozynski
ade26fa73a Restore WATCH_APPOPS permission for systemui
This permission is necessary for Q as it allows systemui to tag
notifications of apps that are using certain AppOps. This is a P
feature that has regressed when the permission was made privileged.

This is used by AppOpsController in order to obtain updates on any apps
(onOpActiveChanged, onOpNoted). There is no other way to obtain the
updates from apps that are not systemui, as specified in AppOpsManager.

Talked to moltmann@ to verify that this is the correct API to use for this feature.
I'll remove this permission once SystemUI does not need it anymore.
In particular, if AppOpsController does not require it for being notified of AppOps changes.

Fixes: 134747188
Test: build
Test: dumpsys SystemUI. Check that AppOpsController is getting updates.
Change-Id: I08cca4361a7fbfa8b2eb419f1459b0b8bce93a5f
2019-06-07 17:38:01 +00:00
Jeff Sharkey
92703e3432 Merge "Shift call statistics back to the original caller." into qt-dev am: c4289bdeca am: 143cc83668
am: ae8db8697c

Change-Id: I0aae36517fa81d99632c3f53e4ed83713d8d25df
2019-05-30 15:12:45 -07:00
Jeff Sharkey
c4289bdeca Merge "Shift call statistics back to the original caller." into qt-dev 2019-05-30 21:29:21 +00:00
Jeff Sharkey
c0bb5985af Shift call statistics back to the original caller.
Most of the time MediaProvider is making Binder calls on behalf of
an external caller, so use PropagateWorkSourceTransactListener to
ensure that we record the original source.

Bug: 125725916
Test: atest --test-mapping packages/apps/MediaProvider
Change-Id: I591dfb2903a54239639452954ea2d780e79b280c
2019-05-30 12:18:34 -06:00
Nicholas Sauer
1c79b46470 Merge "Add privapp config for cluster." into qt-dev am: 826c01e8e6 am: 600d39646a
am: d64a36175c

Change-Id: Iebeecabd83127b2ff83557cfc5de6ad1cf06a6ec
2019-05-29 10:45:13 -07:00
Nicholas Sauer
5f6a7901cd Add privapp config for cluster.
bug: 133809765
Test: lunch gcar && m && emulator
lunch aosp && m && emulator

Change-Id: I585bedf65113f2417da8af30eb89788bc120926a
2019-05-29 05:21:49 +00:00
Selim Gurun
ca11f7b67f Merge "Add READ_LOGS permission" into qt-dev am: 5dcbc98f21 am: 0b264c2b97
am: d83190be77

Change-Id: I69a476541022920981bbb908d712c6fea558cc99
2019-05-28 20:01:11 -07:00
TreeHugger Robot
5dcbc98f21 Merge "Add READ_LOGS permission" into qt-dev 2019-05-29 02:38:25 +00:00
Selim Gurun
5db6cdf0c5 Add READ_LOGS permission
car service and kitchensink needs READ_LOGS permission

Bug: 133607244
Test: Manual
Change-Id: Ic9382716bf901cfbdd7e43b8c3c1ca1974693d87
2019-05-28 15:02:47 -07:00
Abhijeet Kaur
2ae76e468b Merge "Migrate Shell app to use the new bugreport API." 2019-05-28 16:56:32 +00:00
Abhijeet Kaur
767c8bb96a Migrate Shell app to use the new bugreport API.
Add new calls to bugreport API, all the while keeping the previous code
and logic untouched.

Added feature flag in Settings which if untouched, runs the old dumpstate workflow
by default. To test the new workflow turn on the feature flag from UI or
`adb shell setprop settings_call_bugreport_api true`.

Add permission TRIGGER_SHELL_BUGREPORT so that not all can send
broadcasts to trigger bugreports.

Create new receiver BugreportRequestedReceiver for the new broadcast intent that the shell app will
use.

Whitelist Shell app to use the bugreport API.

Bug: 123617758

Test: manually built and flash to device. Turn on the feature flag, generate bugreports and check
the onProgress and onFinish notifications.
Test: Turn off the feature flag test old workflow.

Change-Id: I1c7c258a48815a0386d7d4771301cd76f9cae3d0
2019-05-28 14:31:57 +01:00
Ivan Chiang
1100dd8db9 Merge "Add privapp-permissions for DocumentsUI" into qt-dev 2019-05-27 02:33:22 +00:00
TreeHugger Robot
ebdb9db33b Merge "Fix the internet permission for native services" into qt-dev 2019-05-24 01:18:19 +00:00
Chenbo Feng
4c755833af Fix the internet permission for native services
The native services should specify their permissions in platform.xml if
they need internet permission, otherwise the eBPF program will block the
socket creation request. Fixing the known services that are in group
AID_INET but didn't specify their permission in the xml file.

Bug: 132217906
Test: CtsJdwpTestCases dumpsys netd trafficcontroller
Change-Id: I84cde7d3757953bc0bf761727d64a715bcdd68bb
Merged-In: I84cde7d3757953bc0bf761727d64a715bcdd68bb
(cherry picked from commit e5d6f0fa6c)
2019-05-23 11:54:49 -07:00
TreeHugger Robot
73414d51d0 Merge "Allow wallpaper to access hidden methods" into qt-dev 2019-05-21 22:39:39 +00:00
Hyunyoung Song
41d8870bd8 Allow wallpaper to access hidden methods
Bug:133160356
Bug:129482731
Test: builds
Change-Id: Id4a95be17d54bc62c105041ef7e756cfa56081f4
2019-05-21 12:30:46 -07:00
Varun Shah
a248265d93 Add INTERACT_ACROSS_PROFILES permission to shell for CTS test.
Bug: 127804311
Test: atest CrossProfileAppsHostSideTest#testStartActivity
Change-Id: I1deb66409fae1ec654555adb8d4a61d670689d2a
2019-05-20 20:56:59 -07:00
Zimuzo Ezeozue
ab9c69fda4 Merge "Add ExplicitHealthCheckServiceImplTest" into qt-dev 2019-05-20 20:16:22 +00:00
TreeHugger Robot
a9607b296a Merge "Android Q is API 29" into qt-dev 2019-05-20 18:32:59 +00:00
Zimuzo
0d70a6ac49 Add ExplicitHealthCheckServiceImplTest
Test: atest
android.ext.services.watchdog.ExplicitHealthCheckServiceImplTest
Bug: 132640467

Change-Id: I2d1820a38adce238a157e925512898c184dadec0
2019-05-19 19:39:29 +01:00