Commit Graph

1559 Commits

Author SHA1 Message Date
Frank Li
4217ed289c Merge "[DU01]Remove INetworkManagementService from NetworkStatsService" am: eb22eb4e42 am: baffbb01cd am: ea4cbbdda6 am: a3441d160c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1928459

Change-Id: I3e578a735ce6cde81137b03da278470647039d7d
2022-01-13 06:40:36 +00:00
Frank Li
a3441d160c Merge "[DU01]Remove INetworkManagementService from NetworkStatsService" am: eb22eb4e42 am: baffbb01cd am: ea4cbbdda6
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1928459

Change-Id: I6000e971dc1c2a186a7812ce1684e220d57dca5e
2022-01-13 06:25:34 +00:00
Yeabkal Wubshit
a29b761869 Init HealthService
Bug: 186868020
Test: service started successfully
Change-Id: I4f152db83ba39e3ff39d4a4706fcfa7c2ab9d89c
(cherry picked from commit 5f95bba46592adef642742dff2a22687d4cd2c88)
2022-01-12 02:20:55 +00:00
Josh Yang
a14bbf57aa Merge "SystemServer: add Telephony guards" 2022-01-11 21:28:09 +00:00
satayev
722533f283 Ignore requests to start an already started system service.
For apex-system-services, we allow them to be explicitly started in
SystemService if there is a dependency on them from the rest of the
framework during dessert development. We also need to preserve their
manifest declaration for any previously launched dessert releases.

To avoid starting the same service multiple times, keep track of which
services have been started in SystemServiceManager and ignore
duplicates.

See go/updatable-system-services#bookmark=id.dnv20ia7siqd for more
details.

Bug: 192880996
Test: presubmit
Change-Id: I0a9e48eac9fd5739e2c35818fa483a8e479c13a1
2022-01-10 16:02:44 +00:00
lifr
cf023845cd [DU01]Remove INetworkManagementService from NetworkStatsService
NetworkStatsService is using INetworkManagementService APIs, which
cannot be accessed after moving into the mainline module. So, replace
and remove those hidden API usages.

Bug: 209738761
Test: atest NetworkStatsServiceTest
Change-Id: I5740f6d8a54e9a06c6dbb93203cb4c954383c3c8
2022-01-08 01:27:35 +08:00
satayev
3350e9f76f Disallow starting new system services after apex services are started.
Apex services must be the last category of services to start. No other
service must be starting after this point. This is to prevent
unnecessary stability issues when these apexes are updated outside of
OTA; and to avoid breaking dependencies from system into apexes.

Bug: 192880996
Test: presubmit
Change-Id: I42a5a1745c7fc0784fa2fef554c3d6439fd4c7fb
2022-01-07 17:23:41 +00:00
Paul Hu
4090f0daba Merge "Split out the nsd API surface and use framework-connectivity-tiramisu" 2021-12-24 03:06:53 +00:00
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
paulhu
f45fe96a54 Split out the nsd API surface and use framework-connectivity-tiramisu
- Split out nsd APIs and hidden APIs to Connectivity module.
- Keep the all files in f/b/packages/Connectivity-T and add
  framework-connectivity-tiramisu library on p/m/Connectivity.
  Then make framework to use this module library.
- Remove NsdService from SystemServer which will register from
  ConnectivityServiceInitializer

Bug: 206893064
Test: m online-sdk-dev-docs
Test: atest FrameworksNetTests CtsNetTestCases
CTS-Coverage-Bug: 207804007
Change-Id: I72c7de124b9cc53f2263bd452ecd5f39e88e485b
2021-12-15 02:10:38 +00: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
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
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
Felipe Leme
e111dd61f6 Merge "Initial version of BootUserInitializer." 2021-11-05 19:30:08 +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
“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
Julius D'souza
759a6d44db SystemServer: add Telephony guards
* Add FEATURE_TELEPHONY checks for telephony services
* Add FEATURE_MICROPHONE check for TelecomLoaderService

Bug: 132729373

Change-Id: Idcafc61ec951b6fcb9a626f08d4837d7af26ff01
Signed-off-by: Julius D'souza <jdsouza@google.com>
(cherry picked from commit 2dc233a07dce898ae5706ea4940936d0fc990fef)
2021-09-30 00:02:46 +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
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