Commit Graph

1283 Commits

Author SHA1 Message Date
Makoto Onuki
dfce6bde75 Merge "Add WTF when a system server wrapper can't be found" into rvc-dev am: bea34c409f am: 90ea8e34db am: c57d84ef9c am: 6390ab2439
Change-Id: I66f2d9192c9e70b474ee66a1a5ed4af639931b33
2020-04-02 21:47:35 +00:00
Makoto Onuki
c57d84ef9c Merge "Add WTF when a system server wrapper can't be found" into rvc-dev am: bea34c409f am: 90ea8e34db
Change-Id: I1d62a8e67b3b606cdbe9c6abe6caa81c17932c18
2020-04-02 21:11:01 +00:00
Makoto Onuki
a455e5e281 Add WTF when a system server wrapper can't be found
2nd try -- enable it only within the system server.

This is to detect someone trying to access system services too
early during a boot.

Bug: 149406139
Test: Boot with "adb logcat | grep -w SystemServiceRegistry" and make sure no wtf is logged
Change-Id: I64c6776cedaeb534d98621db2955d585e6846b8d
2020-04-01 17:27:58 -07:00
Benedict Wong
ef5732b053 Merge "Automatically set IPsec tunnel interface as up" into rvc-dev 2020-03-31 16:51:58 +00:00
Hall Liu
cebb88aac4 Merge changes from topic "phonestatelistener-limit-rvc-dev" into rvc-dev am: 952697b886 am: db8281ff75 am: dbfecb3dda am: e713f9beca
Change-Id: I642956615a06d6918aad1c4f729a22b4185086e5
2020-03-28 07:43:10 +00:00
Hall Liu
dbfecb3dda Merge changes from topic "phonestatelistener-limit-rvc-dev" into rvc-dev am: 952697b886 am: db8281ff75
Change-Id: Idc2c2537f2fd175f1d3fbba62935b463917dc420
2020-03-28 07:10:24 +00:00
Hall Liu
952697b886 Merge changes from topic "phonestatelistener-limit-rvc-dev" into rvc-dev
* changes:
  Add gating, logging for PhoneStateListener's limit
  Institute limit on PhoneStateListener
2020-03-28 06:48:56 +00:00
Hall Liu
ed6d6e69a8 Add gating, logging for PhoneStateListener's limit
Add gating via PlatformCompat and DeviceConfig and logging via
PlatformCompat to the limit instituted on per-process listeners

Fixes: 152074216
Test: atest CtsTelephonyHostCases
Change-Id: I4d6681d90705b68c3349f4124e434a29b50fd3a2
2020-03-27 19:21:51 -07:00
JW Wang
fa856195e6 Don't reference RollbackManagerService directly (2/n) am: de4cf91872 am: f93aa634c0
Change-Id: I757390976eed7b2dbfffc0e00dcb0f4401a8a379
2020-03-27 01:44:55 +00:00
JW Wang
de4cf91872 Don't reference RollbackManagerService directly (2/n)
This is an effort to modularize RollbackManager.

As we move RollbackManagerService to apex/, SystemServer can't reference
RollbackManagerService directly. Let's use the class name to start the
service.

(Cherry-picked from 41a5d353cc)

Bug: 150347230
Test: m
Merged-In: Ied68ad031f84ea4a416ad779e9ddf4cc912bd7b9
Change-Id: Ied68ad031f84ea4a416ad779e9ddf4cc912bd7b9
2020-03-27 01:36:58 +00:00
Benedict Wong
d78ad3d41a Automatically set IPsec tunnel interface as up
This change makes IPsec tunnel interfaces automatically get brought up
once they are created. Originally this was considered to be an
additional safety check, as they would not be start routing traffic
until explicitly brought up. However, in the intervening time, the
NetworkManagementController now requires the NETWORK_STACK permission to
set an interface as up. Additionally, that call is a hidden API, and
thus not usable for use cases such as IWLAN.

Bug: 149348618
Test: FrameworksNetTests, CtsNetTestCases passing.
Change-Id: I55b63a748463a388e1e2991d2d5d6b3023545e60
Merged-In: I55b63a748463a388e1e2991d2d5d6b3023545e60
(cherry picked from commit 7c5704d177)
2020-03-25 06:14:13 +00:00
Benedict Wong
7c5704d177 Merge "Automatically set IPsec tunnel interface as up" am: 7df882e039 am: 8c9064e86e am: 9110937f1a am: 484ea00b78 am: e69fbba61e
Change-Id: Ic6be8ec416d371c75328c178ae58758d737605f7
2020-03-25 05:50:51 +00:00
Benedict Wong
9110937f1a Merge "Automatically set IPsec tunnel interface as up" am: 7df882e039 am: 8c9064e86e
Change-Id: I01d10d2e1c0fcc52b88901609fae068d6d5268f7
2020-03-25 05:01:20 +00:00
Benedict Wong
7df882e039 Merge "Automatically set IPsec tunnel interface as up" 2020-03-25 04:18:50 +00:00
JW Wang
41a5d353cc Don't reference RollbackManagerService directly (2/n)
This is an effort to modularize RollbackManager.

