Commit Graph

468813 Commits

Author SHA1 Message Date
Eugene Susla
0fa2ab0713 Fix maps foreground location pregrant
Test: atest DefaultPermissionGrantPolicy
Change-Id: I14af03a13ceecacef35cb1707fd82a8209238349
2020-02-20 11:46:42 -08:00
Hui Yu
0feac07083 Persistent process should have all capabilities.
By default.

Fix: 149930393
Test: "adb shell dumpsys activity -a", system process record have
curCapability=7.

Change-Id: I9dacaefbb33a6e595044b452dcbfd3b26fc9df2b
2020-02-20 11:40:39 -08:00
Automerger Merge Worker
881ed9a619 [automerger skipped] Merge "Do not expose module IPsec(IKE) API from frameworks" am: 452e4df88c am: 2860b52ecc am: 60985238c9 -s ours
am skip reason: Change-Id I37ba02eb3003ea28e66f50ca0b612597ef48f6d5 with SHA-1 daeb328e32 is in history

Change-Id: I6613d433d89d8e3fa324f6c3062210a8d683fb52
2020-02-20 19:32:07 +00:00
Automerger Merge Worker
e2de05262c Merge "Use argparse in merge_csv.py." am: 28207235fd
Change-Id: I3281b352b359d1bc962ded7e9664fe20c57478cb
2020-02-20 19:32:04 +00:00
Automerger Merge Worker
60985238c9 Merge "Do not expose module IPsec(IKE) API from frameworks" am: 452e4df88c am: 2860b52ecc
Change-Id: Ieabec911aecee3d782faf7b6d2ed87fa1f7707a2
2020-02-20 19:21:04 +00:00
Treehugger Robot
28207235fd Merge "Use argparse in merge_csv.py." 2020-02-20 19:17:19 +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
Anton Hansson
1d53c8c986 Cleanup framework-all usage
It generally shouldn't be depended on. Only by droidstubs for
modules.

Bug: 137191822
Bug: 149906971
Test: m
Change-Id: I16e672aaae80d8bcce25e46c34984797740aae1b
Merged-In: I16e672aaae80d8bcce25e46c34984797740aae1b
(cherry picked from commit 6fb18bbfdb)
2020-02-20 19:11:29 +00:00
Ryan Mitchell
857ce7ace1 Remove exception from OverlayConfig zygote method
The AssetManager constructor is marked UnsupportedAppUsage and the
recent changes to OverlayConfig caused an exception to be thrown when
the function is not called from the root process.

Previously a warning message would be logged indicating that no static
overlays would be loaded. Removing the uid check will restore the
previous behavior.

Also remove the system uid checks for initializeSystemInstance so PMS
service can also be constructed during testing.

Bug: 149806146
Test: invoke new AssetManager() from non-root thread
Change-Id: I55af2cddeba4df7a99c281c93e0181b9e2139139
2020-02-20 11:11:29 -08:00
Santiago Seifert
141cb3bdb4 Merge "Add behavioral parameters to MediaParser" 2020-02-20 19:08:09 +00:00
Automerger Merge Worker
2860b52ecc Merge "Do not expose module IPsec(IKE) API from frameworks" am: 452e4df88c
Change-Id: I315293b8c99fdd2b7af3c83282084553dab920b8
2020-02-20 19:00:03 +00:00
Trung Lam
b9a93c13ba Merge "Adding back contact phone number to protobuf after PDD review approval." 2020-02-20 18:59:56 +00:00
Jean-Michel Trivi
cf9c5d32e3 Audio preferred device: improve listener javadoc
Clarify behavior of OnPreferredDeviceForStrategyChangedListener.

