An app can now have legacy storage access in 3 mutually exclusive
ways:
1. Targeting < Q
2. Targeting <=Q and explicitly requesting legacy access
3. Targeting <=Q and having the WRITE_MEDIA_STORAGE permission
In other words an app targeting R has no way to have legacy storage
access. Its only option is to request MANAGE_EXTERNAL_STORAGE access
Test: Verify via dumpsys the conditions above
Bug: 144914977
Change-Id: I3c868cd9b4da4083517dd64b3a3888aea4060f18
This fixes an issue where IME wasn't visible in landscape with a
cutout, because IME window didn't cover full edge.
Also fix an issue where floating IME didn't work because alpha
was calculated the wrong way.
Test: InsetsSourceTest
Bug: 111084606
Change-Id: I29b7a45cd590a52ecb03f2e539edde57aef4dba3
Because we can't restore IME visibility yet, we update requested
visibility whenever we loose control.
Bug: 111084606
Test: Set password as screen lock, then open status bar while
unlocked.
Change-Id: I476e05dd4ec24b9e4d78ea585e43e698b87b30a5
Test: CtsGraphicsTestCases
It looks like this was originally used to make sure we did some sort of
initialization, but the initialization has been removed. Remove the
static variable, too.
Change-Id: I0a171975d8d17ebd9b1c8c85912031ef1c9e1a44
Forcing Background Check for legacy apps (targeting N-) when they're in
the RESTRICTED bucket. For this case, Background Check will only be
enforced when the device is on battery. This means that legacy apps'
services will run as normal while the device is plugged in.
Bug: 145551233
Test: write test app that targets L and confirm service doesn't start
when in RESTRICTED bucket
Change-Id: I25d8d50d062fbd3f7919165027ba411ca4832d4a
PackageManager.java has a lot of similar options for getPackageUid, 3 of
which are:
1. getPackageUid(String packageName, @PackageInfoFlags int flags)
2. getPackageUid(String packageName, @PackageInfoFlags int flags,
@UserIdInt)
3. getPackageUidAsUser(String packageName, @UserIdInt int userId)
The function being called here in set appop getPackageUid is calling 1st
method but passing userId. Passing the user ID is accepted as it is also
int, but the uid of the current user is returned.
Test: manual
Change-Id: I032df4a3e666ebb3efee673153bb75fa4c571e83
For statsd log DeviceIdentifierAccessDenied, field is_preinstalled is
provided by a hidden API. TelephonyPermissions cannot access hidden API
as a mainline module. So deprecate the field and always false.
Bug: 137202333
Test: make
Change-Id: Idb9b91015a867db9b9b0d2d8c1282e2afea65132
The new annotation is android.compat.annotation.UnsupportedAppUsage.
Test: m
Bug: 145132366
Exempt-From-Owner-Approval: previously approved change
Change-Id: Ie12e28eee0ed20b5677ee3162143700813b7ab64
When going to the home screen, the activity does not need a splash
screen
Test: run activity record test
Change-Id: Ic5cd747f69e9b6c332013455c779cd0b7860c477
am skip reason: Change-Id I8d5d828ec142c74428388a6d3f11cdf0842e03b9 with SHA-1 66605f1ad3 is in history
Change-Id: I7df9349878f7b09d58f593196767546509262347