Commit Graph

2361 Commits

Author SHA1 Message Date
Xin Li
85d715bac3 Merge "Merge Android 12 QPR1" 2021-12-14 20:25:23 +00:00
Alex Buynytskyy
b4dc01e32a Allow shell/CTS to be package verifier.
Bug: 204810986
Test: device boots
Test: atest PackageManagerShellCommandTest ChecksumsTest
Change-Id: I0b379714a946c18afdeca4ec02469d26646544df
2021-12-14 01:18:16 +00:00
Treehugger Robot
8dc3be6249 Merge "Add DEVICE_LOCK permission to Shell to support ATS test" am: 00b14576ba
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1909557

Change-Id: I3929ce59312776fb513e9754eb7b24852ca82bbe
2021-12-03 01:14:21 +00:00
Anthony Hugh
b4cce59e37 Add DEVICE_LOCK permission to Shell to support ATS test
Adds DEVICE_LOCK permission to Shell to support the
CarDevicePolicyManagerTest. This permission is needed to call
DevicePolicyManager#lockNow  which locks the device.

Bug: 187199256
Test: atest CarDevicePolicyManagerTest
Merged-In: I3fa20b53b929c97a6760d65b432a74c3415d6a08
Change-Id: I3fa20b53b929c97a6760d65b432a74c3415d6a08
2021-12-02 23:49:22 +00:00
Xin Li
10d9972786 Merge sc-qpr1-dev-plus-aosp-without-vendor@7810918
Bug: 205056467
Merged-In: I13199bc39e9445929195f3d15579cbffe94e92b0
Change-Id: I35fa3c6c2abf679c51033f1395a08d511ed8739f
2021-11-18 17:00:37 +00:00
Marcus Hagerott
6c681056bb Allow ContactsProvider to use compat change framework
BUG=188347648
Test: m droid

Change-Id: Ifb6675777c76ca1c44af96ceb02a6207d28bd045
2021-11-16 13:40:41 -08:00
Vishnu Nair
cbb12e2e76 WM: Handle primary display orientation when calculating the transform hint
Query the surface flinger property
ro.surface_flinger.primary_display_orientation to determine the
primary display's install orientation. If the window is on the
primary display, then update the transform hint passed on to the
client.

Bug: 196167822
Test: check initial buffer transforms on displays with a different
install orientation

Change-Id: Idf010cd6be73172ba708820f87046c3ba3cf8001
Merged-In: Idf010cd6be73172ba708820f87046c3ba3cf8001
2021-11-11 03:14:21 +00:00
TreeHugger Robot
ca7c9ee56f Merge "add CONTROL_APP_BLOCKING permission to car ks app." into sc-qpr1-dev am: 1a8db82016
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15900200

Change-Id: I69db46c8d3814e22c4834b0cca5dca9fdd45f90e
2021-09-24 02:46:14 +00:00
Keun young Park
c7d1b42343 add CONTROL_APP_BLOCKING permission to car ks app.
- This is for testing purpose.

Bug: 193247516
Test: build, check boot up
Change-Id: I6c6d860a4b884d8856ede3aa4c73c64a9c568dd5
Merged-In: I6c6d860a4b884d8856ede3aa4c73c64a9c568dd5
(cherry picked from commit d8a331bdcb)
2021-09-23 22:08:48 +00:00
Rambo Wang
02adf2d91d Merge "Support platform-compat-framework for TeleService" am: 7ad8aa929e am: 2e7d4fe98b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1747977

Change-Id: Iedefd178c03f988435e6fbf21a8744aefa3ae174
2021-07-16 22:16:53 +00:00
Nikita Ioffe
ffcc75b181 Merge "Grant INSTALL_PACKAGE_UPDATES permission to Shell" into sc-dev am: 1d2cbb6f50
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15235316

Change-Id: I4f39d26a3c086f186240411e31052011a262b963
2021-07-12 20:19:21 +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
Chris Li
0a703480d2 Merge "Remove TaskInfo#topActivityToken usage in size compat for security" into sc-dev am: e7ed99bfc2
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15156978

Change-Id: Ieaa6eb5bc5dc023644d4f6c19dbb583f7e022f5b
2021-07-08 18:15:42 +00:00
Chris Li
e7ed99bfc2 Merge "Remove TaskInfo#topActivityToken usage in size compat for security" into sc-dev 2021-07-08 18:05:40 +00:00
Chris Li
1245aefa49 Remove TaskInfo#topActivityToken usage in size compat for security
Security report shows that this can cause leak token of different app.

Replace the functionality with a callback to the TaskOrganizerController
to restart activity when size compat restart button is clicked.

