Commit Graph

14754 Commits

Author SHA1 Message Date
Jin Seok Park
679825e9ea Merge "[Media ML] Remove hidden API usage in SystemServer" 2020-08-04 16:04:13 +00:00
Yi Kong
86f85936a1 Introduce ProfcollectForwardingService
Bug: 79161490
Test: boot and observe logcat
Change-Id: I0413c52f08b930b1e42971acc7f50e2e2da52f99
2020-08-04 01:09:42 +08:00
Jin Seok Park
4cc92f87cb [Media ML] Remove hidden API usage in SystemServer
Replace calling MediaSessionService and MediaResourceMonitorService
directly with calling string equivalents.

Bug: 162734094
Test: build, boot and check service is running with
    adb command: "adb shell service list"
Change-Id: I243b1dbeabcfeadd8927de51cd595fceb48d461b
2020-08-04 00:19:07 +09:00
TreeHugger Robot
d32d73e482 Merge "Initial splitting of Content Providers from AMS." 2020-07-27 17:24:53 +00:00
Varun Shah
1109a0c544 Initial splitting of Content Providers from AMS.
This is the first of many CLs for refactoring Content Provider related
code from Activity Manager Service.

This CL simply pulls out most of the CP code from AMS into its own
class. There are no logic or lock-related changes in this particular CL.

Bug: 156262145
Test: atest ContentProviderTest [all]
Change-Id: I03310a1f06d354e15439a37f7aeffa543192dad3
2020-07-20 09:32:43 -07:00
Nicolas Geoffray
d8ad89c414 Merge "Remove old code that isn't relevant anymore." am: 22e3e74e4b am: 0642fc19f3 am: dd85ce6a50 am: 11f4874360 am: c21f8b9143
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1354663

Change-Id: Ib3e7dbefdb78b3ad9c7b00766d563c7877f823ac
2020-07-07 09:47:52 +00:00
Nicolas Geoffray
dd85ce6a50 Merge "Remove old code that isn't relevant anymore." am: 22e3e74e4b am: 0642fc19f3
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1354663

Change-Id: Ic39e4a46f50fd3ab18dba5c859ec39c9458191a0
2020-07-07 09:03:34 +00:00
Nicolas Geoffray
af6d3a6cb5 Remove old code that isn't relevant anymore.
In order to reduce the CorePlatformAPI surface.

Test: m
Bug: 154796679
Change-Id: I428fe21d764bf6897942d7e67d85297d826d3716
2020-07-02 17:24:21 +01:00
vichang
26ed852eaf Merge "Use new package name for ZoneInfo and libcore.timezone" am: af6f8e2301 am: 64937407f2
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1346485

Change-Id: I5ded5092e4c7706f58417a5c97f3207524b44a95
2020-06-30 17:23:46 +00:00
Victor Chang
2ea241f6ee Use new package name for ZoneInfo and libcore.timezone
Bug: 141747409
Test: None
Merged-In: Id99a345ec024179295063c3644f72c062cb50554
Change-Id: Id99a345ec024179295063c3644f72c062cb50554
2020-06-30 13:53:47 +01:00
Victor Chang
6c22f6adb0 Use new package name for ZoneInfo and libcore.timezone
Bug: 141747409
Test: None
Change-Id: Id99a345ec024179295063c3644f72c062cb50554
2020-06-25 18:30:29 +01:00
Hunter Knepshield
537f835e2b Merge changes from topic "bugreport-stub" into rvc-dev am: 9568960297 am: a7dad0b5cc am: 8a01758622 am: bc8fec3027
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11856802

Change-Id: Ie2dc8d2094be3f42eb13e561bda9aa4ef24332cc
2020-06-18 18:07:44 +00:00
Hunter Knepshield
8a01758622 Merge changes from topic "bugreport-stub" into rvc-dev am: 9568960297 am: a7dad0b5cc
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11856802

Change-Id: I38f827361f1f234e49c086953d0c0d7426e0d70f
2020-06-18 17:18:19 +00:00
Hunter Knepshield
5b622bb7bf Merge changes from topic "bugreport-stub" into rvc-dev am: 9568960297
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11856802

