Commit Graph

11922 Commits

Author SHA1 Message Date
Songchun Fan
a645831a69 Merge "[pm] remove some tests from staged platinum tests" into tm-dev 2022-04-28 22:30:16 +00:00
TreeHugger Robot
a347b6c2e6 Merge "Restore V2+ signature requirement for system apps" into tm-dev 2022-04-28 20:56:41 +00:00
Songchun Fan
4932b90c4f [pm] remove some tests from staged platinum tests
The remaining tests have a low flakiness rate and a total runtime < 30mins.

BUG: 140252512
Test: n/a
Change-Id: Ic7631db5fd4e3c28a7b7cbe464bf46be93c4c05c
2022-04-28 17:41:09 +00:00
Michael Groover
80af2faccf Merge "Allow revoked capabilities to be restored in sharedUserId lineage" into tm-dev 2022-04-21 17:00:08 +00:00
Martin Stjernholm
8e8ff54f2e Merge "Add an argument to cmd pm dump-profiles to send --dump-classes-and-methods to profman." into tm-dev 2022-04-21 16:39:43 +00:00
Jon Eckenrode
ea8489c0ce Merge "Updated API documentation of screenWidthDp and screenHeightDp to include multiple-screen behavior." into tm-dev 2022-04-20 22:23:10 +00:00
Makoto Onuki
a501fcb752 Merge changes from topic "Sync-fix-redo" into tm-dev
* changes:
  Only allow the system server to connect to sync adapters
  Revert "Only allow the system server to connect to sync adapters"
2022-04-20 18:42:55 +00:00
Makoto Onuki
8140b786f4 Merge "Update OWNERS for the content and sync subsystem" am: f3265025d8 am: b5ca3914fe am: 925965ec28
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2051441

Change-Id: Idce6f13f8602867cf6f2da920a4ab58a0bd53b14
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-20 18:09:49 +00:00
Makoto Onuki
b5ca3914fe Merge "Update OWNERS for the content and sync subsystem" am: f3265025d8
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2051441

Change-Id: Iea0c1d40359565041c6ae4f54083ebda0ef6532e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-20 16:54:14 +00:00
Makoto Onuki
f3265025d8 Merge "Update OWNERS for the content and sync subsystem" 2022-04-20 16:27:47 +00:00
Sudheer Shanka
7789dfbcdd Merge "Fix javadoc on Context#BIND_FOREGROUND_SERVICE." am: d8705358c6 am: 33c901faa0 am: 87f1412190
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2065471

Change-Id: I073708caa4a94b4b17d444e977fc464518ce0cfc
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-20 04:37:08 +00:00
joneckenrode
e6cec1a2e4 Updated API documentation of screenWidthDp and screenHeightDp to include multiple-screen behavior.
Test: Built API docs
Signed-off-by: joneckenrode <joneckenrode@google.com>
Change-Id: I44aec14f1607e3ddabb7f792eac22da982347613
2022-04-20 00:20:42 +00:00
Makoto Onuki
58270527d1 Only allow the system server to connect to sync adapters
Bug: 203229608
Test: Manual test with changing the check logic + debug log
Change-Id: If18009f61360564d02dcda9b1e5fa15685e3250f
2022-04-19 13:19:36 -07:00
Makoto Onuki
eef327f536 Revert "Only allow the system server to connect to sync adapters"
This reverts commit 4df2de8380.

There was a bug in the CL. Rather than fixing it forward, let's revert
it and fix it in a follow-up CL, so we'll only have to back-port
a single CL.

Bug: 203229608
Test: N/A, a follow-up CL will redo this change with a Test: line.

Change-Id: I5fddf283ace09996a2e5cfc272f8e9fd8168a114
2022-04-19 13:18:52 -07:00
Martin Stjernholm
b5ef87ae82 Add an argument to cmd pm dump-profiles to send
--dump-classes-and-methods to profman.

