Commit Graph

18520 Commits

Author SHA1 Message Date
Remi NGUYEN VAN
be34fb2ce6 Merge "Remove hidden API usage of Proxy.validate" am: a4a9e9bbc8 am: 1065160b6c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1552497

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Id19b29b7140eeaa4d51821045f1b4549719b482c
2021-01-25 04:41:24 +00:00
Remi NGUYEN VAN
a4a9e9bbc8 Merge "Remove hidden API usage of Proxy.validate" 2021-01-25 04:04:40 +00:00
Remi NGUYEN VAN
46c67f78b4 Merge "Add test for proxy spec building" am: 68dcdfa29b am: e723d84c16
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1554103

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I1f570a5527c14d8b031537270108b0db8e2eebbc
2021-01-25 02:59:09 +00:00
Remi NGUYEN VAN
68dcdfa29b Merge "Add test for proxy spec building" 2021-01-25 02:06:18 +00:00
Remi NGUYEN VAN
ad78bf1f22 Remove hidden API usage of Proxy.validate
Proxy is planned to move to the connectivity module, so framework
classes like DevicePolicyManager cannot depend on its private symbols.

Replace usage of ProxyInfo.validate by the equivalent isValid method on
ProxyInfo.

Bug: 174436414
Test: atest DevicePolicyManagerTest#testGetProxyParameters
Change-Id: I6da49a34c9893d07ef7cbee6a7386c9258839467
2021-01-22 14:05:40 +09:00
Remi NGUYEN VAN
a1495b8c6a Add test for proxy spec building
In preparation for a refactor of the logic, add a test to verify proxy
spec building and validation in DevicePolicyManager#setGlobalProxy.

Bug: 174436414
Test: atest DevicePolicyManagerTest#testGetProxyParameters
Merged-In: Ic1c8bf6e8f5e79a7a1736af6cc1d50a7969fb9ad

Change-Id: Ic1c8bf6e8f5e79a7a1736af6cc1d50a7969fb9ad
2021-01-22 14:05:33 +09:00
Paul Hu
796c878352 Merge "Expose Context#sendStickyBroadcast(Intent, Bundle)" am: 846e5f178d am: c9e394fc27
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1491876

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ic690e30e491538bef18fc4ca8b480609fd953d65
2021-01-22 03:03:01 +00:00
Paul Hu
846e5f178d Merge "Expose Context#sendStickyBroadcast(Intent, Bundle)" 2021-01-22 02:11:13 +00:00
Treehugger Robot
d3c6961f23 Merge "Update OWNERs for SystemUI related files" am: c235d21e22 am: 28314791ca
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1554781

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I01b3060f02f5930185e08b4bbf80a65583b9d2c6
2021-01-20 22:12:02 +00:00
Julia Reynolds
ac5a4c4868 Update OWNERs for SystemUI related files
Change-Id: Ide8f8bcdea46b431d1f401f1da9514d577856e0f
2021-01-20 18:28:33 +00:00
Martijn Coenen
7d6f488c29 Merge "Make releaseSomeActivities() a oneway call." am: 2da2fdc519 am: 76398b631a
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1552466

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I8089ca93bcafa65dde7e7db141d1a5306afec151
2021-01-18 14:45:56 +00:00
Martijn Coenen
5363b0671d Make releaseSomeActivities() a oneway call.
This is called from a GC handler hook in BinderInternal, from the
finalizer thread. It's a call from an app process into system_server. On
some devices, we observed this call taking a long time, causing
TimeoutExceptions on the finalizer thread.

Since this work is not critical, and when the GC runs is anyway
unpredictable, make releaseSomeActivities() oneway instead.