As we move RollbackManagerService to apex/, SystemServer can't reference
RollbackManagerService directly. Let's use the class name to start the
service.

Bug: 150347230
Test: m
Change-Id: Ied68ad031f84ea4a416ad779e9ddf4cc912bd7b9
2020-03-23 10:08:17 +08:00
Benedict Wong
041bdf883a Automatically set IPsec tunnel interface as up
This change makes IPsec tunnel interfaces automatically get brought up
once they are created. Originally this was considered to be an
additional safety check, as they would not be start routing traffic
until explicitly brought up. However, in the intervening time, the
NetworkManagementController now requires the NETWORK_STACK permission to
set an interface as up. Additionally, that call is a hidden API, and
thus not usable for use cases such as IWLAN.

Bug: 149348618
Test: FrameworksNetTests, CtsNetTestCases passing.
Change-Id: I55b63a748463a388e1e2991d2d5d6b3023545e60
2020-03-10 23:08:16 -07:00
Sasha Kuznetsov
c1dbdff863 Move LocationManagerService to server.location package
Test: atest FrameworksMockingServicesTests
Bug: 151186626
Change-Id: I30206f45d01ef87c3a8d82128c16f48fe507080d
2020-03-10 19:21:56 -07:00
Automerger Merge Worker
2137c9cf69 DO NOT MERGE: Remove AppSearch from Android R. am: 0b291791c8
Change-Id: Id435f881696263aaf000422c98776420b341782b
2020-03-06 09:37:41 +00:00
TreeHugger Robot
8caff7dc81 Merge "DO NOT MERGE: Remove AppSearch from Android R." into rvc-dev 2020-03-05 21:09:00 +00:00
Automerger Merge Worker
3785a0bca6 Merge "remove proxy binder service IIncrementalManager" into rvc-dev am: 130b6bec30
Change-Id: I0a2d6127550e1c157be809d034387c5760a19d70
2020-03-05 17:00:27 +00:00
Automerger Merge Worker
f6f284469e Merge "Remove two unused constants" am: c7d6b57055 am: 6b32953b02
Change-Id: If74e84205a4d84c009ddc1f22076ac0c7129c3bd
2020-03-05 08:58:54 +00:00
Automerger Merge Worker
6b32953b02 Merge "Remove two unused constants" am: c7d6b57055
Change-Id: Ie8eaa1437931fa37a2c162aedb8fadc147299a30
2020-03-05 08:45:50 +00:00
Neil Fuller
c7d6b57055 Merge "Remove two unused constants" 2020-03-05 08:32:25 +00:00
Songchun Fan
7f051b5251 remove proxy binder service IIncrementalManager
This is no longer needed because native Incremental Service directly
uses IDataLoaderManager.

BUG: 150406132
Test: atest service.incremental_test
Test: atest PackageManagerShellCommandIncrementalTest
Change-Id: Idbde2988883becbf3eb707d42c0558774a6073e8
2020-03-04 19:50:44 -08:00
Automerger Merge Worker
2b554fa9d4 Merge "Add feature to disable slices" am: fa871a3642
Change-Id: I7b64d2b937a0ebe183440c430514e821e1174faf
2020-02-28 22:33:36 +00:00
Abhijit Adsule
fa871a3642 Merge "Add feature to disable slices" 2020-02-28 22:13:01 +00:00
Neil Fuller
a7f7d88766 Remove two unused constants
EARLIEST_SUPPORTED_TIME should have been removed in commit 4b03c07cc7.

To attone, this commit removes a constant that stopped being used in P.

Test: treehugger
Change-Id: Ibd687e54c3c86ba16656d45d73d48eb4f33ec0ea
2020-02-28 17:36:16 +00:00
Alexander Dorokhine
0b291791c8 DO NOT MERGE: Remove AppSearch from Android R.
Test: presubmit
Bug: 150249538

