Commit Graph

459 Commits

Author SHA1 Message Date
David Zeuthen
5147877a83 Merge "Identity Credential: API changes for Android 12" am: 40d6635701 am: 6252f82f61 am: 581bf34de0
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1464362

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ie64aad9ae67a5b62c43edcbf37b841dac60849e2
2021-01-27 07:54:40 +00:00
Yan Yan
57969c028e Merge "Expose IPsec tunnel APIs from @SystemApi to public APIs" am: 5b8a0c8d89 am: 67d7fde5ad am: e0662139e0
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1517517

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ie6f17fde71e1c7ca36e88e554874939cfc9e78ab
2021-01-27 07:51:43 +00:00
Hall Liu
326df3e1c1 Merge "Allow carriers to configure RTT while roaming" am: 923d7d28d0 am: 36e819d95f am: 7f159d477f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1558908

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I4b6a2503e38c27abb010073f6f1dcefd9af8e171
2021-01-27 07:50:44 +00:00
Shubang Lu
4adf45f942 Merge "Add Context constant for Playback Metrics Service" 2021-01-26 20:02:36 +00:00
Alina Zaidi
016e50a980 Include an attribute for description of the widget in the attributes file for AppWidgetProviderInfo.
Test: Instrumentation test added- AppWidgetServiceImplTest_testLoadDescription

Bug: 178460757

Change-Id: Ic9b9cd8c592936bbe421183f8715ba5d8f770742
2021-01-26 17:04:00 +00:00
David Zeuthen
40d6635701 Merge "Identity Credential: API changes for Android 12" 2021-01-26 14:50:27 +00:00
Steven Ng
d8d8acfd9f Merge "Add a new widget feature value, configuration_optional" 2021-01-26 11:05:07 +00:00
SongFerng Wang
816ef2dde1 Merge "Add getPhoneCapability function in TelephonyManager" 2021-01-26 07:46:55 +00:00
Rhed Jao
cba3b81738 Merge "Deprecates GET_INTENT_FILTERS in the PackageManager" 2021-01-26 04:39:42 +00:00
Yan Yan
5b8a0c8d89 Merge "Expose IPsec tunnel APIs from @SystemApi to public APIs" 2021-01-26 02:19:58 +00:00
shubang
15c1dd0e51 Add Context constant for Playback Metrics Service
Bug: 159337195
Test: mmm
Change-Id: I771a5edd1ce022d196eb4b612f382f52f7701b4b
2021-01-25 17:28:10 -08:00
SongFerngWang
13d5297155 Add getPhoneCapability function in TelephonyManager
- Add a resource for Device's Nr information.
- Expose below as systemApi
  - getDeviceNrCapabilityBitmask()
  - getMaxActiveInternetData()
  - getMaxActivePacketSwitchedVoiceCalls()
Bug: 175711587
Test: atest TelephonyManager#testGetPhoneCapability
atest PhoneCapabilityTest
atest PhoneConfigurationManagerTest
atest CellularNetworkValidatorTest
atest PhoneSwitcherTest
atest TelephonyRegistryTest
atest PhoneCapabilityTest

Change-Id: Ide25344787c15b3a57a9e6621766ad02a906f12e
2021-01-26 09:24:28 +08:00
Shubang Lu
5d6049ab35 Merge "Unhide playback metrics APIs part 1" 2021-01-25 23:24:43 +00:00
TreeHugger Robot
af68bebbaa Merge "Camera: Initial support for Camera2 extension" 2021-01-25 23:16:30 +00:00
Emilian Peev
9c778e19e1 Camera: Initial support for Camera2 extension
Add the necessary APIs that will allow Camera2 clients to access
and work with existing CameraX extensions.

Bug: 170481080
Test: Camera CTS

Change-Id: Iaa22fea69ebe01599b3f2e66c1b46ca92015cdc5
2021-01-25 09:59:26 -08:00
Makoto Onuki
0ba71bf30e Merge "Let modules obtain target component of PendingIntent" 2021-01-25 17:01:35 +00:00
Hai Zhang
0b4f1718f8 Move role into module.
These changes have to be in this CL together because:

- Code in service-permission depends on IRoleManager in
framework-permission, so the APIs in framework-permission and the code
in service-permission need to be moved together.

- The changes to service-permission build rules doesn't make sense
without the code moved in, so they have to be together as well.

Other details:

