Commit Graph

98783 Commits

Author SHA1 Message Date
TreeHugger Robot
5905bab2a4 Merge "Add android.annotation.Hide" 2019-12-10 14:52:14 +00:00
Roshan Pius
4f059fa56e Merge "InterfaceConfiguration: Don't use @hide Sets class" am: 2bf6bf92c6 am: e7182d5ba5
am: 3f3dd3b432

Change-Id: I2538620dc77f8bbde5d3589aef22a1675e25fb03
2019-12-10 06:09:15 -08:00
Roshan Pius
3f3dd3b432 Merge "InterfaceConfiguration: Don't use @hide Sets class" am: 2bf6bf92c6
am: e7182d5ba5

Change-Id: I8d21b1465b3a1f5a8b54e2c4fbc8a8d6a7a6a475
2019-12-10 06:04:32 -08:00
Roshan Pius
e7182d5ba5 Merge "InterfaceConfiguration: Don't use @hide Sets class"
am: 2bf6bf92c6

Change-Id: I7c2ec75299170bb0eb06e842b77f798eb060fed0
2019-12-10 05:58:53 -08:00
Treehugger Robot
2bf6bf92c6 Merge "InterfaceConfiguration: Don't use @hide Sets class" 2019-12-10 13:52:48 +00:00
Florian Mayer
9fd210224a Do not cache enabled tags in Java.
As we are elimating the Binder notifications for the sysprop update for
atrace, we no longer have a callback that can be used to read the new
value of the enabled tags.

@CritivalNative calls are very fast (25 ns) so the overhead of always
going to native code to read the tags is negligible.

Test: flash & boot
Test: adb shell su root atrace -t 10 ss
Test: adb shell su root atrace -t 10 wm

Bug: 137366208
Change-Id: I1a07fefd751ee28ca9a632a3d78a2925e8827b9c
2019-12-10 11:30:13 +00:00
Neil Fuller
7daba13fc0 Merge "Extend LocalLog to enable UTC timestamps" am: 9436134056 am: c74594a2e3
am: 746d69afa5

Change-Id: I167f79a33218c5b6593c165f9185663f965dcdcd
2019-12-10 01:54:49 -08:00
Neil Fuller
746d69afa5 Merge "Extend LocalLog to enable UTC timestamps" am: 9436134056
am: c74594a2e3

Change-Id: I417bf9581e3fbce9921e7893c1e63e6dd9a7b30b
2019-12-10 01:50:39 -08:00
Neil Fuller
c74594a2e3 Merge "Extend LocalLog to enable UTC timestamps"
am: 9436134056

Change-Id: I6fcdbaec178f3718b6a3c285f991d6d3c4ec5162
2019-12-10 01:46:13 -08:00
Neil Fuller
9436134056 Merge "Extend LocalLog to enable UTC timestamps" 2019-12-10 09:42:38 +00:00
Meng Wang
d4e90d2e09 Merge "Style fix." 2019-12-10 00:24:32 +00:00
TreeHugger Robot
6a26ddcafc Merge "Move WindowControllerCallback methods into a delagate." 2019-12-09 23:51:21 +00:00
Winson Chiu
26fea7259f Merge "Overlay, actor, and target app visibility handling" 2019-12-09 23:50:31 +00:00
Meng Wang
3c97f033c5 Style fix.
To avoid merge conflict with internal branch.

Test: make
Change-Id: I04636443ea70f0cbac784a910c3d57fa80bd6bcc
Merged-In: I1b750751148925b4a7bd94553318907654012fc1
2019-12-09 23:30:16 +00:00
Chester Hsieh
5aa92326c4 Merge "Add package name to DDM APNM packet" 2019-12-09 22:41:02 +00:00
Alex Buynytskyy
6f5822e5d0 Merge "Additional documentation on transfer statuses." 2019-12-09 22:01:40 +00:00
Winson Chiu
f0ff68f625 Merge changes from topic "androidpackage"
* changes:
  Critical fixes for AndroidPackage migration
  Revert Revert PackageParser#Package fixes
  Revert "Revert "Deprecate PackageParser#Package""