Change-Id: I29f29e33157cec7f99d2966acc2a57940ff346d3
2020-06-18 17:03:41 +00:00
Hunter Knepshield
1172ffa7c2 Add new "addedInSdk" attribute to carrier-associated apps.
Previously, the sysconfig wasn't capable of understanding
carrier-associated apps that were added after a device's initial launch
(i.e. via OTA) because the logic in CarrierAppUtils explicitly avoids
disabling such apps a second time.

Most of this change is just plumbing everything through. For now, it's
all @hide due to R API deadlines. It will be made public in S.

Bug: 154872019
Test: manual, QA, atest FrameworksTelephonyTests:CarrierAppUtilsTest
Change-Id: I530a4f73146b09879547ca2e0c26428957fef37a
2020-06-16 16:48:38 -07:00
Kevin Chyn
77f92351c1 1/n: Move modality-specific files into new subdirectory
It's easier to read/maintain if we separate sensor-specific code
from BiometricPrompt/BiometricManager code

Bug: 157790417

Test: Enroll/auth fingerprint/face on respective devices
Test: atest com.android.server.biometrics

Change-Id: I472c206743482bbea75498051c6f81e1fbd351ad
2020-06-08 12:54:52 -07:00
Neil Fuller
29867f046d Merge "Be more defensive around invalid tzids" am: f60c302dad am: 96c57398b4
Change-Id: If8695ee257155eaedc901aa797f1939eab0c721e
2020-05-26 10:54:50 +00:00
Neil Fuller
26fe60a188 Be more defensive around invalid tzids
Add checks during boot in case the persist.sys.timezone property is set
to a bad ID.

This can happen in the rare case of a mainline rollback: i.e. if a device has
been set to a new ID and then the update is rolled back. Using GMT as a
fallback probably works without this change (it does in java.util.TimeZone),
but relies on all code, including native code that uses
persist.sys.timezone directly, knowing to interpret a bad ID as "GMT".
This commit makes that choice more explicit and defensive.

This change also removes the possibility of IOException, which is never
thrown, from some ZoneInfoDb methods.

Bug: 155738410
Test: boot with a valid id, verify persist.sys.timezone is unchanged
Test: boot with an invalid id set,  verify persist.sys.timezone is "GMT"
Merged-In: I6dc0f4f81848efbbaec6a11a62014471a0ef01fd
Change-Id: I6dc0f4f81848efbbaec6a11a62014471a0ef01fd
Exempt-From-Owner-Approval: Approved / landed internally
2020-05-26 10:19:53 +00:00
Neil Fuller
29fba44b58 Be more defensive around invalid tzids
Add checks during boot in case the persist.sys.timezone property is set
to a bad ID.

This can happen in the rare case of a mainline rollback: i.e. if a device has
been set to a new ID and then the update is rolled back. Using GMT as a
fallback probably works without this change (it does in java.util.TimeZone),
but relies on all code, including native code that uses
persist.sys.timezone directly, knowing to interpret a bad ID as "GMT".
This commit makes that choice more explicit and defensive.

This change also removes the possibility of IOException, which is never
thrown, from some ZoneInfoDb methods.

Bug: 155738410
Test: boot with a valid id, verify persist.sys.timezone is unchanged
Test: boot with an invalid id set,  verify persist.sys.timezone is "GMT"
Change-Id: I6dc0f4f81848efbbaec6a11a62014471a0ef01fd
2020-05-21 13:34:59 +01:00
Suprabh Shukla
2760e5ee53 Move AlarmManager to apex
Mechanical refactoring to move all except native code to the apex
directory. Accesses across the jar boundary will be cleaned up in
follow-ups.
Also, moved alarm manager code into its own package for better
organization.

Test: Buids, boots. Existing tests:
atest FrameworksMockingServicesTests:AlarmManagerServiceTest
atest CtsAlarmManagerTestCases

Bug: 151976605
Change-Id: Ida46491c1f1dff02dce4c50d3fafd4efbf977766
2020-05-19 21:19:26 -07:00
TreeHugger Robot
253cf88cea Merge "Fixed when SystemServerInitThreadPool.shutdown() is called." into rvc-dev am: 3ce5a9b85b am: 5ab2f9aa78 am: 9f2a62c067 am: 949db94e76
Change-Id: Ib45dc4ad1276044fef31ff3c405187e3935897fe
2020-05-11 22:37:28 +00:00
TreeHugger Robot
5ab2f9aa78 Merge "Fixed when SystemServerInitThreadPool.shutdown() is called." into rvc-dev am: 3ce5a9b85b
Change-Id: I0b4b9ad545f2cebd9edd4adf3259ac34371bb79d
2020-05-11 22:09:07 +00:00
felipeal
fc5304075e Fixed when SystemServerInitThreadPool.shutdown() is called.
The class' Javadoc says it's shut down after P HASE_BOOT_COMPLETED, whic was
not the case.

