Commit Graph

23242 Commits

Author SHA1 Message Date
Julia Reynolds
72b1df5626 Merge "Remove notification permission feature flag" into tm-dev am: af7982277b am: 1c7aab6735
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18164160

Change-Id: Id2c0a69d8593e302558d803d6e7ba9376bce17fe
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-09 21:14:25 +00:00
Antoan Angelov
3194996f1b Merge "Parse extras bundles from NFC tags" into tm-dev am: 866cd169bf am: c2ad79882c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18188208

Change-Id: I039f8a323341af25e321c2f619d1a5ddbe0096dd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-09 21:07:38 +00:00
Julia Reynolds
af7982277b Merge "Remove notification permission feature flag" into tm-dev 2022-05-09 20:16:09 +00:00
Antoan Angelov
866cd169bf Merge "Parse extras bundles from NFC tags" into tm-dev 2022-05-09 19:01:12 +00:00
Josh Hou
703e0cef37 Merge "[Panlingual] Add the link for the LocaleConfig" into tm-dev am: 607108532a am: 38546f4079
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18131147

Change-Id: I111531f7b16b59e2ec65dcaee5ce2a0849778ac2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-07 08:14:01 +00:00
Josh Hou
607108532a Merge "[Panlingual] Add the link for the LocaleConfig" into tm-dev 2022-05-07 07:16:15 +00:00
arangelov
b6aced1722 Parse extras bundles from NFC tags
Bug: 231432017
Test: atest DevicePolicyManagerTest
Change-Id: Icdf597401fd7ce6dba84b8d7ce0aade4a86c4517
2022-05-07 08:04:06 +01:00
Neil Fuller
4b8d4c830c Merge "Add a Y2038 check into the time_detector" into tm-dev-plus-aosp 2022-05-06 16:53:29 +00:00
Evan Severson
f209ae03e9 Merge "Allow system server uid to bypass location restriction" into tm-dev 2022-05-06 14:54:52 +00:00
TreeHugger Robot
10ba4dab0c Merge "Fix error in javadoc" into tm-dev 2022-05-06 09:24:43 +00:00
Alex Johnston
7b1e39d5c1 Merge "Update DevicePolicyManager network logging docs" into tm-dev 2022-05-06 08:08:43 +00:00
Evan Severson
cad40dc9b1 Allow system server uid to bypass location restriction
Blocking system server from giving itself location restriction doesn't
make much sense.

Test: Disable, reboot, observe bootloop, apply patch, build, flash,
          observe successful boot
Bug: 231281927

Change-Id: Ic869da4847e4f39896861f3bf6e83f6f6c76ea62
2022-05-05 12:45:50 -07:00
Alexander Roederer
d7356c9e08 Merge "Adds explanation of MessagingStyle fields" into tm-dev 2022-05-05 16:41:30 +00:00
Josh Hou
25145ea25f [Panlingual] Add the link for the LocaleConfig
Add the link in the java doc to guide developers how to use the LocaleConfig

Bug: 214154050
Test: Verify the link can be accessed successfully
Change-Id: I19042b485bdf69b8bd8a6465176226109ce1d338
2022-05-05 23:21:37 +08:00
Kholoud Mohamed
e1bcab3b51 Merge "Add missing settings strings" into tm-dev 2022-05-05 08:14:57 +00:00
Joanne Chung
5ab99b0a21 Merge "Re-enable the removed-from-presubmit hotword tests (framework part)" into tm-dev 2022-05-05 01:17:42 +00:00
Julia Reynolds
0be19ec3c5 Remove notification permission feature flag
And the related obsolete code.

Test: SystemUITests, framework services tests, NotificationManagerTest
Fixes: 231344755
Change-Id: Id14941f82305b0216f2a12221d4195f8afcc65ab
2022-05-04 17:59:02 -04:00
arangelov
ca67582c42 Fix error in javadoc
Javadoc stated that org-owned provisioning modes won't receive
the IMEI and serial number, but that's incorrect. That actually
applies to personally-owned.

Bug: 187112267
Test: compiled
Change-Id: I257d1b45b2921891b1d8e6869fb77ce281d2ce90
2022-05-04 18:13:38 +01:00
kholoud mohamed
39334d9df5 Add missing settings strings
Bug: 226183482
Test: manual
Change-Id: Ic8496452fb12998e3854463e515e5f2382cf29dc
2022-05-04 17:43:23 +01:00
Jonathan Scott
ef3ac99de6 Merge "Add missing Settings constants." into tm-dev 2022-05-04 12:54:26 +00:00
Joanne Chung
74a5f8d1a9 Re-enable the removed-from-presubmit hotword tests (framework part)
Bug: 231374504
Test: atest --test-mapping frameworks/base/core/java/android/app
Test: atest --test-mapping frameworks/base/services/voiceinteraction
Test: atest --test-mapping \
frameworks/base/core/java/android/service/voice