Test: adb root
      adb shell kill -SIGUSR1 '$(pidof com.android.systemui)' && \
        sleep 1 && \
        adb shell pm compile -m speed-profile com.android.systemui
      adb unroot
      adb shell pm dump-profiles --dump-classes-and-methods \
        com.android.systemui && \
        adb pull data/misc/profman/com.android.systemui-primary.prof.txt
  Check that the output is the same as:
      adb root && adb shell profman --dump-classes-and-methods \
        --reference-profile-file=data/misc/profiles/ref/com.android.systemui/primary.prof \
        --profile-file=data/misc/profiles/cur/0/com.android.systemui/primary.prof \
        --apk=system_ext/priv-app/SystemUI/SystemUI.apk
Test: adb shell pm dump-profiles \
        com.android.systemui && \
        adb pull data/misc/profman/com.android.systemui-primary.prof.txt
  Check that the output is in the usual `profman --dump-only` format
Bug: 198506529
Change-Id: I2559822fcc3ad32fe4b7b6ac2faa91e3c3ab6c8e
2022-04-19 11:01:25 +00:00
Sudheer Shanka
33c901faa0 Merge "Fix javadoc on Context#BIND_FOREGROUND_SERVICE." am: d8705358c6
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2065471

Change-Id: I53cc5c9a7baec50eb58417fd1df5c8aa0c33a742
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-18 19:48:41 +00:00
Sudheer Shanka
d8705358c6 Merge "Fix javadoc on Context#BIND_FOREGROUND_SERVICE." 2022-04-18 19:24:34 +00:00
Sudheer Shanka
54dd6faf2b Fix javadoc on Context#BIND_FOREGROUND_SERVICE.
Test: n/a
Change-Id: I5c5853cfb88c69e5cf39456fbc163af522410331
2022-04-17 23:48:47 +00:00
Michael Groover
148fa19a60 Allow revoked capabilities to be restored in sharedUserId lineage
When APK key rotation was initially introduced in P, an update to the
capabilities of a previous signer in the sharedUserId lineage only
took effect when the signing key of the package being updated was
changed. Android R addressed this by always merging the lineage of
a package being installed / updated in the sharedUserId with the
existing sharedUserId lineage; however, this approach always used
the most restrictive capabilities in the lineage, so once a
capability was revoked from a previous signer, it could not be
restored. This commit allows a capability to be restored by
initially applying the capabilities of the package being installed
with those in the sharedUserId; if a change in the signers or
capabilities is detected, then the most restrictive capabilities
from all packages in the sharedUserId are used to update the shared
lineage. This allows a package to restore a previously revoked
capability if no other packages have revoked the capability; however,
if a package in the sharedUserId has revoked a capability and a newly
installed package restores this capability, the restrictive rule will
ensure the capability is still revoked.

Bug: 227823594
Test: atest PkgInstallSignatureVerificationTest
Test: atest SigningDetailsTest
Change-Id: Id53a2cd235c7a557822b9a1bfc2f431801d415e4
2022-04-15 17:11:12 -07:00
Songchun Fan
1ae2bcd605 [pm] fix platinum test mapping
+ Use hostside test class for SplitTest
+ Remove duplicated PackageParserTest

BUG: 140252512
Test: manual
Change-Id: I73bdceb0c5b333041b96cd777790c0ba0cece0e0
2022-04-12 17:24:04 +00:00
Bill Yi
95267eaf87 Merge SP2A.220405.004 to aosp-master - DO NOT MERGE
Merged-In: Iae1a66165221f45051be17c4d047b5bd5be3999b
Merged-In: I0c82fda5497bace30d49989b8e84ebc98250ca8c
Change-Id: I2c75988c023cec548e3a576cb0c3a1a13bb0016f
2022-04-07 18:40:59 -07:00
Pedro Loureiro
e748d40d2b Merge "Allow unknown codenames in target sdk version for APK-in-apexes" into tm-dev 2022-04-05 12:46:45 +00:00
Jon Eckenrode
020a477050 Merge "Updated API documentation of screenWidthDp and screenHeightDp." am: ec2121901c am: d697c8b46d am: 6417364cfe
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2030783

