Commit Graph

14986 Commits

Author SHA1 Message Date
satayev
4079b71cbf Start apex-system-services in SystemServer.
See go/updatable-system-services for more details.

Bug: 192880996
Test: presubmit
Change-Id: I00745c2e7b34ec8ed5df12914bfa40ff3187c33b
2021-12-16 16:55:21 +00:00
Joanne Chung
41c4a0ac71 Initial layout of selection toolbar.
The initial selection toolbar related architecture. Render service
part and the implementation will be revised in the follow up changes.

Bug: 190030331
Bug: 205822301
Test: manual. Can boot to home and get manager successfully.
Ignore-AOSP-First: new file for T

Change-Id: Iab5d5f2e5e48e6258a63fb0c479194c958ea61e8
2021-12-16 11:35:23 +08:00
Dave McCloskey
2a548a596a Create the system service for AVF & hook the manager to it.
Bug: 201696614
Change-Id: I4a7a830ba809ed59a030a87c4f479199685d8a42
Test: atest AttestationVerificationTest
2021-11-29 14:55:24 -08:00
Elliot Sisteron
56c1563b3a Adding SafetyCenter system service and permission.
This implements a basic version of go/angel-in-mainline-api, only
for the bits that are unlikely to change (i.e. introduce the ability
for safety sources to provide data to the safety center).

SELinux Policy changes in aosp/1897505 and aosp/1899011

Test: ag/16284943
Ignore-AOSP-First: Yes
Bug: 203098016
Bug: 203400898
Bug: 205111656
Change-Id: I5d139782decf5226f0c4a8dcaed7c5691a86fed4
2021-11-23 21:47:25 +00:00
Alan Stokes
164fd1839b Merge "Add Isolated Compilation service" am: e53d334d7f am: 1fa4b81f7f am: dee9164c6f am: 94303f51cd
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1892635

Change-Id: I91ebddfb4fd435f78d8d429f8b49468bd24c5ccb
2021-11-22 12:17:55 +00:00
Alan Stokes
94303f51cd Merge "Add Isolated Compilation service" am: e53d334d7f am: 1fa4b81f7f am: dee9164c6f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1892635

Change-Id: Ida1a1bf276139accde99522e408b5d19ae884d30
2021-11-22 12:04:12 +00:00
Alan Stokes
1fa4b81f7f Merge "Add Isolated Compilation service" am: e53d334d7f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1892635

Change-Id: I8172f13d2bd6a1dde33c26400989126bd69a5285
2021-11-22 11:35:57 +00:00
Alan Stokes
e53d334d7f Merge "Add Isolated Compilation service" 2021-11-22 11:17:38 +00:00
Treehugger Robot
4f10090196 Merge "Create StatsBootstrapAtomService" am: e9f913aee8 am: c2566e6582 am: c74d9d6911 am: c9c355889c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1885469

Change-Id: I30eeb8206bca1d8d298977a80bcd35c554e98fe5
2021-11-19 00:40:21 +00:00
Treehugger Robot
c9c355889c Merge "Create StatsBootstrapAtomService" am: e9f913aee8 am: c2566e6582 am: c74d9d6911
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1885469

Change-Id: Ia2fa8a3d576b41a0b55cbdd6dc29a3d3126e9cfa
2021-11-19 00:22:11 +00:00
Treehugger Robot
c2566e6582 Merge "Create StatsBootstrapAtomService" am: e9f913aee8
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1885469

Change-Id: I9fe270fa5bffb2edd912ba59fbc6c002497e76b4
2021-11-18 23:48:16 +00:00
Treehugger Robot
e9f913aee8 Merge "Create StatsBootstrapAtomService" 2021-11-18 23:25:21 +00:00
Tej Singh
da79f2a110 Create StatsBootstrapAtomService
Design doc is at go/statsd-bootstrap-logging. Creates a proxy service for
logging atoms from bootstrap processes to statsd. Service has one API,
which converts StatsBootstrapAtom into StatsEvent and logs to statsd.
This should only used by processes that start in the bootstrap namespace
and cannot directly link statsd's libraries to log to statsd.