Bug: 186776724
Test: manually verify the restart button still works
Change-Id: I097b9f02e8435e6765695b9d5a531a4e165bac66
Merged-In: I097b9f02e8435e6765695b9d5a531a4e165bac66
2021-07-07 21:09:24 -07:00
Rambo Wang
05e55c9e3e Support platform-compat-framework for TeleService
Bug: 191911306
Test: atest ServiceStateProviderTest
Change-Id: I23e0e0867c89c0e107258c723f29e9ae9b5ba9f1
2021-07-01 23:46:49 +00:00
TreeHugger Robot
ca58abc4a9 Merge "Add READ_PRIVILEGED_PHONE_STATE to dialer" into sc-dev am: b3075bc5dc
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14908986

Change-Id: Iba83b43c726dfb1fd834a74922fe8c44751f0c6a
2021-07-01 21:48:37 +00:00
TreeHugger Robot
b3075bc5dc Merge "Add READ_PRIVILEGED_PHONE_STATE to dialer" into sc-dev 2021-07-01 21:45:06 +00:00
TreeHugger Robot
866fdeaa20 Merge "Give Shell the NOTIFY_PENDING_SYSTEM_UPDATE permission" into sc-dev am: 69a0939764
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15107816

Change-Id: I6a58650e3553227b5a858a0dbb26d2c0a1380a9a
2021-06-29 17:03:50 +00: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
Kohsuke Yatoh
0a93841c46 Merge "Extract flag font from NotoColorEmoji" into sc-dev am: 80a8cf86c0
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14970179

Change-Id: If11584176cfc18d8580dc021fabf6fb8445b1cdc
2021-06-29 00:56:10 +00:00
Kohsuke Yatoh
80a8cf86c0 Merge "Extract flag font from NotoColorEmoji" into sc-dev 2021-06-29 00:40:27 +00:00
Peter Li
8a21ab4d9b Add READ_PRIVILEGED_PHONE_STATE to dialer
Fix: 192017986
Bug: 188396041
Test: Manual

Change-Id: I5f85013c7373093030961392e61e86bc7376b346
2021-06-28 22:35:44 +00:00
TreeHugger Robot
e4147d7370 Merge "Rename keylayout for SnakeByte iDroid:con to match by name" into sc-dev 2021-06-28 13:10:02 +00:00
TreeHugger Robot
849af2a984 Merge "Allow Shell more permissions for TvInputManagerTest." into sc-dev am: 7058f9948f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15098677

Change-Id: If58599b99b81fb0a5272c02ee16354b697156c47
2021-06-28 11:21:46 +00:00
Treehugger Robot
6853c263e9 Rename keylayout for SnakeByte iDroid:con to match by name
This keylayout was introduced in ba81efe04a.
Unfortunately, we cannot match by vid / pid, since this breaks other
devices (like keyboards) that use the same vendor / product id.

Instead, match by name to avoid conflict.

Bug: 191720859
Change-Id: I9dd686ebcd612ca04d41b7b5cadf8442350346c9
Merged-In: I9dd686ebcd612ca04d41b7b5cadf8442350346c9
Test: verified manually
2021-06-27 08:09:21 +00:00
Treehugger Robot
dcc5f5e7da Merge "Rename keylayout for SnakeByte iDroid:con to match by name" am: 8bae06f66d am: 637694588b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1747153

Change-Id: I29016ef674e91e31c4e8b5f5eb4db32148187805
2021-06-27 00:39:47 +00:00
Treehugger Robot
8bae06f66d Merge "Rename keylayout for SnakeByte iDroid:con to match by name" 2021-06-26 23:41:49 +00:00
Siarhei Vishniakou
ce40a4d0e8 Rename keylayout for SnakeByte iDroid:con to match by name
This keylayout was introduced in ba81efe04a.
Unfortunately, we cannot match by vid / pid, since this breaks other
devices (like keyboards) that use the same vendor / product id.

Instead, match by name to avoid conflict.

Bug: 191720859
Change-Id: I9dd686ebcd612ca04d41b7b5cadf8442350346c9
Test: verified manually
2021-06-25 17:14:21 +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
Seigo Nonaka
458f1dd71c Extract flag font from NotoColorEmoji
Bug: 188926991
Bug: 188779144
Test: m fontchain_lint
Change-Id: Ie807e31abb407f5b58665d4d2941bc75186d5c42
Merged-In: Ie807e31abb407f5b58665d4d2941bc75186d5c42
2021-06-24 18:46:08 +00:00
TreeHugger Robot
bd95831869 Merge "Enabling CAR_MONITOR_INPUT in com.android.car.rotary.xml" into sc-dev am: f92b5c4936
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15014590