- framework-annotations: Several annotations are added into
framework-annoatations. Since the discussion with API council seems to
allow user IDs in system server in-process APIs, @UserIdInt and
@AppIdInt is added. @MainThread and @AnyThread is added since
@WorkerThread is already added. @CallSuper is added since @CheckResult
is also already added and they are similar in terms of category of
functionality.

- framework-permission-s-shared-srcs: 3 classes (and 2 AIDL files)
from framework is copied as shared source files and jarjared for
framework-permission, and an additional 3 is added for
service-permission as service-permission-shared-srcs. Similar to
framework-wifi and service-wifi, the 3 classes in framework-permission
is also available to service-permission by the stub library
framework-permission-pre-jarjar, and the other 3 classes used only for
service-permission is included separately to minimize our impact on
classes loaded into boot classpath. framework-permission and
service-permission shares the same jarjar rules to make sure the
classes remain available, and for the same reason framework-permission
cannot be shrank during any optimization.

- framework-permission-s-shared: A java_library target for
framework-permission-shared-srcs is created to make sure that the
public classes won't be counted as APIs, as it would be if directly
included as srcs for framework-permission
java_sdk_library. service-permission-shared is the same thing for
service-permission.

- framework-permission-s: A new java_sdk_library target created to be
loaded into bootclasspath by Android S+.

- Dumpsys Protobuf: The dumpsys protobuf
file (rolemanagerservice.proto) is moved into the module, and both the
platform (incident.proto) and the module uses protoc-gen-javastream to
generate the Java classes from it. This should be fine since it's a
"source level inclusion", and we jarjar the generated classes in our
module to avoid conflict with platform copies.

Bug: 158736025
Test: manual
Test: device boots, default apps can be changed successfully.
Change-Id: I1914774f631e51d0c587a7e527a1c9bc05ee1595
2021-01-24 12:55:16 -08:00
SongFerng Wang
1581f4fc97 Merge "Improve AllowedNetworkTypesForReason and refactor PreferredNetworkType" 2021-01-23 07:41:10 +00:00
Hall Liu
d20b2a013b Allow carriers to configure RTT while roaming
Add a carrier config key that makes RTT supported even if roaming.

Fixes: 168676696
Test: manual
Change-Id: Ied2418cdec57d2d405d4ed0f0227a251ecd626cf
2021-01-22 16:16:23 -08:00
SongFerngWang
7d95185d46 Improve AllowedNetworkTypesForReason and refactor PreferredNetworkType
- Add more reasons of allowed network type
  - ALLOWED_NETWORK_TYPES_REASON_USER
  - ALLOWED_NETWORK_TYPES_REASON_CARRIER
- Add @systemApi for below
  - ALLOWED_NETWORK_TYPES_REASON_USER
  - ALLOWED_NETWORK_TYPES_REASON_POWER
  - ALLOWED_NETWORK_TYPES_REASON_CARRIER
  - setAllowedNetworkTypesForReason API
  - getAllowedNetworkTypesForReason API
  - getAllowedNetworkTypesBitmask API
- Add Public for below
  - CARRIER_NR_AVAILABILITY_NONE
  - CARRIER_NR_AVAILABILITY_NSA
  - CARRIER_NR_AVAILABILITY_SA
  - KEY_CARRIER_NR_AVAILABILITY_INT
- @Deprecated API
  - setPreferredNetworkTypeBitmask
  - getPreferredNetworkTypeBitmask
  - setAllowedNetworkType
  - getAllowedNetworkType
- Add a new way to notify allowedNetworkType at PhoneStateListener
- Replace KEY_NR_ENABLED_BOOL with KEY_CARRIER_NR_AVAILABILITY_INT

Bug: 161434786
Test: atest TelephonyManagerTest#testSetAllowedNetworkTypesForReason
(PASS)
atest TelephonyManagerTest#\
testSetAllowedNetworkTypesForReason_moreReason
(PASS)
atest PhoneStateListenerTest#\
testOnAllowedNetworkTypesChangedByRegisterPhoneStateListener
(PASS)

Change-Id: I3d0c119a0c2a30c56b0c127ba6525f8992b4e9dd
2021-01-23 06:51:05 +08:00
Jeremy Joslin
de162a46ef Merge "New feature: FEATURE_SECURITY_MODEL_COMPATIBLE" 2021-01-22 17:58:30 +00:00
Makoto Onuki
db8d2bf0a2 Let modules obtain target component of PendingIntent
- Media module needs to extract the component that a PendingIntent will
be sent to.

Currently, the code is bundled, so they're using the hidden
PendingIntent.getIntent() API, but we really do not want to make it @SystemApi.

So instead, adding a way to obtain the resolve information instead.

