summaryrefslogtreecommitdiff
path: root/services/java/com/android/server/SystemServer.java
Commit message (Collapse)AuthorAgeFilesLines
...
| | | * | Add System.runFinalization() callHans Boehm2021-07-091-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| | | * | Merge "RESTRICT AUTOMERGE: Revert "Register ART Service with the System ↵Christian Wailes2021-05-241-5/+0
| | | |\ \ | | | | | | | | | | | | | | | | | | Server"" into sc-dev
| | | | * | RESTRICT AUTOMERGE: Revert "Register ART Service with the System Server"Chris Wailes2021-05-191-5/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 09724a755f477301128b5d817757cbc0d5ff2538. Test: m Bug: 184281926 Change-Id: I6aa8eff8ab09ef8ebab58bb22f65203cb4349a48
* | | | | | Merge "Temporarily disable wearable system services."Josh Yang2021-07-201-1/+7
|\ \ \ \ \ \
| * | | | | | Temporarily disable wearable system services.Josh Yang2021-07-201-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | | | Merge "Add service for applying per-app compat overrides delivered via ↵Tom Natan2021-07-121-0/+6
|\ \ \ \ \ \ \ | | |/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * | | | | | Merge "Add service for applying per-app compat overrides delivered via ↵Tom Natan2021-07-121-0/+6
| |\ \ \ \ \ \ | | | |/ / / / | | |/| | | / | | |_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | Device Config." into sc-v2-dev am: b51de11ce9 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15143496 Change-Id: I38795ff17ea2fc5747aec5fbefccb6cbf8e3d315
| | * | | | Add service for applying per-app compat overrides delivered via Device Config.tomnatan2021-07-071-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This CL only adds the listener on device config changes, package added/changed/removed support will be added in a follow up. Bug: 190024878 Test: atest FrameworksMockingServicesTests:AppCompatOverridesServiceTest Test: atest FrameworksMockingServicesTests:AppCompatOverridesParserTest Change-Id: Ifda798abca5ed97cd4699dfd1244053ab2796586
| | * | | | RESTRICT AUTOMERGE: Revert "Register ART Service with the System Server"Chris Wailes2021-05-261-5/+0
| | | |/ / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 09724a755f477301128b5d817757cbc0d5ff2538. Test: m Bug: 184281926 Merged-In: I6aa8eff8ab09ef8ebab58bb22f65203cb4349a48 Change-Id: I6aa8eff8ab09ef8ebab58bb22f65203cb4349a48
* | | | | Merge "Add System.runFinalization() call" am: 8df5d94b98 am: 7358684565 am: ↵Hans Boehm2021-07-091-0/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 0ad0828a9b am: 57fa4cc366 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1760810 Change-Id: I8c5119f0353447471ef43fc3a6dbe1217e0449fe
| * | | | Merge "Add System.runFinalization() call" am: 8df5d94b98 am: 7358684565Hans Boehm2021-07-091-0/+1
| |\ \ \ \ | | |/ / / | |/| | | | | | | | | | | | | | | | | | Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1760810 Change-Id: I96f6ce06333ae3527d5b43fcdb7e31edd434fd47
| | * | | Add System.runFinalization() callHans Boehm2021-07-091-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| | * | | Merge "Add memtrackproxy system server service"Kalesh Singh2021-04-071-0/+11
| | |\ \ \
| | | * | | Add memtrackproxy system server serviceKalesh Singh2021-04-071-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 Merged-In: I10829ffcf4e5b2813d4c622268b0b59da6f171b6
| | * | | | Register ART Service with the System ServerChris Wailes2021-03-301-0/+5
| | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| | * | | Merge changes from topic "cow_pdb"Howard Chen2021-03-171-4/+1
| | |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * changes: Support copy-on-write persistent data block when running a DSU Support PersistentDataBlockService in DSU
| * | | | | fdtrack: add stats logging.Josh Gao2021-05-191-0/+20
| | |_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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)
* | | | | Remove multi-client IMEWilson Wu2021-06-161-8/+1
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Design doc: go/multi-session-ime-removal We no longer require this mechanism to support multi-clients IME, remove it completely. Bug: 173341412 Test: atest CtsInputMethodTestCases Change-Id: I0bdc8fe3d32ccabc8ea7996fc689543c3f99331a
* | | | Merge "Clear updated font files in safe mode." into sc-dev am: 7c4e5a69b0TreeHugger Robot2021-05-141-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13743173 Change-Id: I15c7b2a3bfae8165a75eb76dc9614c09aced035e
| * | | Merge "Clear updated font files in safe mode." into sc-devTreeHugger Robot2021-05-141-1/+1
| |\ \ \
| | * | | Clear updated font files in safe mode.Kohsuke Yatoh2021-05-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | Merge "Create Java interface to SensorService." into sc-dev am: f9e526df48Michael Wright2021-05-061-18/+7
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14426684 Change-Id: Iceef6d9c449ba1e95b1812792c74fe1aafb4a022
| * | | | Create Java interface to SensorService.Michael Wright2021-05-041-18/+7
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | Merge changes I165d67bd,I4442db15 into sc-dev am: bbddf477afIlya Matyukhin2021-04-271-11/+0
|\| | | | | | | | | | | | | | | | | | | | | | | Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14208890 Change-Id: Iba0f79e7fda737c8adbe25d61cd7dfbc9ee0948a
| * | | Consolidate registration of HIDL and AIDL HALsIlya Matyukhin2021-04-261-11/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | Merge "Remove the signature protection for sensor privacy permissions" into ↵Evan Severson2021-04-201-7/+8
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | sc-dev am: f55d0c0d27 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14070065 Change-Id: Id73b7f767ed88f31455e87df69c819cbdb9309bb
| * | | Merge "Remove the signature protection for sensor privacy permissions" into ↵Evan Severson2021-04-201-7/+8
| |\ \ \ | | | | | | | | | | | | | | | sc-dev
| | * | | Remove the signature protection for sensor privacy permissionsEvan Severson2021-04-141-7/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | Merge changes from topic "uwb_aosp_service" into sc-dev am: 9bed14ecc8Roshan Pius2021-04-141-0/+7
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14064871 Change-Id: I29d48ed2e4bd3333b9319e4f2c4fb9809d870151
| * | | | Uwb: Create a new Uwb system serviceRoshan Pius2021-04-131-0/+7
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | Merge "Remove translation service feature." into sc-dev am: 279a38e147Joanne Chung2021-04-121-1/+3
|\| | | | | | | | | | | | | | | | | | | | | | | Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14112447 Change-Id: I387a396331301693d4a6e584d187303f00ce2eef
| * | | Remove translation service feature.Joanne Chung2021-04-121-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | ADPF: Add HintManagerService am: 25318b7316Jimmy Shiu2021-04-111-0/+5
|\| | | | | | | | | | | | | | | | | | | | | | | Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13699261 Change-Id: I413d8a107177e313aa6d5c22c15d3667ba0eb177
| * | | ADPF: Add HintManagerServiceJimmy Shiu2021-04-101-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | | | Merge "Stats: updated the order of service registration" into sc-dev am: ↵Vova Sharaienko2021-04-081-4/+8
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3b18d752be Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14021964 Change-Id: I209afe113ede5cce0ca71eabada5b89fb793005f
| * | | Merge "Stats: updated the order of service registration" into sc-devVova Sharaienko2021-04-081-4/+8
| |\ \ \
| | * | | Stats: updated the order of service registrationVova Sharaienko2021-04-071-4/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Stats need to be registered prior sensors service start Bug: 183916090 Test: build, flash & boot Change-Id: I4d6eb1adbb0d57e42489ec85829b777e8a27069c
* | | | | Merge "Activity recognition source app op tracking" into sc-dev am: 64b26b5c49Svetoslav Ganov2021-04-081-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14083130 Change-Id: Iedefa5b30107d993f08a86f677f3e6e2b20849dd
| * | | | Merge "Activity recognition source app op tracking" into sc-devSvetoslav Ganov2021-04-081-1/+1
| |\ \ \ \ | | |/ / / | |/| | |
| | * | | Activity recognition source app op trackingSvet Ganov2021-04-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | Merge "Add memtrackproxy system server service" into sc-dev am: 8ad4734407Kalesh Singh2021-04-071-0/+11
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14093445 Change-Id: Ibd72c6de7bdfa407b969ea65957ae936b1cf6dd0
| * | | | Add memtrackproxy system server serviceKalesh Singh2021-04-071-0/+11
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * | | Register ART Service with the System ServerChris Wailes2021-03-311-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | Merge "fdtrack: add stats logging."TreeHugger Robot2021-04-061-0/+20
|\ \ \ \
| * | | | fdtrack: add stats logging.Josh Gao2021-04-061-0/+20
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | 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
* / / / Register ART Service with the System ServerChris Wailes2021-03-191-0/+5
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | This CL causes the System Server to create and load the ART Local Manager. Test: Build and flash Bug: 177273468 Change-Id: I9734160f1cd4fd9fc363b3af50e27ec8973be557
* | | Support PersistentDataBlockService in DSU am: 649c198cf3 am: 0680e94757 am: ↵Howard Chen2021-03-171-4/+1
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2d73582c9b Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1549485 Change-Id: Id11dfb6ad38e81977f4047edd289d575de9ecd3a
| * \ \ Support PersistentDataBlockService in DSU am: 649c198cf3Howard Chen2021-03-171-4/+1
| |\ \ \ | | |/ / | |/| / | | |/ | | | | | | Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1549485 Change-Id: I29806aed4a2a9497237811b5b9b5b9ecb9b6cec8
| | * Support PersistentDataBlockService in DSUHoward Chen2021-03-101-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Merge "Use `ro.boot.qemu` to check if the device is an emulator" am: ↵Treehugger Robot2021-03-171-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | 62d82e0b33 am: 4ba8fde9ba am: de535f6eb2 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1625662 Change-Id: Ia613c23fb779697882f9928b15684fb1ff97e9cd