summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-06-11Merge cherrypicks of [11834993, 11835120, 11834645, 11834934, 11834935, ↵android-10.0.0_r45android-10.0.0_r44android10-d4-releaseandroid-build-team Robot
11834936, 11834646, 11834647, 11834648, 11834649, 11834650, 11834651, 11834652, 11834653, 11834970, 11834857, 11835121, 11835122, 11835158] into qt-d4-release Change-Id: I5ed1c9e5f02fa364d954653ad49bca4b53e89c8a
2020-06-11More fixes towards the race conditions in AMSJing Ji
Bug: 142986887 Bug: 140108616 Test: Manual Change-Id: I6e0bdc8c02bab54f6278096b3a3acadd97c064c6 Merged-In: I6e0bdc8c02bab54f6278096b3a3acadd97c064c6 (cherry picked from commit b2e84f0406139156442984943d8de7dd37d51368) (cherry picked from commit b581128020acb378d0a941f022151d7e2883e19c)
2020-06-11DO NOT MERGE Prevent ImageWallpaper from crashing due to wide gamutAhan Wu
ImageWallpaper may fail at either uploading texture or computing the histogram of the bitmap, we catch the unexpected exceptions to avoid crashing the whole process. In addition, we also take wide gamut into account while computing the histogram. Bug: 156087409 Test: Set 1.jpg of #34 in the bug as wallpaper. Test: The symptom should not happen. Change-Id: I931912ece0f7cdfcb388efc8e61799f0087c5199 (cherry picked from commit 34c8ecdf280d6209aa8163c1bc8f41a449302e39)
2020-06-11Add back enforceReadPermission for getmetadataDiksha Gohlyan
Test: manually tested Bug: 151095863 Change-Id: I29ef120c10c488550b85269e598aeb6ff9505038 Merged-In: I4f04f08f76d039196c2c67bac80d4a46ebec87f2 (cherry picked from commit 71ec29b05022b06ffd4596dc8b339d2067cf58c0)
2020-06-11RESTRICT AUTOMERGELinus Tufvesson
This change is the union of I2aaab1903dee54190338f7b6e49888aa51437108 and I58834636e092f992e403342e36b475dc60e8f20a Original CL descriptions: *** I2aaab1903dee54190338f7b6e49888aa51437108 Block TYPE_PRESENTATION windows on default display ... and any other display that isn't considered a public presentation display, as per Display.isPublicPresentation() *** I58834636e092f992e403342e36b475dc60e8f20a Use TYPE_PRIVATE_PRESENTATION for private presentations Detect if the Presenation is targeting a private virtual display, and if they are use the windowType TYPE_PRIVATE_PRESENTATION. *** Bug: 141745510 Test: atest CtsWindowManagerDeviceTestCases:android.server.wm.PresentationTest CtsDisplayTestCases:android.display.cts.VirtualDisplayTest Change-Id: I9f1c4b140ab4bc6183151aafc5501e8648fbc3fa (cherry picked from commit d0746b46a5d8049a7105a16eb25c44810376527e)
2020-06-11Drop supplementary groups for child zygotes.Martijn Coenen
Child zygotes like Webview zygote and App zygote are created with an empty supplementary group list; this was intended to drop all groups, but instead we don't call setgroups() at all, which means that these child zygotes are run with the same groups as the parent zygotes. Currently those groups are AID_READPROC and AID_RESERVED_DISK, and the child zygotes should need neither: AID_READPROC is only used for wrapping with the wrap.com.packagename sysprop, which doesn't really make sense for child zygotes. AID_RESERVED_DISK shouldn't be needed because child zygotes and their children are not critical, and therefore shouldn't be able to use reserved disk space. Remove the groups by explicitly call setgroups(0, NULL); for child zygotes. Bug: 156741968 Test: observe /proc/zygote_pid/status, notice groups are empty Test: atest CtsExternalServiceTestCases Change-Id: I4ee43a8bb9d86ff6f620437fb290481365a9e988 (cherry picked from commit 5a45262741f6410a61bec59a41b4229e349a00b7)
2020-06-11Use killProcessGroup when killing app zygote.Martijn Coenen
To make sure we kill all untracked children, too. Bug: 156741968 Bug: 157598956 Test: manual inspection, PoC no longer works. Change-Id: I5d8efeb05ddec08a7fc7c00eabca6590c4cfdd8c (cherry picked from commit 0a91f61ac8387c02528e0f6f0948296ba9d5ca77)
2020-06-11Make implicit intent immutable.Jeff DeCew
(cherry picked from commit e42611f83cc72d22ed99fe3a8b79386d76ae5fa6) Test: make Fix: 154627439 Change-Id: Ifee830595bb145aede4dad1d9e42a20e54b6be66 Merged-In: Ifee830595bb145aede4dad1d9e42a20e54b6be66 (cherry picked from commit 7aae8cce330cb9b8ebca7b68da3abcd8e2d5a272)
2020-06-11Make intents immutableJulia Reynolds
Test: make Fixes: 154719656 Change-Id: I212ca5f1a48174ed85311b551259da314718f082 (cherry picked from commit 36b3352784ae90326a2b308542b1d2cfe18661a0) (cherry picked from commit 2a92eea73034820a20ba07cc267a326ace859d6d)
2020-05-21Merge cherrypicks of [11569582, 11569838, 11569699, 11569700, 11569701, ↵android-build-team Robot
11569703, 11569839, 11569840, 11569841, 11569842, 11569759, 11569760, 11569843, 11569938, 11569522, 11569642, 11569643, 11569644, 11569958, 11569959, 11569584, 11569585, 11569586, 11569587, 11569645, 11569646, 11570018] into qt-d4-release Change-Id: I25b2967f5bcf9ea3eb89afa7f13938f22aecc7de
2020-05-21Fix order of uid/pid in LocationAccessPolicyHall Liu
Fix the order in which uid and pid are passed into the permission check. Test: atest LocationAccessPolicyTest Fixes: 151330809 Change-Id: I479c8fc123d5a994e8cbe6489aa00bea4abca1c7 Merged-In: I479c8fc123d5a994e8cbe6489aa00bea4abca1c7 (cherry picked from commit 4bf1986a323ed8bdff7934a0f9df60e06c8745f6)
2020-05-21Verify all possible hosts that match web navChristopher Tate
Even if an <intent-filter> matches non-web schemes in addition to http or https, make sure to include its cited hosts in the autoVerify evaluation. Bug: 150038428 Test: atest OsHostTests#testIntentFilterHostValidation Change-Id: If9ef0fc53d96e6581c56d86f89fe63bc9a5fb89a Merged-In: If9ef0fc53d96e6581c56d86f89fe63bc9a5fb89a (cherry picked from commit 1fba0f897f276d5d47962534867e764da8061105) (cherry picked from commit f4976307cec95e213cf0ad656dd3d34a311e55c5)
2020-05-21RESTRICT AUTOMERGEEugene Susla
Prevent accessing companion records from arbitrary uids Test: manual Fixes: 129476618 Change-Id: I7b18cfcdf58e62a445cbb508116c6ce7c1cea8d7 (cherry picked from commit b4aaa9d8adae5971f7f6589afc22008afa2f8d2b)
2020-04-28Merge cherrypicks of [11279261, 11278653, 11273786, 11279277, 11279457] into ↵android-10.0.0_r43android-10.0.0_r42android10-d4-s1-releaseandroid-build-team Robot
qt-d4-release Change-Id: Ib56f353e3d2a1db88acaa5d6e5fb58dffd18b401
2020-04-28Revert "Merge cherrypicks of [11219356] into qt-d4-release"Judy Chen
This reverts commit f96b3c9b7e4c69c1fddbc5c9ccb1b649a8e3a1dd. Reason for revert: <INSERT REASONING HERE> The change is for June Security patch but S5 has already lockdown May Security patch for launch. S5 will have arranged July SMR after launch. Change-Id: I1f1cab5890b75012dba119717baaf5cca6c87e9c (cherry picked from commit 75fc007d66c23415bedc8e2e54db851dfbd3a215)
2020-04-22Merge cherrypicks of [11219356] into qt-d4-releaseandroid-build-team Robot
Change-Id: I8d19cb41b0d01bcd79465f850a2d86a90d625fc5
2020-04-22RESTRICT AUTOMERGEEugene Susla
Prevent accessing companion records from arbitrary uids Test: manual Fixes: 129476618 Change-Id: I7b18cfcdf58e62a445cbb508116c6ce7c1cea8d7 (cherry picked from commit b4aaa9d8adae5971f7f6589afc22008afa2f8d2b)
2020-04-20Merge cherrypicks of [11161370, 11131606, 11161395, 11161891] into qt-d4-releaseandroid-build-team Robot
Change-Id: Ib2890d0381556e807f379f4a37e4965997312520
2020-04-20[Telephony] Show 4G icon instead of 3G icon for UMTS network in ATTchangbetty
Bug: 153624066 Test: make Change-Id: I2eb97a1210c78d08b86f5616a56219ae3f671010 Merged-In: Idc3f0f645a3c2c653061e6dac546f3469b2bc757 (cherry picked from commit 0435f0ae61fe55854ccf83a26ced2c587f8923b7)
2020-04-07Merge cherrypicks of [10961387, 10961388, 10961389, 10962537, 10961893, ↵android-build-team Robot
10961547, 10961390, 10964051, 10964032] into qt-d4-release Change-Id: I57258305cea57c1865ae804ecf9b9d34b1368342
2020-04-07Do not allow division by 0Lucas Dupin
Test: make Fixes: 151128233 Change-Id: Id1a50ae18a2cd014093a17701f6b62070a62e5ff Merged-In: Id1a50ae18a2cd014093a17701f6b62070a62e5ff (cherry picked from commit 96aaa02edb4be768af00edb1b88b9980d88eb970)
2020-04-05Merge cherrypicks of [10952653, 10952654, 10951296, 10951297, 10952655, ↵android-build-team Robot
10952671, 10952672, 10952367, 10952368, 10952673, 10948550] into qt-d4-release Change-Id: I47401c9dbdefda549c1cd28ffd98cede7e2ce09a
2020-04-05Don't crash if NSSL gets incomplete gestureNed Burns
In *theory*, a View should always receive an ACTION_DOWN before receiving any other touch events, but this isn't always the case in practice. Whenever we see one of these "partial" gestures, we should ignore it until a real one starts. Test: manual Bug: 146323887 Merged-In: I22182d90b0057df67fbd6d20785da23d6c17dcf3 Change-Id: I22182d90b0057df67fbd6d20785da23d6c17dcf3 (cherry picked from commit c8048daed2e1b15fca1e281499d426920fc245c0) (cherry picked from commit c0e4c56696b88d3c87db25d0323cecfa40f362bd)
2020-04-05Fix Battery optimization takes long timeRaff Tsai
isDefaultActiveApp is called on every package. We can cache default dialer and default sms package in a list, and check if the list contains target package name. Fixes: 140279638 Bug: 151233929 Test: manual, make RunSettingsLibRoboTests Change-Id: I81f5ccb7aed1ebec797a21af6094971e05f456a7 (cherry picked from commit 19c2bbccfd34af8cd305b7416f4a64632f461b8b) (cherry picked from commit 8ef5d5e438957e39fc4fa9423b5420326ff04b92)
2020-04-01Merge cherrypicks of [10912066, 10912067, 10912068, 10915261, 10915397, ↵android-build-team Robot
10915398, 10913399, 10914988, 10915357, 10915399, 10915321, 10915322, 10915323, 10910509, 10915324, 10910510] into qt-d4-release Change-Id: Ie1b6687ffbfd931ed1c5d72f4fdf033b6f3bf0ca
2020-04-01RESTRICT AUTOMERGELinus Tufvesson
Revert submission 10383599-type-presentation-q Reason for revert: Breaks apps using Presentation in combination with private virtual displays Reverted Changes: I2aaab1903:RESTRICT AUTOMERGE Block TYPE_PRESENTATION windows... Ib5a24f8be:RESTRICT AUTOMERGE Add test for Presentation Bug: 141745510 Change-Id: I0b3a332c286900952b65ece12435f981e324cb5b (cherry picked from commit a9211d687df742350916103f50ace9953c1abf48)
2020-03-26Merge cherrypicks of [10850445, 10858416, 10858417, 10850446, 10858375, ↵android-build-team Robot
10858376, 10858377] into qt-d4-release Change-Id: I26eb127d8d747bf3dfde50700218829b282c4c1f
2020-03-26DO NOT MERGE use left/right insets instead of cutoutBeverly Tai
Icons are being cut off when the app letterboxes (b/151868088) Note: icons will be inset even when the app isn't letterboxing. Fixes: 151868088 Change-Id: I870849628a3ff724fd73f36261c87ea23d858f1a (cherry picked from commit 60023559ea0219273e0680a7b559392230172fd6)
2020-03-26DO NOT MERGE: Use status_bar_padding_topEvan Laird
In status bar, keyguard, and quicksettings, things that live in the "status bar" area now properly obey status_bar_padding_top. Also refresh layout resources on configuration change in the status bar, fixing a couple of annoying bugs Test: manual Bug: 151221263 Change-Id: Ib4474ae2bd52919c2eecf9400c2711fd224fcc09 (cherry picked from commit bc95ab7a3914ba71b48ce046a9a926e9e4f5a6f2)
2020-03-25Merge cherrypicks of [10841371, 10841391, 10841392, 10841143] into qt-d4-releaseandroid-build-team Robot
Change-Id: I6d20dcb71c0ad4e1c0b7faba7995d3bdca273abd
2020-03-25DO NOT MERGE: Add blacklist for camera protectionEvan Laird
Bug: 150540299 Test: atest SystemUITests Change-Id: Ica395ba060cbbdbd0eef424e6f05decaff3f308c (cherry picked from commit 36d3b2e3ad417ef4d9d3caf98480ce70b3c831e0)
2020-03-23Merge cherrypicks of [10802696, 10802697, 10802698, 10802699, 10803032, ↵android-build-team Robot
10803056, 10803057, 10803381, 10803073, 10803074, 10803382, 10803383, 10803498, 10803499] into qt-d4-release Change-Id: I434906517745d501d1976ee4825338869422b4c6
2020-03-23[RESTRICT AUTOMERGE] Allow bar to be transparent during animating.wilsonshih
When top window request fullscreen and device contain a real cutout and the layoutInDisplayCutout is default or never, a letterbox will be created for this activity, which cause BarController#isTransparentAllowed return false so the status bar cannot be transparent, the bar will shows a black background during hidding animation. A simple workaround is to allow the bar can be transparent during hidding, since the surface of letterbox is not really overlapped with bar because it's also animating. Bug: 150048810 Test: No black background shows on status bar when opening fullscreen app. Test: atest DisplayPolicyTests Change-Id: I2dd5b1fbad8e79ec80f799d63bba8824acc6a639 (cherry picked from commit 44f50d484de99b0801649ac052acd46c7be66192)
2020-03-23Fix race condition while WallpaperMS rebinding service.wilsonshih
Connection object could not receive onServiceConnected after new process of the service was active. How issue happen: 1. The process of wallpaper service died, AM schedule to restart, WallpaperMS schedule to rebind. 2. WallpaperMS bind service with new connection object. => ActiveService bring up new process. Add this ServiceRecord to mPendingServices. 3. WallpaperMS unbind previous connection object. => ActiveService remove previous connection, also remove this ServiceRecord object from mPendingServices list. 4. Process ready, attach application but cannot find the service from pendingServices. Solution: Do not remove the ServiceRecord object from mPendingServices if there is any connection left. Also use runnable object instead of method reference. Bug: 148834472 Test: atest WallpaperManagerTest WallpaperManagerServiceTests Change-Id: I3adec66de8ac0c7efc9ad3ffbf604b01eacb5720 Merged-In: I3adec66de8ac0c7efc9ad3ffbf604b01eacb5720 (cherry picked from commit d1551333823f4e86ec0e19b65c4faafeb617f87b) (cherry picked from commit b6cd9c2003d258e1f60a839d22720f442e150d52)
2020-03-20Merge cherrypicks of [10772351, 10772352, 10772353, 10771990, 10772314, ↵android-build-team Robot
10772294, 10772372, 10772295, 10772315, 10772316, 10772317, 10772318, 10772319, 10772296, 10771655] into qt-d4-release Change-Id: Idda69fd2d01d5387c37ea5d8bb1bec585c91c17a
2020-03-20Allow two finger swipes down.Dave Mankoff
Bug: 140715042 Test: atest SystemUITests Change-Id: Iebfec76045897818cec89f588ebd1d72a782c942 (cherry picked from commit 70db873eeaf11f8e5f882bbbac7f605badb45a92)
2020-03-16Snap for 6300905 from 07808d1477d03b50c6e5535cf54210dad8e4f133 to qt-d4-releaseandroid-build-team Robot
Change-Id: If1e5f25594d935b9cb8abe8648390cea2a0b331d
2020-03-15Import translations. DO NOT MERGEBill Yi
Auto-generated-cl: translation import Change-Id: Icdc4ac69264d3712e36961f588a783cc13122b4c
2020-03-13Snap for 6294593 from 5fe2090213998365af682442da1a313bbdce317e to qt-d4-releaseandroid-build-team Robot
Change-Id: I7364bd548250956f1eea98eb343d4fb38bb36231
2020-03-13Merge "DO NOT MERGE Optimizing ScreenDecorations performance" into qt-qpr1-devTreeHugger Robot
2020-03-13DO NOT MERGE Optimizing ScreenDecorations performanceBill Lin
Avoid calling onTuningChanged() when onConfigurationChanged() trigger Only calling onTuningChanged() when roundedCornersChanged is true. Test: atest SystemUITests Test: atest ScreenDecorationsTest Bug: 148912090 Change-Id: I2507d12b277d058cef390d7c55488d0d09dde206 Merged-In: Ie33526214072ad324ca00a10074ad212dfbf4258
2020-03-13Merge "Either reuse sensor values or don't dim down at all" into qt-qpr1-devLucas Dupin
2020-03-12Either reuse sensor values or don't dim down at allLucas Dupin
ALS latency is unpredictable and sometimes debounced. This means that it might take at least 3 seconds for the display to wake-up, if it wakes-up at all. We might also get stuck and never show HUNs if the event doesn't arrive. This is a bug that we had in the past, but was not as noticeable because the padlock was below the scrims, now, users are reporting that the padlock shows up, but the hun is not. Test: manual Fixes: 150852696 Change-Id: Iade5ebd4c33e7c9d668b09144964f1408ef529ad Merged-In: Iade5ebd4c33e7c9d668b09144964f1408ef529ad
2020-03-11Snap for 6286364 from 41edb22d75dc5d60cda75835e3880d30c18e5a10 to qt-d4-releaseandroid-build-team Robot
Change-Id: Ifdba141d245824e82f9a2edac6583189524a1dad
2020-03-11Merge "DO NOT MERGE Ignore insets on status_bar_container" into qt-qpr1-devTreeHugger Robot
2020-03-11Merge "RESTRICT AUTOMERGE Block TYPE_PRESENTATION windows on default ↵Automerger Merge Worker
display" into qt-dev am: 3d4cf34685 Change-Id: I427d795236c2e5070b6c7dc13cb6ee1da8211beb
2020-03-11RESTRICT AUTOMERGE am: 60a6583adfAutomerger Merge Worker
Change-Id: I387d6fcf719b56132baeff486aebce875d76f602
2020-03-11Merge "Camera: Add new hidden API for camera open/close callback" into ↵Shuzhen Wang
qt-qpr1-dev
2020-03-11Merge "RESTRICT AUTOMERGE Block TYPE_PRESENTATION windows on default ↵TreeHugger Robot
display" into qt-dev
2020-03-11Merge "[DO NOT MERGE] Allows the Assistant to request suppression of fling" ↵Govinda Wasserman
into qt-qpr1-dev