summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-02-11Merge cherrypicks of [6333255, 6333230, 6333232, 6333337, 6333338, 6333339, ↵android-9.0.0_r39android-9.0.0_r38pie-b4s4-releaseandroid-build-team Robot
6333853, 6333199, 6333874, 6333875, 6333876, 6333877, 6333274, 6333275, 6333276, 6333277, 6333814, 6333256, 6333815, 6333278, 6333236, 6333854, 6333816] into pi-b4s4-release Change-Id: I78ba1c02bf67c0d9c345fe564a267a5a35c7ba44
2019-02-11Fixed temporary brightness getting stuck bug.Dan Gittik
When the user would set the brightness to the same value, the temporary brightness would remain applied, effectively disabling auto-brightness and confusing the system state. Test: Drag the slider to an extremity (e.g. maximum), let it go, and then re-drag the slider to the same place (e.g. place your finger on the middle of the slider and move it to the maximum again). run adb shell dumpsys display | grep mAppliedTemporaryBrightness to check whether temporary brightness is applied; should be false. Change-Id: I819ef2dc04e0cbabc4a210bd0703e0eeab157b93 Merged-In: Id3a1bff533b1bee9ca760e742dab379eeeb4b14e Fixes: 122554527 (cherry picked from commit 7c93cefc8190b80cf040e6d0bcfda8c68c299f06)
2019-02-11DO NOT MERGE Add CarrierConfig to overlay incorrect country ISOallenwtsu
The issues happens when CDMA is roaming to GSM, some US operator's mcc/mnc would change to 204/04 whose country belongs to NL not US. It doesn't always change but error occurs once changed. MMSService would check if locale matches with phoneNumber. The error results in HTTP header bringing incorrect MDN to server. In Q, AOSP fixes it by using CarrierConfig to enforce 'US' as iso-country for all error scenarios. Since the change is great, migrating all the patches to P for the time being is risky. So, we use the same CarrierConfig as Q and narrow the range to MMS only. That's why we use "DO NOT MERGE". Bug: 120448454 Bug: 122332763 Test: Build pass Change-Id: I74a7be348f37c06c015c50f96fbcf7db4fb15246 (cherry picked from commit f636191beaa35966ec0287b876502a77c160fb7b)
2019-02-11Be more comprehensive about boot time RTC checkChristopher Tate
If we detect that the RTC is uninitialized at boot time, we advance to the nearest safe estimated time that we can determine. We can't necessarily touch read/write filesystems at this point, so we have been using the timestamp of the root filesystem. Unfortunately, on retail devices that timestamp is often artificial, and quite far in the past by today's standards (e.g. some time in 2009). We now consult a variety of milestones to get a better estimate for the latest possible "the current date cannot be earlier than this" reference point: the root filesystem timestamp, the Build.TIME system variable, and the [ro.build.date.utc] system property if available. The latter two, in particular, are typically within at most two years of the current real time/date, rather than the eight or nine years of offset that we see with the root filesystem timestamp. This is a cherrypick of a later change back to Android P. Test: manually boot with system time forced to the 0 epoch Test: CTS Bug: 65354678 Bug: 63711349 Bug: 122883482 Merged-In: I36bbe6dfebba79ad83ce536917d6893427a026dd Change-Id: I36bbe6dfebba79ad83ce536917d6893427a026dd (cherry picked from commit bfbd98868e56064f1c4813dcdbaedf87ced526ea)
2019-01-30Merge cherrypicks of [6206577, 6206578, 6206734, 6206098, 6206099, 6206100, ↵android-build-team Robot
6206101, 6206102, 6206065] into pi-b4s4-release Change-Id: I4ff6ecc889906d74e6796e8085a15927e326cb97
2019-01-30[DO NOT MERGE]Add check for slot index valueMichele
Verify that slot index passed in setAllowedCarrier() and in getAllowedCarrier() has a valid value or return error code. Bug: 123097251 Test: compilation Change-Id: I58e5447f2232d6aa096ddb7a8594d762ca74d22f (cherry picked from commit 8dca21054f411d6afb5b56f0b5a7a8e47e0b6c2d)
2019-01-30[DO NOT MERGE] ViewRoot: Notify app when surface is released from ↵Vishnu Nair
setWindowStopped NativeActivities do not receive onNativeWindowDestroyed callback when the activity is stopped. If the app still uses the window object after the window is destroyed, the app can crash. Test: run native-plasma from Android NDK. Launch activity & press home. Verify from the logs app receives onNativeWindowDestroyed callback when its stopped. Test: go/wm-smoke Bug: b/111948775, b/120100553 Change-Id: I1de76feb7f4974b77b42b56e592ff6444713c699 (cherry picked from commit e626d58c1b0d09c10d7b5992f5860f7158589ddd) (cherry picked from commit 47d2d1e46a5bdcc3c233b90636c4fb8a85b8abcc)
2019-01-25Merge cherrypicks of [6163742] into pi-b4s4-releaseandroid-build-team Robot
Change-Id: Id755d4b97904acfa38353d9c35aab17a7c47ac81
2019-01-25Revert "Merge cherrypicks of [6161352, 6161353, 6161354, 6161355, 6161236, ↵Judy Chen
6161237, 6161238, 6161759, 6161608, 6161356, 6161760, 6161654, 6161422, 6161423, 6161424, 6161425, 6161426, 6161427, 6161819, 6161357, 6161358, 6161428, 6161429, 6161430, 6159952, 6159858] into pi-b4s4-release" This reverts commit 76b7e675938cb2214db44a24cca392a4c31b5709. Reason for revert: <INSERT REASONING HERE> Change-Id: I7fd7db5a2b6912db28904b038c69290acf451730 (cherry picked from commit 0e63068d9082389a3302107f851a30637a8575e6)
2019-01-25Merge cherrypicks of [6161352, 6161353, 6161354, 6161355, 6161236, 6161237, ↵android-build-team Robot
6161238, 6161759, 6161608, 6161356, 6161760, 6161654, 6161422, 6161423, 6161424, 6161425, 6161426, 6161427, 6161819, 6161357, 6161358, 6161428, 6161429, 6161430, 6159952, 6159858] into pi-b4s4-release Change-Id: I81b20d954d16be6a5ad083cc5a394b82a80b6f5e
2019-01-25[DO NOT MERGE]Add check for slot index valueMichele
Verify that slot index passed in setAllowedCarrier has a valid value or return error code -1. Bug: 123097251 Test: compilation Change-Id: I58e5447f2232d6aa096ddb7a8594d762ca74d22f (cherry picked from commit 78ede53e9727aa6a186277b5e06a46e0d020421f)
2019-01-21Merge cherrypicks of [6117971, 6117954, 6117972, 6112663, 6112664, 6118388, ↵android-build-team Robot
6119070, 6111429, 6114218] into pi-b4s4-release Change-Id: I1067ea59a48d4a4b49b39df21cb6e7c1fecf8133
2019-01-21Fix theme cannot change due to there is no wallpaper colors.wilsonshih
Device theme cannot changed because there is no wallpaper colors when first boot with default image wallpaper. We can still calculate it if there is no cropFile with the wallpaper component is ImageWallpaper. Fix: 122660786 Test: manual test. Test: atest WallpaperColorsTest WallpaperManagerTest WallpaperServiceTest Change-Id: I26cc1d751dadd28185c650eff6e6ef60d5986aaa (cherry picked from commit 31d70a1d5a992b4f67cb74b76fc6c38888a28224)
2019-01-21Use the correct Smart Storage flag in SettingsLib.Daniel Nishi
Previously, the show_opt_in and enabled flags were conflated to basically mean the same thing. Because we are now distinctly making show_opt_in refer to showing a toggle to opt into the feature in SUW and enabled to mean the default enabled status, we need to change the utility method for querying the default enabled status. Bug: 122461924 Test: RunSettingsLibRoboTests Change-Id: I9802d307597d90514e7dc6631998daa1d2fab253 (cherry picked from commit c81f7aea1d7c83a6424f35fe0e15b5bf11194bc1)
2019-01-21Don't log account name on logcat (cherry-pick from master)Makoto Onuki
Test: manual test - dumpsys content still shows accounts - logcat doesn't show account names after "adb shell requestsync" Bug: 121987496 Change-Id: I853c9b77cbb331eb5138f0f774365f405f321fd2 Merged-In: Ic4b8448d10936c9368b1aab208ae7d8e78c3a1ae (cherry picked from commit 5fc6002de5953c65159a8914426345042193e650)
2019-01-16Snap for 5234907 from 4e3076b1a219fe567b8451da11affe45e0f5fdc0 to ↵android-build-team Robot
pi-b4s4-release Change-Id: I83be0273d60a261b19d1424f50adc5ec8f89cc6b
2019-01-15Merge "AdapterService: Only bind HeadsetService in ON state." into pi-devpie-b4s4-devTreeHugger Robot
2019-01-15Merge "Actually use listener hints?" into pi-devJulia Reynolds
2019-01-15Actually use listener hints?Julia Reynolds
Mute notifications based on their audio attributes if HINT_HOST_DISABLE_NOTIFICATION_EFFECTS or HINT_HOST_DISABLE_CALL_EFFECTS is enabled. Test: atest Change-Id: I6404eecdce17f390154b3bafee7aa4d18a8ca5b2 Merged-In: db7081e30a6c2d369caeb5b1d26cc00aff788db3 Fixes: 120505040 (cherry picked from commit db7081e30a6c2d369caeb5b1d26cc00aff788db3)
2019-01-15Snap for 5232626 from de18a38e3129edffff7cbea69a4236a29e7fc3f0 to ↵android-build-team Robot
pi-b4s4-release Change-Id: I7fca2d14920504594cafe092845617f3e53eb3d2
2019-01-15Merge changes from topic "b/121448199" into pi-devHoward Yen
* changes: Make sure mCurrentUsbFunctionsRequested flag be updated currectly Check for preexisting flag before enabling the gadget
2019-01-15Merge "Fix stuck notifications" into pi-devTreeHugger Robot
2019-01-14Fix stuck notificationsJulia Reynolds
Don't tell listeners about changes to enqueued notifications; they'll pick up the changes in the post notification runnable. Change-Id: I56c4ba79bcf42c30ad9a0da936eb0b774a6f3f08 Merged-In: I56c4ba79bcf42c30ad9a0da936eb0b774a6f3f08 Fixes: 74236718 Test: runtest systemui-notification
2019-01-12Import translations. DO NOT MERGEBill Yi
Auto-generated-cl: translation import Bug: 64712476 Change-Id: I38e9b6203709ba448cccf1ae74f8308c16119f54
2019-01-11Snap for 5224434 from 3f3c8f812e812438c4fcb81c539794f37aeb49c3 to ↵android-build-team Robot
pi-b4s4-release Change-Id: I4af5c2fbc9aea84fa60db914cbf38227bf1cb479
2019-01-11Merge "Nullify the default wallpaper component if it does not exist" into pi-devTreeHugger Robot
2019-01-10[automerger skipped] [automerger] Select only preinstalled Spell Checker ↵Guliz Tuncay
Services am: ed5973b8a8 am: 5ab7f995ba am: d71a5db522 am: 276e18c147 am: d962aabf4c am: 3c2abaa4da am: 04206067b9 -s ours am: cf8145858c -s ours am skip reason: change_id Idab3ecc246fe9344a09e6907a0ba39f8ea6506f9 with SHA1 dd8b0a6bc8 is in history Change-Id: Ia33298579013130b2d3394fd670345e5a25c3f65
2019-01-10[automerger skipped] [automerger] Revert "Select only preinstalled Spell ↵Bryan Ferris
Checker Services" am: 170e24d4e1 am: fb3b187f10 am: 7abf49d3b7 am: 1684713f2e am: cd6eba50ba am: 576e4ac184 am: d596c0e4ef -s ours am: 34a17e0e25 -s ours am skip reason: change_id Idab3ecc246fe9344a09e6907a0ba39f8ea6506f9 with SHA1 dd8b0a6bc8 is in history Change-Id: I7b4326dff6adb744cabbbc0f57e72b23102bb576
2019-01-10[automerger skipped] [automerger] Select only preinstalled Spell Checker ↵Guliz Tuncay
Services am: ed5973b8a8 am: 5ab7f995ba am: d71a5db522 am: 276e18c147 am: d962aabf4c am: 3c2abaa4da am: 04206067b9 -s ours am skip reason: change_id Idab3ecc246fe9344a09e6907a0ba39f8ea6506f9 with SHA1 dd8b0a6bc8 is in history Change-Id: I8be93eede6f7dcffc94905b5a790b1a813f28699
2019-01-10[automerger skipped] [automerger] Revert "Select only preinstalled Spell ↵Bryan Ferris
Checker Services" am: 170e24d4e1 am: fb3b187f10 am: 7abf49d3b7 am: 1684713f2e am: cd6eba50ba am: 576e4ac184 am: d596c0e4ef -s ours am skip reason: change_id Idab3ecc246fe9344a09e6907a0ba39f8ea6506f9 with SHA1 dd8b0a6bc8 is in history Change-Id: Ie171e4463c7d5ba062f5c978c47ff5560037acb6
2019-01-10[automerger] Select only preinstalled Spell Checker Services am: ed5973b8a8 ↵Guliz Tuncay
am: 5ab7f995ba am: d71a5db522 am: 276e18c147 am: d962aabf4c am: 3c2abaa4da Change-Id: I2b4a8618280a602b4eb42db9bf822a14324b587f
2019-01-10[automerger] Revert "Select only preinstalled Spell Checker Services" am: ↵Bryan Ferris
170e24d4e1 am: fb3b187f10 am: 7abf49d3b7 am: 1684713f2e am: cd6eba50ba am: 576e4ac184 Change-Id: I304213f41d8b6f499d022f453392234ae901b36c
2019-01-10Snap for 5222977 from b9596e5febccbaf1452de7e7a681a4619f9c3825 to ↵android-build-team Robot
pi-b4s4-release Change-Id: I58ae385a914e0d670b536f6a853be207f6468da5
2019-01-10[automerger] Select only preinstalled Spell Checker Services am: ed5973b8a8 ↵Android Build Merger (Role)
am: 5ab7f995ba am: d71a5db522 am: 276e18c147 am: d962aabf4c Change-Id: I4fa4b56b1472ed6c25bc431ef9ce8060cb04a1f1
2019-01-10[automerger] Select only preinstalled Spell Checker Services am: ed5973b8a8 ↵Android Build Merger (Role)
am: 5ab7f995ba am: d71a5db522 am: 276e18c147 Change-Id: I2a8463e8e885a81229b28e7e99e7432a08a04c93
2019-01-10[automerger] Select only preinstalled Spell Checker Services am: ed5973b8a8 ↵Android Build Merger (Role)
am: 5ab7f995ba am: d71a5db522 Change-Id: I9e0504f59437cc8fd72e96630a6fb753a4cbb423
2019-01-10[automerger] Select only preinstalled Spell Checker Services am: ed5973b8a8 ↵Android Build Merger (Role)
am: 5ab7f995ba Change-Id: I51fbf27831b8b981a7b1a6e2af9cf46d8e544c12
2019-01-10[automerger] Select only preinstalled Spell Checker Services am: ed5973b8a8Android Build Merger (Role)
Change-Id: I8da1dd728ff244a1363d9274aa3f41d1c6081ee8
2019-01-10Select only preinstalled Spell Checker ServicesGuliz Tuncay
When we are setting a new spell checker as the default one in Secure.Settings, TSMS#findAvailSpellCheckerLocked can pick up any available spell checker service. This violates the principle that user should be warned whenever we are setting an untrusted spell checker service as the default service, since the warning dialog is never shown. Fixes: 64764051 Bug: 118694079 Test: Manually as follows: 1. Open 'packages/inputmethods/LatinIME/java/AndroidManifest.xml' and remove 'AndroidSpellCheckerService' 2. lunch aosp_buillhead-userdebug && make -j 3. Flash the image 4. adb shell dumpsys textservices -> no spell checker is recognized 5. adb shell settings get secure selected_spell_checker -> null 6. tapas SampleSpellCheckerService 7. make -j 8. adb install -r $OUT/system/app/SampleSpellCheckerService/SampleSpellCheckerService.apk 9. adb shell dumpsys textservices -> SampleSpellCheckerService is recognized 10. adb shell settings get secure selected_spell_checker -> null Change-Id: I16f12293d15258c9148677c7ee09fe6dcf81e81d Merged-In: Idab3ecc246fe9344a09e6907a0ba39f8ea6506f9
2019-01-10Merge "Harden against invalid paths." into pi-devDaniel Sandler
2019-01-09Empty commit for automerge manipulationBryan Ferris
am: dd8b0a6bc8 Change-Id: I382af531b37c78862d8628ffc20bffef211b1e0d
2019-01-10[automerger] Revert "Select only preinstalled Spell Checker Services" am: ↵Android Build Merger (Role)
170e24d4e1 am: fb3b187f10 am: 7abf49d3b7 am: 1684713f2e am: cd6eba50ba Change-Id: I9b15a7332565cc39eee4abb9faccb2d148281bf0
2019-01-10[automerger] Revert "Select only preinstalled Spell Checker Services" am: ↵Android Build Merger (Role)
170e24d4e1 am: fb3b187f10 am: 7abf49d3b7 am: 1684713f2e Change-Id: Ib4cbddb955c57d2d59fb3b7fe656e21bc56266aa
2019-01-10[automerger] Revert "Select only preinstalled Spell Checker Services" am: ↵Android Build Merger (Role)
170e24d4e1 am: fb3b187f10 am: 7abf49d3b7 Change-Id: I019b36991306a8f7887b7a0b8233b2c9f1c9ed32
2019-01-10[automerger] Revert "Select only preinstalled Spell Checker Services" am: ↵Android Build Merger (Role)
170e24d4e1 am: fb3b187f10 Change-Id: Idfe048ca52ab0eb317e9313f56b884d264c14fd5
2019-01-10[automerger] Revert "Select only preinstalled Spell Checker Services" am: ↵Android Build Merger (Role)
170e24d4e1 Change-Id: I11efc66592aada0a9b54299b6d782e92e247f811
2019-01-10Revert "Select only preinstalled Spell Checker Services"Bryan Ferris
This reverts commit fa265ed97026e3b8675a2ccbf4035cad6dc1523f. Reason for revert: The backport for b/118694079 was applied improperly. The fix involved filtering the class members list of spell checkers into a new list before searching it. The backport filtered the list but failed to update references to the class member into references to the local variable, creating no change in observable behavior. A new version of this commit will be simultaneously uploaded, which both fixes the bad behavior and allows us to have exactly 1 CL per branch that fixes the issue. Bug: 118694079 Change-Id: Ic38a2ca2ddede7f0929779b0f2292b7823c11e87 Merged-In: Idab3ecc246fe9344a09e6907a0ba39f8ea6506f9
2019-01-10Merge cherrypicks of [5991330, 5992450, 5992551, 5992552, 5992553, 5992554, ↵android-build-team Robot
5992555, 5992556, 5992557, 5992558, 5992559, 5992560, 5993181, 5993182, 5991272, 5993183, 5991273, 5991134, 5993184, 5993185, 5993186, 5993187, 5993188, 5993189, 5993190, 5993191, 5991115] into pi-b4s4-release Change-Id: I06d978f24e8ed0ff07cbd1f2db01b3cda1b432cb
2019-01-10Nullify the default wallpaper component if it does not existSzuWei Lin
The default wallpaper component cannot be found after GSI is flashed. The home screen background will have no wallpaper and be black. It will also cause the following CTS tests to fail: - KeyguardTests#testDialogShowWhenLockedActivity - KeyguardTests#testTranslucentShowWhenLockedActivity The patch will check if the package of the default component exists. If not, it will fall back to null, which is the AOSP default value, and display the wallpaper in framework resource. Bug: 119895131 Bug: 111909699 Test: flash GSI aosp_arm64-userdebug on a crosshatch, got AOSP wallpaper Test: flash full crosshatch-userdebug on a crosshatch, got crosshatch wallpaper Change-Id: I9d618d05458a03a675324cb2f861decf31c5bf18 Merged-In: I9d618d05458a03a675324cb2f861decf31c5bf18 (cherry picked from commit 1c7ae31e97f0d90b16dcbefff9c436601cba7007) (cherry picked from commit 32a7e2f35769631243af7b70aeb968a9784279df)
2019-01-10Empty commit for automerge manipulationBryan Ferris
The backport for nyc-dev through oc-dev in b/118694079 was improperly applied. Therefore, we need to apply changes to oc-dev but not oc-mr1-dev. Since the different CL's had the same Change ID we cannot use MERGED IN with the original Change ID, and RESTRICT AUTOMERGE can't stop us from jumping to oc-mr1-dev. This commit gives us a Change ID that we can use for proper behavior. Test: No code or configuration changes were made in this CL Bug: 118694079 Change-Id: Idab3ecc246fe9344a09e6907a0ba39f8ea6506f9