Commit Graph

8285 Commits

Author SHA1 Message Date
Automerger Merge Worker
f1124753ed Merge "[API Review] Expose sendOrderedBroadcast" am: b0157c3ee3
Change-Id: I686308c2af6e31a30c211d25adea416d556e5cd1
2020-03-02 21:59:55 +00:00
Peter Wang
b0157c3ee3 Merge "[API Review] Expose sendOrderedBroadcast" 2020-03-02 21:50:13 +00: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
Peter Wang
3e227cdfc5 [API Review] Expose sendOrderedBroadcast
with appOp as String and options as Bundle

Bug: 139077993
Bug: 146423958
Test: Build
Change-Id: I5325e08d60016741139251813a5df9b42f2efc82
Merged-In: I5325e08d60016741139251813a5df9b42f2efc82
2020-02-27 14:45:23 -08:00
Automerger Merge Worker
4349d2d937 Move EXTRA_SERVICE_STATE from Intent to ServiceState. am: 3ee618bbf5
Change-Id: Ia1452df2cd70deeee8bac0d71f108404ac292725
2020-02-26 18:04:05 +00:00
Amit Mahajan
3ee618bbf5 Move EXTRA_SERVICE_STATE from Intent to ServiceState.
This extra is not exposed and is not used by anyone as such.
Leaving it there for internal use/unsupported app usage.

Test: basic sanity
Bug: 140908357
Merged-in: I9fe6e904291affb1cd7b705212d47525b61a5679
Change-Id: I9fe6e904291affb1cd7b705212d47525b61a5679
(cherry picked from commit bb61b17cd9)
2020-02-25 12:28:02 -08:00
Automerger Merge Worker
c648a4ebd0 Merge "Add a TV_TUNER_RESOURCE_MGR_SERVICE in Android Framework Context" am: 1803b40158
Change-Id: Ie9a1ae8d778d8843cdcb7dd678aa8acafcac159f
2020-02-23 04:02:38 +00:00
Amy
ec8c2df33b Add a TV_TUNER_RESOURCE_MGR_SERVICE in Android Framework Context
Test: manual
Bug: 147380513
Change-Id: Id026b59bcec4a1ead9aa7ba900e72ee074c7ef81
Merged-In: Ifedc4e6f120e711aadffdf715d8720e0b64fbe16
2020-02-21 23:33:38 +00:00
Automerger Merge Worker
1e8247d25d Merge "Add Vulkan dEQP level feature flag" am: 49fa6ba37f
Change-Id: Ibbaf55fe2126371392674b8abe3ae3013486b599
2020-02-20 21:24:20 +00:00
Treehugger Robot
49fa6ba37f Merge "Add Vulkan dEQP level feature flag" 2020-02-20 21:06:20 +00:00
Automerger Merge Worker
2cef69cb5f Merge "Revert "Revert "[DexLoadReporter] Report classloader contexts di..."" am: 1ee3e70cf3
Change-Id: I5645d6c8f666e2e29e753cad5f216f9d7ab335d2
2020-02-19 19:52:57 +00:00
Calin Juravle
1ee3e70cf3 Merge "Revert "Revert "[DexLoadReporter] Report classloader contexts di..."" 2020-02-19 19:38:35 +00:00
Calin Juravle
c78162f489 Revert "Revert "[DexLoadReporter] Report classloader contexts di..."
Original commit:
[DexLoadReporter] Report classloader contexts directly from classloader

At the moment classloader contexts are incorrectly computed in the
PackageManager for secondary dex files. There are two issues:

(1) The wrong computed classLoaderContext will be reported for a secondary
    dex file if it was loaded at the same time as a primary dex file
    - This is due to the continue statement that doesn't increment
      dexPathIndex
(2) If a secondary dex file was loaded with a shared library then that
    shared library info isn't passed through the dex load reporting
    infrastructure, and thus its classloader context is incorrectly computed
    in PackageManager.

In order to fix the issues described above & prevent further classloader
context computation divergences between the package manager and the
runtime, lets compute the classloader context in the runtime at dex load
time and report the expected classloader context directly to
DexLoadReporter (and thus the package manager).

Notes: This is mostly just a refactor (i.e. there are a lot of line
changes, but functionally speaking this set of CLs doesn't do much
except change where the classloader context is computed)

Addendum: The bugs described above could also be fixed by:
- changing DexLoadReporter to report information about shared libraries that
  the reported classloaders depend on to PackageManager
- Teach DexoptUtils.processContextForDexLoad about shared libraries
- Fix dexPathIndex calculation in DexManager

I opted for this set of changes instead because this reduces the
possibility of context computation divergence between the framework and the
runtime. Additionally it feels more "solid" that the classloader context
is now computed directly when a dex file is loaded, rather than the
context recreated later on in the PackageManager.

