Commit Graph

463626 Commits

Author SHA1 Message Date
Zim
87eacab57a Grant apps with WRITE_MEDIA_STORAGE legacy storage appop
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
2020-01-29 21:50:47 +00:00
Jorim Jaggi
23a02a9f67 IME always provides bottom insets, if any
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
2020-01-29 21:42:27 +00:00
Jorim Jaggi
abaa904348 Hide IME when loosing control
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
2020-01-29 21:41:59 +00:00
Yan Wang
188e637345 startop: Add a function test for iorapd.
Bug: 144181684
Test: atest iorap-functional-tests
Change-Id: Ida3f524003fe6bd386ac22aaa2298f2b6f7e5aa7
2020-01-29 13:39:12 -08:00
Hongming Jin
6b62158ad5 Allow recents components to register/unregister system action.
Bug: 136286274
Test: atest AccessibilityManagerServiceTest
      atest AccessibilitySecurityPolicyTest
Change-Id: I8926f8c52995d6997c7ed601ebe30d1a1f209347
2020-01-29 13:38:08 -08:00
TreeHugger Robot
bf43d48025 Merge "Call getPackageUidAsUser instead of getPackageUid" 2020-01-29 21:34:14 +00:00
Jorim Jaggi
ac3a47c767 Merge "Temporary bubble hack for new insets" 2020-01-29 21:32:48 +00:00
Sudheer Shanka
5257270180 Merge "Make Context.BLOB_STORE_SERVICE public." 2020-01-29 21:12:55 +00:00
Leon Scroggins III
a2a92080fc Remove unnecessary gInited
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
2020-01-29 16:00:07 -05:00
Makoto Onuki
4d95751e7a Merge "Fix LauncherApps.isActivityEnabled()" 2020-01-29 20:55:52 +00:00
TreeHugger Robot
8dee3654a9 Merge "Require signature scheme V2+ for target SDK R+" 2020-01-29 20:47:00 +00:00
TreeHugger Robot
b5107d9de6 Merge "Update mReadOnlyNotifList in ShadeListBuilder" 2020-01-29 20:36:54 +00:00
shubang
deb067c273 Implement tune() in JNI
Test: make; acloud create;
Change-Id: I6b0f044c5b11da40085e5d0a363048f63ebba397
2020-01-29 12:32:13 -08:00
Sergey Volnov
e453dcef3b Merge "Got rid of cancellation signals in the Content Capture Data Sharing" 2020-01-29 20:24:48 +00:00
TreeHugger Robot
f0e0554227 Merge "Add Drm playback tests to TreeHugger presubmit." 2020-01-29 20:17:05 +00:00
Calin Juravle
a5239e9651 Merge "Update boot image and system server profiles [M4C4P20S0]" 2020-01-29 20:06:03 +00:00
Kweku Adams
5358011284 Enforcing Background Check on RESTRICTED apps.
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
2020-01-29 12:05:14 -08:00
Automerger Merge Worker
0a20294de1 [automerger skipped] Merge "Import translations. DO NOT MERGE" into stage-aosp-master am: 61719eca99 -s ours am: 7e22de9e62 -s ours
am skip reason: subject contains skip directive

Change-Id: Ic6e1c6883bcb24c12945ad4430810d772ba47680
2020-01-29 19:47:56 +00:00
Automerger Merge Worker
7e22de9e62 [automerger skipped] Merge "Import translations. DO NOT MERGE" into stage-aosp-master am: 61719eca99 -s ours
am skip reason: subject contains skip directive

Change-Id: Id6ee6cbd694ccc6394d79bef0da53984b9055fc0
2020-01-29 19:38:52 +00:00
Nate Jiang
5e3bd29534 Merge "[WIFI] Protect broadcasts used by the Wi-Fi framework" 2020-01-29 19:36:34 +00:00
TreeHugger Robot
a190c897e9 Merge "Added area info support in cell broadcast service" 2020-01-29 19:29:53 +00:00
Beverly Tai
5f76f8bcef Merge "Refactor parts of BubbleController" 2020-01-29 19:29:21 +00:00
Philip Quinn
2116f0e58b Merge "Move ViewConfiguration#AMBIGUOUS_GESTURE_MULTIPLIER to config.xml." 2020-01-29 19:24:53 +00:00
TreeHugger Robot
61719eca99 Merge "Import translations. DO NOT MERGE" into stage-aosp-master 2020-01-29 19:24:32 +00:00
Xiangyu/Malcolm Chen
6a8699ea90 Merge "Remove unused APIs and variables in SubMgr." 2020-01-29 19:23:46 +00:00
Roshan Pius
cdd9f30708 Merge "Settings: Remove unused WIFI_SAVED_STATE" 2020-01-29 18:59:30 +00:00
Abhijeet Kaur
62477e502e Call getPackageUidAsUser instead of getPackageUid
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
2020-01-29 18:55:49 +00:00
Sudheer Shanka
f56f7589bf Make Context.BLOB_STORE_SERVICE public.
Bug: 143559646
Test: atest cts/tests/BlobStore/src/com/android/cts/blob/BlobStoreManagerTest.java
Change-Id: I2ae498803614761f1eab0927ab9e3c77dd65e1a1
2020-01-29 10:52:32 -08:00
Meng Wang
e8953ae762 DeviceIdentifierAccessDenied: deprecate is_preinstalled
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
2020-01-29 10:38:58 -08:00
Gavin Corkery
7b1117247b Merge "Return incremented rescue level when bootlooping" 2020-01-29 18:31:35 +00:00
jorgegil@google.com
7a926dc674 Add documentation to #onPictureInPictureRequested
Explains how app developers might want to use the new API.

