472484 Commits

Author SHA1 Message Date
Anton Hansson
1d323e9833 Merge "Make framework-permission stubs use the new defaults" into rvc-dev 2020-03-26 08:39:54 +00:00
Anton Hansson
6efada1ada Merge "Make framework-statsd stubs use the new defaults" into rvc-dev 2020-03-26 08:39:40 +00:00
Anton Hansson
f4ca25a31b Merge "Make framework-tethering stubs use the new defaults" into rvc-dev 2020-03-26 08:39:02 +00:00
Martijn Coenen
6d0f6021be Remove MountServiceTests.
These exact tests already exist in CTS:
cts/tests/tests/os/src/android/os/storage/cts/StorageManagerTest.java

Remove these to avoid duplication.

Bug: 147276500
Test: N/A
Change-Id: I0954c4cfd005a3d03418fd5b1cbedd5f76cbe231
2020-03-26 09:00:26 +01:00
Louis Chang
99d6f0e884 Skip finishing activities while performing behind fullscreen check
Activities that behind a fullscreen finishing activity were
evaluated as invisible.

Bug: 144184591
Test: atest ActivityStackTests
Change-Id: Id09a30107d189acc986843ea8b3993a66c242a30
2020-03-26 15:55:36 +08:00
wilsonshih
cb867f5337 Promote keyguardGoingAwayWallpaper check condition.
Transit is moved to WindowContainer. Promote the check from
activityRecord to animatingContainer.
Also fix the duration of non-app window transition have not scaled.

Fixes: 152016945
Test: atest WallpaperControllerTests AppTransitionControllerTest
Change-Id: Icb09841db1c1db9195d34635163792139ba2e095
2020-03-26 15:45:20 +08:00
TreeHugger Robot
13ff35faab Merge "Update connected clients when a downstream disappears." into rvc-dev 2020-03-26 06:59:16 +00:00
TreeHugger Robot
6f3e64a56e Merge "Add a log message if enabling Ethernet tethering if it is already enabled." into rvc-dev 2020-03-26 06:53:35 +00:00
Sarah Chin
ac3eb46325 Un-deprecate SmsManager APIs
MmsManager methods were removed for mainline, so unexposing these

Test: build
Bug: 144004293
Change-Id: I9714719f2d922cb027fa42a1aa535006dce7342c
2020-03-25 23:33:15 -07:00
TreeHugger Robot
cfeb0d8323 Merge "Expand "extras" support in content tool." into rvc-dev 2020-03-26 06:29:59 +00:00
Wei Wang
06ccd26d39 Merge "ThermalManagerService: add retry for HAL connection" into rvc-dev 2020-03-26 05:50:07 +00:00
Treehugger Robot
2506781095 Update connected clients when a downstream disappears.
Otherwise, if another downstream of the same type reappears, the
code would fire a callback with the previous list of clients.

Bug: 150644681
Test: atest TetheringIntegrationTests:EthernetTetheringTest --rerun-until-failure 100
Change-Id: I6b34ea747ae1831001077f44879bb6828dcecc96
Merged-In: I6b34ea747ae1831001077f44879bb6828dcecc96
(cherry picked from commit 3984360f642ddd5820ced5a6935e37a8ae0d9d76)
2020-03-26 05:07:06 +00:00
Treehugger Robot
191a03c235 Add a log message if enabling Ethernet tethering if it is already enabled.
Test: builds
Bug: 150644681
Change-Id: I68123e6dd04ccae5da2ecd7526c11d9f835d1d57
Merged-In: I68123e6dd04ccae5da2ecd7526c11d9f835d1d57
(cherry picked from commit e6b8ded8121c137a7e434e1c2a9e04cc144f2f28)
2020-03-26 05:05:35 +00:00
Paul Hu
984f629a12 Merge "[TNU04] Add tethering restricted notification" into rvc-dev 2020-03-26 04:40:55 +00:00
Paul Hu
c49b208469 Merge "[TNU03] Add TetheringNotificationUpdaterTest" into rvc-dev 2020-03-26 04:40:36 +00:00
Peter_Liang
ee74b0ea90 Fix the duplicate components in edit shortcut menu list.
Root cause: After android R, will have new feature about AccessibilityShortcutInfo let developers to apply that in their service. But if the service have the both features that AccessibilityServiceInfo and AccessibilityShortcutInfo, the framework will make AccessibilityShortcutInfo priority higher than AccessibilityServiceInfo.

Goal: Filter tagert list in advance.

