This reverts commit e83f512553.
Reason for revert: http://b/125421639 was due to a bug in broadcasts which is now fixed.
Change-Id: I678d7721c948dadfbca8aca50183290438e7f451
Staged files should be deleted from /data/staging once installation
is complete, regardless of failure or success. If a session fails
pre-reboot verification, then it can be deleted before reboot.
Bug: 123624108
Test: manual testing
- create two apex files; aosp signed and dev signed
- flash device with internal master
- aosp signed apex file will fail pre-reboot verification
- check that files are deleted in /data/staging
- repeat with multiple package
- dev signed package passes pre-reboot verification
- on reboot, files should be deleted from /data/staging
Change-Id: I44a6cc72de26ad0216942623edb6e279c628d58d
Add @RequiresPermission annotations to the methods so that
it's clear what permission is protecting these APIs.
Test: make
Change-Id: I203ce997319c7fc8a13e91b55f3c55d844429be8
Fix: 123661724
Bug: 124876950
Test: Set mIsPreQUpgrade to true, all existing app without launcher icon still remain doesn't have an icon
Change-Id: I38d4af7a0b1c28dba3f2f82746805a3f848cf87f
Using a global setting to specify the lid open/close behaviour
allows OEMs to support switching between windowed and windowless
lids at runtime instead of build time.
Bug: 70378569
Test: Find the hall effect sensor on the device and then using a magnet
confirm the expected behaviour for each global setting:
* No reaction from device
adb shell settings put global lid_behavior 0
* Sleep/screen off
adb shell settings put global lid_behavior 1
* Lock screen but screen stays on
adb shell settings put global lid_behavior 2
Change-Id: I53682711aeaaeb9eead7246ba83e4dd4b3c06a58
am: 684632498c -s ours
am skip reason: change_id I0cda2ff2be8ce487e10b5311fbdc043fa57d91d4 with SHA1 52f7adec6c is in history
Change-Id: I618e5a464243757af1b1e0c82cf646c9f95e2788
am: d605c82661 -s ours
am skip reason: change_id I0cda2ff2be8ce487e10b5311fbdc043fa57d91d4 with SHA1 5a56b61c16 is in history
Change-Id: I5940f5fd4f11022ecb2e2724b8ca0d370d8b74c5
am: d4d9e1a08c -s ours
am skip reason: change_id I0cda2ff2be8ce487e10b5311fbdc043fa57d91d4 with SHA1 52f7adec6c is in history
Change-Id: Ie7d3c9fcae8ac3d4f4314c53ba86da0eb8d66696
am: 52f7adec6c -s ours
am skip reason: change_id I0cda2ff2be8ce487e10b5311fbdc043fa57d91d4 with SHA1 5a56b61c16 is in history
Change-Id: Iecb12cd00920fabf0c3ad25e4e1d2b1c4172f572