summaryrefslogtreecommitdiff
path: root/services/java/com/android/server/SystemServer.java
AgeCommit message (Collapse)Author
2022-03-15Merge SP2A.220305.013Haamed Gheibi
Bug: 220074017 Change-Id: Idfdd94e902f656ac65a2a75dfdd199f6f85ba472
2021-12-22Merge s-mpr-2021-12-05Eric Arseneau
Change-Id: Ic2889f5eb531008340529eadc36ec8efc62b1984
2021-08-31Start blob store service synchronously.Sudheer Shanka
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)
2021-07-23Merge SP1A.210715.002Scott Lobdell
Change-Id: I65e2b7db097927b87c9c4023015c754033c62086
2021-07-09Add System.runFinalization() callHans Boehm
Lone calls to System.gc() generally don't do anything. Runtime.getRuntime().gc() would force a GC, but it would be ineffective without waiting for reference processing and finalization to complete. Adding the runFinalization() call implicitly makes the preceding GC call effective. Bug: 183912710 Test: Treehugger Change-Id: I0f4806b8e3f9ca898eb7ea1b1c8de14aa94e2646 Merged-In: I0f4806b8e3f9ca898eb7ea1b1c8de14aa94e2646
2021-06-17Merge SP1A.210604.001Brian Orr
Change-Id: I5200ee05285ae422d5e9c1c00f45709a5d6188be
2021-05-24Merge "RESTRICT AUTOMERGE: Revert "Register ART Service with the System ↵Christian Wailes
Server"" into sc-dev
2021-05-19fdtrack: add stats logging.Josh Gao
Bug: http://b/183008833 Bug: http://b/183018597 Test: adb shell 'setprop persist.sys.debug.fdtrack_interval 10; stop; start' && statsd_testdrive 352 Change-Id: Ibc2293f8f1c7f0f29a166ac8dc93afc8dfd8b7de Merged-In: Ibc2293f8f1c7f0f29a166ac8dc93afc8dfd8b7de (cherry picked from commit 53731ea9ab0c131fb51e891946a17895571973d1)
2021-05-19RESTRICT AUTOMERGE: Revert "Register ART Service with the System Server"Chris Wailes
This reverts commit 09724a755f477301128b5d817757cbc0d5ff2538. Test: m Bug: 184281926 Change-Id: I6aa8eff8ab09ef8ebab58bb22f65203cb4349a48
2021-05-14Merge "Clear updated font files in safe mode." into sc-devTreeHugger Robot
2021-05-13Merge SP1A.210510.001Brian Orr
Change-Id: Ia86f3e18206beabe334e3081cedbaf5b3274f78e
2021-05-09Clear updated font files in safe mode.Kohsuke Yatoh
Bug: 176939176 Bug: 181536798 Bug: 187190639 Test: atest FrameworksServicesTests:UpdatableFontDirTest Test: atest UpdatableSystemFontTest Test: manually triggered safe mode and confirmed updated fonts are removed. Change-Id: I946a7df383a27bbfda2931a916ca28d8ee14feb6
2021-05-04Create Java interface to SensorService.Michael Wright
This is in preparation for adding some system_server-only, non-binder APIs, which mean we need to keep a handle to the actual class and not just the binder interface. Bug: 175793106 Test: boots, sensors work Change-Id: I83dcaee53ac52e95aa238a8fa9b875caeeddc725
2021-04-29Merge SP1A.210425.001Scott Lobdell
Change-Id: I8d45e47c131320cac5e794fd629fdef84dd3bcfc
2021-04-26Consolidate registration of HIDL and AIDL HALsIlya Matyukhin
This CL establishes a single flow of registration for both HIDL and AIDL HALs. The registration of both is done on a separate thread to avoid blocking system server. Previously, only AIDL registration was done on a separate thread. Bug: 184677066 Test: atest CtsBiometricsTestCases Test: atest AuthServiceTest Test: atest Fingerprint21Test Test: atest Face10Test Change-Id: I4442db15a7b690bb34c6eb7e8793ab4411cbd6d2
2021-04-23Merge SP1A.210412.001Scott Lobdell
Change-Id: I0e1c2f5679d5f721cd605b7da785959763311698
2021-04-20Merge "Remove the signature protection for sensor privacy permissions" into ↵Evan Severson
sc-dev
2021-04-14Remove the signature protection for sensor privacy permissionsEvan Severson
Only a couple distinguished packages will need to hold these permissions. We can grant via role for these cases. Previously system ui was started assuming the system server was initialized enough but the problem was that the role service may not have finished granting all permissions. If we start sys ui after system services have finished onUserStarting then we can _probably_ safely assume the state of user 0 is initiallized. Test: Wipe & reboot; dumpsys package com.android.systemui Test: atest SystemUiTests Bug: 184303952 Change-Id: I160ac8e0f2fbc36a76e8f2ee99d73e613ddc3c11
2021-04-13Uwb: Create a new Uwb system serviceRoshan Pius
This thin AOSP service layer will trampoline all API calls to the vendor UWB service. In follow up CL's, i. The AOSP service will perform all the permission checks necessary for this API surface before forwarding the call to the vendor UWB service. ii. Similarly, it will perform necessary permission checks + noteOp before forwarding the ranging callbacks from the vendor service back to the apps. Bug: 183904955 Test: atest android.uwb.cts.UwbManagerTest Test: atest com.android.server.uwb Change-Id: I2b367d1b6accc2f4e075cacb5c8e3c51f1faf5db
2021-04-12Remove translation service feature.Joanne Chung
Currently, the Translation uses feature to determine if we need to start the translation system service. But our case is like the content capture not the autofill, the autofill can have the feature without any service defined and the user can install one later. But translation isn't, we should need to check config instead of feature. The feature will not be used anymore, it's safe to delete it. If we leave the removal to next OS, it is painful to delete it. Bug: 183360041 Test: atest CtsTranslationTestCases Change-Id: Ib6886a17965937abf064e526c36c67428af7398f
2021-04-10ADPF: Add HintManagerServiceJimmy Shiu
Test: Manual test, run bouncy ball Test: atest HintManagerServiceTest Test: adb shell dumpsys hint Bug: 158791282 Change-Id: I50b19ab7629f006decbcddd653fb67588fc4160b Signed-off-by: Wei Wang <wvw@google.com>
2021-04-09Merge SP1A.210407.002Scott Lobdell
Change-Id: Iaad2b7cc2aeba166f003d0d460bc8ce29d1caab3
2021-04-08Merge "Stats: updated the order of service registration" into sc-devVova Sharaienko
2021-04-08Merge "Activity recognition source app op tracking" into sc-devSvetoslav Ganov
2021-04-07Stats: updated the order of service registrationVova Sharaienko
Stats need to be registered prior sensors service start Bug: 183916090 Test: build, flash & boot Change-Id: I4d6eb1adbb0d57e42489ec85829b777e8a27069c
2021-04-07Add memtrackproxy system server serviceKalesh Singh
Serve memtrackproxy service from system server. This service enforces access control on requests for memory usage stats to the memtrack HAL based on the call context's PID and UID. Bug: 177664629 Test: memtrackproxy_test Change-Id: I10829ffcf4e5b2813d4c622268b0b59da6f171b6
2021-04-06Activity recognition source app op trackingSvet Ganov
The activity recognition source may access activity recognition in its operation as being the activity recognition source. Accesses from an AR source (for special tags it designates - the APK may contain other components) for location and AR are tracked in a dedicated app op. bug: 182204957 Test: atest CtsActivityRecognitionTestCases Change-Id: If29fba1c51d70a2806a0907a73a96d3d8d7a3100
2021-04-02Merge SP1A.210329.001Scott Lobdell
Change-Id: I1e21c5890b5b2e2f2855f09960bc8eec8aa922bf
2021-03-31Register ART Service with the System ServerChris Wailes
This CL causes the System Server to create and load the ART Local Manager. Test: Build and flash Bug: 177273468 Merged-In: I9734160f1cd4fd9fc363b3af50e27ec8973be557 Change-Id: I9734160f1cd4fd9fc363b3af50e27ec8973be557
2021-03-24Merge SP1A.210311.001Scott Lobdell
Change-Id: Id1a205bf3f0609c0b13e4bea377056c3b06299fa
2021-03-17Support PersistentDataBlockService in DSU am: 649c198cf3 am: 0680e94757 am: ↵Howard Chen
2d73582c9b Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1549485 Change-Id: Id11dfb6ad38e81977f4047edd289d575de9ecd3a
2021-03-17Merge "Use `ro.boot.qemu` to check if the device is an emulator" am: ↵Treehugger Robot
62d82e0b33 am: 4ba8fde9ba am: de535f6eb2 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1625662 Change-Id: Ia613c23fb779697882f9928b15684fb1ff97e9cd
2021-03-17Support PersistentDataBlockService in DSU am: 649c198cf3Howard Chen
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1549485 Change-Id: I29806aed4a2a9497237811b5b9b5b9ecb9b6cec8
2021-03-16Merge "Use `ro.boot.qemu` to check if the device is an emulator"Treehugger Robot
2021-03-15Merge changes from topic "pacproxy-service" am: 16f50075b1 am: 688ae36dcb ↵Aaron Huang
am: ce43593e5e Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1553959 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: If6d34753e8bf9201e16121b8f3c6c83aa6358986
2021-03-15Make PacProxyService be a system serviceAaron Huang
PacProxyInstaller class is running a thread all the time and is listening to intent ACTION_PAC_REFRESH so it would be better to make it be a system service with a manager class PacProxyManager which is obtained with getSystemService(PacProxyManager.class). Besides, rename PacProxyInstaller to PacProxyService will be easier to know it's the service for PacProxyManager. ConnectivityService is going to be a mainline module and it needs constructor of PacProxyService to be SystemApi. However, in current design, it needs to pass a handler and an int arguments to the constructor which would be difficult to maintain if just expose the constructor directly. So, define a listener for the event that the current PAC proxy has been installed so that the handler and the int arguments can be removed from the constructor. Bug: 177035719 Test: FrameworksNetTests Change-Id: I2abff75ec59a17628ef006aad348c53fadbed076
2021-03-10Use `ro.boot.qemu` to check if the device is an emulatorRoman Kiryanov
`ro.kernel.qemu` is deprecated. Bug: 182291166 Test: presubmit Signed-off-by: Roman Kiryanov <rkir@google.com> Change-Id: Id42d79af90b1fe7e182a96c53c84248e81a7c259
2021-03-10Support PersistentDataBlockService in DSUHoward Chen
Currently the PersistentDataBlockService does not start when running a Dynamic System Update. This CL adds a sandbox-mode PersistentDataBlockService when running a DSU for the test_harness environment. Bug: 175852148 Bug: 175078763 Test: gsi_tool install & \ finish the vts_kernel_net_tests w/o suspension Test: gts-tradefed run gts -m GtsOemLockServiceTestCases -t com.google.android.oemlock.gts.OemLockServiceTest Test: cts-tradefed run cts -m CtsPermission2TestCases -t android.permission2.cts.PrivappPermissionsTest Test: atest com.android.server.devicepolicy.DevicePolicyManagerTest Test: atest com.android.server.devicepolicy.FactoryResetProtectionPolicyTest Test: atest com.android.cts.devicepolicy.MixedDeviceOwnerTest#testFactoryResetProtectionPolicy Test: atest com.android.cts.devicepolicy.OrgOwnedProfileOwnerTest#testFactoryResetProtectionPolicy Test: atest LockSettingsStorageTests Test: atest frameworks/base/core/tests/coretests/src/com/android/internal/widget/LockPatternUtilsTest.java Test: atest frameworks/base/services/tests/servicestests/src/com/android/server/LockSettingsStorageTests.java Test: atest frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/SyntheticPasswordTests.java Change-Id: I0547d757cf023443d9a00bec962db3f2aad3ff04
2021-03-06Merge changes I6512d3f7,I99bca71c am: eccbfe4b72 am: 26d42f094a am: 50a13c982fJunyu Lai
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1614984 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I57c4dffd22338d850beaff7b2575204ee2a42cd9
2021-03-06[FUI25] Migrate NetworkPolicyManagerService to use ConnectivityManagerjunyulai
Test: atest NetworkPolicyManagerServiceTest Bug: 174123988 Change-Id: I6512d3f704f35f2cc3555dcc40b46c7294d3b455
2021-03-01Merge SP1A.210222.001Scott Lobdell
Change-Id: If3509f3a660e820f4c8c0b29e007faa868e1f089
2021-02-24Location provider app ops remappingSvet Ganov
The platform has the concept of a location provider which could be a plugin implemented by another package. The implementation of a location provider plugin can make calls to APIs that require a location permission, e.g. fusing data from different sources. However, such accesses are counted in app ops as a location access but the accessor is in this case the data source. It is also possible that the package that provides the implementation of a location provider also hosts other funcionality which may need to call APIs that require a location permission. This change allows a location provider to specify app op attribution tags which which could be used when calling location to singal to the OS that the access is for the location providing functionality of the location provider. For location accesses of the provider package that are not related to providing location to the OS the provider can use any other non delcared as location attribution tags. Accesses with the location attribution tags would be counted in app ops but instead of towards the OP_COARSE_LOCATION/OP_FINE_LOCATION the would be counted towards dedicated OP_COARSE_LOCATION_PROVIDER/ OP_FINE_LOCATION_PROVIDER ops. This would allow proper classification while enabling auditability and tracking via the standard app op APIs. <meta-data android:name="android:location_allow_listed_tags" android:value="foo;bar;baz"/> Test: atest android.location.cts.fine.LocationManagerFineTest#testLocationAttributionTagBlaming Bug:179062648 Change-Id: I36739ab42cedc94e1aa7a3bfd3b9aa213f5b3e97
2021-02-24Merge "Always start speech recognition service." into sc-devSergey Volnov
2021-02-24Merge "Support dynamic feature flag config" am: 201737c781 am: b9f0ad138b ↵Kevin Han
am: ac520aad0d Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1587774 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: Ib612a893e68e50d1abdfd5c788fb46459e329c2d
2021-02-23Merge changes I852e3a53,I86755647,I0ed8b0c6 am: 654b0fff63 am: d319fef084 ↵Lucas Lin
am: 07d4708ab7 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1553736 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I032e3d8f16b164f067dba02bde950b93f4e54b83
2021-02-23Always start speech recognition service.Sergey Volnov
Since we've decided to direct all traffic through system server, it now needs to be started all the time. Test: atest Bug: 180951739 Change-Id: I9f1639d13d5d2c00f8cd2a6dae2abe8c44e6c31b
2021-02-23Merge "Support dynamic feature flag config"Kevin Han
2021-02-22Merge changes I852e3a53,I86755647,I0ed8b0c6Lucas Lin
* changes: Remove unused INetworkManagementService from IpSecService Use NetdUtils instead of NetworkManagementService in Vpn Use NetdUtils instead of NetworkManagementService in IpSecService
2021-02-18Add a system TextToSpeech implementation that initiates the connection ↵Alex Agranovich
through the system server. This change includes the new System Service that allows the supervised binding to the TextToSpeech service provider. It proxies the binding process from the client instead of the direct client -> texttospeech connection. Bug: 178112052 Test: atest CtsSpeechTestCases Test: forest apct/device_boot_health_check Change-Id: I0709e71460fa01ab025c92753a20bce38f562845
2021-02-18Merge "Revert "Add a system TextToSpeech implementation that initiates ..."" ↵Greg Kaiser
into sc-dev