Test: manual verification / boot
Fixes: 156257347

Change-Id: I3c8b24c6855c7c83cdf1eacc637b8e064a121fe3
2020-05-11 10:36:59 -07:00
Amy Zhang
3df1c0545a Merge "Start TunerResourceManager when FEATURE_TUNER is supported" into rvc-dev am: 71f11a7ec5 am: 0309df1780 am: a6e2e81943 am: 6f70a2a80b
Change-Id: Ib3d4f8e845b387889e99c64c1e8071d8a1698139
2020-05-07 18:23:16 +00:00
Amy Zhang
0309df1780 Merge "Start TunerResourceManager when FEATURE_TUNER is supported" into rvc-dev am: 71f11a7ec5
Change-Id: I70a1ddac77f1be879809c4a7b79be4c6e8b13b9f
2020-05-07 17:50:52 +00:00
Amy Zhang
6b4b728d8c Start TunerResourceManager when FEATURE_TUNER is supported
Test: make services
Bug: 147380513
Change-Id: I56201db818018b019dfa7d442e3905fba30806d7
2020-05-06 11:58:59 -07:00
Yurii Zubrytskyi
463ea96cc1 Merge changes I8942a2db,Ibcef3f40,I6e765563 into rvc-dev am: 930f1d10bc am: 5899bac92e am: b8eb14b2b7 am: 3d7c09e846
Change-Id: I34b1d1a54a1c172dc1d514787e55c5d1e35c4880
2020-04-22 19:22:55 +00:00
Yurii Zubrytskyi
b8eb14b2b7 Merge changes I8942a2db,Ibcef3f40,I6e765563 into rvc-dev am: 930f1d10bc am: 5899bac92e
Change-Id: I76abfe6251fbd50bd0f11a187363a2df786002b1
2020-04-22 19:00:45 +00:00
Yurii Zubrytskyi
0e87d5ebc1 Merge changes I8942a2db,Ibcef3f40,I6e765563 into rvc-dev am: 930f1d10bc
Change-Id: I7ba1058a91b3e2140e05b69d749cc65d62511251
2020-04-22 18:42:20 +00:00
Yurii Zubrytskyi
683f2b1acc [incfs] Notify IncrementalService about system startup later
It needs system to be ready to bind to services, which is much
later in the boot process

Bug: 151241369
Test: boot up Android, make sure no error messages from
  IncrementalService trying to bind a DataLoader when the OS
  can't bind services yet
Change-Id: Ibcef3f405965ee07c5b8adbb41f068be734bde9e
2020-04-22 00:39:44 -07:00
Roshan Pius
a19de01bed Merge "Revert "Revert "SystemServer: Dynamically load wifi-service"" 2020-04-20 14:33:53 +00:00
Jing Ji
a467b9e223 Merge "Set a default wtf handler for system_server at initialization" into rvc-dev am: 35c6b8f0ab am: 872d122967 am: 033e8d1cda am: 45410eff90
Change-Id: Ic61b7fa550b77bc669cf9736a60757503043b6eb
2020-04-20 07:11:41 +00:00
Jing Ji
872d122967 Merge "Set a default wtf handler for system_server at initialization" into rvc-dev am: 35c6b8f0ab
Change-Id: Iec5d3f8aed88e1b32f96ea6998854fde32c21179
2020-04-20 06:10:58 +00:00
Jing Ji
6674e0d654 Set a default wtf handler for system_server at initialization
In case the ActivityManagerService hasn't started yet.

Bug: 153704326
Bug: 153598920
Test: Manual - induce wtf logs in early-booted services
Change-Id: I2b444cf70d9126963084ab15f9cd17fe5b464529
2020-04-17 12:48:08 -07:00
Roshan Pius
71a7088141 Revert "Revert "SystemServer: Dynamically load wifi-service"
Revert submission 10144846-revert-10103769-load_wifi_service_dynamically-XZNQJHXURR