Bug: 149871788
Test: atest AudioServiceHostTest#testPreferredDeviceRouting
Change-Id: Ice80ed848a8a818dcb4d7266cf51c0a0af5d378c
2020-02-20 10:45:35 -08:00
James O'Leary
c8bde28707 Merge "Remove drop shadow from corner handles." 2020-02-20 18:45:19 +00:00
Yan Yan
452e4df88c Merge "Do not expose module IPsec(IKE) API from frameworks" 2020-02-20 18:38:55 +00:00
TreeHugger Robot
5dc2fab572 Merge "[Passpoint] Print home or roaming in WifiConfiguration" 2020-02-20 18:36:56 +00:00
Makoto Onuki
5577300386 Temporarily fix for the "telecom" command
Bug: 148897549
Test: m telecom && adb sync && adb shell telecom set-sim-count 0
Change-Id: I0951aa78dd3a4cc45d0a849baf9bcac1b31ef339
2020-02-20 10:12:50 -08:00
Mehdi Alizadeh
b754b7ac7a Adds ShortcutChangeCallback in LauncherApps - Service side
Bug: 148615405
Test: atest com.android.server.pm.ShortcutManagerTest1 \
            com.android.server.pm.ShortcutManagerTest2 \
            com.android.server.pm.ShortcutManagerTest3 \
            com.android.server.pm.ShortcutManagerTest4 \
            com.android.server.pm.ShortcutManagerTest5 \
            com.android.server.pm.ShortcutManagerTest6 \
            com.android.server.pm.ShortcutManagerTest7 \
            com.android.server.pm.ShortcutManagerTest8 \
            com.android.server.pm.ShortcutManagerTest9 \
            com.android.server.pm.ShortcutManagerTest10

Change-Id: Ida60b2d0b3d5792e7013ffa703b2f3b45361a4db
2020-02-20 10:05:54 -08:00
Miranda Kephart
4f150e0853 Fix screenshot motion spec anchor point
Moves the anchor point of the animation into the corner from the
top left corner to the center. This fixes the issue where the preview
appeared to move "up" before following the correct path.

Bug: 149100933
Test: manual; changes animations only
Change-Id: I45edf9a82db5f67efa129bdb8a0fd091189e7c7a
2020-02-20 12:51:41 -05:00
Ryan Mitchell
290bc3ba36 Merge "Add test mapping for Overlayconfig" 2020-02-20 17:45:19 +00:00
TreeHugger Robot
5f43ae305d Merge "MediaCodec: address API review" 2020-02-20 17:44:41 +00:00
Dmitri Plotnikov
23132a29eb Merge "Add async version of "canonicalize"" 2020-02-20 17:42:52 +00:00
Sudheer Shanka
11d8a6ef87 Merge "Update BlobStoreMS to use LongSparseArray.removeIf(Predicate)." 2020-02-20 17:29:07 +00:00
Anton Hansson
50fc4f6eb0 Remove ike-srcs from updatable srcs
They needn't be here, because they don't contribute to the
bootclasspath. Modules should only be depended on via stubs,
except for current.txt generation.

Test: m
Change-Id: Id9e43205fe1badace66fc580effd77e4863265d0
2020-02-20 17:26:05 +00:00
Kenny Root
511b45b531 RebootEscrowKey: use bytes for equivalence
Since RebootEscrowKey started wrapping SecretKey, it is necessary to check
equivalence via a method that does not do object equivalence. Use the
underlying byte array in the tests. equals() could be implemented, but then
hashCode() would need to be implemented which would be based on the private
key.

Test: atest RebootEscrowDataTest
Change-Id: Ia5b0bb822dcd3e59b5898f390fa8670db0b8d4c9
2020-02-20 09:26:03 -08:00
Daniel Colascione
a46b7b3f5e Cache package and permission information
We use the package settings class as a central point for invalidating
on package information changes; for permission changes, we invalidate
from inside the individual permission data objects.

Bug: 140788621
Test: boots, package tests (pending)
Change-Id: Iec14d4ec872124e7ef4612c72d94c89a7319ace0
2020-02-20 09:24:32 -08:00
Lucas Dupin
e864e970a0 Merge "Enable custom clock feature" 2020-02-20 17:24:20 +00:00
Hai Shalom
ded2212304 [Passpoint] Print home or roaming in WifiConfiguration
Print provider network home or roaming in the toString()
method of WifiConfiguration.

