summaryrefslogtreecommitdiff
path: root/services/java/com/android
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | | | Ignore requests to start an already started system service.satayev2022-01-101-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | | | Disallow starting new system services after apex services are started.satayev2022-01-071-6/+8
| |_|_|_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | | Merge "Split out the nsd API surface and use framework-connectivity-tiramisu"Paul Hu2021-12-241-11/+0
|\ \ \ \ \ \ | |_|_|_|_|/ |/| | | | |
| * | | | | Split out the nsd API surface and use framework-connectivity-tiramisupaulhu2021-12-151-11/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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
* | | | | | Start apex-system-services in SystemServer.satayev2021-12-161-0/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | See go/updatable-system-services for more details. Bug: 192880996 Test: presubmit Change-Id: I00745c2e7b34ec8ed5df12914bfa40ff3187c33b
* | | | | | Initial layout of selection toolbar.Joanne Chung2021-12-161-0/+7
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | Create the system service for AVF & hook the manager to it.Dave McCloskey2021-11-291-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 201696614 Change-Id: I4a7a830ba809ed59a030a87c4f479199685d8a42 Test: atest AttestationVerificationTest
* | | | | Adding SafetyCenter system service and permission.Elliot Sisteron2021-11-231-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | Merge "Add Isolated Compilation service" am: e53d334d7f am: 1fa4b81f7f am: ↵Alan Stokes2021-11-221-0/+8
|\ \ \ \ \ | | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | dee9164c6f am: 94303f51cd Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1892635 Change-Id: I91ebddfb4fd435f78d8d429f8b49468bd24c5ccb
| * | | | Merge "Add Isolated Compilation service" am: e53d334d7f am: 1fa4b81f7f am: ↵Alan Stokes2021-11-221-0/+8
| |\ \ \ \ | | | |/ / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | dee9164c6f Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1892635 Change-Id: Ida1a1bf276139accde99522e408b5d19ae884d30
| | * | | Merge "Add Isolated Compilation service" am: e53d334d7fAlan Stokes2021-11-221-0/+8
| | |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1892635 Change-Id: I8172f13d2bd6a1dde33c26400989126bd69a5285
| | | * \ \ Merge "Add Isolated Compilation service"Alan Stokes2021-11-221-0/+8
| | | |\ \ \
| | | | * | | Add Isolated Compilation serviceAlan Stokes2021-11-171-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | | | Merge "Create StatsBootstrapAtomService" am: e9f913aee8 am: c2566e6582 am: ↵Treehugger Robot2021-11-191-0/+7
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | c74d9d6911 am: c9c355889c Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1885469 Change-Id: I30eeb8206bca1d8d298977a80bcd35c554e98fe5
| * | | | | | Merge "Create StatsBootstrapAtomService" am: e9f913aee8 am: c2566e6582 am: ↵Treehugger Robot2021-11-191-0/+7
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | c74d9d6911 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1885469 Change-Id: Ia2fa8a3d576b41a0b55cbdd6dc29a3d3126e9cfa
| | * | | | | Merge "Create StatsBootstrapAtomService" am: e9f913aee8Treehugger Robot2021-11-181-0/+7
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1885469 Change-Id: I9fe270fa5bffb2edd912ba59fbc6c002497e76b4
| | | * | | | Merge "Create StatsBootstrapAtomService"Treehugger Robot2021-11-181-0/+7
| | | |\ \ \ \ | | | | |/ / / | | | |/| | |
| | | | * | | Create StatsBootstrapAtomServiceTej Singh2021-11-181-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| | * | | | | Merge sc-qpr1-dev-plus-aosp-without-vendor@7810918Xin Li2021-11-181-10/+3
| | |\ \ \ \ \ | | | |/ / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | Bug: 205056467 Merged-In: I13199bc39e9445929195f3d15579cbffe94e92b0 Change-Id: I35fa3c6c2abf679c51033f1395a08d511ed8739f
* | | | | | | Merge "Start SupplementalProcessManagerService"Gavin Corkery2021-11-181-0/+11
|\ \ \ \ \ \ \
| * | | | | | | Start SupplementalProcessManagerServiceGavin Corkery2021-11-121-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | | | | Merge "enable MediaProjection Service"Josh Yang2021-11-171-5/+3
|\ \ \ \ \ \ \ \
| * | | | | | | | enable MediaProjection ServiceAbhijit Nukalapati2021-11-161-5/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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)
* | | | | | | | | Merge "SystemServer: add isWatch guard for Twilight & WiredAccessory"TreeHugger Robot2021-11-171-12/+16
|\ \ \ \ \ \ \ \ \ | |/ / / / / / / / |/| | | | | | | |
| * | | | | | | | SystemServer: add isWatch guard for Twilight & WiredAccessoryJulius D'souza2021-11-161-12/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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)
* | | | | | | | | Add new APIs to android.os.ProcessMakoto Onuki2021-11-151-1/+2
|/ / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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
* | | | | | | | Merge "Run the service start user lifecycle phase in parallel."Varun Shah2021-11-101-0/+1
|\ \ \ \ \ \ \ \ | |/ / / / / / / |/| | | | | | |
| * | | | | | | Run the service start user lifecycle phase in parallel.Varun Shah2021-11-081-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | | | | Merge "Change getEnabledComponentOverrides return type" am: 30cd5df67f am: ↵Roopa Sattiraju2021-11-051-3/+4
|\ \ \ \ \ \ \ \ | | |/ / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3374e0478a am: 27d3253e54 am: 802dd06c6b am: c11076edb3 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1853043 Change-Id: Icf59fba3efa0a665198066c1f813746a0489d1ea
| * | | | | | | Merge "Change getEnabledComponentOverrides return type" am: 30cd5df67f am: ↵Roopa Sattiraju2021-11-051-3/+4
| |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3374e0478a am: 27d3253e54 am: 802dd06c6b Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1853043 Change-Id: I6f6c146f5ccf98c2d63b5d49e9478eac9922c697
| | * \ \ \ \ \ \ Merge "Change getEnabledComponentOverrides return type" am: 30cd5df67f am: ↵Roopa Sattiraju2021-11-051-3/+4
| | |\ \ \ \ \ \ \ | | | | |/ / / / / | | | |/| / / / / | | | |_|/ / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3374e0478a am: 27d3253e54 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1853043 Change-Id: Icfb0808c72c573d51f4ca16c477bb7b903a9cb20
| | | * | | | | Change getEnabledComponentOverrides return typeWilliam Escande2021-10-111-3/+4
| | | | |/ / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use ComponentName type Use module systemApi Bug: 200698832 Tag: #refactor Test: Build Change-Id: I0b6057c0b03f40607eb0eb8a7556dea1d4a7d962
| | * | | | | Merge "Start blob store service synchronously." into sc-qpr1-dev am: d5cee06accSudheer Shanka2021-09-151-10/+3
| | |\ \ \ \ \ | | | |/ / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15728475 Change-Id: I4fe863e72f6f15c448f984ac1268462d51ef352b
| | | * | | | Start blob store service synchronously.Sudheer Shanka2021-08-311-10/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 9df4ac60939841472e9e29261c55be4dd2030f9a)
* | | | | | | Merge "Initial version of BootUserInitializer."Felipe Leme2021-11-052-1/+172
|\ \ \ \ \ \ \
| * | | | | | | Initial version of BootUserInitializer.Felipe Leme2021-11-032-1/+172
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: manual verification changing ro.fw.mu.headless_system_user locally Bug: 204091126 Change-Id: I721c126f68a45b448015d6caea4c8eef55d6d6b1
* | | | | | | | Add Context constant for TV IApp Serviceshubang2021-10-291-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 203730671 Test: mmm Change-Id: I5785312a18de3110800e39158d31bcc5f06803ea
* | | | | | | | Create VirtualDeviceManagerMaurice Lam2021-10-261-0/+7
|/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | CTS-Coverage-Bug: 194949534 Bug: 194949534 Test: ag/15781910 Change-Id: I06d245d91827390de99b9ff3e514af4294a11476
* | | | | | | Merge "add cancellation to background dexopt"Keun-young Park2021-10-181-10/+0
|\ \ \ \ \ \ \
| * | | | | | | add cancellation to background dexoptKeun young Park2021-10-141-10/+0
| | |_|_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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
* / | | | | | Add new system service which enforces SLS allowlist.Lucas Silva2021-10-151-0/+7
|/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | / / Add new LocaleManagerService and its shell commands“Ankita2021-10-061-0/+10
| |_|_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ignore-AOSP-First: permission present in internal branch only Test: tested manually via adb Bug: 194094788 Bug: 194484378 Change-Id: I413a74fc1b15d164de7f2098e975e0b792685394
* | | | | Documented how to use system service dumper.Felipe Leme2021-09-231-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: m services Bug: 163921395 Change-Id: I87cde223291b1a6a86ba66d391832d8eef95bfa9
* | | | | Merge "New API for getting enabledcomponent" am: bca93eafe5 am: 4f564346de ↵Treehugger Robot2021-09-141-0/+16
|\| | | | | |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | am: 8e6a6a255f am: 056102f43b am: 706ccfd5f9 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1818892 Change-Id: Iaab31bbee8b7a710613fcd44ffb4e6afda1dc258
| * | | Merge "New API for getting enabledcomponent" am: bca93eafe5 am: 4f564346de ↵Treehugger Robot2021-09-141-0/+16
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8e6a6a255f am: 056102f43b Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1818892 Change-Id: Ic6736ed6b558a24b5499b1f2aebe4c51355e6827
| | * | Merge "New API for getting enabledcomponent" am: bca93eafe5Treehugger Robot2021-09-141-0/+16
| | |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1818892 Change-Id: I46736aedc7df2d8e6926414adb9b48748386393d
| | | * | New API for getting enabledcomponentwescande2021-09-141-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bluetooth can no longer call SystemConfig and need to use the manager. Bug: 190440540 Bug: 199279027 Test: Manual Tag: #refactor Change-Id: I065ab407c83cd2edf2244e4170496b0979ac562c
* | | | | Merge "Re-enable Wear OS system services."TreeHugger Robot2021-09-031-6/+0
|\ \ \ \ \
| * | | | | Re-enable Wear OS system services.yzj2021-09-031-6/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 191495635 Test: manual test Change-Id: Ie476940e213e488bf023fbc1509d24c6f3128302
* | | | | | Merge "systemserver: start displayoffload service"TreeHugger Robot2021-09-031-0/+9
|\ \ \ \ \ \