summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-10-19Merge cherrypicks of [5316628, 5317104] into sparse-5052819-L66800000220839881android-9.0.0_r16pie-qpr1-s1-releaseandroid-build-team Robot
Change-Id: I6776d65c54fba4d553f809131c77e0ee679c0140
2018-10-19Keep app in high memory adjust if moving from TOP to FGSAmith Yamasani
If an app was in the TOP state and immediately moved to a foreground service state, then try harder to keep it in memory for another 20 seconds before releasing the memory to bound foreground services. Using an oom_adj value of 50 which is between "fore" and "vis". So BFGS apps might get killed ("vis") before this recently FGS'ed app. That way any app that has a lot of state in memory that it needs to persist before getting killed has a chance to do so. Also bind NotificationListeners with a special bind flag to rank them below FGS (perceptible adj) so that they can be killed before any other foreground services or bound services get killed. Bug: 110969183 Test: Manual for now. Take a bunch of portrait pictures and hit home, while being under memory pressure with a bunch of notification listeners. Change-Id: Ie8934c2331afe6450c582b209869aeca7272f58a Merged-In: Ie8934c2331afe6450c582b209869aeca7272f58a (cherry picked from commit b735830a1e71e72c4e72260d7eab0382b4ee19df)
2018-09-28Merge cherrypicks of [5141854, 5140474] into pi-qpr1-releaseandroid-build-team Robot
Change-Id: I06f63095c26ffb6cb482ea66b4f2663296c968ba
2018-09-28Revert "RESTRICT AUTOMERGE: Check both self and shared user id package for ↵Hongming Jin
requested permissions." This reverts commit 5e37e9d962c476202590bef32b87c2eb794d61a1. Reason for revert: Not a security fix and the security fix needs this cl is reverted. Bug: 114365189 Change-Id: Ia12ce2692b47a1d59be0b199b1fbfa415767e145 (cherry picked from commit 0b103c697331a5bcae2f65de4a3864bca0b592ff)
2018-09-28Revert "RESTRICT AUTOMERGE: Revoke permissions defined in a to-be removed ↵Hongming Jin
package." This reverts commit fde947837c848b51a830b74b28f96f9808405492. Reason for revert: triggers other issue. Bug: 114365189 Change-Id: I37523a1778d55153253cf10df1ede68c5acb8178 (cherry picked from commit 06cc74977fcebe8a270e6bcd812dcfb31c32492c)
2018-09-10Merge cherrypicks of [4986743, 4986744, 4987539, 4987168, 4986376, 4986377, ↵android-build-team Robot
4986378, 4986889, 4986745, 4986746, 4986747, 4986748, 4986749, 4986750, 4986773, 4987169, 4987170, 4987611, 4987631, 4987632, 4987633, 4987634, 4986890, 4987612, 4987651, 4987598, 4987613, 4987614, 4987615, 4987599, 4986379, 4986380, 4987652, 4987653, 4987691, 4986774] into pi-qpr1-release Change-Id: Idfec2f26918d14afde9ef01367ffb1ecd1dde548
2018-09-10Verify number of Map entries written to ParcelMichael Wachenschwanz
Make sure the number of entries written by Parcel#writeMapInternal matches the size written. If a mismatch were allowed, an exploitable scenario could occur where the data read from the Parcel would not match the data written. Fixes: 112859604 Test: cts-tradefed run cts -m CtsOsTestCases -t android.os.cts.ParcelTest Change-Id: I325d08a8b66b6e80fe76501359c41b6656848607 Merged-In: I325d08a8b66b6e80fe76501359c41b6656848607 (cherry picked from commit 057a01d1f38e9b46d3faa4059fdd7c8717681ea0)
2018-09-10Changing SUPL_ES=1 for SUPL end point controlWayne Lin
SUPL_ES=1 ensures the GnssLocationProvider and related framework code accepts incoming SMS SUPL_INIT messages with ES-bit=1 (which allow redirection of the ESLP end-point e.g. to the current local emergency services provider when you are travelling) only during an emergency call Bug: 111899241 Bug: 112159033 Test: Build pass Change-Id: I7dcd9c173a1d56fcf0da15257db5b8d1322b39d6 (cherry picked from commit 5b63dcc6a617cbab74dbda1f4cd759c75efa3aa5)
2018-09-10RESTRICT AUTOMERGE: Check both self and shared user id package for requested ↵Hongming Jin
permissions. Bug: 111752150 Test: Manual local test Change-Id: I80383300cd5d2455d08a0ad91000efa85404903b (cherry picked from commit 5e37e9d962c476202590bef32b87c2eb794d61a1)
2018-09-10Fixes possible issue with no-op creator.dwchen
Leaving a no-op CREATOR can lead to issues. We throw a run-time exception to prevent anyone from using this. The StatsLogEventWrapper is meant to be write-only since it's only used to send data to statsd. Bug: 112550251 Test: Tested with provided POC app by external researcher. Change-Id: I001d84e2a61a1cd8a4f59aa156ca52f73ad0f6e1 (cherry picked from commit 78622d57ad102c054306b01321b6b2dbec3f9d1d)
2018-09-05Merge cherrypicks of [4948448, 4948511, 4948299, 4947854, 4947306, 4946150, ↵android-build-team Robot
4948531, 4946116, 4948532] into pi-qpr1-release Change-Id: I9938da9c9b2a3e53b6987d0d1e5d61a9177485f1
2018-09-05Add equality method for PhoneAccount.Tyler Gunn
Checks for equality between two PhoneAccounts, not taking into account the icon, which cannot be compared with equality. Test: Manual as part of telephony account registry updates. Test: Added new unit tests to test equality. Bug: 112884689 Merged-In: Change-Id: Ibd0c69425bf185dc6b79db4ca4e9ca4a770320a3 Change-Id: Ibd0c69425bf185dc6b79db4ca4e9ca4a770320a3 (cherry picked from commit a04bd3d292ce29ad6f8c94348ea1c8ce80d29e8e) (cherry picked from commit 5df50b83bcc22a3d23de6f48d5d93418bfb63f1d)
2018-08-31Merge cherrypicks of [4913949, 4913979] into pi-qpr1-releaseandroid-build-team Robot
Change-Id: Ida0d6a734faa333574d13d4319bf149ad9bfa1d7
2018-08-31Reduce NearestTouchFrame size to prevent button taps on nav barMatthew Ng
The NearestTouchFrame spanned the entire nav bar that took any tap to hit the nearest button such as the back button. Reducing it prevents taps from the edge of the nav bar. Related: ag/4179853 Change-Id: I25a73cc995ed8d479ca9d5da85ec8a7cb629769d Fixes: 112298917 Test: tap the left side of the nav bar (cherry picked from commit 9e90f24dc5dc2574700c46288617bea18b28bf29) (cherry picked from commit 7daaaad74a29eca0e2a56b29fe55e2f615b05415)
2018-08-24Merge cherrypicks of [4871294] into pi-qpr1-releaseandroid-build-team Robot
Change-Id: I94a38b8375529c17492adf346429a48d5969c733
2018-08-24DO NOT MERGE Use correct lock when killing processesJorim Jaggi
Test: Switch display cutout Bug: 113093654 Change-Id: I2ca076a214da86656b6c71ebe1f63eb92e340ac0 (cherry picked from commit 1fd30aa5581dec8cfa5113fe436bcd963d0a35f9)
2018-08-24Merge cherrypicks of [4871059, 4868580, 4869372] into pi-qpr1-releaseandroid-build-team Robot
Change-Id: I4f32356294ed679fa8f6374099f471de85486a36
2018-08-24Added check for misprovisioned Pixel 2 device.Eva Bertels
Some Pixel devices had a wrong brand value provisioned into keymaster. Due to this misprovisioning those devices fail device ID attestation because it includes a check for the correct brand value. This is now solved by re-trying Device ID attestation if we are running on a potentially misprovisioned device, allowing for the known incorrect brand value. Bug: 69471841 Test: atest com.android.cts.devicepolicy.MixedDeviceOwnerTest#testKeyManagement Change-Id: If715ebdd4ab6d7fcfffab60b40fd2dc8fa1fda44 Merged-In: Ia0da5478d6092c1927d26600a6893ae8ce53da51 (cherry picked from commit 3f821a8e17f97a6f0b3ae408b2e7f2bfde666df4)
2018-08-24Snap for 4974682 from e1b0d4a25324db201aee059fb0a25c2a2fb6b88f to ↵android-build-team Robot
pi-qpr1-release Change-Id: Ie4bd913ccb175f035e4d284226db33be943a1ecf
2018-08-23Fix a typo in javadoc.Dongwon Kang
Test: javadoc fix. Bug: 112882126 Change-Id: I69f55aaa49103690a796ff394fcd1934891a52f2
2018-08-23Snap for 4972147 from fcb7982a492413dd928433bfb73ae2ca1e222397 to ↵android-build-team Robot
pi-qpr1-release Change-Id: Ib9fe15999e374e3fc58127b6415e8b019a5b960c
2018-08-22Merge "DO NOT MERGE Do not kill processes when screen size changes" into pi-devJorim Jaggi
2018-08-22Merge "BootAnimation: Fix boot animation with hidden cutout" into pi-devJorim Jaggi
2018-08-23DO NOT MERGE Do not kill processes when screen size changesJorim Jaggi
Causes too much of a process restart storm. Test: Switch cutout option Bug: 112876936 Change-Id: I76909bd292c7d6b28c673f068c408885da0d92c1
2018-08-22BootAnimation: Fix boot animation with hidden cutoutAdrian Roos
We do this by storing the masking inset in a persistent property. The boot animation then animates itself to where it would be if that masking inset were applied, then changes the viewport. For this to work, we also need to make sure the DisplayManagerService has the right overlay right at the start. Bug: 112876936 Test: Hide cutout, then reboot. Verify boot animation is smooth. Change-Id: I3e988b2340b2e0d2be3939bdc6878704c234ccc8
2018-08-22Merge "DO NOT MERGE Fix display freezing when screen size mismatches" into ↵Jorim Jaggi
pi-dev
2018-08-22DO NOT MERGE Fix display freezing when screen size mismatchesJorim Jaggi
If we have a display size change, make sure to set different scaling mode such that we can show the buffer even if there is a size mismatch. Test: Rotate screen Test: Change cutout type Bug: 112876936 Change-Id: Iedc7774d69730a95b98ba46d4f274bc3b7e66bd1
2018-08-22Merge "Update severe (5%/1 hour) warning to send through battery saver" into ↵TreeHugger Robot
pi-dev
2018-08-22Update severe (5%/1 hour) warning to send through battery saverSalvador Martinez
Now that battery saver is sticky this notification never shows and we are getting reports from people that the notification they were expecting never showed up. It turns out that a lot of these were due to people not realizing battery saver was on. To remedy the worst case situation (your phone is about to die soon but no 15%/3 hour notification came up) we should always show the severe warning even if battery saver is on. This only affects the hybrid warning, not the legacy percentage based version. Test: unit tests Bug: 111596093 Change-Id: I92453b68b6ee8aad8f862147c877f4e789afc55c Merged-In: I92453b68b6ee8aad8f862147c877f4e789afc55c
2018-08-22DO NOT MERGE Kill most processes when display size changesJorim Jaggi
This isn't something apps generally can handle, so we kill all of them for now. Test: Change cutout overlay that changes display size Test: Rotate screen Bug: 112876936 Change-Id: Ic3b0f1b3ae1e9bd93ac8f2c6952aa093878602b8
2018-08-22Snap for 4969136 from 2c9fd5fbbb43541ce4291c07bf61bdbe5dc70252 to ↵android-build-team Robot
pi-qpr1-release Change-Id: I348dc5200bd75dc04d6af22983e9c0bf2643dcd6
2018-08-21Merge "ScreenDecorations: Update corner radius when configuration changes" ↵Jorim Jaggi
into pi-dev
2018-08-21Merge "Cutout emulation: string changes" into pi-devTreeHugger Robot
2018-08-21ScreenDecorations: Update corner radius when configuration changesAdrian Roos
Bug: 112876936 Test: atest ScreenDecorationsTest Change-Id: I4359b3da4a47dcf434f018fe3e62e18354d1be47
2018-08-21Merge "Cutout: Add developer setting to mask the display cutout" into pi-devAdrian Roos
2018-08-21Cutout: Add developer setting to mask the display cutoutAdrian Roos
Adds an option to mask the cutout by effectively shrinking the logical display such that developers can test apps as if the device did not have a notch. Bug: 112876936 Test: Go to Settings > Developer Options > Simulate display with cutout > "No cutout". Cutout should be hidden. Rotate screen, take screenshots, screenrecord, screen off animation should all work as expected. Change-Id: I5cdb201734d238bf3785ab55843114e4b5b4ee41
2018-08-21Cutout emulation: string changesAdrian Roos
Bug: 112876936 Test: Open developer options, go to "display cutout", verify strings. Change-Id: I1d22f56ca7fa8c817da2407f36613e4fc132a3a9
2018-08-21Snap for 4966094 from c9443e38944b11d32f63fd87aca2e5ceb5235767 to ↵android-build-team Robot
pi-qpr1-release Change-Id: I729e9afd508d1ce9d778f365b017024bda3d7afc
2018-08-21Merge "Improved AutofillManager and Activity dump() methods:" into pi-devTreeHugger Robot
2018-08-21Merge "Never clear QS tile state." into pi-devTreeHugger Robot
2018-08-21Merge "Fixes deadzone consuming touch for 3 button layout" into pi-devTreeHugger Robot
2018-08-20Merge "Send widget registration broadcasts before BOOT_COMPLETE" into pi-devTreeHugger Robot
2018-08-20Never clear QS tile state.Amin Shaikh
QSTile#clearState puts QS tiles in an invalid state that may not be immediately rectified through QSTile#refreshState. In the case of configuration changes, if a subclass implementation of QSTile#handleSetListening does not trigger a refresh state, the invalid state causes incorrect click handling. Change-Id: I17eba133cf08c45a768e9e0ed8fda623e85b4370 Fixes: 69738120 Fixes: 110480955 Test: manual (cherry picked from commit 299c45c85d41975514022263fa6a29329eb5a0bc)
2018-08-20Merge changes I5610b42b,Ib7a52bd0 into pi-devTreeHugger Robot
* changes: ResourceManager: Disable APK Assets cache for real. ResourceManager: Disable APK Assets cache.
2018-08-20Merge "ScreenDecorations: Fix stuck / delayed rotations" into pi-devTreeHugger Robot
2018-08-20Merge "Workaround regression in multiwindow mode change callback" into pi-devWinson Chung
2018-08-20Merge "Fix race condition in BoundsAnimationController" into pi-devWinson Chung
2018-08-20Merge "Log AutofillClient on CompatibilityBridge.onAccessibilityEvent()." ↵TreeHugger Robot
into pi-dev
2018-08-20Fixes deadzone consuming touch for 3 button layoutMatthew Ng
Change-Id: Ie21af8dab462412ba0a0a4fb0d71ab1bda750c4f Fixes: 112842731 Test: manual, set 3 button layout, tap right above home button
2018-08-20Merge "Log CompatibilityBridge.onAccessibilityEvent()" into pi-devTreeHugger Robot