Bug: 149881869
Test: Verify new field is printed
Change-Id: Iddcd03435eb416bd6dc73bd0e7e32f180e0265d6
2020-02-20 08:34:46 -08:00
Soonil Nagarkar
a6149521d3 Merge "Revert requestSetProviderEnabled API" 2020-02-20 16:34:37 +00:00
Miranda Kephart
ffb189773c Broadcast screenshot intents in the foreground
By default, intents are broadcast on a background queue, which can
accrue a lot of backed-up tasks especially when the phone was
recently rebooted. In the case of the screenshot action shade, this
causes a long pause (up to ~minutes!) between tapping on an action
chip and seeing the app actually open.

This change adds a flag to the intents to cause them to be queued
in the foreground. In the notifications flow, this flag gets added
in NotificationManagerService (so this is preserving behavior). In
addition, these intents are user-generated (by tapping on the chip
or screenshot preview), so it's reasonable to send them in the
foreground.

Bug: 149481318
Test: manual
Change-Id: Idfcb8ade3fee232b140299585296e85093eeb1fe
2020-02-20 11:27:17 -05:00
Leon Scroggins III
076bbe1ceb Add details regarding setConvexPath deprecation
Bug: 149857968
Test: make docs
Change-Id: I995e035fc7d73d196a50b4e515db38110baa0fe5
2020-02-20 11:16:11 -05:00
Richard Gaywood
3ee7557fb5 Add method to return merged stats to AIDL
For procstats aggregated stats collection, we need to expose the
aggregated ProcessStats object back to the caller.

Change-Id: Ifb52f813d679e3e0a1e061f983d8b4f539d6d72a
Test: nothing yet
2020-02-20 16:09:20 +00:00
Josh Tsuji
e663f87c3e Merge changes Icf5b3bc0,I97ae15d8
* changes:
  Magnetic target library!
  Modifies PhysicsAnimator's cancellation methods to support tests.
2020-02-20 16:04:26 +00:00
Simon MacMullen
30f04a76ac Add memory pressure information to ANR and system server watchdog.
Bug: 146039257
Test: Manually triggered ANR and inspected report.
Change-Id: Ib32f9bca0de6e04455413addab750c7225a0fe73
2020-02-20 16:01:32 +00:00
Simon MacMullen
46755e27c9 Log to dropbox if we fail to create an ANR stack trace file.
Some ANRs have no stack traces uploaded through dropbox. This appears to be because the file holding them was not created

So in the case where we can't create the file, add an exception message to the string part of the dropbox upload.

Change-Id: Ic06ac9c25974633905b1a0bfcfcef8ed833795e8
Bug: 148848039
Test: Manually threw exception in createAnrDumpFile() and triggered ANR.
2020-02-20 16:01:15 +00:00
TreeHugger Robot
2e8b3e21fa Merge "Remove redundant/deprecated method." 2020-02-20 15:57:34 +00:00
Rubin Xu
144b057c26 Ensure user is unlocked before binding to KeyChain service
This stops KeyChain from throwing AssertionError when binding to
service fails due to user being locked, which would have crashed
the entire system server.

Bug: 149912024
Test: atest KeyChainTests
Change-Id: Ie110a4210e157cc9b111d845478bdf21e948ba4f
2020-02-20 15:53:06 +00:00
Rubin Xu
1480ce7b87 Support security logging on org-owned managed profile devices
When security logging is enabled on org-owned profile devices,
Security events will be redacted to preserve privacy on the personal
profile as follows:

* TAG_ADB_SHELL_CMD
  Shell command will be redacted.

* TAG_MEDIA_MOUNT
* TAG_MEDIA_UNMOUNT
  The media's volume name will be redacted.

* TAG_APP_PROCESS_START
* TAG_CERT_AUTHORITY_INSTALLED
* TAG_CERT_AUTHORITY_REMOVED
* TAG_KEY_GENERATED
* TAG_KEY_IMPORT
* TAG_KEY_DESTRUCTION
* TAG_KEY_INTEGRITY_VIOLATION
  Only events happening inside the managed profile will be returned
  to the admin.

Bug: 148437300
Test: atest FrameworksServicesTests:DevicePolicyManagerTest
Test: atest FrameworksServicesTests:SecurityEventTest
Test: atest FrameworksCoreTests:EventLogTest
Test: atest com.android.cts.devicepolicy.MixedDeviceOwnerTest#testSecurityLoggingWithSingleUser
Test: atest com.android.cts.devicepolicy.MixedDeviceOwnerTest#testSecurityLoggingWithTwoUsers
Test: atest com.android.cts.devicepolicy.MixedDeviceOwnerTest#testSecurityLoggingEnabledLogged
Test: atest com.android.cts.devicepolicy.OrgOwnedProfileOwnerTest#testSecurityLogging