2019-12-09 21:46:13 +00:00
Sunny Goyal
9d734ff4cd Merge "Cleaning up listener when task completes" 2019-12-09 21:15:02 +00:00
Chris Wren
ed7b02108b Merge "track and report packages with undecorated remoteviews" 2019-12-09 20:43:57 +00:00
Alex Buynytskyy
c720d3d1f5 Additional documentation on transfer statuses.
Test: atest PackageManagerShellCommandTest
Bug: b/136132412

Change-Id: Ib43b49ae03bd73eaed34e0293d11d48d825de0b0
2019-12-09 12:37:58 -08:00
Rahul Sabnis
31625bfe43 Merge "Resolve BluetoothA2dp hidden APIs to resolve dependencies" am: 67eae9d7ba am: 5ae6e7adc1
am: b0ff23dde3

Change-Id: Ifbb103349e9f44d976008d00ad332dbbf43fef96
2019-12-09 11:48:06 -08:00
Rahul Sabnis
b0ff23dde3 Merge "Resolve BluetoothA2dp hidden APIs to resolve dependencies" am: 67eae9d7ba
am: 5ae6e7adc1

Change-Id: Ibdf41e956337808e63130db9e6101efa0382a4f1
2019-12-09 11:44:02 -08:00
Sunny Goyal
4c980fe0e0 Cleaning up listener when task completes
The caller can hold on the Cancellation signal even after the task
completes which stores a reference of the original RemoteViews and
all the resources associated with it.

Bug: 145829442
Test: Verified Appwidget functionality
Change-Id: I6998980b5bf64dd59fa1b53240440b29df0fb866
2019-12-09 11:21:02 -08:00
Winson
3f46dbd7a0 Overlay, actor, and target app visibility handling
Hooks AppsFilter to support exposing a target and any overlays
targeting it to the actor specified in its overlayable block.

Sacrifices some install-time performance in favor of less memory
usage and easier to follow code by doing a full search/rebuild
on each change.

Benchmarks TBD

Bug: 143096091

Test: atest OverlayReferenceMapperTests

Change-Id: Ic832818b9aa383f1167ca3e69a11b8459fa9db97
2019-12-09 10:46:59 -08:00
Winson
6571c8a461 Critical fixes for AndroidPackage migration
Includes a series of fixes for bugs found during development of tests.
Those tests will be included in another CL. For now, merge the critical
fixes to allow devices to work properly.

Test: manual run atest com.android.server.pm.parsing with verify all
Test: atest android.content.pm.PackageParserTest
Test: atest com.android.server.pm.PackageParserTest
Test: atest com.android.server.pm.ScanTests

Change-Id: Ic8eb4b0072150f3841fd07f817060549591d4d91
2019-12-09 10:45:02 -08:00
Gavin Corkery
654af7615b Merge changes from topic "log-watchdog-reason"
* changes:
  Log watchdog-initiated rollback reason
  Add package failure flags to Package Watchdog
2019-12-09 18:01:13 +00:00
Chris Wren
cdea3b7009 track and report packages with undecorated remoteviews
print query results with:
  adb shell dumpsys notification --remote-view-stats

test the pulled atom with:
  make statsd_testdrive
  ./out/host/linux-x86/bin/statsd_testdrive 10066

Bug: 144855217
Test: atest PulledStatsTest
Change-Id: I773378fc7cfb47a9f9c7495404ddafa63f39cfaf
2019-12-09 12:18:18 -05:00
Roshan Pius
3f9ba67fa7 Merge changes from topics "suggestion_no_uid_package", "wifi_key_value_list_parser", "wifi_power_profile", "wifi_service_manager_getService", "wifi_westworld"
* changes:
  statsd: Allow wifi mainline module to log its metrics
  wifi-services-srcs: Stop using KeyValueListParser from android.internal
  WifiNetworkSuggestion: Don't store packageName/uid
  WifiAwareManager: Add requestMacAddresses @hide API
  UserManager: Add StringDef for all restrictionKey values
  WifiActivityEnergyInfo: Use time values for energy calculation