- !!Media should make sure the resolved components are actually owned by the
same package that called the API!!

Bug: 161334442
Test: not available yet
Change-Id: I09fc2e0bb23434394caadc638f48c05548376548
2021-01-22 21:56:16 +09:00
jimsun
b710d27f38 Make ImsReasonInfo.CODE_NETWORK_CONGESTION public
Bug: 175370724
Test: Simulate call end reason from vendor code and check IMS call
      end reason is correctly mapped.
Change-Id: I12e7a0401a4eb74b66ef53ce789410a9bf7b9770
2021-01-22 08:32:32 +00:00
Jack Yu
4b3053087e Merge "Add intent to notify applications when the secure element state changed" am: 286dc55bc9 am: 27a214dabd am: c7396ea492
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1531801

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ie4e55ab51e07473e00a61873fffd06bd6453c684
2021-01-22 05:14:19 +00:00
Paul Hu
27e9efd794 Merge "Expose Context#sendStickyBroadcast(Intent, Bundle)" am: 846e5f178d am: c9e394fc27 am: 796c878352
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1491876

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: If4d6e07f92301baae6056d0891bc292cbd67450f
2021-01-22 03:09:15 +00:00
Jack Yu
286dc55bc9 Merge "Add intent to notify applications when the secure element state changed" 2021-01-22 02:58:28 +00:00
Paul Hu
846e5f178d Merge "Expose Context#sendStickyBroadcast(Intent, Bundle)" 2021-01-22 02:11:13 +00:00
Jeremy Joslin
d598dc2325 New feature: FEATURE_SECURITY_MODEL_COMPATIBLE
Adding a new public system feature constant that must be expressed by
devices that support Android's security model as documented in
the CDD.

Test: Build
Bug: 173540259
Change-Id: Ib651ab31cba065fc9b2a28d8ac16eaa85357f252
2021-01-21 23:08:21 +00:00
David Zeuthen
0df1312357 Identity Credential: API changes for Android 12
- Add PackageManager system features (with versions) for the normal
  and direct access store
- Deprecate IdentityCredentialStore.deleteCredentialByName() and add
  IdentityCredential.delete() as a replacement.
- Add IdentityCredential.proveOwnership()
- Add IdentityCredential.update()
- Add docs for ProofOfBinding CBOR in X.509 extension of certificate
  for AuthenticationKey
- Add IdentityCredential.setAllowUsingExpiredKeys()
- Add version of IdentityCredential.storeStaticAuthenticationData()
  which takes a an expiration date. Deprecate the old variant of
  this method.

Bug: 170146643
Test: atest android.security.identity.cts
Change-Id: I39a0ed65ed6efaa424ada7a9495e3b1da67cf452
2021-01-21 17:42:14 -05:00
Nathan Harold
adbd077786 Merge "Revert "Revert "Fix permission on TM#isDataEnabled""" am: 2b79ba7f42 am: 47e1305bd6 am: 66a873b567
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1543459

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I23928895de3898903191b0341947ab6de9a7c75a
2021-01-21 20:12:54 +00:00
Rambo Wang
46043a617c Merge "Support new APIs in TelephonyManager to set/clear signal update request" am: 32c30af109 am: da259eccfa am: 52c1eb1ace
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1532512

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I7a066aecce6445f3ea5b9dda58b70a7467562919
2021-01-21 20:11:49 +00:00
TreeHugger Robot
aca883298a Merge "Add supportedAttributes param for spell checker." 2021-01-21 19:45:17 +00:00
Nathan Harold
2b79ba7f42 Merge "Revert "Revert "Fix permission on TM#isDataEnabled""" 2021-01-21 19:04:12 +00:00
Yan Yan
c92a798ee8 Expose IPsec tunnel APIs from @SystemApi to public APIs
Since IKE APIs to negotiate IPsec tunnel migration (MOBIKE) are
public, all IPsec tunnel APIs should also be public so that public
callers are able to create, manage and migrate IPsec tunnels

Bug: 174606949
Test: atest IpSecManagerTunnelTest
Change-Id: I86aec334cfc937953f9c2b411cc55862032aae4d
2021-01-21 10:45:24 -08:00
Sarah Chin
af54fe6b6d Merge "Update setSubscriptionOverride API to allow network types" 2021-01-21 18:28:18 +00:00
shubang
01ad1273a4 Unhide playback metrics APIs part 1
Bug: 159337195
Test: mmm
Change-Id: Ifb25bbafaf97aa582cb7981c24e585620c35ef21
2021-01-20 23:32:30 -08:00
Rambo Wang
e86cb24b57 Support new APIs in TelephonyManager to set/clear signal update request
Introduce set/clearSignalStrengthUpdateRequest in TelephonyManager
and ITelephony to support customized signal request from applications.

