Commit Graph

566880 Commits

Author SHA1 Message Date
Remi NGUYEN VAN
0ef41fbca2 Add back @UnsupportedAppUsage to IS_DEBUGGABLE
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
2021-05-10 14:45:38 +00:00
Gavin Corkery
c27a2ab087 Merge "Add OWNERS to RescueParty" 2021-05-10 13:54:23 +00:00
Gavin Corkery
b9d9b1ac79 Add OWNERS to RescueParty
Test: Builds
Bug: 180579911
Change-Id: Icb592c7db07feefe7e35278496532a91e49f9b3d
2021-05-10 13:00:17 +01:00
Anton Hansson
ee95f486e5 Merge "Add targets to build doc-stubs for non-updatable" 2021-05-10 08:55:07 +00:00
Paul Hu
e01bb41ad7 Merge "Add missed break" 2021-05-10 01:42:24 +00:00
Mark Chien
20df56adb7 Merge "startTethering with silent entitlement in systemui" 2021-05-09 16:16:55 +00:00
James Lin
011be0d15a Merge "Add carrier config for the SIP 486 request forbidden and add API for SHELL command to remove the UCE requests cannot be sent the network status." 2021-05-09 13:50:14 +00:00
Treehugger Robot
3736d7ac1b Merge "Call apexd's API to allocate space before install non-AB package" 2021-05-08 21:44:57 +00:00
Treehugger Robot
d943c45349 Merge "DO NOT MERGE - Merge RQ2A.210505.003." 2021-05-08 21:38:02 +00:00
Xin Li
4ba43d5b0b DO NOT MERGE - Merge RQ2A.210505.003.
Bug: 187544653
Merged-In: If9e34a0120121ed851b911c8a8bd2bbe0e0f9e34
Merged-In: Ia6bd5658b77a26ab15fea013ec875050457473e0
Change-Id: I2e22d2bdd2c54eb3489fe82f2601ded2af16bd5c
2021-05-08 08:39:19 +00:00
James.cf Lin
cf451204eb Add carrier config for the SIP 486 request forbidden and add API for SHELL command to remove the UCE requests cannot be sent the network status.
Bug: 186131340
Test: atest ImsServiceTest RcsUceAdapterTest
Change-Id: Id3a97fc975764754d6b610478c17a501f65aa229
2021-05-08 07:33:03 +08:00
Treehugger Robot
61f27d7d52 Merge "Add platform-systemserverclasspath." 2021-05-07 18:34:52 +00:00
Yan Wang
d9c35709f8 Merge "Add empty boot image profile and preload classes for framework" 2021-05-07 16:31:39 +00:00
Treehugger Robot
9417be4487 Merge "Remove non-updatable-* prefix from .txt files" 2021-05-07 15:39:04 +00:00
Anton Hansson
c7f5e7d439 Add targets to build doc-stubs for non-updatable
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
2021-05-07 13:51:28 +01:00
Lucas Lin
9639cd6242 Merge "Replace MAX_NETWORK_TYPE with TYPE_VPN" 2021-05-07 08:48:28 +00:00
markchien
5024d4d046 startTethering with silent entitlement in systemui
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
2021-05-07 07:26:57 +00:00
Treehugger Robot
c8fd9b844b Merge "Move myself to emeritus section" 2021-05-06 22:24:55 +00:00
Wessam Hassanein
45087d31f8 Merge "Enable PerfettoJavaHeapStackProf in the zygote." 2021-05-06 21:08:01 +00:00
Rambo Wang
a863b0297b Merge "Make LocationAccessQuery's builder safer to use" 2021-05-06 18:45:03 +00:00
Seth Moore
27bc799e7e Merge "Don't re-wrap DeviceIdAttestationExceptions" 2021-05-06 17:09:56 +00:00
Treehugger Robot
44da0f67b4 Merge "Allow ART profile saver period to be parsed from sys props" 2021-05-06 16:01:15 +00:00
Treehugger Robot
9e7ac57a6c Merge "Cancel NotificationTimeout alarms when canceling notification" 2021-05-06 14:25:45 +00:00
Eran Messeri
d5296e3ec4 Move myself to emeritus section
Will no longer be actively developing Device Policy Manager code.

