Commit Graph

23455 Commits

Author SHA1 Message Date
Josh Hou
10b8071192 Merge "[Panlingual] Add the link for the LocaleConfig" into tm-dev am: 607108532a am: c7691d2aa4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18131147

Change-Id: I2b018540256b3f8f9ca529a00c7274c848f41be4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-07 08:13:33 +00:00
Josh Hou
607108532a Merge "[Panlingual] Add the link for the LocaleConfig" into tm-dev 2022-05-07 07:16:15 +00:00
Neil Fuller
68d98c0673 Merge "Add a Y2038 check into the time_detector" into tm-dev-plus-aosp am: 4b8d4c830c am: c37cbfd6c4 am: 9ee897724d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18142264

Change-Id: I5e816029c9978d1a313ddba9a2904d8ac9dc79ba
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-07 01:26:53 +00:00
Eric Biggers
1e37f6fc06 Merge "Deprecate FDE constants from DevicePolicyManager" 2022-05-06 19:30:13 +00: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
f3939520f6 Merge "Allow system server uid to bypass location restriction" into tm-dev am: f209ae03e9 am: 671d4ba60c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18188685

Change-Id: Idca1c824edc4bce88e9a1d8fce2109da73f1359c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-06 15:13:08 +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
e73d76ca93 Merge "Fix error in javadoc" into tm-dev am: 10ba4dab0c am: a63fb59507
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18164946

Change-Id: I8b2cad3c367fda5849c88c841d25824d75382fc4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-06 14:20:01 +00:00
Alex Johnston
bd98425ab2 Merge "Update DevicePolicyManager network logging docs" into tm-dev am: 7b1e39d5c1 am: a7ec01f12a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18138962

Change-Id: I4f9844883591761f95ba9263e74037ffb35cf7ee
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-06 14:19:13 +00:00
Alexander Roederer
d67674fb0a Merge "Adds explanation of MessagingStyle fields" into tm-dev am: d7356c9e08 am: 649b31a73a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18008166

Change-Id: Ib7d925b45b612da23b827d57a99624fcdc13e866
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-06 13:49:57 +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
TreeHugger Robot
03e4c9c978 Merge "Fix Javadoc sample code" 2022-05-06 00:19:34 +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
Prabir Pradhan
02a18edc53 Merge "Reland: Change input injection security model" 2022-05-05 10:34:54 +00:00
Kholoud Mohamed
2f11321129 Merge "Add missing settings strings" into tm-dev am: e1bcab3b51 am: 0a10b8cc8b am: 28218e2b73 am: 488e74e5af
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17944324

Change-Id: I3c479aa377be04156f2055c127e723609aee1c3a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-05 10:32:34 +00:00
Kholoud Mohamed
e1bcab3b51 Merge "Add missing settings strings" into tm-dev 2022-05-05 08:14:57 +00:00
Joanne Chung
485a55af38 Merge "Re-enable the removed-from-presubmit hotword tests (framework part)" into tm-dev am: 5ab99b0a21 am: 5cdd3ce880 am: cdf11f043a am: 42f24e6959
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18156226

Change-Id: I4895fb8b3916476672e64e2cc5cd8194bf10c8a5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-05 03:19:49 +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
Eric Biggers
3bdb4cbcb4 Deprecate FDE constants from DevicePolicyManager
Deprecate the DevicePolicyManager.ENCRYPTION_STATUS_* constants that can
no longer be returned by
DevicePolicyManager.getStorageEncryptionStatus() due to them being
specific to Full Disk Encryption.

Also update DevicePolicyManagerService.getEncryptionStatusName() to stop
referring to the deprecated constants when it doesn't need to.

This is a follow-up from "Drop FDE status checks from
DevicePolicyManagerService" (https://r.android.com/2052073).

Bug: 208476087
Change-Id: I7110711dfc3d32045ee443dc1ae00e8efb4f8d6e
2022-05-04 20:25:35 +00: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
Prabir Pradhan
98a74051df Reland: Change input injection security model
This reverts commit 6b3c6cae3f.