Change-Id: I2e52229a3163b3e0dc3d80d71700023394d84587
2020-02-20 15:47:29 +00:00
TreeHugger Robot
4a43fdc863 Merge "Small cleanup in DeviceProductInfo." 2020-02-20 15:41:53 +00:00
Ryan Mitchell
105c546159 Add test mapping for Overlayconfig
Bug: 138458867
Test: atest
Change-Id: Ia5e3d8d4b548aae3f1cd44d5c2cf0db5bf420d34
2020-02-20 15:33:34 +00:00
Santiago Seifert
561ffc3008 Add behavioral parameters to MediaParser
Test: CTS.
Bug: 132153067
Change-Id: Ic1c3fe32382e298fa14d81c7a3b5d1f9271f30ee
2020-02-20 15:17:31 +00:00
Automerger Merge Worker
253b363623 [automerger skipped] Merge "RESTRICT AUTOMERGE Use Alternative Prox Sensor for Falsing" into qt-qpr1-dev am: 8161bd3ab6 am: 7e6457334f -s ours
am skip reason: subject contains skip directive

Change-Id: Ibba07335e72ce19c0dd1631c24630a59b4dc08ce
2020-02-20 15:11:19 +00:00
Automerger Merge Worker
9c71f18549 [automerger skipped] RESTRICT AUTOMERGE Use Alternative Prox Sensor for Falsing am: cb45d588e1 am: 2e8a666e6c -s ours
am skip reason: subject contains skip directive

Change-Id: Ibabd0bbff4c19959b24bcb9727ac221c47fe2a9d
2020-02-20 15:11:11 +00:00
TreeHugger Robot
66b4377689 Merge "Log signatures for failing JNI lookups." 2020-02-20 15:09:49 +00:00
David Su
72f9d6352e framework-wifi: Stop linking all frameworks/base/core/java AIDLs
Instead only link ParceledListSlice.aidl,
which is the only one used by
framework-wifi.

Bug: 149127842
Test: "couldn't find import for class android.content.pm.ParceledListSlice"
no longer appears when building

Change-Id: Ie9f67c58c3694bbf1f45ae8e1d99e6e65fbc3163
2020-02-20 15:06:24 +00:00
Automerger Merge Worker
7e6457334f Merge "RESTRICT AUTOMERGE Use Alternative Prox Sensor for Falsing" into qt-qpr1-dev am: 8161bd3ab6
Change-Id: I7c90e2fb6c8a35b085984030eaf52d3d2ac72299
2020-02-20 14:51:46 +00:00
Automerger Merge Worker
2e8a666e6c RESTRICT AUTOMERGE Use Alternative Prox Sensor for Falsing am: cb45d588e1
Change-Id: Id77226308331407b22d6b40e1f08c68cacb31c7d
2020-02-20 14:51:35 +00:00
Dave Mankoff
8161bd3ab6 Merge "RESTRICT AUTOMERGE Use Alternative Prox Sensor for Falsing" into qt-qpr1-dev 2020-02-20 14:38:56 +00:00
Automerger Merge Worker
520392a086 [automerger skipped] Merge "Log UserspaceRebootReported atom from system_server" am: 9b6f6674eb am: 1db5e3a0cf am: 2727519309 -s ours
am skip reason: Change-Id Ib9e2c6cef7094ccac7862be249d619212f0013fd with SHA-1 779d6bee21 is in history

Change-Id: I1b8f8ae273b67d5a376c41665f8bc44c412b523f
2020-02-20 14:16:31 +00:00
Automerger Merge Worker
2727519309 Merge "Log UserspaceRebootReported atom from system_server" am: 9b6f6674eb am: 1db5e3a0cf
Change-Id: I8ee87878d8f8c7d16e89dd134506d2bcfc44cedf
2020-02-20 14:05:05 +00:00