Bug: 148011369
Test: compiles
Change-Id: I87b20de69ea9a30c2cb338cf19db0bd0b971b78a
2020-01-29 10:28:33 -08:00
TreeHugger Robot
2dfbfccde0 Merge "Fix debug print for new AppOps history params." 2020-01-29 18:26:44 +00:00
Artur Satayev
19b1eb087b Merge "Remove unused UnsupportedAppUsage annotations." 2020-01-29 18:20:19 +00:00
Artur Satayev
192ca30b7a Remove unused UnsupportedAppUsage annotations.
The new annotation is android.compat.annotation.UnsupportedAppUsage.

Test: m
Bug: 145132366
Exempt-From-Owner-Approval: previously approved change
Change-Id: Ie12e28eee0ed20b5677ee3162143700813b7ab64
2020-01-29 18:19:45 +00:00
Leon Scroggins
e98ae477cc Merge "Deprecate Path#isConvex" 2020-01-29 18:10:14 +00:00
Jay Aliomer
78d7c6509a Activity Record Splash Screen
When going to the home screen, the activity does not need a splash
screen

Test: run activity record test
Change-Id: Ic5cd747f69e9b6c332013455c779cd0b7860c477
2020-01-29 13:00:18 -05:00
Dmitri Plotnikov
715a1c654b Merge "Add async version of getProviderMimeType" 2020-01-29 17:59:51 +00:00
Muhammad Qureshi
1f6dc94214 Add framework module annotations in atoms.proto
Bug: 145952197
Test: m
Change-Id: I600606d55fe632d7ef3c475bb3d11cedf999420d
2020-01-29 09:59:10 -08:00
Nathan Harold
f394f37854 Merge "Return the RPLMN from NetworkRegistrationInfo" 2020-01-29 17:59:06 +00:00
Winson Chung
a4d446fd23 Merge "Minor refactoring to support moving code to shell" 2020-01-29 17:56:39 +00:00
Zimuzo Ezeozue
584d30b583 Merge "Whitelist privapp MANAGE_EXTERNAL_STORAGE permission" 2020-01-29 17:56:10 +00:00
Zimuzo Ezeozue
ca37cab4d2 Merge "Request MANAGE_EXTERNAL_STORAGE permission" 2020-01-29 17:56:10 +00:00
Zimuzo Ezeozue
b845c8e891 Merge "Request MANAGE_EXTERNAL_STORAGE permission" 2020-01-29 17:56:10 +00:00
Zimuzo Ezeozue
65bd3af8ba Merge "Request MANAGE_EXTERNAL_STORAGE permission" 2020-01-29 17:56:10 +00:00
Alex Johnston
b7fc2ab443 Merge "Update profile owner of org-owned device global restrictions" 2020-01-29 17:51:25 +00:00
TreeHugger Robot
c263e15058 Merge "Surround platform-compat check with Binder.clearCallingIdentity()" 2020-01-29 17:42:09 +00:00
Sally Yuen
96b878aada Merge "Implement multi-finger multi-tap gesture matchers for accessibility" 2020-01-29 17:41:28 +00:00
Automerger Merge Worker
04346f0186 [automerger skipped] Merge "Added multi-band support" am: bae34cb9f9 am: de13132e16 am: 048f18e6ad -s ours
am skip reason: Change-Id I8d5d828ec142c74428388a6d3f11cdf0842e03b9 with SHA-1 66605f1ad3 is in history

Change-Id: I7df9349878f7b09d58f593196767546509262347
2020-01-29 17:19:55 +00:00
Beverly
ed8aea2702 Refactor parts of BubbleController
So it'll be easier to switch out NEM for the new notification pipeline

Test: atest SystemUITests
Change-Id: I97b1949695fde1e67f6a8782ab21bb726a5bdde1
2020-01-29 12:13:22 -05:00
Automerger Merge Worker
048f18e6ad Merge "Added multi-band support" am: bae34cb9f9 am: de13132e16
Change-Id: If2eaa5d5d39b5bc4c20fd863fd5c0e008cb8e579
2020-01-29 17:08:09 +00:00