Commit Graph

2830 Commits

Author SHA1 Message Date
TreeHugger Robot
ecd46961ba Merge "Use the PersistableBundle instead of the Bundle" into sc-dev am: 20e5c931b5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13917726

Change-Id: I20c50141818d4b32d001ba4fe16c209927eec542
2021-03-24 01:19:01 +00:00
Amit Mahajan
6201189fe8 Merge "add capability for TelephonyManager.getNetworkSlicingConfiguration()" into sc-dev am: f57e4c9bce
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13773763

Change-Id: I61e603882f26c971d0c0e275d2c6021bd86564a1
2021-03-24 01:18:18 +00:00
Zongheng Wang
268ed6a68a Merge "Replace createSmsSubmitPdu with createFromNativeSmsSubmitPdu" am: ab2c1e5777 am: 52937545e4 am: 391e64a11c am: 9b8c0d2a6a
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1649709

Change-Id: Ifd8efa5ee12cb802f64cfc23b429aba58c468937
2021-03-24 01:14:41 +00:00
TreeHugger Robot
44df68bd62 Merge "Add API to get the PendingIntent for translation settings Activity" into sc-dev am: 33d3819bb2
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13886931

Change-Id: I9dec1a55f90f5a6fdcc5ce33575f022c8fa2c9ad
2021-03-24 01:10:17 +00:00
Cody Kesting
31703d8261 Merge changes from topic "vcn-status-changed" am: 46c10cbc4d am: c74b9c7ac9 am: c33747c5f0 am: 44f9647832
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1633026

Change-Id: I28d2229ce0af500c5999cd6cb238aa261613b1b2
2021-03-24 01:06:17 +00:00
Rahul Sabnis
b40d4b14a8 Merge "Makes BluetoothDevice#setAlias a public API" into sc-dev am: 7030bd354f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13841713

Change-Id: I2da394088249341c5248bd5a66509bc657e77645
2021-03-24 01:03:38 +00:00
Martijn Coenen
af354d74a9 Merge "Make StorageVolume#getOwner a system API." into sc-dev am: be76c4051b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13931544

Change-Id: I46e4e8d663045335a41df0b4eae48672cdba634e
2021-03-24 00:59:13 +00:00
SongFerng Wang
890d541923 Merge "Changing DEVICE_NR_CAPABILITY type and renaming getMaxActiveInternetData" into sc-dev am: 2c691e8dc2
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13824594

Change-Id: I084d8ab08a0de505e60bc90e800dc7f7f6407adf
2021-03-24 00:56:08 +00:00
Mustafa Emre Acer
b56ab770d0 Merge "Add a new permission for external time sources" into sc-dev am: e7ec6b42a9
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13577871

Change-Id: Ibddac707d442ac196ece90ed3273bcc641c44896
2021-03-24 00:54:26 +00:00
TreeHugger Robot
20e5c931b5 Merge "Use the PersistableBundle instead of the Bundle" into sc-dev 2021-03-23 21:42:26 +00:00
Amit Mahajan
f57e4c9bce Merge "add capability for TelephonyManager.getNetworkSlicingConfiguration()" into sc-dev 2021-03-23 21:10:36 +00:00
TreeHugger Robot
478e03ed12 Merge "Add isAppIoBlocked TestApi" into sc-dev 2021-03-23 20:57:56 +00:00
Zongheng Wang
9b8c0d2a6a Merge "Replace createSmsSubmitPdu with createFromNativeSmsSubmitPdu" am: ab2c1e5777 am: 52937545e4 am: 391e64a11c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1649709

Change-Id: I636a73921e61d466dca66155b67cbc036a8b0200
2021-03-23 20:33:04 +00:00
TreeHugger Robot
33d3819bb2 Merge "Add API to get the PendingIntent for translation settings Activity" into sc-dev 2021-03-23 20:15:40 +00:00
Cody Kesting
44f9647832 Merge changes from topic "vcn-status-changed" am: 46c10cbc4d am: c74b9c7ac9 am: c33747c5f0
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1633026