Test: atest com.android.server.pm.dex.DexManagerTests
Test: atest com.android.server.pm.PackageManagerServiceTest
Test: Install app depending on shared library & uses secondary dex
files; adb shell pm bg-dexopt-job; launch app and see odex file
successfully loaded (from smaps/no logcat errors)

Bug: 148494302
Exempt-From-Owner-Approval: This is a pure re-revert, previously owner approved.
Reason for revert: Re-land
Reverted Changes:
I295a6e99e:Revert "Fix shared libraries not being reported vi...
Ib58066e8f:Revert "[DexLoadReporter] Report classloader conte...

Change-Id: I8d1af791f93a3f8fa6eca78df50891cd2ebbb4a3
2020-02-19 19:37:05 +00:00
Alastair Donaldson
1c0b692a0e Add Vulkan dEQP level feature flag
This change adds a feature flag that specifies the date associated
with the Vulkan dEQP tests that a device claims to pass.

Bug: 136573508

Change-Id: I0cec29fe5f69f228faaa2298b7f5b65bcf988dba
Merged-In: I0cec29fe5f69f228faaa2298b7f5b65bcf988dba
2020-02-19 19:17:50 +00:00
Automerger Merge Worker
1f82fbb4ac Merge "Improve BaseBundle#kindofEquals" am: 42ab50d14b
Change-Id: Ic5c2c5bcf979236c77344d0507d071bbb83f624e
2020-02-19 00:33:09 +00:00
Nicolas Geoffray
ea12868665 Merge "Revert "[DexLoadReporter] Report classloader contexts directly f..."" am: ae50e15d59
Change-Id: Icc45c40ce116ce54a915650ca6f6600b6db08e0e
2020-02-15 17:36:14 +00:00
Nicolas Geoffray
371fcb7cf2 Revert "[DexLoadReporter] Report classloader contexts directly f..."
Revert "Fix shared libraries not being reported via Reporter"

Revert submission 1198456-slclc

Reason for revert: Fails on luci:
https://ci.chromium.org/p/art/builders/ci/host-x86_64-cdex-fast/3123

Exempt-From-Owner-Approval: pure revert

Bug: 148494302
Reverted Changes:
I46d8d9105: Fix shared libraries not being reported via Report...
I00357cfe0: [DexLoadReporter] Report classloader contexts dire...

Change-Id: Ib58066e8f059642a11d9eaab02ec0b8b3217e487
2020-02-15 17:13:58 +00:00
Suprabh Shukla
3b413dd57e Improve BaseBundle#kindofEquals
If both BaseBundles are empty, we can infer that without needing to
unparcel any of them.

Test: atest FrameworksCoreTests:android.os.BundleTest

Bug: 146037505
Change-Id: I04c28cdd1293227d9887b0c17e178f61328c1959
Merged-In: I04c28cdd1293227d9887b0c17e178f61328c1959
2020-02-14 14:05:00 -08:00
Calin Juravle
ce9b12f5bf Merge "[DexLoadReporter] Report classloader contexts directly from classloader" am: 5a01991fef
Change-Id: Ida294271950c3f330f1acb2150ac3892db88ab64
2020-02-14 20:29:11 +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
Dan Zimmerman
a05766e507 [DexLoadReporter] Report classloader contexts directly from classloader
At the moment classloader contexts are incorrectly computed in the
PackageManager for secondary dex files. There are two issues:

(1) The wrong computed classLoaderContext will be reported for a secondary
    dex file if it was loaded at the same time as a primary dex file
    - This is due to the continue statement that doesn't increment
      dexPathIndex
(2) If a secondary dex file was loaded with a shared library then that
    shared library info isn't passed through the dex load reporting
    infrastructure, and thus its classloader context is incorrectly computed
    in PackageManager.

In order to fix the issues described above & prevent further classloader
context computation divergences between the package manager and the
runtime, lets compute the classloader context in the runtime at dex load
time and report the expected classloader context directly to
DexLoadReporter (and thus the package manager).

Notes: This is mostly just a refactor (i.e. there are a lot of line
changes, but functionally speaking this set of CLs doesn't do much
except change where the classloader context is computed)

Addendum: The bugs described above could also be fixed by:
- changing DexLoadReporter to report information about shared libraries that
  the reported classloaders depend on to PackageManager
- Teach DexoptUtils.processContextForDexLoad about shared libraries
- Fix dexPathIndex calculation in DexManager

I opted for this set of changes instead because this reduces the
possibility of context computation divergence between the framework and the
runtime. Additionally it feels more "solid" that the classloader context
is now computed directly when a dex file is loaded, rather than the
context recreated later on in the PackageManager.

