Commit Graph

1517 Commits

Author SHA1 Message Date
Wei Wang
0fc06be8ca Start NearbyService when system server starts.
Bug: 189355156
Bug: 214495869
Test: manual
Change-Id: I41ecaf814efce374e8448f9cab3fce45c18862f0
2022-01-20 03:49:41 +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
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
Hans Boehm
ab030aab10 Merge "Add System.runFinalization() call" am: 8df5d94b98 am: 7358684565 am: 0ad0828a9b am: 57fa4cc366
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1760810

Change-Id: I8c5119f0353447471ef43fc3a6dbe1217e0449fe
2021-07-09 21:48:57 +00:00
Hans Boehm
0ad0828a9b Merge "Add System.runFinalization() call" am: 8df5d94b98 am: 7358684565
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1760810

Change-Id: I96f6ce06333ae3527d5b43fcdb7e31edd434fd47
2021-07-09 21:21:37 +00:00
Hans Boehm
f312275581 Add System.runFinalization() call
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
2021-07-09 17:25:19 +00:00
Hans Boehm
6a5274513a Add System.runFinalization() call
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-07-09 10:23:30 -07:00
tomnatan
843601987f Add service for applying per-app compat overrides delivered via Device Config.
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
2021-07-07 08:56:18 +00:00
Wilson Wu
34091a5066 Remove multi-client IME
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
2021-06-16 18:10:34 +08:00
Chris Wailes
46b94ad54c RESTRICT AUTOMERGE: Revert "Register ART Service with the System Server"
This reverts commit 09724a755f.

Test: m
Bug: 184281926
Merged-In: I6aa8eff8ab09ef8ebab58bb22f65203cb4349a48
Change-Id: I6aa8eff8ab09ef8ebab58bb22f65203cb4349a48
2021-05-26 16:19:37 +01:00
Christian Wailes
4a99888888 Merge "RESTRICT AUTOMERGE: Revert "Register ART Service with the System Server"" into sc-dev 2021-05-24 22:38:59 +00:00
Josh Gao
a6596c9925 fdtrack: add stats logging.
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 53731ea9ab)
2021-05-19 14:29:36 -07:00
Chris Wailes
4ac971346d RESTRICT AUTOMERGE: Revert "Register ART Service with the System Server"
This reverts commit 09724a755f.

Test: m
Bug: 184281926
Change-Id: I6aa8eff8ab09ef8ebab58bb22f65203cb4349a48
2021-05-19 19:28:44 +00:00
TreeHugger Robot
60c5251f8c Merge "Clear updated font files in safe mode." into sc-dev am: 7c4e5a69b0
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13743173

Change-Id: I15c7b2a3bfae8165a75eb76dc9614c09aced035e
2021-05-14 21:17:21 +00:00
TreeHugger Robot
7c4e5a69b0 Merge "Clear updated font files in safe mode." into sc-dev 2021-05-14 20:55:52 +00:00
Kohsuke Yatoh
d18a901b23 Clear updated font files in safe mode.
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-09 09:42:13 -07:00
Michael Wright
7ca19b350b Merge "Create Java interface to SensorService." into sc-dev am: f9e526df48
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14426684

Change-Id: Iceef6d9c449ba1e95b1812792c74fe1aafb4a022
2021-05-06 11:36:01 +00:00
Michael Wright
e3912446ec Create Java interface to SensorService.
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-05-04 18:33:30 +01:00
Ilya Matyukhin
1ab1fbc464 Merge changes I165d67bd,I4442db15 into sc-dev am: bbddf477af
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14208890

Change-Id: Iba0f79e7fda737c8adbe25d61cd7dfbc9ee0948a
2021-04-27 18:04:03 +00:00
Ilya Matyukhin
e1b53af498 Consolidate registration of HIDL and AIDL HALs
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-26 16:40:36 -07:00
Evan Severson
7a82746db6 Merge "Remove the signature protection for sensor privacy permissions" into sc-dev am: f55d0c0d27
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14070065

Change-Id: Id73b7f767ed88f31455e87df69c819cbdb9309bb
2021-04-20 18:07:38 +00:00
Evan Severson
f55d0c0d27 Merge "Remove the signature protection for sensor privacy permissions" into sc-dev 2021-04-20 18:01:40 +00:00
Evan Severson
2f630c61f7 Remove the signature protection for sensor privacy permissions
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-14 09:00:20 -07:00
Roshan Pius
18b8ca3e6b Merge changes from topic "uwb_aosp_service" into sc-dev am: 9bed14ecc8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14064871

Change-Id: I29d48ed2e4bd3333b9319e4f2c4fb9809d870151
2021-04-14 03:42:09 +00:00
Roshan Pius
27e1a87a48 Uwb: Create a new Uwb system service
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-13 08:47:31 -07:00
Joanne Chung
312087f91f Merge "Remove translation service feature." into sc-dev am: 279a38e147
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14112447

Change-Id: I387a396331301693d4a6e584d187303f00ce2eef
2021-04-12 16:15:56 +00:00
Joanne Chung
57dc3874f6 Remove translation service feature.
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-12 16:03:44 +08:00
Jimmy Shiu
cfa2395901 ADPF: Add HintManagerService am: 25318b7316
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13699261

Change-Id: I413d8a107177e313aa6d5c22c15d3667ba0eb177
2021-04-11 00:49:11 +00:00
Jimmy Shiu
25318b7316 ADPF: Add HintManagerService
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-10 10:21:17 -07:00
Vova Sharaienko
92e6d33a1a Merge "Stats: updated the order of service registration" into sc-dev am: 3b18d752be
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14021964

Change-Id: I209afe113ede5cce0ca71eabada5b89fb793005f
2021-04-08 20:46:38 +00:00
Vova Sharaienko
3b18d752be Merge "Stats: updated the order of service registration" into sc-dev 2021-04-08 20:16:43 +00:00
Svetoslav Ganov
9af27f7e25 Merge "Activity recognition source app op tracking" into sc-dev am: 64b26b5c49
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14083130

Change-Id: Iedefa5b30107d993f08a86f677f3e6e2b20849dd
2021-04-08 18:39:17 +00:00
Svetoslav Ganov
64b26b5c49 Merge "Activity recognition source app op tracking" into sc-dev 2021-04-08 18:34:58 +00:00
Vova Sharaienko
e785c01e0a Stats: updated the order of service registration
Stats need to be registered prior sensors service start

Bug: 183916090
Test: build, flash & boot
Change-Id: I4d6eb1adbb0d57e42489ec85829b777e8a27069c
2021-04-07 21:36:45 +00:00