Change-Id: I237022fee3667824736e222dad64d8528fe0b699
2021-03-23 19:34:37 +00:00
Rahul Sabnis
7030bd354f Merge "Makes BluetoothDevice#setAlias a public API" into sc-dev 2021-03-23 19:07:24 +00:00
Zongheng Wang
ab2c1e5777 Merge "Replace createSmsSubmitPdu with createFromNativeSmsSubmitPdu" 2021-03-23 18:47:36 +00:00
Zim
ae30d154f6 Add isAppIoBlocked TestApi
This allows us test the notifyAppIoBlocked and notifyAppIoResumed APIs

Also fixed isAppIoBlocked bug where a uid with a blocked counter of
'0' would incorrectly result in returning true.

Test: m
Bug: 181222557
Change-Id: I3e8f040cd0e08cb0765fec0cfafab6428d6a3a00
Merged-In: I3e8f040cd0e08cb0765fec0cfafab6428d6a3a00
2021-03-23 18:14:58 +00:00
TreeHugger Robot
fa5fcd4806 Merge "Add isAppIoBlocked TestApi" 2021-03-23 18:12:43 +00:00
Martijn Coenen
be76c4051b Merge "Make StorageVolume#getOwner a system API." into sc-dev 2021-03-23 17:22:39 +00:00
Cody Kesting
46c10cbc4d Merge changes from topic "vcn-status-changed"
* changes:
  Rename VcnStatusCallback#onVcnStatusChanged.
  Reevaluate VcnGatewayConnections on receiving new configs.
2021-03-23 17:10:51 +00:00
SongFerng Wang
2c691e8dc2 Merge "Changing DEVICE_NR_CAPABILITY type and renaming getMaxActiveInternetData" into sc-dev 2021-03-23 16:41:55 +00:00
Mustafa Acer
6cebc2f2ac Add a new permission for external time sources
This CL adds a new permission called SUGGEST_EXTERNAL_TIME that
gates TimeManager.suggestExternalTime calls.

The new permission is marked as 'privileged' as protection level. This
could result in third party apps preinstalled on the system image to
potentially get this permission. This is OK for the following reasons:
 - OEM coordination is needed to grant 3P apps this permission, so
 adding "privileged" doesn't introduce significant risk.
 - This permission/API doesn't guarantee that the suggested timestamp
 will immediately be used as the new system timestamp. The system must
 be configured so that the external time source has a higher priority
 than other time sources (e.g. GNSS) for the external time suggestion to
 be used. This configuration is also done by the OEM. That introduces
 significant roadblock for a malicious app to do anything useful with
 this permission.
- More importantly, apps can set system time directly using
TimeManager.setTime() which requires SET_TIME permission. This
permission is also signature|privileged, so this change is consistent
with it.

Bug: 157504928, 177079827
CTS-Coverage-Bug: 182275086
Test: atest android.app.time
Change-Id: I0098ab7565b647fb220d39575f0616d2a47bdc89
2021-03-23 16:24:41 +00:00
Rambo Wang
9e92686d87 Merge "Expose ServiceState#getDataNetworkType in telephony provider" am: 9446a5239f am: 11264381a4 am: ff97f102cc am: 8fadaef00c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1639370

Change-Id: I819cc7cc59391113747b338bbce740fdb9c0bdfd
2021-03-23 16:11:37 +00:00
Rambo Wang
8fadaef00c Merge "Expose ServiceState#getDataNetworkType in telephony provider" am: 9446a5239f am: 11264381a4 am: ff97f102cc
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1639370

Change-Id: Ib2c5d3ec7b28e37d1fa7426aa9e0a1bc7730b9e8
2021-03-23 15:57:25 +00:00
Joanne Chung
dd0224162c Add API to get the PendingIntent for translation settings Activity
Bug: 176208267

Test: manual test with sample app
Test: atest CtsTranslationTestCases

