summaryrefslogtreecommitdiff
path: root/services/java/com/android/server/SystemServer.java
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | Set Process' start times for SystemServer.Felipe Leme2020-02-251-0/+1
| |_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | They're currently 0, because Process.setStartTimes() is only called by AM when binding to apps. Test: manual verification Bug: 141388849 Change-Id: I53fb4d62db06f6758c0e73138993e7d1230ea136
* | | | Merge changes from topic "biometric-and-credential"Kevin Chyn2020-02-211-9/+7
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | * changes: Always start AuthController Clean up biometric system server
| * | | | Clean up biometric system serverKevin Chyn2020-02-201-9/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1) BiometricService / AuthService always need to be started, since on Android 11 and later, the public credential auth API comes through this path. 2) Consolidate getAuthenticatorId() and expose via AuthService. This is used only by the platform during key generation. Instead of asking each individual service, AuthService will return a list of IDs for sensors which are enrolled and meet the required strength. Test: atest com.android.server.biometrics Test: fingerprint device, CtsVerifier biometric section Test: face unlock device, CtsVerifier biometric section Test: remove biometrics from device, CtsVerifier biometric section Bug: 148419762 Bug: 149795050 Change-Id: I2c5385b1cd4f343fabb0010e1fe6fb1ea8283391
* | | | | Stop exposing generated AIDL from TetheringAnton Hansson2020-02-191-2/+4
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We don't want new modules exposing stable aidl directly. APIs should be defined as java @SystemApi. It also seems like nothing actually depend on these interfaces, except one simple exception. Bug: 147200698 Test: m Change-Id: Ia4222fa35a9a2f3c75cebb12f75c536f27e2fe16
* | | | Merge "Moving TRM under a separate package Change the ↵Amy Zhang2020-02-181-1/+1
|\ \ \ \ | | | | | | | | | | | | | | | TunerResourceManagerListener to ResourcesReclaimListener"
| * | | | Moving TRM under a separate packageAmy2020-02-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change the TunerResourceManagerListener to ResourcesReclaimListener Test: make framework-media-tv-trm-sources Bug: Change-Id: Id49bfead1b08b4d01adb1a3ae9f354da6d1a75b1
* | | | | Fixes Context Hub feature naming and documentationArthur Ishiguro2020-02-131-1/+1
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Adds "_" in variable name for consistency with feature string - Adds documentation on what the feature is used for Bug: 149475852 Test: None Change-Id: I6eca279df8409de1155cd7014647a705d0d31d6f
* | | | Add a TunerResourceManagerService as an Android System Serivce.Amy2020-02-111-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This service is used to interact with TunerHAL interface and the Tuner framework to manage the Tuner resources currently used on the device. Tuner framework claims resource from this service. The service will handle the requests from multiple applications based on their priority. Sepolicy changes are in https://android-review.googlesource.com/c/platform/system/sepolicy/+/1161873 Test: cuttlefish Bug: Change-Id: Ifedc4e6f120e711aadffdf715d8720e0b64fbe16
* | | | Refactor GraphicsStatsService for updateabilityStan Iliev2020-02-071-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move GraphicsStatsService to android.graphics package. Move GraphicsStatsService JNI from libservices.core to libandroid_runtime. Declare GraphicsStatsService ctor as the only @SystemApi. Remove MemoryFile usage from GraphicsStatsService, but use SharedMemory and other SDK APIs instead. This is done to avoid using unstable API MemoryFile.getFileDescriptor. Propose new SharedMemory.getFdDup API for next release, which is hidden for now. Refactor statsd puller to avoid proto serialization by moving data directly into AStatsEventList. "libprotoutil" is added as a static dependancy to libhwui, which should be fine because its implementation does not link anything. Bug: 146353313 Test: Ran "adb shell cmd stats pull-source 10068" Test: Passed unit tests and GraphicsStatsValidationTest CTS Change-Id: If16c5addbd519cba33e03bd84ac312595032e0e1
* | | | Use FrameworkStatsLog instead of StatsLogMuhammad Qureshi2020-02-031-9/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As part of statsd becoming a Mainline module in R, autogenerated StatsLog.write() calls are going away and replaced by *StatsLog.java that is autogenerated for each module. This CL replaces some usages of StatsLog with FrameworkStatsLog. Bug: 145952197 Test: m Change-Id: Iaa2db34a7be4c3215f62cc36661ba8ac81656baa
* | | | Merge "Invoke BlobStoreManagerService.onStart() asynchronously."Sudheer Shanka2020-02-011-4/+12
|\ \ \ \
| * | | | Invoke BlobStoreManagerService.onStart() asynchronously.Sudheer Shanka2020-01-311-4/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 148299993 Test: atest cts/tests/BlobStore/src/com/android/cts/blob/BlobStoreManagerTest.java Test: tradefed.sh run google/template/local --template:map \ test google/continuous/boot-successive \ --no-first-boot --successive-boot --boot-count 10 Test: tradefed.sh run google/template/local --template:map \ test google/continuous/boot-successive \ --no-first-boot --successive-boot --boot-count 2 --granular-boot-info Change-Id: I99e3ca1c28a47e6a855c6d61295e9ddb4b4ac29c
* | | | | Merge "Enable fdtrack in system_server." am: 62d4abfd06 am: 7a3ca3763b am: ↵Automerger Merge Worker2020-01-311-0/+11
|\ \ \ \ \ | | |/ / / | |/| | | | | | | | | | | | | | | | | | a27fabe484 Change-Id: I2e560d3a21eb77b970e5589462caf3d989b32d01
| * | | | Merge "Enable fdtrack in system_server." am: 62d4abfd06Automerger Merge Worker2020-01-311-0/+11
| |\ \ \ \ | | | |/ / | | |/| | | | | | | Change-Id: I7792d474064696ce24dfca47823c73aab79c59f3
| | * | | Enable fdtrack in system_server.Josh Gao2020-01-281-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Spawn a thread that monitors the current fd count, and enables fdtrack to hunt down leaks when it gets too high. Bug: http://b/140703823 Test: setprop persist.sys.debug.fdtrack_enable_threshold; stop; start; logcat -c; killall -39 system_server; logcat -d | grep fdtrack Change-Id: If5831f57d47e6958112abced181f07e18e6a7261
* | | | | Merge changes from topic "add_bundle_to_window_context"Andrii Kulian2020-01-311-3/+1
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * changes: Exempt-From-Owner-Approval: Fix usages of WindowManager.getDefaultDisplay() in f/b Add bundle options to Context#createWindowContext API
| * | | | | Exempt-From-Owner-Approval: Fix usages of WindowManager.getDefaultDisplay() ↵Andrii Kulian2020-01-311-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | in f/b Replace the existing usages of now-deprecated API WindowManager.getDefaultDisplay() with WindowMetrics or Context.getDisplay() in frameworks/base. Bug: 128338354 Test: Build, auto test Change-Id: I02d38a022c5e0e6e9d699f03d35b65d6c8126da9
* | | | | | Merge changes from topic "winscope-sysui"Winson Chung2020-01-291-1/+1
|\ \ \ \ \ \ | |/ / / / / |/| | | | | | | | | | | | | | | | | | | | | | | * changes: Add initial SysUI trace support Update trace buffer to support SysUI & Launcher
| * | | | | Update trace buffer to support SysUI & LauncherWinson Chung2020-01-271-1/+1
| | |_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Move TraceBuffer to sysui-accessible package, and make it generic to support both lite and nano proto callers - Expose shell command to start/stop sysui tracing Bug: 144854916 Test: atest TraceBufferTest Change-Id: Id117024d943f148a91631fd9fcae1fd70fca8ab5
* / | | | Guard Context Hub Service on Context Hub featureArthur Ishiguro2020-01-231-3/+5
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also adds annotation to require the feature. Bug: 147677675 Test: Compile and flash, verify Context Hub Service is not found if the feature flag is not defined Change-Id: Ia718c76ec4308274dc66cfe975e762997e3539ca
* | | | Merge "Revert "SystemServer: Dynamically load wifi-service""Sravan Kumar Reddy Kallu2020-01-221-16/+7
|\ \ \ \ | | |_|/ | |/| |
| * | | Revert "SystemServer: Dynamically load wifi-service"Sravan Kumar Reddy Kallu2020-01-211-16/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Revert "product: Remove wifi-service off SystemServerClassPath" Revert submission 10103769-load_wifi_service_dynamically Exempt-From-Owner-Approval: see go/perf-revert-first Reason for revert: <Regression reported in b/148099857> Reverted Changes: I7b658cbfa: SystemServer: Dynamically load wifi-service I93f2467d0: product: Remove wifi-service off SystemServerClass... Change-Id: Icc0b680c2c6c472157b7bc9ee7bc7d97a54263c1
* | | | Merge "Remove an interface before more invasive changes" am: e4a64b4e6b am: ↵Automerger Merge Worker2020-01-211-1/+1
|\ \ \ \ | | |/ / | |/| | | | | | | | | | | | | | 2260679ecd am: 8087607fbc Change-Id: Ib8d4de706116b2b86e9fb22b8c3466ff22aac9e5
| * | | Merge "Remove an interface before more invasive changes"Neil Fuller2020-01-211-1/+1
| |\ \ \ | | | |/ | | |/| | | | | | | | | | | | | am: e4a64b4e6b Change-Id: I46f302b0ab055d2c7f826502df09ce8a759db9bf
| | * | Remove an interface before more invasive changesNeil Fuller2020-01-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove NetworkTimeUpdateService interface, replace it with its only implementation. Test: build only Change-Id: Idf607957b7abe9a27f4fec2ebe3c0ee9e74f1694
| * | | Merge "[Tether13] Move TetheringManager into framework" am: 2410d67357 am: ↵Automerger Merge Worker2019-12-201-3/+10
| |\| | | | | | | | | | | | | | | | | | | | | | 25cc1f47c5 Change-Id: I9ec25eb984e3b534ddcc9313836a319b21526998
| | * | [Tether13] Move TetheringManager into frameworkmarkchien2019-12-191-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 Merged-In: Ib051bea724a256f9c4572b566e46ae7b9c4abe6e
| * | | Merge "Add hook for JVMTI agent in system server" am: 957ac164efDavid Sehr2019-12-091-1/+19
| |\| | | | | | | | | | | | | | | | | | | | | | am: a9cc5cf85a Change-Id: I59491078b65f4df90d0066adcc825f2303ee32e2
| | * | Add hook for JVMTI agent in system serverDavid Sehr2019-12-091-1/+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 Merged-In: I299dffb1774fdce48b9b695a614b7ab60f1307e2 (cherry picked from commit 1a88539df2279286695018c86485e4eb89357629)
| * | | Merge "Allow tuning of heaptargetutilization" am: 0e3e2a73c6David Sehr2019-12-091-4/+0
| |\| | | | | | | | | | | | | | | | | | | | | | am: e673072feb Change-Id: Ia7114c1d9fbee42ce27372947702c580bfd3159c
| | * | Merge "Allow tuning of heaptargetutilization"David Sehr2019-12-091-4/+0
| | |\ \
| | | * | Allow tuning of heaptargetutilizationDavid Sehr2019-12-091-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 Merged-In: I19680ff5fa1ebf9dfd4a3f71533d03510f4da414 (cherry picked from commit b2910d3b6ff282194a4fa4e6c6818c4325168a4f)
| | * | | 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-201-0/+5
|\ \ \ \ \ \
| * | | | | | Add system service for accessing SystemConfigHall Liu2020-01-071-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | |