summaryrefslogtreecommitdiff
path: root/services/java/com/android
Commit message (Collapse)AuthorAgeFilesLines
...
| | * | | Merge "Merge Android10 QPR1 into AOSP master"Treehugger Robot2019-12-031-12/+23
| | |\ \ \
| * | \ \ \ Merge "Add a new time zone detection service" am: 7d8a624085Neil Fuller2019-12-031-0/+10
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 256f4df4b6 Change-Id: Ie1b28c5cea14a23beac2e70eb7878f7f09461d6c
| | * | | | | Merge "Add a new time zone detection service"Neil Fuller2019-12-031-0/+10
| | |\| | | | | | | |/ / / | | |/| | | | | | | | | | | | | | | | | | | | | am: 7d8a624085 Change-Id: Ic30cd636b4863a507dda0bdb05e982ee411d936f
| | | * | | Merge "Add a new time zone detection service"Neil Fuller2019-12-031-0/+10
| | | |\ \ \
| | | | * | | Add a new time zone detection serviceNeil Fuller2019-11-281-0/+10
| | | | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a new time zone detection service. Much of the code is from frameworks/opt/telephony with some changes for naming, threading and to modify the interaction with the "Callback" class. Overall goal: Implementing the service in the system server means it will be easier to add new time zone detection logic unrelated to telephony in future. Bug: 140712361 Test: atest com.android.server.timezonedetector Test: atest android.app.timezonedetector Change-Id: I89505fc4fecbd3667b60f8e1479b8f177eaa60ae Merged-In: I89505fc4fecbd3667b60f8e1479b8f177eaa60ae (cherry picked from commit 3e3b5405b6c5e77a640ad9450eb1cac5b7c80ff1)
| | | * | | Merge changes from topic "tether_migrate"Mark Chien2019-11-301-0/+10
| | | |\ \ \ | | | | |/ / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | * changes: [Tether10]Remove UserManagerInternal usage in Tethering [Tether07] Migrate Tethering into module [Tether07] Clean up build rule for libtetheroffloadjni
| * | | | | [Tether07] Migrate Tethering into module am: 0df2ebc43dmarkchien2019-11-301-0/+10
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 6b828d2915 Change-Id: I6e71b418b7303d37144532ab056c21ccbefcb554
| | * | | | [Tether07] Migrate Tethering into modulemarkchien2019-11-301-0/+10
| | |\ \ \ \ | | | | |/ / | | | |/| | | | | | | | | | | | | | | | | | | | am: 0df2ebc43d Change-Id: I1aaa034e91eae2d6e9abcbbd70741a54a18b3ddc
| | | * | | [Tether07] Migrate Tethering into modulemarkchien2019-11-301-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now tethering would be run in dedicated service. TetheringManager is the interface used to communicate with TetheringService. The new call flow would be: ConnectivityManager -> ConnectivityService -> TetheringManager -> TetheringService. Note: the return value of #tether(), #untether() and #setUsbTethering() APIs would always be no error. Client can use #getLastTetherError() or #getTetheredIfaces or listen tether state change to check status of corresponding interface. Bug: 136040414 Bug: 144742179 Test: -build, flash, boot -atest TetheringTests -atest FrameworksNetTests Change-Id: I7e78c0e0a3e70f940a749ba2a39ece7c7ec5b9b3 Merged-In: I7e78c0e0a3e70f940a749ba2a39ece7c7ec5b9b3
* | | | | | Merge "Add system service for accessing SystemConfig"Hall Liu2020-01-202-0/+67
|\ \ \ \ \ \
| * | | | | | Add system service for accessing SystemConfigHall Liu2020-01-072-0/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add SystemConfigService and associated AIDLs and permissions for accessing SystemConfig. The service returns values obtained from a static instance of com.android.server.SystemConfig. Bug: 143112379 Test: atest SystemConfigTest Change-Id: I1a863ae9f53db21d698376008e5b1da83309b141
* | | | | | | Merge "SystemServer: Dynamically load wifi-service"TreeHugger Robot2020-01-171-7/+16
|\ \ \ \ \ \ \ | | |_|_|_|_|/ | |/| | | | |
| * | | | | | SystemServer: Dynamically load wifi-serviceRoshan Pius2020-01-161-7/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 147799672 Test: Device boots up & connects to wifi networks Test: atest android.net.wifi.cts.WifiManagerTest Change-Id: I7b658cbfa91e2214bfef50510c648848813f62cc
* | | | | | | Fix crash when pulling certain atomsTej Singh2020-01-161-1/+1
|/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | IonMemoryUtil and ProcFsMemoryUtil were package-private classes loaded in the system server class loader and had the same package as StatsCompanionService, which is loaded in a separate class loader for statsd. This caused a crash when statsd tried to access either. This cl moves IonMemoryUtil and ProcFsMemoryUtil along with StatsPullAtomService to a separate package so that no classes are shared in the same package. Bug: 147792532 Test: pulled all relevant atoms and make sure they worked Test: adb shell cmd stats pull-source 10064 Test: adb shell cmd stats pull-source 10061 Test: adb shell cmd stats pull-source 10042 Test: adb shell cmd stats pull-source 10056 Change-Id: I5107aa47045321e84549a7f2d55d0ee27f0d080e
* | | | | | Merge "Integrate Rescue Party boot loop logic to Package Watchdog"Gavin Corkery2020-01-161-1/+1
|\ \ \ \ \ \
| * | | | | | Integrate Rescue Party boot loop logic to Package WatchdogGavin Corkery2020-01-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make Package Watchdog the component that receives calls about boot events, and decides on whether or not to perform mitigation action for a perceived boot loop. The logic for selecting an observer to handle boot loops is similar to how package failure is handled. The threshold logic is the same as it was in Rescue Party (5 system server boots in 10 minutes). Rescue Party maintains its own rescue levels internally, which map to user impact levels. Add optional onBootLoop() and executeBootLoopMitigation() methods to PackageHealthObserver. Add tests to handle the new cases handled by Package Watchdog. Test: atest RescuePartyTest Test: atest PackageWatchdogTest Bug: 136135457 Change-Id: Ic435e60318e369509975c19a9888741e047803de
* | | | | | | SystemServer: Migrate Boottime related metrics to StatsLogKeun young Park2020-01-151-11/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 132691841 Test: check boot related stats are pushed after boot up $ adb shell cmd stats print-stats Change-Id: I675f12b997ae821c75b5aaf456e7c84a2f7fed67
* | | | | | | Merge "Dynamically load statsd-service"TreeHugger Robot2020-01-151-1/+4
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | |
| * | | | | | Dynamically load statsd-serviceTej Singh2020-01-101-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, service-statsd.jar was on the SYSTEM_SERVER_CLASSPATH. This CL loads StatsCompanion from SystemServer.java dynamically so that the jar does not have to be on the classpath. Bug: 146064616 Test: boots Change-Id: Ia0e98ed0b6e35da01b38ead2fcf45d440eae31c3
* | | | | | | Integrate Rescue Party with Package WatchdogGavin Corkery2020-01-081-0/+1
| |/ / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Integrate Rescue Party as an observer for Package Watchdog, for managing package failures. Rescue Party will be a persistent observer, meaning it may receive failure calls for packages it has not explicitly asked to observe. Remove app failure calls and thresholding logic from Rescue Party. Remove obsolete Rescue Party tests and add persistent observer tests to PackageWatchdogTest. Test: atest PackageWatchdogTest Test: atest RescuePartyTest Test: atest StagedRollbackTest Bug: 136135457 Change-Id: I55ec0de48acd5434255811feba758d38c9304478
* | | | | | Merge "Add the skeleton code for People Service which is a new system ↵Danning Chen2020-01-071-0/+5
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | service with only internal APIs"
| * | | | | | Add the skeleton code for People Service which is a new system service with ↵Danning Chen2020-01-011-0/+5
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | only internal APIs Change-Id: I78b1b362735d5da40c49a344ae3063ea0df0759f Bug: 146522621 Test: Code builds and runs successfully
* / / / / / Create StatsPullAtomServiceTej Singh2020-01-031-0/+7
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This creates an empty systeme service for the java pullers that are curreently in StatsCompanionService to live. StatsPullAtomService will not live in the statsd apex. Test: builds, boots Bug: 141697961 Change-Id: Ifc8ed9903d414ada665875a44254e602decf6495
* | | | | Merge "New API for query trust of a fs-verity certificate"TreeHugger Robot2019-12-231-0/+8
|\ \ \ \ \
| * | | | | New API for query trust of a fs-verity certificateVictor Hsieh2019-12-231-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The corresponding service is also added. The API can be used by a store to know whether their certificate is trusted on the device. As optimization, they only need to download .fsv_sig signature file if it will be used. The API can also be used to gradually switch to stronger key. The store can query with their certificates in priority order and download the best signature. Test: Passed new GTS working in progress Bug: 142573505 Change-Id: Ic788cd04aeaed35ad62113fe9e7535b8fa63b5ee
* | | | | | [Tether13] Move TetheringManager into frameworkmarkchien2019-12-201-3/+10
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move tethering out of ConnectivityService. All client would use TetheringManager to talk with TetheringService directly. Bug: 144320246 Test: -build, flash, boot -atest TetheringTests Change-Id: Ib051bea724a256f9c4572b566e46ae7b9c4abe6e
* | | | | Merge "Create statsmanager service"Jeffrey Huang2019-12-181-4/+4
|\ \ \ \ \
| * | | | | Create statsmanager serviceJeffrey Huang2019-12-171-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 146074170 Test: Manual Change-Id: Ia96f2df24e660fe3293fb2e873e9050a55398cee
* | | | | | Merge "add IncrementalManagerService to system server"TreeHugger Robot2019-12-181-0/+13
|\ \ \ \ \ \ | |/ / / / / |/| | | | |
| * | | | | add IncrementalManagerService to system serverSongchun Fan2019-12-171-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: boots Change-Id: Ib704e986535ca422e82784b985ff7ef1acc68277
* | | | | | Merge changes from topic "soundtrigger_refactor"Ytai Ben-tsvi2019-12-171-0/+5
|\ \ \ \ \ \ | |/ / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * changes: Migrate SoundTrigger implementation to new service Implement the soundtrigger_middlewware service Add a permission for preempting sound trigger sessions Sound trigger middleware service definition Add audio.common types AIDL definition
| * | | | | Implement the soundtrigger_middlewware serviceYtai Ben-Tsvi2019-12-161-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This service is intended to replace: frameworks/av/include/soundtrigger/ISoundTriggerHwService.h This change only adds the replacement service, follow up changes migrate the clients to use the new service and remove the old one. The new service is feature-equivalent to the new one, but offers the following advantages: - AIDL interface (as opposed to hand-written parceling code). - Pure Java implementation all the way to the HAL. - Better documentation. - Rigorous error handling. - Unit tests. - Reduced code complexity (less layers, better separation of concerns). - Permission-based security model (as opposed to some baked-in assumptions about process affinity). Change-Id: I79f4eff105d3e6245990be068b933d4d48c35a0d Bug: 142070343
* | | | | | Merge "Remove a few hard coded references to SystemUI in fw/base/services"Winson Chung2019-12-171-3/+3
|\ \ \ \ \ \
| * | | | | | Remove a few hard coded references to SystemUI in fw/base/servicesWinson Chung2019-12-131-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 143775123 Test: atest ScreenshotHelperTest Test: atest AlarmManagerTest Change-Id: I2fefe2968e23bc2d06aa52266c2eeeb90f4733ee
* | | | | | | Merge "System APIs for telephony to expose/obtain binder services"Makoto Onuki2019-12-131-0/+3
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | |
| * | | | | | System APIs for telephony to expose/obtain binder servicesMakoto Onuki2019-12-091-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 142255256 Bug: 112725883 Test: Boot Change-Id: Ia02384689b6b5ecb19db27d91d03f06ae2543b91
* | | | | | | add DataLoaderManagerService to system server and register to system serviceSongchun Fan2019-12-131-0/+8
| |/ / / / / |/| | | | | | | | | | | | | | | | | | | | | | | Test: boots Change-Id: I9cba99327da012b6f6de898ad1c5cc7cf11d1d31
* | | | | | Add implementation class to handle integrity check broadcasts.Song Pan2019-12-111-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ifca76a8fcf8277bfd2f123a6fd9351ae7db45643 Test: add unit test and manually building/flashing on a test device and installing an app.
* | | | | | Allow tuning of heaptargetutilizationDavid Sehr2019-12-061-4/+0
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove a pair of explicit sets of this value. This allows ART to tune this parameter to improve GC responsiveness and memory usage. Tuning this parameter is a key area of work for OEM-requested high-memory device configurations. Bug: 145823510 Test: boot and run with various configurations of the flag. Change-Id: I19680ff5fa1ebf9dfd4a3f71533d03510f4da414
* | | | | Add hook for JVMTI agent in system serverDavid Sehr2019-12-051-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a place to attach a jvmti agent into the system server in debug builds. This allows profiling and other investigations for performance improvements. Bug: none Test: attach agent, collect result Change-Id: I299dffb1774fdce48b9b695a614b7ab60f1307e2
* | | | | Merge "Let the OS crash when failed to initialize "core" services"TreeHugger Robot2019-12-021-2/+3
|\ \ \ \ \
| * | | | | Let the OS crash when failed to initialize "core" servicesYohei Yukawa2019-11-271-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are several "core" system services that are still initialized in SystemServer#startOtherServices() not in SystemServer#startCoreServices(). The problem is that if RuntimeException happened in one of such initialization steps, all the subsequent initializations would just get skipped and causes serious problems at some random place later. Bug 144597304 was an instance of such issues. If RuntimeException happens before WindowManagerService gets initialized, then what people would see is NPE from the following code, which often confuses people about who to take a look at the issue. } catch (RuntimeException e) { Slog.e("System", "******************************************"); Slog.e("System", "************ Failure starting core service", e); } // Before things start rolling, be sure we have decided whether // we are in safe mode. final boolean safeMode = wm.detectSafeMode(); With this CL, RuntimeException will be rethrown instead of trying to boot up the system with only partially initialized system services, which would be much easier for those who would need to investigate why the system is not working as expected, hopefully. } catch (Throwable e) { Slog.e("System", "******************************************"); Slog.e("System", "************ Failure starting core service"); throw e; } Fix: 145238447 Test: presubmit Test: Manually made sure that the system crashes at the right place Change-Id: Ie4741758d78373b8a0b23c210f97897ee1ea40cb
* | | | | | Merge changes from topic "tethering-migrate"TreeHugger Robot2019-11-291-0/+10
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * changes: [Tether10]Remove UserManagerInternal usage in Tethering [Tether07] Migrate Tethering into module [Tether07] Clean up build rule for libtetheroffloadjni
| * | | | | | [Tether07] Migrate Tethering into modulemarkchien2019-11-291-0/+10
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now tethering would be run in dedicated service. TetheringManager is the interface used to communicate with TetheringService. The new call flow would be: ConnectivityManager -> ConnectivityService -> TetheringManager -> TetheringService. Note: the return value of #tether(), #untether() and #setUsbTethering() APIs would always be no error. Client can use #getLastTetherError() or #getTetheredIfaces or listen tether state change to check status of corresponding interface. Bug: 136040414 Bug: 144742179 Test: -build, flash, boot -atest TetheringTests -atest FrameworksNetTests Change-Id: I7e78c0e0a3e70f940a749ba2a39ece7c7ec5b9b3
* / / / / / Add a new time zone detection serviceNeil Fuller2019-11-281-0/+10
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a new time zone detection service. Much of the code is from frameworks/opt/telephony with some changes for naming, threading and to modify the interaction with the "Callback" class. Overall goal: Implementing the service in the system server means it will be easier to add new time zone detection logic unrelated to telephony in future. Bug: 140712361 Test: atest com.android.server.timezonedetector Test: atest android.app.timezonedetector Change-Id: I89505fc4fecbd3667b60f8e1479b8f177eaa60ae
* | | | | Revert "Mainline wifi stack module"Roshan Pius2019-11-251-9/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 6f5338dd8f90400fe67a97ed13f2479c6bd7237e. Reason for revert: Wifi services no longer plan to be a separate APK/process for mainline. Will instead become a jar loaded from Apex. Bug: 144722612 Test: Device boots up & connects to wifi networks. Change-Id: I293e36973c4bdbd8bf9db2fcd78e61e6c38b39f4
* | | | | Merge "Remove dead code from SystemServer" am: 05eeef4188 am: 01d1dd28f1Neil Fuller2019-11-251-9/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 18e458ef00 Change-Id: Ibb828d6acea117032d9dbb1e6669c119768f5cf3
| * | | | Merge "Remove dead code from SystemServer" am: 05eeef4188Neil Fuller2019-11-251-9/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 01d1dd28f1 Change-Id: Ifa10a6e2b48f596bfa6854e1a950cec060253c76
| | * | | Merge "Remove dead code from SystemServer"Neil Fuller2019-11-251-9/+0
| | |\ \ \ | | | | |/ | | | |/| | | | | | | | | | | | | | | | am: 05eeef4188 Change-Id: I910fb0ac35c8de8fd500b3df0253c65b6b201fb4
| | | * | Merge "Remove dead code from SystemServer"Neil Fuller2019-11-251-9/+0
| | | |\ \ | | | | |/ | | | |/|