Change-Id: I00416cf9cb63d522b9d8a448be3533b89b753aa0
2021-03-23 23:51:46 +08:00
Grace Jia
7fd18ac469 Merge "Add support for selected contacts device to device sharing." 2021-03-23 15:50:52 +00:00
Kholoud Mohamed
cb3c990c9a Merge "Create new permission SET_AND_VERIFY_LOCKSCREEN_CREDENTIALS" into sc-dev am: 5ee5b490d8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13901256

Change-Id: If0863ad38ff51102da580418fdc85dde7e4b7e98
2021-03-23 15:29:49 +00:00
Kholoud Mohamed
5ee5b490d8 Merge "Create new permission SET_AND_VERIFY_LOCKSCREEN_CREDENTIALS" into sc-dev 2021-03-23 15:04:43 +00:00
Zim
f094406d36 Add isAppIoBlocked TestApi
This allows us test the notifyAppIoBlocked and notifyAppIoResumed APIs

Also fixed isAppIoBlocked bug where a uid with a blocked counter of
'0' would incorrectly result in returning true.

Test: m
Bug: 181222557
Change-Id: I3e8f040cd0e08cb0765fec0cfafab6428d6a3a00
2021-03-23 14:49:56 +00:00
TreeHugger Robot
1ab180da79 Merge "Introduce WaveformBuilder to VibrationEffect" into sc-dev am: 9db9a56c7e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13828865

Change-Id: I70acc05ee9b610211bd1b13b55454756263eedb2
2021-03-23 14:42:03 +00:00
TreeHugger Robot
9db9a56c7e Merge "Introduce WaveformBuilder to VibrationEffect" into sc-dev 2021-03-23 14:32:56 +00:00
Rambo Wang
9446a5239f Merge "Expose ServiceState#getDataNetworkType in telephony provider" 2021-03-23 14:26:52 +00:00
Martijn Coenen
b329228214 Make StorageVolume#getOwner a system API.
Since the MediaProvider mainline module will now manage volumes of
multiple users, it needs to know which user a volume belongs to. This
was implemented by an already existing API, so make that a @SystemApi.

Bug: 182396009
Test: N/A

Change-Id: I9ca24e500adfd51fbd52e863f549365dd9aaf39d
2021-03-23 14:16:12 +00:00
TreeHugger Robot
c2f195bbc5 Merge "Make getExternalStorageMountMode as SystemApi" 2021-03-23 13:25:56 +00:00
Jay Thomas Sullivan
b4ec1de9ae Define new NEARBY_DEVICES permission group am: 11ab8b2042
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13817237

Change-Id: I4c73de7bb32ec5667e8d0d17b9cdba5af935be93
2021-03-23 13:10:32 +00:00
Jeff Sharkey
9f5392e8b7 Merge changes from topic "nearby-bluetooth-permission-group" into sc-dev
* changes:
  Request new Bluetooth runtime permissions.
  Default grants for "Nearby devices" permission.
  Add BLUETOOTH_SCAN and BLUETOOTH_CONNECT app ops
  Split new NEARBY_DEVICES permissions
  Define new NEARBY_DEVICES permission group
2021-03-23 12:56:30 +00:00
Guillaume Chelfi
29e2f587fa Merge "Add tunnel mode video peek related APIs" into sc-dev am: 4f576188b4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13472392

Change-Id: I85836e2dc5c69cc361f074b922c050a566e1bd40
2021-03-23 12:47:33 +00:00
TreeHugger Robot
97f611b4f1 Merge "System MR2: Add MediaRouter2#registerRouteCallback(executor, callback)" into sc-dev am: da809dde02
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13960213

Change-Id: Ifa54558e8670e291c37e913eeed226406a37c959
2021-03-23 12:46:09 +00:00
Guillaume Chelfi
4f576188b4 Merge "Add tunnel mode video peek related APIs" into sc-dev 2021-03-23 12:30:33 +00:00
TreeHugger Robot
da809dde02 Merge "System MR2: Add MediaRouter2#registerRouteCallback(executor, callback)" into sc-dev 2021-03-23 12:03:36 +00:00
Saumya Pathak
37fc428f52 Merge "Add app clone profile and APIs." into sc-dev am: cbe66b17b9
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13709992