Bug: 187395769
Test: N/A
Change-Id: Ifed25031a8b57e22dec0c8c5e07e27a92431b13f
2021-05-06 15:13:18 +01:00
satayev
8e93d887c9 Add platform-systemserverclasspath.
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
2021-05-06 13:32:13 +01:00
vichang
ffe7986d71 Merge "Copy StringPool to framework" 2021-05-06 11:16:09 +00:00
Nikita Iashchenko
0a632252af Merge "Rename getters and setters android.compat.Compatibility.ChangeConfig" 2021-05-06 09:14:14 +00:00
Les Lee
f437848713 Merge "wifi: Use new API for wifi data usage function" 2021-05-06 04:42:07 +00:00
lesl
fda6acc990 wifi: Use new API for wifi data usage function
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
2021-05-06 09:19:41 +08:00
Seth Moore
c73fe01f16 Don't re-wrap DeviceIdAttestationExceptions
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
2021-05-05 17:41:38 -07:00
Calin Juravle
f93ecde2fe Allow ART profile saver period to be parsed from sys props
Test: manual

Bug: 184714236
Bug: 185979271
Change-Id: I4ab069e8c4de9f73b7951845e7cb80bc00642e22
2021-05-05 17:15:38 -07:00
Cody Kesting
a5786a15e1 Merge changes I01ffdde2,Iecab1226
* changes:
  Set NOT_VCN_MANAGED capability for Networks in VcnMgmtSvc.
  Notify policy listeners when VCN subIds change.
2021-05-05 21:27:09 +00:00
Treehugger Robot
2a46c6491f Merge "update L photo size name with JPN_ prefix" 2021-05-05 20:36:53 +00:00
Hall Liu
6d3455e488 Make LocationAccessQuery's builder safer to use
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)
2021-05-05 19:33:40 +00:00
Wessam Hassanein
f1d719b0a2 Enable PerfettoJavaHeapStackProf in the zygote.
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
2021-05-05 11:55:34 -07:00
yawanng
eb2b1d53c7 Add empty boot image profile and preload classes for framework
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
2021-05-05 17:09:55 +00:00
Kurtis Schlepp
11749564b1 update L photo size name with JPN_ prefix
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
2021-05-05 10:06:03 -07:00
Tom Natan
b9680bac79 Merge "Add an API method for clearing compat overrides on release builds" 2021-05-05 14:58:41 +00:00
Anton Hansson
c02168f5d1 Merge "Remove --ignore-classes-on-classpath argument" 2021-05-05 13:17:56 +00:00
Anton Hansson
26c843fd12 Remove --ignore-classes-on-classpath argument
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
2021-05-05 11:11:57 +01:00
Treehugger Robot
44ab24bb22 Merge "CEC: Drop TODOs marked as fixed/obsolete" 2021-05-05 09:43:43 +00:00
Treehugger Robot
a1f337fe73 Merge "CEC: Drop obsolete method" 2021-05-05 09:43:12 +00:00
tomnatan
2697018f70 Add an API method for clearing compat overrides on release builds
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
2021-05-05 07:10:41 +00:00
lucaslin
2e5cfe4ebf Replace MAX_NETWORK_TYPE with TYPE_VPN
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)
2021-05-05 05:41:50 +00:00
paulhu
549f152bf5 Add missed break
Bug: none
Test: atest FrameworksNetTests
Change-Id: I8e8d0223de50c75732b06b053b3e60ccf4ef1684
2021-05-05 11:04:59 +08:00
Cody Kesting
5b021003ac Set NOT_VCN_MANAGED capability for Networks in VcnMgmtSvc.
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
2021-05-04 17:01:25 -07:00
James Lin
d8ea14e052 Merge "Remove the unnecessary RCS API RcsFeature#removeCapabilityExchangeImpl" 2021-05-04 23:17:45 +00:00
Cody Kesting
2225648d47 Notify policy listeners when VCN subIds change.
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
2021-05-04 15:57:32 -07:00
Baligh Uddin
7a622ea7eb Merge "Remove annotations that have been relocated" 2021-05-04 22:11:41 +00:00
Henrik Baard
ebe03fcb4b Cancel NotificationTimeout alarms when canceling notification
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
2021-05-04 22:18:04 +02:00