Change-Id: Id4106ac050f20e84aaa2370e5213a60cf8cc6866
2021-06-17 21:24:25 +00:00
TreeHugger Robot
f92b5c4936 Merge "Enabling CAR_MONITOR_INPUT in com.android.car.rotary.xml" into sc-dev 2021-06-17 20:50:27 +00:00
Antonio Kantek
4422c2ecb0 Enabling CAR_MONITOR_INPUT in com.android.car.rotary.xml
Bug: 191330748
Test: m -j32 (+ installed on seahawk)
Change-Id: I8721991a978bdbde7d6f6f852c55a0fb85634a84
2021-06-17 09:32:47 -07:00
Antonio Kantek
e3c75a1ad5 Merge "Adding com.android.car.cluster.home.xml" into sc-dev am: 56330ddf59
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14910481

Change-Id: I7a7156a1523b9a3ac15184d34265858ea8c3e6ae
2021-06-16 16:45:59 +00:00
Antonio Kantek
56330ddf59 Merge "Adding com.android.car.cluster.home.xml" into sc-dev 2021-06-16 16:31:31 +00:00
Vadim Caen
5376302409 Merge "Release the SurfacePackageViewHost on splash screen removed" into sc-dev am: dc07d29bd0
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14775423

Change-Id: I8df810ddd616766a2fa843b5755ae973d7e43361
2021-06-16 12:42:27 +00:00
Antonio Kantek
8e3082fbcd Adding com.android.car.cluster.home.xml
This is required in order to build ClusterHomeSample with CAR_MONITOR_INPUT privileged permission.

Bug: 186676333
Test: atest CarServiceUnitTest
Change-Id: Ie5c81beb142c8f02aa01bdf129320169eed2c00e
2021-06-15 15:02:16 -07:00
Vadim Caen
a46ff113be Release the SurfacePackageViewHost on splash screen removed
The SurfacePackageViewHost was never release, leading to a leak of its
surfaces.

This CL ensure it is released:
  - Directly in the shell if the SplashScreenView was not copied
  - From the client, through the window manger and then to the shell if
  the splash screen was copied in the client process

Test: Manually tested with app setting by checking if the surfaces
are actually removed (winscope + logs) in the following scenarios:
    - When the application registers an OnExitAnimationListener
      and calls remove(),
    - When the application registers an OnExitAnimationListener
      and dies without calling remove()
    - When the applicaiton does not register an OnExitAnimationListener
    and the shell removes the splash screen
Bug: 189759180

Change-Id: Ib68bfffad6720911368739d7dd87d8a03034c589
2021-06-15 15:39:09 +02:00
Xin Li
48e70ad8bc DO NOT MERGE - Merge ab/7272582
Bug: 190855093
Merged-In: I81c036a8484d14683db9450b55bd379c7a728d73
Change-Id: I71fe9744d88740a8d95235ddb4c8ab91881473ce
2021-06-14 22:01:46 -07:00
TreeHugger Robot
61df18427d Merge "Give shell android.permission.GET_TOP_ACTIVITY_INFO" into sc-dev am: 57fcc33111
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14909796

Change-Id: I5eaedc6dc023811b3a1077ab9dd1e0674a893d21
2021-06-09 17:20:16 +00:00
TreeHugger Robot
57fcc33111 Merge "Give shell android.permission.GET_TOP_ACTIVITY_INFO" into sc-dev 2021-06-09 17:15:44 +00:00
zakcohen
baea422788 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:32:35 +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
Meng Wang
cd73e55b2d Merge "Allow ImsServiceEntitlement app to schedule jobs" into sc-dev am: 0c1b382ace
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14762972

Change-Id: Ie91543160e851531c1eb84d54b4175df6a3a921c
2021-06-09 00:29:29 +00:00
Meng Wang
0c1b382ace Merge "Allow ImsServiceEntitlement app to schedule jobs" into sc-dev 2021-06-08 23:50:09 +00:00
TreeHugger Robot
5641d653c7 Merge "Use RobotoStatic-Regular for the weight 400 of roboto family" into sc-dev am: 15cc80b39c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14722633

Change-Id: I0078691e5c1ef08de7de35320896964f39b131a1
2021-06-08 18:08:12 +00:00
TreeHugger Robot
15cc80b39c Merge "Use RobotoStatic-Regular for the weight 400 of roboto family" into sc-dev 2021-06-08 17:57:30 +00:00
TreeHugger Robot
06229448e9 Merge "Update com.android.statementservice to support v2 API" into sc-dev am: 53c5d85bef
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13438575

Change-Id: I098d600f8a08b791f0bd112fe7bbc52746b488f4
2021-06-07 18:53:34 +00:00