Change-Id: If7bb00d9cef3ea19b79da23793747e4a41989dc9
2021-03-23 11:32:35 +00:00
Kholoud Mohamed
c9bc3582a3 Merge "Properly expose LockTypes constants as systemAPIs" into sc-dev am: e7e5563e96
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13929334

Change-Id: I103671517dea830a89446e958cdc5ba87ca62c4b
2021-03-23 11:28:53 +00:00
Abhijeet Kaur
839aa85298 Make getExternalStorageMountMode as SystemApi
Secondary volumes are FUSE mounted, whereas Android/data and Android/obb
on primary volumes are not FUSE mounted. Access to these private app
directories on primary volumes is restricted using the mount modes, but
access for these on secondary volumes need to be regulated by
MediaProvider.

Make getExternalStorageMountMode as SystemApi so that MediaProvider
can leverage the same mount logic for Secondary volumes.
Expose relevant mount modes as SystemApi as well.

This change saves us the maintenance overhead for Secondary volumes for
Android S+. Otherwise we would have to check if an app is a signature
app through APIs which would basically be the duplication for the
logic in StorageManagerService.java.

Expose ExternalStorageProvider and downloads Authority for MediaProvider
to rely only on APIs. This is also required for CDD modifications that
these 2 providers are given exceptional access to private app dirs.

Bug: 175796984
Bug: 173505864
Bug: 173505864
Test: atest DownloadProviderTest
Test: atest CtsScopedStorageHostTest
Test: atest android.scopedstorage.cts.host.PublicVolumeHostTest#testCheckInstallerAppAccessToObbDirs
Test: atest android.scopedstorage.cts.host.PublicVolumeHostTest#testCantAccessOtherAppsExternalDirs
Change-Id: I51bc7bd3f355fadd9de56ac267469c2352eb0ffa
2021-03-23 11:18:17 +00:00
Saumya Pathak
cbe66b17b9 Merge "Add app clone profile and APIs." into sc-dev 2021-03-23 11:15:59 +00:00
Saumya Pathak
5a4fc52fc7 Add app clone profile and APIs.
This change adds a new hidden user type "android.os.usertype.profile.CLONE"
and two new system APIs "isCloneProfile" and "hasSharedMedia". To support App cloning, we need to support sharing media between the owner user and the clone user. Adding this as a property in UserTypeDetails.

Bug: 182396009
Test: atest android.multiuser.cts.UserManagerTest#testCloneUser, atest com.android.server.pm.UserManagerTest#testCloneUser and manually ran shell commands on the clone user.

Change-Id: I49ddcbd499944ca9ec05ef4dc10d2e2b231d8b88
(cherry picked from commit db930667a21dac9f0de7cb2fe99175b3b4545bf4)
2021-03-23 11:15:09 +00:00
Kholoud Mohamed
e7e5563e96 Merge "Properly expose LockTypes constants as systemAPIs" into sc-dev 2021-03-23 10:17:03 +00:00
Hyundo Moon
96ab01b44f System MR2: Add MediaRouter2#registerRouteCallback(executor, callback)
This CL adds registerCallback(executor, callback) as @SystemApi
for system MediaRouter2.

Bug: 183453134
Test: Passed CTS
Change-Id: I50e942714946ae8af7ad69432cefcd8015040d4d
2021-03-23 09:46:54 +00:00
TreeHugger Robot
abb595130e Merge "Introduce VibrationEffectSegment" into sc-dev am: 11d5b29d7c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13776606

Change-Id: I6ec5517437927a6b9e07af92c4e7a8d3942ee0e8
2021-03-23 09:04:46 +00:00
TreeHugger Robot
11d5b29d7c Merge "Introduce VibrationEffectSegment" into sc-dev 2021-03-23 08:52:21 +00:00