Changes from revert:
- Explicitly maintain the same behavior as previous versions of Android,
  where injection is allowed into all window if the caller has the
  INJECT_EVENTS permission, even if it is targeting a certain uid. This
  fallback will be removed separately in b/228161340.
- Clear the calling identity before checking if the injection source has
  a permisssion to avoid hitting blanket-checks in PackageManager that
  denys permissions in some cases, such as if the permission check call
  is coming from an instant app (b/228319794).
- Leave the existing IInputManager#injectInputEvent method signature
  unchanged, and add a new input method injectInputEventToTarget to
  perform targeted injection. This makes it so that tools or apps
  relying on the @UnsupportedAppUsage injection method will not be
  broken by a change in the method's signature (b/228583652).

Bug: 207667844
Bug: 194952792
Test: Run tests affected by b/228319794 and its duplicates using
cts-tradefed, so that they are also run as instant apps.
Test: Test scrcpy tool works locally

Change-Id: I503e4f087501e3aecf2c18b4b1d27e51ecda59ac
2022-05-04 14:53:14 +00:00
Automerger Merge Worker
43d7a644f7 Merge "Merge "Add missing Settings constants." into tm-dev am: ef3ac99de6 am: 543170a235 am: fc9e10b8c1" into tm-qpr-dev-plus-aosp am: 865e489b2f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17665790

Change-Id: I0be118ae8a38810a3652ffdc9be5406650cf9563
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-04 14:32:52 +00: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
bf343d242b Merge "Add hidden constants to allow the role holder updater to specify the failure strategy" into tm-dev am: a3ca84f805 am: f5f646bf3f am: c46d6615dc am: dedc1bafc0
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18093642

Change-Id: I7f5ed83ed2abea89f35f7407a223067e23807523
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-04 03:21:50 +00: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
Vadim Caen
f3daae4b71 Merge "Update deprecation documentation for onBackPressed" into tm-dev am: 4f77430976 am: a1e593e611
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18090442

Change-Id: I107e8d5a1d3e7208c02fad856d5b69d142964557
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-03 14:44:51 +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
58e77acb61 Merge "Disallow privileged apps to bypass location restriction" into tm-dev am: a9c0327cb3 am: 0e70f575e8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18090449

Change-Id: Iaaff7607081da64d531db3275701e25f16e5c2dd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-02 17:08:05 +00: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
1102d0412e Merge "Verify INTERACT_ACROSS_USERS_FULL perm for cross-user calls." into tm-dev am: 5047c1abb4 am: 73b8912e2d am: 4bdf4ec977 am: 2ca047dbe7
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17947145

Change-Id: I4bae05d548f695ed05d6600d08ca7099c92fb52c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-02 12:11:04 +00:00
Lee Shombert
400b347145 Merge "Allow selective detailed dumps of caches" into tm-dev am: 13eb52a2ce am: a54c615b93 am: e8a1c90684 am: f5d5dd4df5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17718092

Change-Id: I8126b62e21f0f2220e635721eab990eb8f500f63
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-02 11:46:20 +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
Louis Chang
1ffb7d5e5b Merge "Adding null check to prevent NPE" into tm-dev am: da9b7dcacc am: 547b8e2c95
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17938066

Change-Id: I028c3f8e01f5d0f0b91ce294d3970adb91768a9a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-29 18:54:24 +00:00
Brian Lee
2ed23e9d5c Merge "Add unit tests for KeyguardManager." 2022-04-28 21:46:25 +00:00
Kathy Chen
6d4d8bf43e Merge "Fix shell command bugs for supporting CTS test. Add service unit test. Fix javadoc." 2022-04-28 18:23:20 +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
Rhed Jao
1ff3f11593 Merge "Adds user id support to the checkSignatures API" 2022-04-28 02:37:02 +00:00
Kathy Chen
44eafb8f58 Fix shell command bugs for supporting CTS test. Add service unit test. Fix javadoc.
Test: unit test and cts test
Ignore-AOSP-First: confidential feature
Change-Id: I0fd2950eea267d56fbd8e89ecc52fdd590992e75
2022-04-27 18:39:36 -07: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