Change-Id: I0304617ea90c3768fc80f1aa98b3e88ece996d0d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-04 18:32:12 +00:00
Jacob Hobbie
2a9b86c1f7 Merge "Updating receiver flag requirements and enforcement." into tm-dev 2022-04-04 18:27:31 +00:00
Jon Eckenrode
d697c8b46d Merge "Updated API documentation of screenWidthDp and screenHeightDp." am: ec2121901c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2030783

Change-Id: I607d3723b0d2855f9b53f30cd4dda058ff3b4d93
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-04 18:00:57 +00:00
Jon Eckenrode
ec2121901c Merge "Updated API documentation of screenWidthDp and screenHeightDp." 2022-04-04 17:36:37 +00:00
Your Name
b4b352e37f Updating receiver flag requirements and enforcement.
Since we're no longer planning on enforcing the flag requirement for
exported/not exported in T, we should update the compat change so that
it's disabled, which will allow developers to still test it, change the
error message so it doesn't reference Android T, and remove the
additional system property that enabled stricter enforcement.

Test: atest ContextText
Bug: 225057637

Change-Id: Ibdc079ef7e92954422ddde715b3a4ae358f552e3
2022-04-01 16:39:37 +00:00
Pedro Loureiro
5ef7d7b777 Allow unknown codenames in target sdk version for APK-in-apexes
This is currently a recurring issue every new Android release as a few of
our apps will be targeting new platforms and they also get installed on
devices running older SDKs.

This change only changes behaviour for APK in apexes.

Test: atest com.android.server.pm.parsing.PackageParserLegacyCoreTest

Bug: 208239394

Merged-In: If1195c8ec39ac88a605e25dfb1c78d49a5aa3e7c
Change-Id: If1195c8ec39ac88a605e25dfb1c78d49a5aa3e7c
2022-04-01 11:51:06 +00:00
TreeHugger Robot
5b6ba1cfde Merge "Only allow the system server to connect to sync adapters" into tm-dev 2022-03-31 15:35:08 +00:00
Makoto Onuki
84b3442e28 Update OWNERS for the content and sync subsystem
Bug: N/A
Test: treehugger
Change-Id: Ifd8273d6b703110250f2c0210d61599cf6c436d5
2022-03-31 08:07:16 -07:00
Treehugger Robot
9b93e341f4 Merge "Update OWNERS file to reflect ownership in capability related files" am: c32215ee94 am: e34c026cbb am: edbb1a9687
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2030804

Change-Id: I23340c062bd74fc987a18e621b9a646b5aea52d2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-31 05:12:59 +00:00
Treehugger Robot
edbb1a9687 Merge "Update OWNERS file to reflect ownership in capability related files" am: c32215ee94 am: e34c026cbb
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2030804

Change-Id: Ibf50e24133b3c74cb61f59c665262703a5ad6727
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-31 04:58:11 +00:00
Treehugger Robot
c32215ee94 Merge "Update OWNERS file to reflect ownership in capability related files" 2022-03-31 04:17:58 +00:00
Makoto Onuki
4df2de8380 Only allow the system server to connect to sync adapters
Bug: 203229608
Test: Manual test with changing the check logic
Change-Id: I27ade06541e79746f6c1318296cd11cb7fd5da21
2022-03-30 16:49:12 +00:00
Minche Li
70a4c7685c Merge "Updates the doc for FEATURE_WINDOW_MAGNIFICATION" into tm-dev 2022-03-30 01:30:14 +00:00
Jon Moeller
03efadfcfb Add Extra to mark ClipData items as "sensitive".
This extra enables applications to mark ClipData items as sensitive,
indicating that the data within should not ordinarily be displayed.

Applications (e.g. IMEs that store clipboard history) can use
this flag to prevent sensitive data from being unintentionally
displayed on screen.

Bug: 195554988
Test: N/A
Change-Id: Ibccd3944842a40d3e5afec2dd99f32eb7a3564db
2022-03-29 20:50:27 +00:00
joneckenrode
5c907cb5ca Updated API documentation of screenWidthDp and screenHeightDp.
Bug: 170805355
Test: Built API docs
Signed-off-by: joneckenrode <joneckenrode@google.com>
Change-Id: I8ae77784e07c9f9a552da2f3b1d290fac65e0765
2022-03-28 20:51:06 +00:00
mincheli
76ee08efb5 Updates the doc for FEATURE_WINDOW_MAGNIFICATION
If this feature is not supported,
1. Settings should hide window magnification settings.
2. Magnification mode settings should fallback to.
  full-screen settings.