Change-Id: I5bba0fb61eb676ae2b096c92c70f99b6d730af96
2022-05-04 20:41:47 +08:00
TreeHugger Robot
a3ca84f805 Merge "Add hidden constants to allow the role holder updater to specify the failure strategy" into tm-dev 2022-05-03 20:50:09 +00:00
Neil Fuller
b1f132b5e6 Add a Y2038 check into the time_detector
Add a Y2038 check into the time_detector and add infrastructure to allow
command-line testing to confirm it works.

This is before removing a Y2038 check from NITZ parsing code in the
telephony process. After this change, Androdi will consistently block
>= Y2038 suggestions, not just time signals that come in via telephony.

The initial checks attempt to limit the restriction to devices with
32-bit ABIs, since the main issue we're aware of is that time_t is a
32-bit signed int under bionic, hence there could be issues with that
type in 32-bit processes on 32-bit / mixed 32/64-bit devices.

Bug: 204193177
Test: adb shell cmd time_detector suggest_network_time --reference_time 2480587 --unix_epoch_time 1646473966056
Test: Run with 32-bit + 64-bit only builds, inspect adb shell dumpsys time_detector
Ignore-AOSP-First: The change will be cherry-picked upstream
Change-Id: Ib9d6472f5ca7a62d59b3224f1845846f99a0b52d
2022-05-03 19:19:53 +00:00
Alexander Roederer
65c6cf6e08 Adds explanation of MessagingStyle fields
Adds explanation of MessagingStyle fields, and corrects some
typographic errors that lead to some javadocs not being rendered
completely.

Bug: 159367102
Test: Only documentation change
Change-Id: I751a15d0abf35cdcb7ad2caacf954bdeec23a394
2022-05-03 13:41:12 +00:00
Vadim Caen
29347308d7 Update deprecation documentation for onBackPressed
Add some detail about migrating to OnBackInvokedDispatcher and the
reason behing the deprecation of onBackPressed methods.

Fixes: 227563202
Test: Documentation change only
Change-Id: Ifc2dd88cb9600efae84cd353549811e7b07ae4bc
2022-05-03 13:51:15 +02:00
arangelov
28fea115ad Add hidden constants to allow the role holder updater to specify the failure strategy
If the role holder updater fails to update the role holder, it can
specify how the platform should handle the failure. It can either
fail provisioning, or it can carry on using the platform-driven
provisioning.

Bug: 230749552
Test: compiled
Change-Id: Id24b24e5d7386d9806efa232f8c71287c9b7704b
2022-05-03 12:34:20 +01:00
Alex Johnston
cd0abb8603 Update DevicePolicyManager network logging docs
Include the correct API level

Bug: 228445895
Test: NA
Change-Id: I97a1d44484eb640fd627c7ddcc67eeced8ef07b2
2022-05-03 09:53:29 +01:00
TreeHugger Robot
a9c0327cb3 Merge "Disallow privileged apps to bypass location restriction" into tm-dev 2022-05-02 16:21:15 +00:00
Sudheer Shanka
5047c1abb4 Merge "Verify INTERACT_ACROSS_USERS_FULL perm for cross-user calls." into tm-dev 2022-04-30 01:07:51 +00:00
Evan Severson
530407c903 Disallow privileged apps to bypass location restriction
This bypass was originally allowed to let restricted users who can't use
location to pair bluetooth devices. This isn't needed anymore with the
bluetooth permissions.

Test: Set up restricted profile and pair bluetooth
      Verify com.android.phone gets rejected
Fixes: 230861324
Change-Id: Ib34c0b56ef52f5ee2deceb84b02cd0ff73d8181d
2022-04-29 21:51:06 +00:00
Lee Shombert
23e59a07d9 Allow selective detailed dumps of caches
Bug: 227383489

'dumpsys cacheinfo' can now dump more information about caches, by
supplying arguments to the command.  If no switches are specified
then the behavior is unchanged from the baseline.  If any switches are
specified then zero or more caches are selected; the command dumps
statistics and content for every selected cache.

The four switches each include a key string.

 The switch             Selects a cache if
 ---------------------  ------------------
 -name-has=<key>        the cache name contains the key
 -property-has=<key>    the property name contains the key
 -name-like=<regex>     the cache name matches the regex key
 -property-like=<regex> the property name matches the regex key

Tested by running the following commands and manually verifying the
output.

  dumpsys cacheinfo com.android.systemui
  dumpsys cacheinfo com.android.systemui -name-has=OrganizationOwned
  dumpsys cacheinfo com.android.systemui -name-like=OrganizationOwned
     - no results, as this regex does not match any cache
  dumpsys cacheinfo com.android.systemui -name-like=.*OrganizationOwned.*
  dumpsys cacheinfo com.android.systemui -property-has=package_info
  dumpsys cacheinfo com.android.systemui -property-like=cache_key.package.*

