The annotation was removed when adding the constant to the public API,
but it was removed from the public API in favor of Build.isDebuggable() in
a later change.
Add back the @UnsupportedAppUsage annotation that should have been
added back when removing the constant from the public API.
Change-Id: Ic2fda01a8c0e90712a1b7b435443d32f7e226d33
Fixes: 187432390
Test: m
Like the jar stubs, the doc stubs need modularization to avoid depending
on module sources and instead being assembled by merging the doc stubs
of the constituent modules. This will allow generating e.g. the lint
database, annotation zips, and the documentation itself from prebuilts
(which in turn allows mixing e.g. non-updatable R with the latest
modules).
Move the defaults for the non-updatable jar stubs to the shared bp file
and reuse it for the non-updatable doc stubs, and add two targets for
the public and the system stubs.
Bug: 186197911
Test: m android-non-updatable-doc-stubs{,-system}
Merged-In: Ic2cef748c42c141ea42b8cd7b4afd7ee78a1399d
Change-Id: Ic2cef748c42c141ea42b8cd7b4afd7ee78a1399d
During R development cycle, default entitlement check is changed from
silent to showUI(start activity) in TetheringRequest. So start hotspot
by systemui is changed from silent to trigger UI. Expcility set
entitlement back to silent check in systemui for better user experience.
Fix: 182724427
Fix: 169493230
Test: atest HotspotControllerImplTest
atest CtsTetheringTest
on/off hotspot by systemui
Change-Id: Ida1964e28a7b2d0f1a1394e5de2ec437e0bc420a
Make it required in platform-bootclasspath, to make sure both are
installed at the same time.
Bug: 180105615
Test: m && launch_cvd
Change-Id: I58fec3781309727e35c5eb53959e7b6ff58fee73
For wifi, a old API: buildTemplateWifiWildcard will includes the merged
wifi which is included to mobile usage. It should not double count
again. Call new API: buildTemplateWifi with
NetworkId: NetworkTemplate.WIFI_NETWORKID_ALL
and null subscriberId to get non-merged wifi usage.
Test: atest -c DataUsageControllerTest
Test: Manual Test, wifi data usage count correctly.
Bug: 176396812
Merged-In: I047bc7dfe6a217c1a88faf3ed5c6783f33227c32
Change-Id: I047bc7dfe6a217c1a88faf3ed5c6783f33227c32
Instead of always wrapping errors in a DeviceIdAttestationException,
check to see if the underlying cause was originally a
DeviceIdAttestationException. If so, unwrap the cause and just re-throw
that, preserving the original error.
Bug: 183827468
Test: GtsGmsCoreSecurityTestApp
Change-Id: Iab78ccaff91dd1de615e1d2b18f709027aecd59e
Add new methods on LocationAccessQuery.Builder to make it harder to
screw up when using. Changes include:
* Mandatory specification of min sdk levels for enforcing both fine and
coarse permission
* Mandatory "are-you-sure" check when both fine and coarse are above the
base level (i.e. when there are api levels that are left unprotected)
Also adapt TelephonyRegistry's permission checks to follow these new
requirements on the builder.
Fixes: 157170257
Test: CTS, unit tests, manual
Merged-In: Ica8779dff4c671352b917a3ccc02cdd0e1c5856d
Change-Id: Ica8779dff4c671352b917a3ccc02cdd0e1c5856d
(cherry picked from commit d7c2351676)
This allows us to collect Java Heap Profiler data directly without
needing to set the flag similar to PerfettoHprof.
Test: Passing Tests
Local Testing
Bug: 160214819
Change-Id: Id4888107c7b12f076de8237fd42bab49319566b5
The boot image profile and preloaded class files will be split
for two parts. One for art and one for framework.
These intial empty files are necessary for server side to
compare the difference.
Bug: 186455808
Test: m
Change-Id: I51a1ab6fa203a8e85e2cebeff3f64c9bfc59b58a
Updates the Japanese Photo L media size name with JPN_ prefix
Test: L is present in API with updated name
Signed-off-by: Kurtis Schlepp <mopriadevteam@gmail.com>
Change-Id: Ib4e52b23571b166f6c000676fb81b4ac7c1f9a7a
This argument doesn't appear to alter the output.
Bug: 186197911
Test: diff metadata.zip, stubs.srcjar, annotations.zip before and after
Change-Id: I5147cf1f0658c78e5ab24952285c8fc1c036a55d
This will be useful when we want to clear overrides for apps that are no longer needed regardless of the version that is installed on device, e.g., when an app is being uninstalled, when we want to rollback an override, or when we deprecate a change-id.
In addition, rename CompatChanges#setPackageOverride to
addPackageOverrides.
Bug: 183183372
Test: atest FrameworksServicesTests:CompatConfigTest
Test: atest FrameworksServicesTests:PlatformCompatTest
Change-Id: Iff416c8b4c88b5eddc9e21c73219198d23266fa1
ConnectivityManager#MAX_NETWORK_TYPE is a hidden API which cannot
be accessed after ConnectivityManager becomes a part of mainline
module.
Use the max public network type - TYPE_VPN should be enough since
TYPE_* is deprecated and no longer extended.
Bug: 182859030
Test: 1. Remove "framework-connectivity.impl"
2. cd frameworks/base/core/tests/bandwidthtests; mm
Change-Id: I27579a942a0424db647ad1f3383db78d5a0c69a9
Merged-In: I27579a942a0424db647ad1f3383db78d5a0c69a9
(Cherry-picked from ag/14111130)
This CL updates VcnManagementService to set the NOT_VCN_MANAGED bit for
Networks that are not VCN-managed. This ensures that Networks correctly
regain the NOT_VCN_MANAGED bit after leaving a VCN.
Bug:
Test: atest FrameworksVcnTests CtsVcnTestCases
Change-Id: I01ffdde246e602296673675add58c47c92b15994
This CL updates VcnManagementService to notify policy listeners
when the subIds for any VCN instances change. This is necessary to
ensure that NetworkFactories properly update their Networks in the
event that a Network comes up under an existing VCN are properly
marked as VCN-managed.
Bug: 187112989
Test: atest FrameworksVcnTests CtsVcnTestCases
Change-Id: Iecab1226119c8fd876131c381647267f18339db2
If alarms with long timeouts are created, there is a risk of a
crash in system_server because of alarm creation limit is reached:
java.lang.IllegalStateException: Maximum limit of concurrent alarms 500
reached for uid: 1000, callingPackage: android
To avoid this cancel alarms if Notifications are canceled.
Suggested-by: Snild Dolkow <snild@sony.com>
Bug: 186456631
Change-Id: I63343b9450fc817ec6a2f46329de346320463c46