Bug: 225086379
Test: none
Change-Id: I3248034d25eb88136bda1874092319d4702be455
2022-03-29 02:15:20 +08:00
Michael Groover
7cb3a32293 Restore V2+ signature requirement for system apps
In Android R, the platform began enforcing a requirement that apps
targeting this release or later must be signed with at least the V2
signature scheme. Initially, this requirement was applied to system
apps, but due to the build system stripping V2+ signatures due to
compressed dex and library files, the requirement had to be relaxed
for system apps; since then, the system apps have been updated with
uncompressed dex and library files to prevent the signature stripping
by the build system. This commit restores the requirement that
system apps targeting SDK version 30+ must be signed with at least
the V2 signature scheme.

Bug: 215046612
Test: Manually verified fix properly identified system app without
       V2+ signature
Change-Id: I5b482931a99ea8c2308d516912317ff0828153e2
2022-03-25 17:25:03 -07:00
Winson Chiu
6594433069 Merge "Revert "Revert "Remove all appId migration related public APIs""" into tm-dev 2022-03-25 04:47:26 +00:00
Pinyao Ting
93ab8fc534 Merge "Update surface related api in ShortcutIno for readability." into tm-dev 2022-03-25 01:17:20 +00:00
Winson Chiu
905b0b2176 Revert "Revert "Remove all appId migration related public APIs""
This reverts commit 2d3633485b.

Reason for revert: reintroduce change with correct removal

Bug: 226541637

Change-Id: I9825ec84a9dadfc3e0f2fd451852892d93e3fec8
2022-03-24 19:51:51 +00:00
Sumedh Sen
45ae5b1567 Merge "Update conditions for updates without user action for Android T" into tm-dev
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17229915

Merged-In: Iafd03b75ecf246a9651572becf6158316ecd8100
Change-Id: Iafd03b75ecf246a9651572becf6158316ecd8100
2022-03-24 19:10:28 +00:00
Pinyao Ting
b5f6bfef9e Update surface related api in ShortcutIno for readability.
Update surface related api in shortcut info in comply with api design
guideline.

Bug: 210991003
Test: atest CtsShortcutManagerTestCases
Change-Id: I493295fb6d1e780e5bfbb6feec31f7e85dc5294f
Merged-In: I493295fb6d1e780e5bfbb6feec31f7e85dc5294f
2022-03-24 16:15:35 +00:00
Ricky Wai
71312ff60c Update PackageInstaller.setPackageSource() API docs.
Bug: 218876748
Test: Able to compile and boot successfully
Change-Id: Ia99fcf2e90c0fd14f0aa38f16f1f2475f2741d85
2022-03-24 11:50:45 +00:00
Winson Chiu
2ea87d4d90 Merge "Revert "Remove all appId migration related public APIs"" into tm-dev 2022-03-24 08:35:44 +00:00
Winson Chiu
2d3633485b Revert "Remove all appId migration related public APIs"
This reverts commit a2755c7fc3.

Reason for revert: b/226471699, resource finalization violation

Change-Id: I95463fb7a388509ee23d3df7cfd7be8c0075e474
2022-03-24 08:28:50 +00:00
chaviw
abfe26db44 Add DISPLAY_HASH_SERVICE to ServiceName list
Test: Builds
Bug: 218553530
Change-Id: I8685909ddb838b3a0535fc1e38c736f3ae9f4411
2022-03-22 17:23:42 -05:00
Rhed Jao
d45ad7baf4 Merge "Add MAKE_UID_VISIBLE permission to the system api" into tm-dev 2022-03-21 05:46:30 +00:00
John Wu
d14f7d3c68 Merge "Remove all appId migration related public APIs" into tm-dev 2022-03-19 07:38:12 +00:00