Bug: 152464317
Test: manual test
Change-Id: I93d2886ee686c939b8b6c4cf67b045392e9d9b51
2020-03-26 12:27:21 +08:00
Jason Chiu
39e7d17aeb Support logging intents from Profile select dialog
Bug: 137559984
Test: robotest
Change-Id: Ibb8cf01eb0483b83d57542456198731f78a41b60
2020-03-26 03:32:38 +00:00
TreeHugger Robot
f6f91b34f3 Merge "Notify remote rotation with fixed rotation transform" into rvc-dev 2020-03-26 03:26:22 +00:00
Lorenzo Colitti
678528ed42 Check permissions in INetworkManagementService#setIPv6AddrGenMode
This function was missing a permission check, and thus would
allow any app to transitively call the netd setIPv6AddrGenMode
IPC.

Fortunately, due to a bug in that IPC, it can only set the mode
to stable privacy and not to EUI-64.

This code is unused. The only thing on the system that sets the
IPv6 addrgen mode is the networkstack, but that does so by
calling the netd IPC directly.

Test: builds
Bug: 141920289
Change-Id: Id54431e81dceaff09f785a280ceee0973543a30f
2020-03-26 03:02:10 +00:00
TreeHugger Robot
2be42fbead Merge "Add Tuner Resource Manager Test as Presubmit test" into rvc-dev 2020-03-26 02:55:10 +00:00
Charles Chen
0cb6d3fd3d Merge "Rename createBaseActivityResources to createBaseTokenResources" into rvc-dev 2020-03-26 02:40:47 +00:00
TreeHugger Robot
f2a1de4c7d Merge "Tuner JNI: getDemuxCaps" into rvc-dev 2020-03-26 02:33:08 +00:00
Paul Hu
85b798828f Merge "[TNU02] Update tethering notification by active data subid" into rvc-dev 2020-03-26 02:28:48 +00:00
TreeHugger Robot
80a6f30ad8 Merge "Auto-expand overflow bubbles on promote" into rvc-dev 2020-03-26 02:11:56 +00:00
Paul Hu
f950dc9f24 [TNU04] Add tethering restricted notification
If tethering is restricted to the user, show restricted
notification to notify the user.

Bug: 122085773
Test: atest TetheringTests
Change-Id: Ic5baca2d6102886f4c3530ce1e321b5dab6ea9d7
Merged-In: Ic5baca2d6102886f4c3530ce1e321b5dab6ea9d7
(cherry picked from aosp/1188867)
2020-03-26 02:01:37 +00:00
Paul Hu
8d6928035e [TNU03] Add TetheringNotificationUpdaterTest
Add new test for TetheringNotificationUpdater

Bug: 122085773
Bug: 130596698
Test: atest TetheringTests
Change-Id: I0db3df3e85dd6a8c3989c8bc66a06c50f45a0c15
Merged-In: I0db3df3e85dd6a8c3989c8bc66a06c50f45a0c15
(cherry picked from aosp/1209985)
2020-03-26 01:59:15 +00:00
Dmitri Plotnikov
da4f3c8353 Propagate exception thrown by ContentProvider.canonicalize
Test: atest FrameworksCoreTests:android.content.ContentResolverTest
Fixes: 149184281
Change-Id: Id200748c9d54222aaf669209a43cbaa5675d8331
2020-03-25 18:34:11 -07:00
TreeHugger Robot
b98be8b6a9 Merge "Update READ_PHONE_NUMBER security checks" into rvc-dev 2020-03-26 01:31:21 +00:00
TreeHugger Robot
46f0be1f16 Merge "Reuse and reparent one-level root task to another display" into rvc-dev 2020-03-26 01:29:11 +00:00
TreeHugger Robot
6a35c77c5e Merge "Fix input infos are inconsistent between WMS and InputFlinger (1/2)" into rvc-dev 2020-03-26 01:15:41 +00:00
Tyler Gunn
cf2cd8dcd8 Fix potential issue where sub info change listener is not registered.
SubscriptionManager#addOnSubscriptionsChangedListener can fail to
register a listener if the TELEPHONY_REGISTRY system service is not up.
Currently this is just silently ignored.

Adding a callback method on the listener to notify the registrant that the
listener failed to be registered, and adding exponential backoff code in
TelecomAccountRegistry to retry registration.

Test: Manual; edited code in Subscriptionmanager to fail the first attempts
to add a listener for TelecomAccountRegistry.  Verified the backoff took
place and registration still occurred for the listener.
Test: Tried to write a mockito test but gave up because this code has
far too many intertwined dependencies and is not inherently testable
Fixes: 152217039

Change-Id: Icf3133cdeca526979cb621f29659b880127b680a
2020-03-25 18:11:56 -07:00
TreeHugger Robot
68fc667972 Merge "Sequentially handle enable and disable" into rvc-dev 2020-03-26 01:06:48 +00:00
Mingming Cai
fa9bd571b9 Merge "Add comments to GSM and CDMA getDbm()" into rvc-dev 2020-03-26 01:05:36 +00:00
Wei Wang
5ad0a8a047 ThermalManagerService: add retry for HAL connection
Fixes: 152430257
Test: Build
Change-Id: Ifdce156f74cf6c8d858a8139e03208c24f31e369
2020-03-25 17:53:21 -07:00
Jing Ji
52f4d8d9f2 Merge "Update doc for ApplicationExitInfo.getDefiningUid" into rvc-dev 2020-03-26 00:43:33 +00:00
Jeff Sharkey
547bf5487d Expand "extras" support in content tool.
We recently added a new "Bundle extras" argument to insert(),
update(), delete(), and query(), so we should ensure that developers
working from the shell can populate these extras.

