Commit Graph

566871 Commits

Author SHA1 Message Date
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
Lucas Lin
9639cd6242 Merge "Replace MAX_NETWORK_TYPE with TYPE_VPN" 2021-05-07 08:48:28 +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
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
Kelvin Zhang
a48c18e3df Call apexd's API to allocate space before install non-AB package
When installing a non-AB package, if the OS comtains compressed apexes,
we need to allocate space for these apexes so that they can be properly
decompressed on the next reboot.

Test: adb shell cmd recovery install-package /data/ota_package.zip
Change-Id: Ia40d0614e0e724cfb17e91720ec88a15795bd8ee
2021-05-04 15:07:56 -04:00
James.cf Lin
1cad8f9faf Remove the unnecessary RCS API RcsFeature#removeCapabilityExchangeImpl
Bug: 184602965
Test: atest -c CtsTelephonyTestCases:android.telephony.ims.cts.ImsServiceTest
Change-Id: Iec5fffecb9a2b8e1fb9ec47608e8316ae844037a
2021-05-04 23:40:18 +08:00
Andrei Onea
1c5ac3ebab Remove non-updatable-* prefix from .txt files
The services/api/{current,removed,lint-baseline}.txt files used to
contain information for the merged system server stubs. Those files are
now created by the rules in api/Android.bp
('services-system-server-current.txt' and 'services-system-server-removed.txt').

Test: m checkapi
Bug: 177640454
Change-Id: I365be0a45126a6a056d5219e24ef93020c034c87
Merged-In: I365be0a45126a6a056d5219e24ef93020c034c87
2021-05-04 16:19:05 +01:00
Inseob Kim
3ea60e26f5 Merge "Add an api for platform sepolicy version to vintf" 2021-05-04 15:11:20 +00:00
Nikita Iashchenko
9ef9fab0a1 Merge "Rename MimeMap.Builder setter methods to match guidelines" 2021-05-04 13:20:15 +00:00
Inseob Kim
4055ce5313 Add an api for platform sepolicy version to vintf
PLATFORM_SEPOLICY_VERSION will be the latest version in system's
compatibility matrix. This change adds a function
getPlatformSepolicyVersion, which ultimately gets
PLATFORM_SEPOLICY_VERSION, just like getSepolicyVersion for vendor.

This will be used from the SELinux CTS.

Bug: 186596569
Test: atest CtsSecurityHostTestCases:android.security.cts.SELinuxNeverallowRulesTest
Change-Id: Ic7863ece9413b9a6a4a91ff42d3121935823fe8b
2021-05-04 12:53:52 +00:00
Grace Jia
9ef59ac901 Merge "Provide all active subscriptions when register default app providers." 2021-05-04 03:24:31 +00:00
Grace Jia
9eef1ea522 Provide all active subscriptions when register default app providers.
Telecom was using old form SimCallManager getting method which was not
MSIM aware. User may found they don't have necessary permissions to call
if they have both eSIM and pSIM activated. Provide all SimCallManager
for active subscriptions to PermissionManager so that all of them can
get proper permissions.

Bug: 172880421
Test: Manually test call function on MSIM device
Change-Id: I87b26bdb9e99274a8adaa64c72cfac0a61f946bd
2021-05-03 23:30:46 +00:00
Grace Jia
83bc8699a1 Merge "Add support for selected contacts device to device sharing." 2021-05-03 21:49:45 +00:00