2019-12-09 17:08:30 +00:00
Neil Fuller
a7453c69b2 Extend LocalLog to enable UTC timestamps
Extend LocalLog to enable UTC timestamps with elapsed realtime clock
info too.

Switch time-related usages over to using UTC timestamps. This will make
debugging a lot easier when the code doing the logging is responsible
for changing the system clock and default time zone.

Test: treehugger only
Bug: 140712361
Change-Id: Ic6b12f9032c0c3ebc48f12a970a7b4dd398e7fec
2019-12-09 17:02:44 +00:00
Valerie Hau
28ed8110f7 Merge "Update to Blast surface control" 2019-12-09 15:54:11 +00:00
Roshan Pius
f4c912ec75 InterfaceConfiguration: Don't use @hide Sets class
InterfaceConfiguration class is going to be jar-jar'ed by wifi (in
internal master). Remove this @hide usage to avoid transitive @hide
dependency on wifi mainline module.

Bug: 145904524
Test: Compiles
Change-Id: I4dbe69a8597d75d19fb12b4f4940b26b64fda35e
2019-12-09 15:40:19 +00:00
Alex Johnston
b6bcf30de9 Merge "Call setCameraDisabled and getCameraDisabled on the parent profile" 2019-12-09 15:37:01 +00:00
Alex Johnston
755e377c4a Call setCameraDisabled and getCameraDisabled on the parent profile
Previously, these APIs did not support explicitly querying the parent profile.
This CL allows the WP DPC to now call these methods, which means the WP DPC
can disable the camera device-wide and not just for the WP.

Bug: 138709470
Test: manual testing using Personal and WP TestDPC and Camera
      atest com.android.cts.devicepolicy.ManagedProfileTest
      atest com.android.server.devicepolicy.DevicePolicyManagerTest

Change-Id: I7e7ce7be766850c6e2f58c72a0a44990817e9b73
2019-12-09 14:08:03 +00:00
Gavin Corkery
dd1dabaef7 Log watchdog-initiated rollback reason
To help with monitoring Mainline releases, log the reason
for a watchdog-initiated rollback. This may be due to
native crashes, app crashes, ANRs or explicit health check
failures.

Add a mapping from PackageWatchdog failure reason to the
new metrics.

Bug: 138782888
Test: atest PackageWatchdogTest
Test: atest StatsdHostTestCases
Change-Id: Ia3e73d955508297004591eac762555665c557b8a
2019-12-09 10:40:01 +00:00
Rubin Xu
feeeb6538e Merge "Kill off untrusted password reset" 2019-12-09 10:29:24 +00:00
Betty Chang
a52bbd3624 Merge "[Telephony Mainline] Add SimInfo.CONTENT_URI instead SubscriptionManager.CONTENT_URI for mainline" 2019-12-09 02:25:57 +00:00
Rubin Xu
d952240979 Kill off untrusted password reset
Time has come that we can finally ditch untrusted password reset i.e.
changing lockscreen password without providing the existing password or
an activiated password reset token. In this change, we are:

1. Preventing any DPC / legacy device admin from invoking
DPM.resetPassword(), the primary route to invoke untrusted password
reset. Depending on their target SDK level, resetPassword() will either
throw SecurityException, or fail silently.
2. Still allowing privilleged app holding RESET_PASSWORD permission to
call this API, but it's limited to setting a new passowrd on an
unsecured device.
3. Removing synthetic password caching mechanism in LockSettingsService,
whose sole purpose was to support untrusted password reset.