Bug: 204889815
Test: booted, made sure binder service was published.
Change-Id: I09709a30a42a7a398234c995324f62a0d62ad24f
2021-11-18 13:27:21 -08: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
Gavin Corkery
29b5b4da7d Merge "Start SupplementalProcessManagerService" 2021-11-18 09:57:57 +00:00
Josh Yang
27823ea2b1 Merge "enable MediaProjection Service" 2021-11-17 18:15:42 +00:00
TreeHugger Robot
85b0025008 Merge "SystemServer: add isWatch guard for Twilight & WiredAccessory" 2021-11-17 17:00:50 +00:00
Alan Stokes
212ca4e19c Add Isolated Compilation service
Create a skeleton system service which will be used to run Isolated
Compilation using a system server classpath fragment in the CompOS
APEX.

This has no effect if the CompOS APEX is not present (i.e. isolated
compilation is not enabled).

Bug: 199147668
Test: starts up with CompOS present & not
Change-Id: I5ee853cfaf4d9633dd8db348d13e0dfe00bd4dca
2021-11-17 15:46:40 +00:00
Abhijit Nukalapati
bc6500ba1a enable MediaProjection Service
this service is required for screen recording to work. Specificially
for WearMediaScreenRecorder to start recording the screen.

BUG: 171561784
Test: N/A (manually check that service has been launched)
Change-Id: I38ecc94d68bf7c0c48a3d57138cf1da4ad890064
(cherry picked from commit fd7a0e8fc1bc1be717f084aec1ef89dc1e67847e)
2021-11-16 22:14:08 +00:00
Julius D'souza
c8baee4b2f SystemServer: add isWatch guard for Twilight & WiredAccessory
The following services are disabled for watches
* TwilightService - there is no night mode equivalent in Wear
* WiredAccessoryManager - watches have no wired inputs

Bug: 132729373
Change-Id: Ib118532931334528527f8a29bd0cd47639eecf95
Signed-off-by: Julius D'souza <jdsouza@google.com>
(cherry picked from commit 94cbb8e821f8ad8031b936d7feb95f85954722c7)
(cherry picked from commit 3b7f73a984e301d6574e800bbf069e507cf0319f)
2021-11-16 00:51:49 +00:00
Makoto Onuki
13f2f6a511 Add new APIs to android.os.Process
- APIs the get the current process name
- APIs to get the process start "request" time

Fix: 205629074
Fix: 205337677
Test: atest CtsProcessTest

Change-Id: Id284fa169eb303011cdade6c3ab96e7026654612
2021-11-15 15:37:37 -08:00
Gavin Corkery
02958c9aff Start SupplementalProcessManagerService
Calls the SupplementalProcessFrameworkInitializer to
register the supplemental process service. This service
is started from SystemServer.

Test: Manual. Check logcat to ensure service has started
Bug: 204989700
Change-Id: Iaafb45fcc0d0be2c15bb6a6206114d59fe4bbf17
2021-11-12 11:45:40 +00:00
Varun Shah
d364e6ad9c Merge "Run the service start user lifecycle phase in parallel." 2021-11-10 17:46:22 +00:00
Varun Shah
287afa1901 Run the service start user lifecycle phase in parallel.
Execute the on start user lifecycle phase in parallel.
Services will be a added to a new thread pool, and depending
on which category they are in, they will either be executed
right away (bootstrap and core categories), or run in parallel
along with other services in that category (other category).

This change will only apply for non-system users for now.
Additionally, low ram devices will have this change disabled.

Initial results show about 16% improvement in execution times.

Note: This CL does not enable the thread pool, a separate CL will
enable it.

Bug: 197257926
Test: atest UserLifecycleTests
Change-Id: I76ba673f78b69c7f0caac2d843fa77079e92138a
2021-11-08 16:26:52 -08:00
Roopa Sattiraju
b39c550a58 Merge "Change getEnabledComponentOverrides return type" am: 30cd5df67f am: 3374e0478a am: 27d3253e54 am: 802dd06c6b am: c11076edb3
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1853043