Bug: 118997212
Test: TH
Change-Id: I6b06917493a09a2fba63502c4bd1a203c184a62c
Merged-In: I6b06917493a09a2fba63502c4bd1a203c184a62c
2021-01-18 09:46:10 +01:00
paulhu
4ee7e55df0 Expose Context#sendStickyBroadcast(Intent, Bundle)
Bug: 177223402
Test: atest FrameworksCoreTests:ContextTest
Test: atest CtsContentTestCases:ContextTest
Change-Id: Ic85419934cf2c9df4e0f9cc287585b3296cec819
2021-01-18 00:09:38 +08:00
Hyunyoung Song
3bbcad312a Merge "Add OWNERS file to SearchUi related projects" am: 3e4b74520b am: 1f0eb2327a
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1552394

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ia9ef5f6dd064f82849e8e2446348a7d618bfe14e
2021-01-15 21:57:01 +00:00
Hyunyoung Song
12d7faedf0 Add OWNERS file to SearchUi related projects
Test: not needed as this is a meta file change

Change-Id: I4900664d11374f2b82247a73445e0deea0e70cbc
2021-01-15 10:00:29 -08:00
Joanne Chung
756e3a56ca Merge "Get ApplicationInfo using usr id" into rvc-qpr-dev am: 19e9f00346
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13274693

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I8e65f3622eec6e15ea5266b81092de6be862038d
2021-01-15 08:40:21 +00:00
Joanne Chung
19e9f00346 Merge "Get ApplicationInfo using usr id" into rvc-qpr-dev 2021-01-15 07:56:55 +00:00
Joanne Chung
d96bcfcdf2 Get ApplicationInfo using usr id
Use ApplicationInfoAsUser() to get the application information by
user id to make sure we have correct permission, othewise we will
get the SecurityException due to lack of INTERACT_ACROSS_USERS.

Bug: 176313819
Test: atest CtsVoiceRecognitionTestCases
Test: manual.
      1.create profile user
      2.Install sample recognizer app
      3.Function works fine and no security exception occurred after
      apply the change

Change-Id: I6958dbf661373606fb9dba55e386aaea4399a146
Merged-In: Iaf485537b8082d2109d2134ff987dc7244e31218
2021-01-15 12:25:06 +08:00
Mathew Inwood
982e50f2c6 Merge "Derestrict some non-SDK APIs." am: 29bf6e8443 am: 9e27f89092
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1541669

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I4eeffeb0d9ab509e2f436435bf2079558e2d1c7d
2021-01-13 10:12:53 +00:00
Mathew Inwood
29bf6e8443 Merge "Derestrict some non-SDK APIs." 2021-01-13 09:38:35 +00:00
Adam Bookatz
9ac98ffa59 Merge "Add User* OWNERS file (part 2)" am: da79da08f0 am: b9b73d26db
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1543926

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I87bc14c52e4aa4ed42f73496e104f0f3182c613b
2021-01-12 20:55:13 +00:00
Jing Ji
f8efca376a Merge "Add OWNERS coverage in package android.app" am: 3d4e998ee6 am: c233e94b13
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1540573

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Id13ae978f192be9c7ffa697ce8a091dc72f204bb
2021-01-12 01:15:33 +00:00
Adam Bookatz
6cd4cd01fb Add User* OWNERS file (part 2)
Part 1 was aosp/1546301.
Two parts are required due to b/175318571.

Test: N/A
Change-Id: I1a89f7d26da70dce36d1e891a8e8ebc4042dc56c
2021-01-12 01:03:39 +00:00
Jing Ji
3d4e998ee6 Merge "Add OWNERS coverage in package android.app" 2021-01-11 23:57:04 +00:00
Kevin Hufnagle
da3ee63d75 Merge "docs: Remove error in requestPermissions doc" into rvc-dev am: 05efe90a8d am: 5290b8d590
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13122154

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I42ea9340c432704656ed33cdd27b5093e90fced4
2021-01-11 19:54:14 +00:00
Kevin Hufnagle
5290b8d590 Merge "docs: Remove error in requestPermissions doc" into rvc-dev am: 05efe90a8d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13122154

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I1f2497b843db9d953e225da17e16f92f93f2ad99
2021-01-11 19:53:53 +00:00
Kevin Hufnagle
05efe90a8d Merge "docs: Remove error in requestPermissions doc" into rvc-dev 2021-01-11 18:56:59 +00:00
Mathew Inwood
95709ba69f Derestrict some non-SDK APIs.
Per request from a partner, these APIs will not be restricted as they
are in use. This is conceptually a partial revert of change 5d123b6775.

