Commit Graph

1548 Commits

Author SHA1 Message Date
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
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
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
Roshan Pius
c463a36ace UwbService: Move to packages/modules/Uwb
Also, load the uwb system service jar from uwb apex.

Bug: 194906542
Test: Compiles
Change-Id: Iffc8988c56ba3199c5159563b06120a84a0632dd
2021-08-10 11:35:09 -07:00
Kweku Adams
ca06c65494 Merge "Initialize the IRS as a SystemService." 2021-08-03 15:46:40 +00:00
Gaurav Bhola
b031cc36df Merge "Add a new boolean resource to reset the AirPlane mode after during boot." into sc-v2-dev am: f89a8fdefc am: cf1a9bb8e3
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15401462

Change-Id: Ie9b7bb058f60056811df84ef77c0eb85359ad935
2021-07-30 19:01:48 +00:00
Gaurav Bhola
cf1a9bb8e3 Merge "Add a new boolean resource to reset the AirPlane mode after during boot." into sc-v2-dev am: f89a8fdefc
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15401462

Change-Id: Ic23eddad3f5bf76802407e23bb842bf96c0b9a02
2021-07-30 18:47:31 +00:00
Gaurav Bhola
f8faf50234 Add a new boolean resource to reset the AirPlane mode after during boot.
- This resource is added specifically to be used for automotive devices where if the device exits from safemode and boots into normal mode, the airplane mode remains enabled. And there is no UI on automotive devices to disable the Airplane mode.
- The value will be overlayed to true for automotive devices.

Bug: 182523956
Test: Override the config and check if airplane mode is disabled in the normal mode.
Change-Id: I829ed8b5aa436a7bc3b75e6308ff507035150586
Merged-In: I829ed8b5aa436a7bc3b75e6308ff507035150586
2021-07-29 18:14:15 +00:00
Kweku Adams
9fd988ff0a Initialize the IRS as a SystemService.
Bug: 158300259
Test: Flash device and check logcat for IRS startup
Change-Id: Icf0bfc5a09b9d430f64660a8aacd27be5ce50775
2021-07-21 14:30:06 -07:00
Josh Yang
1ae18bb716 Merge "Temporarily disable wearable system services." 2021-07-20 19:17:45 +00:00
Josh Yang
8e0bf818e5 Temporarily disable wearable system services.
Wearable system service code has been disabled due to compile issues. We
need to temporarily disable these services in system server to unblock
system bring up.

Bug: 191419780
Bug: 191493915
Fix: 191493915
Fix: 191419780

Test: class not found error is gone.
Change-Id: I177f04ff1ff5b43c242367d9741e829550ed8e36
2021-07-20 17:11:19 +00:00
Tom Natan
36e7b7f51e Merge "Add service for applying per-app compat overrides delivered via Device Config." into sc-v2-dev am: b51de11ce9 am: 1ce29c2bcc
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15143496

Change-Id: I7d92ce277c05c642cf6c76930a3867df184a3e47
2021-07-12 20:34:28 +00:00
Tom Natan
1ce29c2bcc Merge "Add service for applying per-app compat overrides delivered via Device Config." into sc-v2-dev am: b51de11ce9
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15143496

Change-Id: I38795ff17ea2fc5747aec5fbefccb6cbf8e3d315
2021-07-12 20:20:03 +00:00
Hans Boehm
982ee31641 Merge "Add System.runFinalization() call" into sc-dev am: 84209e128d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15245491

Change-Id: Ib8553e733744f7bfe5aaa750fb5e4947d9d25b52
2021-07-09 23:08:01 +00:00