Change-Id: Icf59fba3efa0a665198066c1f813746a0489d1ea
2021-11-05 21:23:39 +00:00
Felipe Leme
e111dd61f6 Merge "Initial version of BootUserInitializer." 2021-11-05 19:30:08 +00:00
Roopa Sattiraju
c11076edb3 Merge "Change getEnabledComponentOverrides return type" am: 30cd5df67f am: 3374e0478a am: 27d3253e54 am: 802dd06c6b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1853043

Change-Id: I6f6c146f5ccf98c2d63b5d49e9478eac9922c697
2021-11-05 19:05:07 +00:00
Roopa Sattiraju
802dd06c6b Merge "Change getEnabledComponentOverrides return type" am: 30cd5df67f am: 3374e0478a am: 27d3253e54
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1853043

Change-Id: Icfb0808c72c573d51f4ca16c477bb7b903a9cb20
2021-11-05 18:29:07 +00:00
Felipe Leme
00c7470ba7 Initial version of BootUserInitializer.
Test: manual verification changing ro.fw.mu.headless_system_user locally
Bug: 204091126

Change-Id: I721c126f68a45b448015d6caea4c8eef55d6d6b1
2021-11-03 20:11:08 +00:00
shubang
4500e391b9 Add Context constant for TV IApp Service
Bug: 203730671
Test: mmm
Change-Id: I5785312a18de3110800e39158d31bcc5f06803ea
2021-10-29 17:33:22 +00:00
Maurice Lam
771c72a607 Create VirtualDeviceManager
CTS-Coverage-Bug: 194949534
Bug: 194949534
Test: ag/15781910
Change-Id: I06d245d91827390de99b9ff3e514af4294a11476
2021-10-26 20:41:00 -07:00
Keun-young Park
0cc800c66e Merge "add cancellation to background dexopt" 2021-10-18 18:51:00 +00:00
Lucas Silva
2bc99eb334 Add new system service which enforces SLS allowlist.
The new service will intercept all activity starts in communal mode and
enforce that the activity is allowed by ensuring the user has enabled
the package and the activity has showWhenLocked=true.

Test: locally on device
Test: atest FrameworksMockingServicesTests:CommunalManagerServiceTest
Bug: 191994709
Bug: 191996331
Bug: 200324021
Change-Id: I1892881481cf055bd4938d4cf0b624027ec2be3e
2021-10-15 19:15:46 +00:00
Keun young Park
f992cb3101 add cancellation to background dexopt
- Completely refactored BackgroundDexOptimizationService to make it work
  under PackageManagerService : BackgroundDexOptJobService is added for
  JobService.
- Merged all post boot update code with idle opt code.
- added dump through adb shell dumpsys package dexopt
- cancel background dexopt when idle job is stopped.

Bug: 179094324
Bug: 156537504

TODO: add unit test as separate CL

Test: run idle job, stop it repeatedly and check cancellation
  $ adb shell cmd jobscheduler run android [800|801]
  $ adb shell cmd jobscheduler timeout android
  $ adb shell cmd jobscheduler run android [800|801]
  $ adb shell pm bg-dexopt-job
ex) $ adb shell cmd jobscheduler run android 801; sleep 1; adb shell cmd jobscheduler timeout android
ex) adb shell pm bg-dexopt-job, in a separate termainal: adb shell pm cancel-bg-dexopt-job
  $ adb shell dumpsys package dexopt

Change-Id: Ifa706fe44b0be76d393608646ea9e98169ea8916
2021-10-14 11:33:20 -07:00
William Escande
a47b950bd1 Change getEnabledComponentOverrides return type
Use ComponentName type
Use module systemApi

Bug: 200698832
Tag: #refactor
Test: Build
Change-Id: I0b6057c0b03f40607eb0eb8a7556dea1d4a7d962
2021-10-11 14:27:22 +02:00
“Ankita
f2d3022e5d Add new LocaleManagerService and its shell commands
Ignore-AOSP-First: permission present in internal branch only

Test: tested manually via adb

Bug: 194094788
Bug: 194484378

Change-Id: I413a74fc1b15d164de7f2098e975e0b792685394
2021-10-06 05:25:43 +00:00
Felipe Leme
cb2a476752 Documented how to use system service dumper.
Test: m services
Bug: 163921395