NoNonSdkCheck: b/170729553

Bug: 171933273
Test: Treehugger
Change-Id: Ibb525e9a9e2fc90248b74f45f3cdcb0be7487c3a
2021-01-07 09:53:09 +00:00
arangelov
f5a379201d [RESTRICT AUTOMERGE] Remove DPMS#getProfileOwner in favor of getProfileOwnerAsUser am: 10f79644fc
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12977405

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I162d5c8dd07adab106ba7c4201d984d98854e111
2021-01-06 17:31:09 +00:00
TreeHugger Robot
a428448b1e Merge "[RESTRICT AUTOMERGE] Remove DPMS#getProfileOwner in favor of getProfileOwnerAsUser" into rvc-qpr-dev 2021-01-06 17:21:50 +00:00
Alex Kershaw
fb688b44d8 [RESTRICT AUTOMERGE] Make WPMS look for DOs and POs in the correct calling user am: 72704403aa
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13144052

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ia9fa890f6b0582997173c9cef54c397c679db23e
2021-01-06 16:00:40 +00:00
Alex Kershaw
72704403aa [RESTRICT AUTOMERGE] Make WPMS look for DOs and POs in the correct calling user
Currently, it will always look in user 0 since it uses the DPM from
mContext, which will always be from user 0 as WPMS is in the system
server process.

Extend DPMI to provide the necessary external helper API. This is
preferable to just using createContextAsUser before getting the DPM
instance since it avoids a second binding.

Fixes: 144048540
Fixes: 172682826
Bug: 153995973
Bug: 174642338
Test: atest com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testSetWallpaper_disallowed
Change-Id: I52b71000fac31ff6725ddded58206f69b263ae33
(cherry picked from commit 5b36ee3f1d)
2021-01-06 13:08:42 +00:00
Bill Yi
2dcac1e2a1 Merge RQ1A.210105.003 to aosp-master - DO NOT MERGE
Merged-In: I034d45f1afcdd07c0b12e2db7e4134b695ec5c70
Change-Id: I329407db7c9ed7d2b512e505df6e50c4f471fafa
2021-01-05 18:27:51 -08:00
Jing Ji
f0a178c110 Add OWNERS coverage in package android.app
Bug: 176852910
Test: Manual
Change-Id: I78ac3b4b08739fd3ae2170a3a565ccaac260ba81
2021-01-05 18:22:26 -08:00
Jeff Sharkey
67ceac6ca7 Merge "Add OWNERS file for people" am: e4401ef4c5 am: d5c6b8bb11
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1540204

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I6511ec80bdd5ab576452c00353ce01e60ea3dfc2
2021-01-05 17:16:38 +00:00
Julia Reynolds
96ca797192 Add OWNERS file for people
Change-Id: I2024258217dcff3dcc34d5dc7bc2d56010e47be1
2021-01-05 16:04:30 +00:00
Remi NGUYEN VAN
edc6b0fb67 Merge "Split NetworkUtils and NetworkUtilsInternal" am: 3ed4fd3a89 am: 635d60201d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1513140

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I7b2eae7f9988ae8fa8c858709cafc17c1420f4b7
2020-12-23 02:07:05 +00:00
Remi NGUYEN VAN
3ed4fd3a89 Merge "Split NetworkUtils and NetworkUtilsInternal" 2020-12-23 01:19:27 +00:00
Alex Kershaw
2e6c54c293 DO NOT MERGE Correctly reset cross-profile app-op am: f764d9e98f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13236705

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Iea45f7508d51a3a2f2a7be513549b2d8d34e1bb9
2020-12-17 17:22:22 +00:00
Alex Kershaw
f764d9e98f DO NOT MERGE Correctly reset cross-profile app-op
Delegate the resetting of the INTERACT_ACROSS_PROFILES app-op to
DevicePolicyManager, which knows whether it should be pre-granted and
knows to apply it equally across all users in the profile group.