Test: atest com.android.server.pm.dex.DexManagerTests
Test: atest com.android.server.pm.PackageManagerServiceTest
Test: Install app depending on shared library & uses secondary dex
files; adb shell pm bg-dexopt-job; launch app and see odex file
successfully loaded (from smaps/no logcat errors)

Bug: 148494302
Change-Id: I00357cfe086ff149f92c1078c6df6daa713c8f7c
2020-02-13 04:31:55 -08:00
Automerger Merge Worker
bd0f475895 Merge changes from topic "lights-manager" am: 59401aab80
Change-Id: I9a45024b3cb557afd4fb09e69692f35c4372c928
2020-02-08 01:37:15 +00:00
Ivailo Karamanolev
3e376b79ce Add LightsManager implementation to LightsService
Includes backend code to support LightsManager binder calls and route
them to the HALs.

Bug: 144979010
Bug: 144978691
Bug: 142715294
Change-Id: I0080972620ba7a3fb1197cdd0288287d3cfa8780
Fix: 142230898
Test: atest LightsManagerTest
Test: atest LightsServiceTest
Merged-In: I2db7f2caa432cd1e2389ea5ca6544200ada18675
2020-02-07 02:11:18 +01:00
Lorenzo Colitti
b6081962ee Merge changes I34842acd,Icc6c4d6b
am: fb3dccd961

Change-Id: I38f5452905216ebf9e0b28311d34ad0667243274
2020-01-28 02:53:38 -08:00
Remi NGUYEN VAN
f2f3f3e345 Add support for Ethernet tethering
Ethernet tethering can be started via
startTethering(TETHERING_ETHERNET).

Test: flashed, enabled ethernet tethering, verified internet access on
      downstream.
Bug: 130840861

Merged-In: I34842acd94b972e440c3622f7617df10c18acf65
Change-Id: I34842acd94b972e440c3622f7617df10c18acf65
(cherry-pick with conflicts in test-current.txt)
2020-01-28 17:52:06 +09:00
Brad Ebinger
f590f0a019 Merge changes from topics "cp_rcs_uce_setting", "ims_uce_system"
am: e86be6d43e

Change-Id: Ifbd647107644390561c4b57561c73d6d67384ecf
2020-01-27 11:08:46 -08:00
Brad Ebinger
cab43e32f0 Make remaining UCE related APIs @SystemApi
Bug: 111305845
Bug: 147613952
Test: atest CtsTelephonyTestCases
Merged-In: I8fed782e7bef10d6d136fce02e6f1b59d225272b
Change-Id: I8fed782e7bef10d6d136fce02e6f1b59d225272b
2020-01-27 09:22:48 -08:00
Automerger Merge Worker
7aadbe0e75 Merge "Expose ACTION_USER_SWITCHED as system API" am: e69e147657
Change-Id: Idfb18d0ec6ee68a501b027a266350a0f794011ca
2020-01-24 03:31:41 +00:00
Meng Wang
ffe0cbe5ca Expose ACTION_USER_SWITCHED as system API
Bug: 148180958
Test: make
Change-Id: I8eb6689c0542869ef7050ce68f1c47e072f1dc01
2020-01-23 17:24:47 -08:00
Meng Wang
156a854c72 Merge "Expose MATCH_HIDDEN_UNTIL_INSTALLED_COMPONENTS as system API"
am: 7db161b9ef

Change-Id: I7b33c06e8f581ade2a904b26188e13982aeed5bd
2020-01-23 13:23:02 -08:00
Treehugger Robot
7db161b9ef Merge "Expose MATCH_HIDDEN_UNTIL_INSTALLED_COMPONENTS as system API" 2020-01-23 19:28:28 +00:00
Benedict Wong
1ebbd0bb6b Merge changes from topic "add-ikev2-vpn-types"
am: adb79e3b39

Change-Id: I205121bbd8ef8adbe5e7a5ea1c57bbcac0efae0e
2020-01-22 22:09:41 -08:00
Benedict Wong
50b444359e Add VpnManger API surface
This change adds the VpnManager, which will be used by apps to install
profiles for all platform VPN types (currently only IKEv2).

Bug: 143325939
Test: Compiles, FrameworksNetTests passing.
Change-Id: I57f854d0a5b18358f3541c24ca0cd8aed03fd7a1
2020-01-22 19:24:24 -08:00
Cody Kesting
45e0caf5dc Merge changes from topic "connectivity-diagnostics-system-server"
am: 9cd249c11a