Bug: 137939224
Test: atest com.android.server.locksettings
Test: atest com.android.server.devicepolicy.DevicePolicyManagerTest
Change-Id: Ie3e5e277984b6fc2f1d378880363028752bad775
2019-12-08 22:01:01 +00:00
Jeff Sharkey
993b3ed571 Merge "Structure MediaProvider as an APEX." 2019-12-08 21:20:34 +00:00
Jeff Sharkey
679025e6a9 Merge "Initial support for subtitles and lyrics." 2019-12-07 16:15:29 +00:00
Jeff Sharkey
8002eb3292 Merge "Adjust policy for "stale" volumes outside module." 2019-12-07 03:47:46 +00:00
Jeff Sharkey
257b6bff6c Initial support for subtitles and lyrics.
Ideally audio and video files would embed information like subtitles
and lyrics directly into the container format, but alas the world
hasn't completely moved to Matroska yet.

Thus we're willing to recognize these side-car files and let them be
visible to apps that have gained the "Audio" or "Video" permissions.

Bug: 132359020, 143549606
Test: atest --test-mapping packages/providers/MediaProvider
Change-Id: I07513c48e245a00c0288a4b0fbee322cb02f49a9
2019-12-06 19:13:39 -07:00
Winson
655a5b9ca3 Revert Revert PackageParser#Package fixes
To separate the changes from the massive commit that reverted the revert,
this commit includes any rebase/merge fixes since the original commit.

Change-Id: I556881a44068d38e6816f445d138f4b4e48d2df0
2019-12-06 18:05:28 -08:00
Ruchir Rastogi
b6cfb833ec Merge "StatsEventParcel impl.; move AIDL files" 2019-12-07 00:58:25 +00:00
Rahul Sabnis
625e1c3ef4 Resolve BluetoothA2dp hidden APIs to resolve dependencies
Bug: 143240341
Test: Manual
Change-Id: Ib55e0fb106fa7b91ef4d3559da12ea2c048f1ae5
2019-12-06 16:58:05 -08:00
Jeff Sharkey
5e374476c4 Adjust policy for "stale" volumes outside module.
We're not ready to commit to VolumeRecord in an API surface, so the
next best choice we have is to place the logic in MediaStore, which
is outside the Mainline module boundary.

This also has the benefit of giving partners control over exactly
what policy they want to use for expiring stale volumes.

Bug: 137890034
Test: atest --test-mapping packages/providers/MediaProvider
Change-Id: I677e4bfa6d08e32775e02c323debbaa90acf632b
2019-12-06 17:52:16 -07:00
Chester Hsieh
ab720ee161 Add package name to DDM APNM packet
DDM APNM currently only reports the application/process name. For
services that need to know the underlying package name, those
services need to manually resolve the process's UID and map it to
the package name via the shell - a slow and error-prone process.

This change adds the package name to the APNM packet so users of
newer versions of DDMLib can directly get the package name.

Test: manual

Change-Id: I92517d5bb641cc263c0d58db667b00e67fc5e58b
2019-12-06 15:59:12 -08:00
Zach Johnson
ddeb2990a3 Merge changes from topics "merge BT bond", "parameterize BT enable", "remove BT isEnabled" am: bd4031de4a am: 2fb54515a2
am: b39a419fa4

Change-Id: Ie90be956ab6e52602ee72fa224ef471bb7bade38
2019-12-06 15:40:42 -08:00
Zach Johnson
b39a419fa4 Merge changes from topics "merge BT bond", "parameterize BT enable", "remove BT isEnabled" am: bd4031de4a
am: 2fb54515a2

Change-Id: Id6f1c11c447ff1896b5df81a7625a643ecebce46
2019-12-06 15:34:45 -08:00
Roshan Pius
3eac0b9158 UserManager: Add StringDef for all restrictionKey values
Based on API council feedback for the recently added
hasUserRestrictionForUser API.

Bug: 144924593
Test: Compiles
Change-Id: Ib78c334d48a57c2e97f8f1b29d7d663d3eb2f1c1
2019-12-06 15:34:26 -08:00
Meng Wang
dfc2459c7c Merge "SubscriptionPlan: move out of telephony" am: c4090312df am: 3172db5841
am: 405e5f3c15

Change-Id: I1c3921c9f10ac744a42490f1258fc67f30385b25
2019-12-06 15:27:41 -08:00