Reason for revert: Changes in build system to store uncompressed and aligned DEX files for java libs in APEXes.

Reverted Changes:
Icc0b680c2: Revert "SystemServer: Dynamically load wifi-servic...
I83a2f93e3: Revert "product: Remove wifi-service off SystemSer...


Bug: 148099857

Change-Id: I6c3f36873cae476dc76fd353d20fb6bd2c177f0b
2020-04-17 16:24:47 +00:00
Soonil Nagarkar
ff4680f1e0 DO NOT MERGE Move LMS to ease merge conflicts am: 1716a62ac1
Change-Id: I57c81f3755dc5966800277b9c8e94104ae3ae58e
2020-04-14 22:14:01 +00:00
Soonil Nagarkar
1716a62ac1 DO NOT MERGE Move LMS to ease merge conflicts
Cherrypick change from master moving LMS, so that merge conflicts will
be easier to resolve.

Bug: 153568386
Test: presubmits
Change-Id: I8eba22622cc5f4d11c1a928b6cf3883cbf96caba
2020-04-14 12:04:12 -07:00
Hall Liu
0a5365b9c0 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
Merged-In: I4d6681d90705b68c3349f4124e434a29b50fd3a2
2020-04-07 17:13:19 -07:00
Calin Juravle
a167a6be13 Merge changes from topic "server-reporting" into rvc-dev am: 11bdb5dfb4 am: b32e288a18 am: aa0a453df5 am: 613f2704e9 am: c0454f1744
Change-Id: I69a732b4f25c2d317dcce69ebd665ff4ae0aba54
2020-04-07 19:20:33 +00:00
Calin Juravle
c0454f1744 Merge changes from topic "server-reporting" into rvc-dev am: 11bdb5dfb4 am: b32e288a18 am: aa0a453df5 am: 613f2704e9
Change-Id: I42a724ddf373a6235711c6ba25a54ee84cb4ca75
2020-04-07 19:18:42 +00:00
Calin Juravle
9867e0b6c3 Merge changes from topic "server-reporting" into rvc-dev am: 11bdb5dfb4
Change-Id: I3fda3465d0be8f235c9e8a2391f68bc441724c13
2020-04-07 18:46:32 +00:00
Calin Juravle
11bdb5dfb4 Merge changes from topic "server-reporting" into rvc-dev
* changes:
  Report SystemServer classpath to PackageManager
  Setup dex load reporter for system server
2020-04-07 18:42:29 +00:00
TreeHugger Robot
037c545335 Merge "Make system_server profilable on user." into rvc-dev am: 4b500ced32
Change-Id: I57df67e59b6ed1187e0bb0893f6020d9f62f489f
2020-04-07 09:55:41 +00:00
Florian Mayer
876e06aa97 Make system_server profilable on user.
Test: m with matching SELinux change. profile sys_srv.

This is a cherry-pick of be583be3ed.

Bug: 151140716
Change-Id: I545b758421ea7527d75b5d2756a6b11ae475e7de
Merged-In: I545b758421ea7527d75b5d2756a6b11ae475e7de
2020-04-07 08:46:11 +00:00
Florian Mayer
7a33304f77 Merge "Make system_server profilable on user." 2020-04-07 08:42:54 +00:00
Florian Mayer
be583be3ed Make system_server profilable on user.
Test: m with matching SELinux change. profile sys_srv.

Bug: 151140716
Change-Id: I545b758421ea7527d75b5d2756a6b11ae475e7de
2020-04-07 08:38:02 +00:00
Calin Juravle
d75a077d85 Report SystemServer classpath to PackageManager
This will enable us to optimize system server classpath during
idle-maintenance windows.

Test: m
Bug: 148774920
Change-Id: Ibd7641cd10944bb5d7740486d259a412f882cd1f
2020-04-06 12:43:15 -07:00
Calin Juravle
46bddf8e36 Setup dex load reporter for system server
System server may load code at runtime from outside its original
classpath. In order to ensure this code is optimized (verified) we need to
report it to PackageManager which can optimize it during idle-maintenance
windows.

This CL sets up the reporting infrastructure for system server.

Test: atest DexManagerTest
Bug: 148774920
Change-Id: Ibd2ee38857b97bde426ee0a01c60543f1acb8671
2020-04-06 12:43:13 -07:00
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