Add them to the "all flags" mask. We cannot change the value of a
constant in the API, hence need to deprecate it. This change does
not create a new API with the new value to not have the same problem
again.
Register the flag type in the IntDef and toString methods.
Test: Set permission flags, rebooted and verified that flags get
restored.
Bug: 124317989
Change-Id: Ia68053a937be7dc47af6e313e66e87f3228a2d14
Bug: 124317989
Test: adb shell dumpsys package com.google.android.apps.messaging
and ensure permissions without flag GRANTED_BY_DEFAULT have flag USER_VISIBLE
Change-Id: Ie3129a87a4391cb5a52ccda1b84fa46585850432
Add an internal method to ApplicationInfo to get all APK files that may
be required by an application. This moves assumptions about how apps are
constructed out of Zygote.allowAppFilesAcrossFork and into a more
appropriate place where it can be shared.
Bug: 124116212
Test: atest android.webkit.cts.WebViewTest
Change-Id: I79add98c4922c4f97263bff78cf808bc38274755
... and deprecate constructors that should not be called anymore.
Test: Looked at permissions (incl 3rd party) in UI
Fixes: 126701534
Change-Id: Ic5ceb522ca75d130001add47a1a3dcb2ea8f7e8f
Allow app to control the thread where ServiceConnection methods are
called on.
Bug: 111434506
Test: Used new bindContext method in chrome and checked callbacks
are on the correct thread.
Change-Id: I480e5bd6773a530fb9e8e73e3a2a2a88b76569ec
Renaming according to the comment in ag/6614840
Test: RollbackTest on user build
Bug: 127322579
Fixes: 127322579
Change-Id: I14abc9cf8fa41bd8ca7802a6b241f59c8f468400
* changes:
Check for empty arguments in setWhitelist().
Implemented a WhitelistHelper for whitelisting packages/activities for Augmented Autofill and Content Capture.
- Uses a String instead of URI for the main id.
- Uses FLAG_IS_PREFIX instead of isRecursive for UserDataRemovalRequest.
Test: m update-api
Test: atest CtsContentCaptureServiceTestCases CtsContentTestCases:LocusIdTest \
FrameworksCoreTests:android.view.contentcapture.ContentCaptureEventTest
Bug: 126945732
Change-Id: I34ae42678aa4021ea53ed66279cad4049ac2dcb3
- If running on a debug build, same behaviour is preserved.
- In case of a user build, INSTALL_ALLOW_DOWNGRADE flag is respected
only if it's system_server who commits the session.
Test: atest RollbackTest on user build
Test: manually tried to downgrade apk on a user build, it failed.
Bug: 125657835
Change-Id: I469f6513831cc727fc7e62ce1ff4f6ef472ab5e9
... and deprecate constructors that should not be called anymore.
Test: Looked at permissions (incl 3rd party) in UI
Fixes: 126701532
Change-Id: I646c814baa98524f27511a151b8ff2cda0422e8f
So that there is a single source of truth for pending backups and
pending restores. This fixes rollback of userdata for staged rollbacks.
Included in this change:
* Distinguish between PENDING_AVAILABLE, AVAILABLE, and COMMITTED
rollback states.
* Separate completeEnableRollback from makeRollbackAvailable.
* Make timestamp @NonNull and set it when rollback is made available.
* Don't listen for SESSION_UPDATED broadcasts.
* Factor out common code for ignoring saveRollbackData IOException.
* Other minor cleanups.
Test: atest RollbackTest
Test: atest StagedRollbackTest
Test: atest AppDataRollbackHelperTest
Bug: 124044231
Change-Id: I654a7827e9ed15659d0cb80e5a2c29c2660aea08
If they were null, then the Parcelable would fail to work.
Bug: 126726802
Test: manual
Change-Id: I7929ffa2f20e5de1c8e68e8263cca99496e9d014
Exempt-From-Owner-Approval: Trivial API annotations
Also migrate MediaProvider logging to more general-purpose location
on the ContentProvider.Transport, where we can log exact input/output
values to aid debugging.
Bug: 124347872
Test: manual
Change-Id: I6aba60879ded4e0892d2d1cdd717c23cebaaabd8
* changes:
Rename saveAvailableRollback to saveRollbackData.
Have RollbackData reuse RollbackInfo.
Miscellaneous cleanup in RollbackStore.
Rename RollbackData.inProgress to restoreUserDataInProgress.
* changes:
Allow to project audio from a Screen capture MediaProjection
Expose allowAudioPlaybackCapture to PackageManagerNative
Introduce playback capture application manifest flag