Change-Id: I48a9f1f734b5e2dd4f7ed91c052cec5c8c62c076
2020-01-22 19:10:05 -08:00
Meng Wang
c9795600db Expose MATCH_HIDDEN_UNTIL_INSTALLED_COMPONENTS as system API
Bug: 148171847
Test: make
Change-Id: I199e54f8577edc5dc2114c357bee325b9237ee59
2020-01-22 15:15:46 -08:00
Cody Kesting
b125776009 Add ConnectivityDiagnosticsManager to System Server.
ConnectivityDiagnosticsManager should be accessed through
Context#getService. In order for this to be possible, it needs to be
defined as a service inside SystemServiceRegistry.

Bug: 146444622
Test: compiles.
Test: CTS testing in aosp/1211164
Change-Id: I6fe29441ecc9967a04ceb394b3bbe54830bef079
2020-01-21 08:31:56 -08:00
Meng Wang
071427f6f6 Merge "Expose system API EXTRA_REBROADCAST_ON_UNLOCK"
am: 027bf28b3a

Change-Id: I77b80ddd80d2c797d7a492fd361b0d4153c1383a
2020-01-17 18:06:31 -08:00
Treehugger Robot
027bf28b3a Merge "Expose system API EXTRA_REBROADCAST_ON_UNLOCK" 2020-01-18 01:52:58 +00:00
Meng Wang
13749cb311 Expose system API EXTRA_REBROADCAST_ON_UNLOCK
It's used by system apps - see follow up CL.

Bug: 147912059
Test: make
Change-Id: Id5e803756b8c3235187e13a36b8c197d5269e816
2020-01-17 15:58:04 -08:00
Adrian Roos
72bb1fa6c2 Merge "API: Supress existing inconsistent Context service names"
am: 3b35f3dfef

Change-Id: I93d19a74fc2194b7f088069e3b89a9a28917e54a
2020-01-17 12:48:33 -08:00
Adrian Roos
2835792aa7 API: Supress existing inconsistent Context service names
Test: make checkapi
Change-Id: I1f140dc172a405fed52f0f8d6c16f2f730ab89be
Merged-In: I1f140dc172a405fed52f0f8d6c16f2f730ab89be
2020-01-17 12:30:38 +01:00
Xin Li
e13851556b DO NOT MERGE - Merge qt-qpr1-dev-plus-aosp-without-vendor (6129114) into stage-aosp-master
Bug: 146167222
Change-Id: Ifeb003ec9b3bf824f04d31a117aea65d517241fb
2020-01-15 16:15:41 -08:00
Remi NGUYEN VAN
fe1ce1e047 Add NETWORK_STACK_SERVICE to SystemServiceRegistry
The service is already registered in ServiceManager. It needs to be
accessible from SystemServiceRegistry so that other mainline modules
can communicate with it.

Bug: 147255753
Test: Dependent CLs using the service
Change-Id: I940c62064466c3b3b8d2a195b810e90eaade7e6c
Merged-In: I940c62064466c3b3b8d2a195b810e90eaade7e6c
2020-01-14 02:17:54 +00:00
satayev
e1432f59ee Merge "Use new UnsupportedAppUsage annotation." 2020-01-13 13:09:36 +00:00
Automerger Merge Worker
9694a16c04 Merge "Revert "Make MmsManager public"" am: 393af8c53c am: 685a0ab43b
Change-Id: I64d9e9a55f8124bdfe8bcd7aba8e8f74a42b0051
2020-01-10 23:01:18 +00:00
Sarah Chin
5dd05a4931 Revert "Make MmsManager public"
This reverts commit 2137c9bd39.

Reason for revert: Reverted internally

Change-Id: I6bed6facba681fa4abee739be50e21700b37c84a
Merged-In: I5952168aba996a10554406a9f1675ac3b04fa41f
2020-01-10 19:34:12 +00:00
Automerger Merge Worker
ae6dd8d253 Merge "Make MmsManager public" am: b93ab62135 am: 4fbe9dd076
Change-Id: Icf438f6d3ff46655beae6c71aef06343bff13186
2020-01-10 17:16:58 +00:00
Artur Satayev
76c1d9d5e1 Use new UnsupportedAppUsage annotation.
Existing annotations in libcore/ and frameworks/ will deleted after the migration. This also means that any java library that compiles @UnsupportedAppUsage requires a direct dependency on "unsupportedappusage" java_library.

Bug: 145132366
Test: m && diff unsupportedappusage_index.csv
Change-Id: I6ab53570aca580fbee1fcc927871caa09780f58f
Merged-In: I6ab53570aca580fbee1fcc927871caa09780f58f
2020-01-10 17:02:03 +00:00
Sarah Chin
2137c9bd39 Make MmsManager public
Test: atest TelephonyFrameworksTests
Bug: 144004293
Change-Id: I6cd3587ecba36c9ff9d45a6c174077e8dd7d8fb0
2020-01-09 12:16:41 -08:00