This saves dozens of warnings every time FrameworkNetTests is
compiled. There is nothing we can do about those warnings because
LegacyTypeTracker's reason for existence is to power deprecated
APIs.
Test: m FrameworksNetTests
Change-Id: I4d65b0aade493e12b56a94247efbf9d1ad7bb4b9
AdoptShellPermissionIdentity can not pass permission check by
Settings#checkAndNoteWriteSettingsOperation. It would compare the caller
uid and its package name. See error below:
1. java.lang.SecurityException:
Specified package com.android.shell under uid 10239 but it is really 2000
2. java.lang.SecurityException:
uid 10245 does not have android.permission.UPDATE_APP_OPS_STATS.
Override the method and test if caller hold WRITE_SETTINGS directly.
Bug: 154869719
Test: TetheringTests, TetheringCoverageTests, NetworkStackNextTests,
NetworkStackCoverageTests
Change-Id: I2a60c4d66ef30028f9663159f85464ea815248e2
Add a test to verify the ConnectivityService / NetworkMonitor
integration around the captive portal API.
Test: atest ConnectivityServiceIntegrationTest
Bug: 156062304
Change-Id: I4eed02e09fc4943c011d871c58ba97ec572c7763
See build/soong/README.md for more information.
Bug: 122332340
Test: treehugger + atest FrameworksLowpanApiTests
Change-Id: I5767d63a2ba200a43f218b57b255591255634269
See build/soong/README.md for more information.
Bug: 122332340
Test: treehugger + atest ProtoInputStreamTests
Change-Id: I558ded58b725310a544f0c79a090f38dcc1bc413
See build/soong/README.md for more information.
Bug: 122332340
Test: treehugger + vts_permission_validate_test
Change-Id: I9dc682f01267599867fabd341dea256b812bcfce
See build/soong/README.md for more information.
Bug: 122332340
Test: treehugger, atest FrameworksPrivacyLibraryTests
Change-Id: I000a5a635874ce88d32e8172d07f74c3fbb153c5
There is no TIME_T_MAX, so someone wrote INT_MAX instead. Use
std::numeric_limits<time_t>::max() so we can get the right answer on
both 32-bit and 64-bit systems.
Bug: http://b/156317457
Test: treehugger
Change-Id: I19fdee8601f8b59c4ee0959d59be946bfab6e4d0
(partial cherry-pick of internal change:
I4457ff2bd466a4c56fed2570e110f251031c2385)
With b/150232615, we will need an explicit value set for the exported
flag when intent filters are present, as the default behavior is
changing for S+. This change adds the value reflecting the previous
default to the manifest.
These changes were made using an automated tool, the xml file may be
reformatted slightly creating a larger diff. The only "real" change is
the addition of "android:exported" to activities, services, and
receivers that have one or more intent-filters.
Bug: 150232615
Test: TH
Merged-In: I4457ff2bd466a4c56fed2570e110f251031c2385
Change-Id: I65a1ca1678048bbf09edc9a0485b673644c8109d