Change-Id: I87cde223291b1a6a86ba66d391832d8eef95bfa9
2021-09-23 11:35:23 -07:00
Sudheer Shanka
2364d4fe4b Merge "Start blob store service synchronously." into sc-qpr1-dev am: d5cee06acc
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15728475

Change-Id: I4fe863e72f6f15c448f984ac1268462d51ef352b
2021-09-15 14:53:07 +00:00
Treehugger Robot
7d2e1c7615 Merge "New API for getting enabledcomponent" am: bca93eafe5 am: 4f564346de am: 8e6a6a255f am: 056102f43b am: 706ccfd5f9
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1818892

Change-Id: Iaab31bbee8b7a710613fcd44ffb4e6afda1dc258
2021-09-14 19:23:28 +00:00
Treehugger Robot
706ccfd5f9 Merge "New API for getting enabledcomponent" am: bca93eafe5 am: 4f564346de am: 8e6a6a255f am: 056102f43b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1818892

Change-Id: Ic6736ed6b558a24b5499b1f2aebe4c51355e6827
2021-09-14 19:04:43 +00:00
Treehugger Robot
4f564346de Merge "New API for getting enabledcomponent" am: bca93eafe5
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1818892

Change-Id: I46736aedc7df2d8e6926414adb9b48748386393d
2021-09-14 18:34:16 +00:00
wescande
29dbede144 New API for getting enabledcomponent
Bluetooth can no longer call SystemConfig and need to use the manager.

Bug: 190440540
Bug: 199279027
Test: Manual
Tag: #refactor
Change-Id: I065ab407c83cd2edf2244e4170496b0979ac562c
2021-09-14 16:11:19 +00:00
TreeHugger Robot
5eaf3c23e3 Merge "Re-enable Wear OS system services." 2021-09-03 16:38:38 +00:00
TreeHugger Robot
acc5059973 Merge "systemserver: start displayoffload service" 2021-09-03 16:37:12 +00:00
yzj
889523a262 Re-enable Wear OS system services.
Bug: 191495635
Test: manual test
Change-Id: Ie476940e213e488bf023fbc1509d24c6f3128302
2021-09-03 03:03:47 +00:00
Sudheer Shanka
cc1a23ae2d Merge "Start blob store service synchronously." into sc-v2-dev am: 6ef8d6193c am: 7fe1e687ca
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15717104

Change-Id: I0fc91f8360b3991f267de1944e44eb848476c5a8
2021-08-31 22:26:52 +00:00
Sudheer Shanka
1723e2fef9 Start blob store service synchronously.
Starting the service asynchronously is resulting in a
race condition when accessing a shared data structure.
We could add a lock to guard this data structure but
this is resulting in a slightly worse performance than
starting the service synchronously.

Bug: 194428627
Bug: 179687249
Test: treehugger verification
Change-Id: Ib4d610e8a221f94a3dcc8475371b4a05e5582149
Merged-In: Ib4d610e8a221f94a3dcc8475371b4a05e5582149
(cherry picked from commit 9df4ac6093)
2021-08-31 22:24:14 +00:00
Sudheer Shanka
7fe1e687ca Merge "Start blob store service synchronously." into sc-v2-dev am: 6ef8d6193c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15717104

Change-Id: I674044c4637537977836a8f849da45e659c53b18
2021-08-31 22:09:47 +00:00
Sudheer Shanka
9df4ac6093 Start blob store service synchronously.
Starting the service asynchronously is resulting in a
race condition when accessing a shared data structure.
We could add a lock to guard this data structure but
this is resulting in a slightly worse performance than
starting the service synchronously.

Bug: 194428627
Bug: 179687249
Test: treehugger verification
Change-Id: Ib4d610e8a221f94a3dcc8475371b4a05e5582149
2021-08-31 10:40:30 +00:00
Yifei Zhang
ff0f4b43bf systemserver: start displayoffload service
- Now based on config.enable_sidekick_graphics

Test: build pass, boot test
Bug: 179179780
Bug: 196075234
Change-Id: I032d2cc13f8911c19410f3f3faebef4566825eb9
(cherry picked from commit 511490ab8e7a6b334fab8f613e79f66ba819fc1c)
2021-08-10 21:18:44 +00:00