Further unit tests for DevicePolicyManagerInternal will be added in
b/175440570 when we have the better infra for that.

The CrossProfileAppsServiceImpl changes look more complex than they are.
They consist of the following:
- Inclusive language changes to 'allowlist'
- Static imports of permissions to improve readability
- Previously, the setInteractAcrossProfilesAppOp method would set the
app-op for every user within the profile group of the 'calling user'.
However, given that we are now exposing this as a server-side internal
API where we need to pass in a user ID (from AppOpsService), we don't
necessarily have the guarantee that the 'calling user' is in the same
profile group. So we split it up: the client-side API and AIDL API still
set the app-op for the calling profile group, whereas the internal API
sets the app-op for every user within the profile group of the provided
user. The changes simply abstract away references to the 'calling user
ID'.

Fixes: 166561076
Bug: 175440570
Test: atest services/robotests/src/com/android/server/pm/CrossProfileAppsServiceImplRoboTest.java --verbose -c
Test: manual
Change-Id: I2181fe66022aaf6c3e6d784c0569d2f41ab66537
(cherry picked from commit d004f41188)
2020-12-17 13:27:34 +00:00
Remi NGUYEN VAN
eb32604c2b Merge "Run LowpanManager on BackgroundThread" am: e9c000eee2 am: f4e6668082
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1513142

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I3c501da3c8a7b5217d1574d5e7e4e41e0535e227
2020-12-15 03:55:01 +00:00
Remi NGUYEN VAN
e9c000eee2 Merge "Run LowpanManager on BackgroundThread" 2020-12-15 03:10:36 +00:00
Treehugger Robot
c656403bed Merge "Add a path for GNSS time suggestions" am: 85ebf98dcf am: 4ef13ea0c9
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1528193

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Idcef60976ab86fb527000594cc6698ae2cd7feb3
2020-12-14 19:18:04 +00:00
Treehugger Robot
85ebf98dcf Merge "Add a path for GNSS time suggestions" 2020-12-14 18:02:50 +00:00
TreeHugger Robot
78c4844b69 Merge "Revert "DO NOT MERGE Add RECORD_AUDIO_OUTPUT app op"" into rvc-qpr-dev-plus-aosp 2020-12-14 17:52:27 +00:00
Wale Ogunwale
dfbbd0e5d7 Merge "Add more OWNERS coverages(2/n)" am: a2c85ce0ba am: 700b3d812f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1527819

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I1d1525ba52d4365241785b4789f7363aac0d32c4
2020-12-14 17:30:00 +00:00
Neil Fuller
3f5237157e Add a path for GNSS time suggestions
Add a path for GNSS time suggestions to get to the time detector.

Bug: 157265008
Test: atest services/tests/servicestests/src/com/android/server/timedetector/TimeDetectorStrategyImplTest.java
Test: atest android.app.timedetector
Change-Id: I5cb12b5545652ed885b72a3170940050ce0628a6
Merged-In: I5cb12b5545652ed885b72a3170940050ce0628a6
2020-12-14 16:59:39 +00:00
Nate Myren
06a8530e94 Revert "DO NOT MERGE Add RECORD_AUDIO_OUTPUT app op"
This reverts commit 471f8cec33.

Reason for revert: breaking tests

Fixes: 175508982
Change-Id: Ic66ac892d857e53cd613e769f837782be125db67
2020-12-14 16:27:01 +00:00
Wale Ogunwale
a2c85ce0ba Merge "Add more OWNERS coverages(2/n)" 2020-12-14 16:25:16 +00:00
Eran Messeri
2768a0acf3 Merge "Device Policy Manager OWNERS: Add Enterprise team" am: f4555b5fe2 am: feb6b04243
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1519669

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: If1ec5ca4642e6665a18b1246300d41697313ba3f
2020-12-14 14:40:46 +00:00