Expose a system API PackageManager#makeUidVisible for
mainline module to make a package become visible to the caller.
Bug: 222205552
Test: atest AppEnumerationTests
Test: atest PermissionPolicyTest
Ignore-AOSP-First: (for packages/Shell/AndroidManifest.xml) Permission
Change-Id: I6cf322ddfea09a8a4c0c442a6789af4e79d294d7
SigningDetails.UNKNOWN is defined with a null array, so if any
package fails to scan signatures, this code would crash with an
NPE.
Instead of failing, just treat it as an empty signature array.
It's unclear what caused this to pop up now, as this code hasn't
changed in a long while.
Bug: 223469467
Test: presubmit
Change-Id: Icdcfaaa3586898873b719c74dd5662b03e3fabae
Revert "Revert "Update test to check PackageInfo""
Add null check to prevent possible NPEs.
Reverted Changes:
I9a0c5d5ad:Update PackageInfo APIs to reflect shared UID stat...
Ib338b21ab:Update test to check PackageInfo
Change-Id: Ic6f72f08f487bcb37cc75acd18b72427aabf91b7
"Normal" app installs are not affected by this change.
Test: atest apex_apkinapexmaxsdk_tests
Bug: 208239394
Change-Id: Iceb464dcb6fe1e9c26c456be85379ce709753103
Parse APK info during installing and if SDK send broadcast
to invoke SDK verifier.
Bug: 216436982
Test: manually install SDK
Change-Id: I027c1999685f582c6bce2c4be6169feb5886fdba
To avoid leaking IPackageManager methods directly into
PackageManagerService, moves the IPM implementation into an inner
class similar to PackageManagerInternal.
This will help enforce snapshot consistency by ensuring that all
non-IPM PMS methods can always take in a Computer instance to re-use.
Bug: 217961172
Test: presubmit
Change-Id: Ibf7bd3d1d90a40786279763ba8d62eb9348bb760
This reverts commit 07f7f3ff5b.
Currently, Context#startActivityAsUser(Intent, UserHandle) has
already been a System API. This CL furthur makes
startActivityAsUser with ActivityOptions a System API.
This is enssential to launch an Activity to the secondary display
by setting launched display ID in ActivityOptions.
This also align the behavior of startActivity. We made all versions
of startActivity public APIs.
Bug: 199829817
Change-Id: I334c2a98483e709559162ad64f3b69cbd3b615d2
Test: atest AnnotationTest
CTS-Coverage-Bug: 222189824
* changes:
[automerge] [DO NOT MERGE]Revert "Relax minimum signature scheme version for apps on system partition" 2p: 3c36fd5fee
[DO NOT MERGE]Revert "Relax minimum signature scheme version for apps on system partition"
Properly reflect the current status of shared UID in several
PackageManager public APIs that returns PackageInfo.
For getPackageArchiveInfo, we only consider the sharedUserMaxSdkVersion
attribute as a best effort to reflect the APK status.
Test: atest CtsSharedUserMigrationTestCases
Bug: 220015249
Change-Id: I9a0c5d5ad0dee19a86ab9f2af6deb254d8b5cbb7
This reverts commit c2817ca17f.
Reason for revert: DroidMonitor-triggered revert due to bug b/222503182.
Change-Id: I8ab687811b7b0a76587bcb0903055ebbc35f729a
Originally, View was implementing onBackInvokedDisptacherOwner, but now
only Activity and Dialog and since back event are related to the
window, it makes sense to move them into the android.window package
This follow up comment at:
ag/c/platform/frameworks/base/+/16764116/comments/e131f3ef_e3e1d2e0
Test: atest BackNavigationTests
Bug: 221401221
Change-Id: Ia2f26162beb6a41b6e162b31e599e882f8bf7320
Currently, Context#startActivityAsUser(Intent, UserHandle) has
already been a System API. This CL furthur makes
startActivityAsUser with ActivityOptions a System API.
This is enssential to launch an Activity to the secondary display
by setting launched display ID in ActivityOptions.
This also align the behavior of startActivity. We made all versions
of startActivity public APIs.
Bug: 199829817
Test: presubit
CTS-Coverage-Bug: 222189824
Change-Id: Ia1db353d4b91a8952d4d21b970253e1ac03e8173
Since the sResourcesHistory set is synchronized, an attemp to modify the
set will block while the forEach() method is running in the rare case
resources are being dumped. With a normal for loop, modifying the set
while in the loop results in a ConcurrentModificationException.
Fixes: 219609463
Test: Manual
Change-Id: I9b7bb965aa390e5dec696be07599f777c807c1e3
Replace the unsafe readSparseArray API call with the typed version.
Bug: 195622897
Change-Id: Ia874fd8e454ddb145d2e999afb08cb79f693566c
Test: Builds and Boots.
Adding new overloaded methods of startMainActivity and startActivity that allow the caller to
specify that the new activity should be added to the current task rather
than creating a new one.
Test: atest android.devicepolicy.cts.CrossProfileAppsTest FrameworksServicesTests:com.android.server.pm.CrossProfileAppsServiceImplTest
Bug: 215425075
Change-Id: I21c258c5962daefb32f65779035f4ba8f0474da7
(cherry picked from commit 96ca7241ff)
Merged-In:I21c258c5962daefb32f65779035f4ba8f0474da7
Implements API feedback about the safety center constants. Also renames
Safety Hub to Safety Center
Fixes: 215301946
Test: build
Change-Id: Ie07e8fc3ae7371e94d23ac6dfa9a446ef92da074
This reverts commit b71e398935.
Revert reason: System apps should now have uncompressed dex / library
files in their APKs and should be able to satisfy the minimum V2
signature requirement when targeting API level 30+.
Fixes: 215046612
Test: Manually verified V1 only signed APK targeting API level 30
on the system image failed to verify.
Change-Id: Ic53d2a3614e7dff4e4bfe18561d3dfbb665bbcb2
2 sets of error codes are a source of confusion. This CL migrates
all uses of SessionInfo.SESSION_XXX error codes to
PackageManager.INSTALL_XXX ones which provide a richer set of
error codes.
Bug: 210359798
Test: atest StagingManagerTest \
com.android.server.pm.test.PackageInstallerSessionTest \
CtsStagedInstallHostTestCases
Merged-In: I0a721a48293029983ffd80912adbb2229ab4ee5d
Change-Id: I0a721a48293029983ffd80912adbb2229ab4ee5d
(cherry picked from commit 1ed3bff6c5)
Populate a new stats atom with information about PendingIntents; per-uid: (1) the total number of intents and (2) the total size of any extras bundled with the intents.
Change-Id: I04e6b368a76623c80ead6f846baf85b1a6c5ce70
Test: statsd_testdrive 10151
Bug: 217162457