Change-Id: Idb86be6586ae400552f8ceeca5c667fba8e0c43a
2020-02-25 21:15:03 -08:00
Felipe Leme
6cc15f0468 Set Process' start times for SystemServer.
They're currently 0, because Process.setStartTimes() is only called by
AM when binding to apps.

Test: manual verification
Bug: 141388849

Change-Id: I53fb4d62db06f6758c0e73138993e7d1230ea136
2020-02-25 11:29:52 -08:00
Kevin Chyn
df244da79a Merge changes from topic "biometric-and-credential"
* changes:
  Always start AuthController
  Clean up biometric system server
2020-02-21 21:37:14 +00:00
Kevin Chyn
7d07c89235 Clean up biometric system server
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
2020-02-20 11:12:51 -08:00
Automerger Merge Worker
fdbd820293 Merge "Stop exposing generated AIDL from Tethering" am: ccf2c88a18
Change-Id: I5490acfc53c9ae68bb21069c7f04e46d023f308f
2020-02-20 12:32:28 +00:00
Anton Hansson
c38998bc5b Stop exposing generated AIDL from Tethering
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
2020-02-19 19:03:24 +00:00
Anton Hansson
1a63549314 Stop exposing generated AIDL from Tethering
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
Merged-In: Ia4222fa35a9a2f3c75cebb12f75c536f27e2fe16
2020-02-19 16:26:05 +00:00
Amy Zhang
e891f575a4 Merge "Moving TRM under a separate package Change the TunerResourceManagerListener to ResourcesReclaimListener" 2020-02-18 18:38:38 +00:00
Abhijit Adsule
014479dbb6 Add feature to disable slices
Bug: 142022263
Test: Manual - Verified CTS test passes on devices where the feature is
disabled

Change-Id: I090b4c1460fcc4784e9e901847829ee61bfc31ef
Merged-In: I090b4c1460fcc4784e9e901847829ee61bfc31ef
2020-02-14 02:25:01 +00:00
Amy
92726fb752 Moving TRM under a separate package
Change the TunerResourceManagerListener to ResourcesReclaimListener

Test: make framework-media-tv-trm-sources
Bug:
Change-Id: Id49bfead1b08b4d01adb1a3ae9f354da6d1a75b1
2020-02-13 14:20:06 -08:00
Arthur Ishiguro
49e96a8ab7 Fixes Context Hub feature naming and documentation
- 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
2020-02-13 08:08:55 -08:00
Amy
06a551ee7b Add a TunerResourceManagerService as an Android System Serivce.
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
2020-02-11 19:39:44 -08:00
Stan Iliev
c90438175f Refactor GraphicsStatsService for updateability
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
2020-02-07 12:27:07 -05:00
Muhammad Qureshi
e2b2432bc6 Use FrameworkStatsLog instead of StatsLog
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
2020-02-03 09:17:40 -08:00
Sudheer Shanka
d5c6c4a09e Merge "Invoke BlobStoreManagerService.onStart() asynchronously." 2020-02-01 20:41:55 +00:00
Sudheer Shanka
95bd541103 Invoke BlobStoreManagerService.onStart() asynchronously.
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
2020-01-31 15:22:16 -08:00
Automerger Merge Worker
22a33080d1 Merge "Enable fdtrack in system_server." am: 62d4abfd06 am: 7a3ca3763b am: a27fabe484
Change-Id: I2e560d3a21eb77b970e5589462caf3d989b32d01
2020-01-31 16:57:39 +00:00
Automerger Merge Worker
7a3ca3763b Merge "Enable fdtrack in system_server." am: 62d4abfd06
Change-Id: I7792d474064696ce24dfca47823c73aab79c59f3
2020-01-31 16:42:57 +00:00
Andrii Kulian
e11e951f66 Merge changes from topic "add_bundle_to_window_context"
* changes:
  Exempt-From-Owner-Approval: Fix usages of WindowManager.getDefaultDisplay() in f/b
  Add bundle options to Context#createWindowContext API
2020-01-31 01:16:34 +00:00
Andrii Kulian
e57f2dc246 Exempt-From-Owner-Approval: Fix usages of WindowManager.getDefaultDisplay() 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
2020-01-31 01:15:21 +00:00
Winson Chung
75f5bf33b0 Merge changes from topic "winscope-sysui"
* changes:
  Add initial SysUI trace support
  Update trace buffer to support SysUI & Launcher
2020-01-29 05:04:48 +00:00
Josh Gao
679f3e4242 Enable fdtrack in system_server.
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
2020-01-28 18:10:55 -08:00
Winson Chung
b53b30cd26 Update trace buffer to support SysUI & Launcher
- 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
2020-01-27 10:04:58 -08:00