Test:
 * atest FrameworksCoreTests:IpcDataCacheTest
 * atest FrameworksCoreTests:PropertyInvalidatedCacheTests

Change-Id: I141d7e85ba3ea8b0f2615bbd49537c1170fb5449
2022-04-28 14:49:33 +00:00
Louis Chang
da9b7dcacc Merge "Adding null check to prevent NPE" into tm-dev 2022-04-28 13:33:43 +00:00
Sudheer Shanka
85a9add6bd Verify INTERACT_ACROSS_USERS_FULL perm for cross-user calls.
Bug: 218338453
Bug: 217935264
Test: atest tests/cts/hostside/src/com/android/cts/net/HostsideRestrictBackgroundNetworkTests.java
Change-Id: I3ef13204834e04228280a73e8a095720d5e854a3
2022-04-26 17:19:52 -07:00
Alexander Roederer
3d790a1673 Merge "Updates documentation on Action Button Icons" into tm-dev 2022-04-26 16:58:07 +00:00
Lucas Dupin
874513847f Merge "Make ISmartspaceManager non-blocking" into tm-dev 2022-04-26 16:28:58 +00:00
Charles Chen
6ed3a87798 Merge "Promote isFloating to TestApi" into tm-dev 2022-04-26 06:20:14 +00:00
Sooraj Sasindran
6d8f27328f Merge "Store preferential network service config in xml" into tm-dev 2022-04-26 00:41:48 +00:00
Antoan Angelov
6327cfe89b Merge "Update javadocs for EXTRA_ROLE_HOLDER_UPDATE_RESULT_CODE" into tm-dev 2022-04-25 19:32:44 +00:00
Lucas Dupin
4c41efd8d9 Make ISmartspaceManager non-blocking
Methods from this manager are being called from the SystemUI main
thread, and hitting system_server locks.
All methods return void, and are already using a callback mechanism,
we can make this oneway.

Fixes: 220718061
Test: Deployed on Phone,CTS tests
Change-Id: Ief549fce0d2463547cade4028696cf9431ce3a84
2022-04-25 10:39:22 -07:00
arangelov
6f1c9c3295 Update javadocs for EXTRA_ROLE_HOLDER_UPDATE_RESULT_CODE
Also ACTION_UPDATE_DEVICE_POLICY_MANAGEMENT_ROLE_HOLDER

Bug: 230098812
Test: none
Change-Id: Ib06b40bec7d32c32f044822b48ff7e8ebcb220a4
2022-04-25 16:44:51 +01:00
Louis Chang
7fe81a61c5 Adding null check to prevent NPE
#createConfirmDeviceCredentialIntent returns null if the device
is insecure.

Bug: 229950204
Test: atest StartActivityAsUserTests
Change-Id: I7de3e72d0677044e282952126612fc3e072d83fd
2022-04-25 13:14:12 +08:00
Alexander Roederer
b2c69fb78e Updates documentation on Action Button Icons
Updates documentation on Action Button icons to note that icons
are not displayed as of Android 7.0.

Bug: 184243364
Test: Only documentation change
Change-Id: If301c9d5ca46b847be16a741d0aa3bb96b37499c
2022-04-24 02:31:45 +00:00
Issei Suzuki
408b90ffad Merge "Add timestamp to ActivityOptions.OnAnimation*Listener" into tm-dev 2022-04-23 04:29:09 +00:00
Makoto Onuki
e1851000e7 Merge "Remove STOPSHIP" into tm-dev 2022-04-22 23:33:10 +00:00
Issei Suzuki
8fbc23c5c9 Add timestamp to ActivityOptions.OnAnimation*Listener
Bug: 229948029
Test: atest ActivityTransitionTests
Change-Id: I1e6d21c8b603f4e81bde6c649868baad625c2b38
2022-04-22 21:47:24 +02:00
Ricky Wai
0fbae018dc Merge "Add OEM config for enhanced confirmation mode and add restricted read ops" into tm-dev 2022-04-22 14:53:01 +00:00
Sooraj Sasindran
ee3a15d419 Store preferential network service config in xml
Bug: 227338666
Test: verified using manual test that config is persistent
Change-Id: I0cc2e7395ef9530a8ebdd27fcf7a791a7f126367
2022-04-22 04:09:36 -07:00
Alex Johnston
c170d9adf0 Merge "Make screen capture per-device DO and COPE" into tm-dev 2022-04-22 09:29:12 +00:00
Jonathan Scott
1e3e539c94 Add missing Settings constants.
Test: Build
Fixes: 226183482
Change-Id: Ibf4e9c5067eed564e025231a00c3919461773675
2022-04-22 08:35:32 +00:00
Josh Tsuji
30183c1cf8 Merge "Invalidate home task snapshot onWakeAndUnlock." into tm-dev 2022-04-21 18:23:28 +00:00