Bug: 164432835
Test: atest android.telephony.cts.TelephonyManagerTest
Change-Id: I749376872915a91b9514884547140eaf969dba0e
2021-01-20 21:14:41 -08:00
Zoey Chen
e61da845fa Merge "[PhysicalChannelConfig] Deprecated getChannelNumber and implement relevant API" 2021-01-21 04:29:58 +00:00
Jack Yu
f04aa64e6d Add intent to notify applications when the secure element state changed
Bug: 175850569
Test: check broadcast intent is triggered when the secure element state
changed

Change-Id: Iaf9f6bd5e964e1e3ef559afa7adbefd2cbd8d596
2021-01-21 10:31:44 +08:00
Michael Groover
af1fafe936 Merge "Add StrictMode check for unsafe intent launching" 2021-01-21 01:06:20 +00:00
Peter Wang
795478a020 Merge "Add an API for LPA (SIM Manager) to bring up pages related to managing SIM profiles." 2021-01-21 00:35:24 +00:00
Nathan Harold
cd08bb620d Revert "Revert "Fix permission on TM#isDataEnabled""
This reverts commit 8ce575b256.

Bug: 176163590
Bug: 148500541
Test: manual smoke test on low-end device and aosp_crosshatch builds.
Reason for revert: Reapplying with a fix for the exceptions.

The exceptions were caused by an undocumented behavior difference in the APIs that just blindly catch runtime exceptions. The cause of the runtime exceptions is that people are calling isDataEnabled() before telephony is running; however, until a "better" fix is available, this API will apply the existing behavior of just catching the runtime exceptions (which is terrible, but it's the plan of record in the code today).

Change-Id: I9fbe7126ee7039dfb0b383f83017458a3525db66
2021-01-20 21:30:55 +00:00
Steven Ng
a401dc515c Add a new widget feature value, configuration_optional
If configuration_optional is present, the widget provides a default
configuration. The host may decide not to launch the provided
configuration activity.

Design doc: go/deferrable-widget-config

Test: Successfully built blueline-userdebug. Since this CL only adds
a new value for an existing field, no unit test will be added at this
point. Once we introduce unit tests for widget configurations xml, we
will add related unit tests.

Bug: 177977976
Change-Id: I507cba0b9b8900f9b9616d76c48eb0ed9c50ed72
2021-01-20 21:10:44 +00:00
Jeff Sharkey
6728d4f92c Add StrictMode check for unsafe intent launching
Exported components that are not guarded by a signature permission
can receive Intents from any other app on a device. If an app unparcels
and launches an Intent from the Intent delivered to this unprotected
component then a malicious actor can potentially craft an Intent that
could launch hidden components, grant URI permissions, etc. This
commit adds a StrictMode check to report if a component launches an
Intent unparceled from the delivered Intent.

Bug: 160796858
Test: atest StrictModeTest
Change-Id: I763b8a965f91f5b433ce2f4b619e10ef12f5c296
2021-01-20 13:05:09 -08:00
Grace Jia
1620baa5d7 Merge "Add relative APIs for InCallService that can support self-managed connections that want to expose itself." 2021-01-20 21:03:57 +00:00
Kohsuke Yatoh
93d47b0487 Add supportedAttributes param for spell checker.
Bug: 166304720
Test: atest CtsInputMethodTestCases:SpellCheckerTest
Change-Id: I22f4a59a0c8ccb43f799351062f9fabca42403cd
2021-01-20 20:06:12 +00:00
Hall Liu
bf1c45fea5 Merge "Add new columns in CallLog" 2021-01-20 18:32:26 +00:00
Jeff DeCew
98668dc59c Merge changes from topic "promote_big_picture"
* changes:
  Unhide the API to promote the picture
  Add (still hidden) API to promote the big picture to the collapsed state
2021-01-20 15:15:02 +00:00
TreeHugger Robot
b4707f9a04 Merge "Option to skip profile password requirement during password enrolment" 2021-01-20 14:40:24 +00:00
Robert Shih
21cfd9b232 Merge changes from topic "requiresSecureDecoder"
* changes:
  javadoc for MediaDrm#requiresSecureDecoder param mime
  MediaDrm: query secure codec requirement w/o session
2021-01-20 13:05:15 +00:00