Uses binding logic that was already used for call() extras.  Fixes
parsing logic to support keys or values that have escaped colons,
and fix bug to always parse as requested data type.

Bug: 150982673
Test: adb shell content query
    --uri content://media/external/images/media/
    --extra android\\\\:query-arg-match-trashed:i:3
Change-Id: I40a9a94e85e175e298b01688d3b075a89b2e3954
2020-03-25 18:35:10 -06:00
TreeHugger Robot
2089dc67c7 Merge "Add CTS for BlobStoreManager.Session.openRead()." into rvc-dev 2020-03-26 00:24:51 +00:00
Les Lee
d6f3212620 Merge "wifi: Support setBssid for tethered mode hotspot" into rvc-dev 2020-03-26 00:23:14 +00:00
Menghan Li
fea8d184c2 Merge "Accessibility Service & Shortcut Redesign - Remove “volume key shortcut” setting (5/n)" into rvc-dev 2020-03-26 00:21:50 +00:00
Hui Yu
56e3510bda Merge "Add isUidActiveOrForeground() for camera/audio to use." into rvc-dev 2020-03-25 23:47:51 +00:00
tsaichristine
d5800b208e Update unit tests to use new socket schema
I forgot to update Gauge and EventMetricProducer unit test files to use
the new socket schema.

The EventMetric tests were also incomplete so I added test code to
output the dump report and check its contents.

Test: bit statsd_test:*
Bug: 149590301 && 110561136

Change-Id: I685688285d9890cf7c5bd3ffc43f13cbbb8f93de
2020-03-25 16:36:18 -07:00
Mingming Cai
e5befcbd28 Add comments to GSM and CDMA getDbm()
Bug: 148912739
Test: make
Change-Id: I9be4caeda8f50645bc742e95bfd7ba067a02883f
Merged-In: I9be4caeda8f50645bc742e95bfd7ba067a02883f
(cherry picked from commit b78e84c5226afdf94bc0ba0119d65b926cb37d1d)
2020-03-25 16:08:18 -07:00
TreeHugger Robot
8cb538c94c Merge "tests: AppLaunch - increase sleep duration after resetting iorapd" into rvc-dev 2020-03-25 22:59:04 +00:00
Winson Chung
d658ab5971 Merge "Fix small issue with task org state cleanup" into rvc-dev 2020-03-25 22:36:47 +00:00
Jeffrey Huang
1bd7fe106a Merge changes I7127dd7d,I84da0cd9 into rvc-dev
* changes:
  Add mAlertToAnomalyTrackerMap to MetricsManager
  Add StatsMetadataList proto
2020-03-25 22:31:02 +00:00
Ahaan Ugale
56cfc32424 Merge "Don't filter pinned inline suggestions." into rvc-dev 2020-03-25 22:20:21 +00:00
TreeHugger Robot
a090dbd942 Merge "Show predefined title and description in finished notification" into rvc-dev 2020-03-25 22:19:34 +00:00
Kevin Chyn
127e3957d6 Merge changes I704914b2,I51560dfc,I866e84b2 into rvc-dev
* changes:
  Allow BIOMETRIC_CONVENIENCE to register with BiometricService
  Improve AuthService logging
  Only BIOMETRIC_STRONG HATs should be sent to KeyStore
2020-03-25 22:10:14 +00:00
Philip P. Moltmann
bd2780151a Do not verify APKs out of updated APEXs
For APK-in-APEX the system is not aware of the pre-installed APKs. Hence
the currently installed APK always shows up as "factory-installed APK".

For factory installed APKs we enforce that all privilidged perissions
are manually whitelisted.

If an APK-in-APEX gets updated the app might request additional
privilidged permissions. We now explicity allow this.

This change leaves all apex specific logic inside of ApexMgr. E.g.
- how to figure out if a pkg is a apk-in-apex
- how apexPkgs are marked as factory/updated

Fixes: 148853593
Test: Built a new APK-In-APEX that contained new priv permission,
      installed it and rebooted -> no crash, but permission was not granted
Change-Id: I254e5189909efdafe3dc0ca8a5ab5a520457c585
2020-03-25 15:02:07 -07:00
TreeHugger Robot
6b55cef934 Merge "Registering DeviceCallback too much" into rvc-dev 2020-03-25 21:50:12 +00:00