Suprabh Shukla
2f1b2d82ca
DO NOT MERGE Do not call RecoverySystem with DPMS lock held am: 4ffe72dcc8 am: ab8d3febd3 am: 2e6bdbeaab am: 588411fc7c -s ours am: 773f85ec60
...
am: 029364c505
Change-Id: Ibef494c57a80a7b0d871dd8a80f877816e6897d0
2017-02-02 02:48:23 +00:00
Suprabh Shukla
029364c505
DO NOT MERGE Do not call RecoverySystem with DPMS lock held am: 4ffe72dcc8 am: ab8d3febd3 am: 2e6bdbeaab am: 588411fc7c -s ours
...
am: 773f85ec60
Change-Id: Ie83cb2dfd89fd808e906a802e16fd1943a898012
2017-02-02 02:43:24 +00:00
Suprabh Shukla
773f85ec60
DO NOT MERGE Do not call RecoverySystem with DPMS lock held am: 4ffe72dcc8 am: ab8d3febd3 am: 2e6bdbeaab
...
am: 588411fc7c -s ours
Change-Id: I1511e5dff681d06161cd18b78e7edaf7eddb897a
2017-02-02 02:38:24 +00:00
Suprabh Shukla
588411fc7c
DO NOT MERGE Do not call RecoverySystem with DPMS lock held am: 4ffe72dcc8 am: ab8d3febd3
...
am: 2e6bdbeaab
Change-Id: I7e286445a887e467a7de42ce9b27a9dc009e47fd
2017-02-02 02:32:48 +00:00
Suprabh Shukla
2e6bdbeaab
DO NOT MERGE Do not call RecoverySystem with DPMS lock held am: 4ffe72dcc8
...
am: ab8d3febd3
Change-Id: If42411391fe2010162c51adf48e720e308a650ec
2017-02-02 02:28:13 +00:00
Suprabh Shukla
ab8d3febd3
DO NOT MERGE Do not call RecoverySystem with DPMS lock held
...
am: 4ffe72dcc8
Change-Id: Ic7b9ef6484df0b57c8f1ee7a483ef3bda05c7cc7
2017-02-02 02:21:16 +00:00
Makoto Onuki
963cba5b5b
DO NOT MERGE Do not call RecoverySystem with DPMS lock held am: 2317451acc
...
am: 01f971dcdc
Change-Id: If5f5e5d47b97e2b8480adc5ca2cb08702056ca87
2017-02-02 01:10:43 +00:00
Makoto Onuki
01f971dcdc
DO NOT MERGE Do not call RecoverySystem with DPMS lock held
...
am: 2317451acc
Change-Id: Id3441141d4feea4c7291350c9670bd59ec017240
2017-02-02 01:03:21 +00:00
Makoto Onuki
2317451acc
DO NOT MERGE Do not call RecoverySystem with DPMS lock held
...
Note DPM.wipeData() on a secondary user is now blocking, just like
it's been always blocking on the primary user.
Test: Manually tested wipeData() with ApiDemos, both on 1) the primary user,
2) a secondary user and 3) work profile.
Test: adb shell am instrument -e class com.android.server.devicepolicy.DevicePolicyManagerTest -w com.android.frameworks.servicestests
Bug 30681079
Change-Id: Ia832bed0f22396998d6307ab46e262dae9463838
Merged-in: Ia832bed0f22396998d6307ab46e262dae9463838
(cherry picked from commit efdec8f568 )
2017-01-31 21:21:36 +00:00
Suprabh Shukla
4ffe72dcc8
DO NOT MERGE Do not call RecoverySystem with DPMS lock held
...
Note DPM.wipeData() on a secondary user is now blocking, just like
it's been always blocking on the primary user.
Bug 30681079
Change-Id: Ia832bed0f22396998d6307ab46e262dae9463838
2017-01-31 13:01:36 -08:00
Elliot Waite
3366d4beb4
Merge "Fix @links in reference docs." into nyc-mr1-dev
2017-01-26 04:29:46 +00:00
Elliot Waite
54de77470d
Fix @links in reference docs.
...
Change-Id: I40cea46efd80c448640ff69753698fe8404da40b
2017-01-25 17:00:55 -08:00
Kenny Guy
ee9f03d1ed
Fix issue with saving admins before finishing loading. am: f98ed6863a
...
am: b275a205af
Change-Id: I01487d9c39f4e82b63961cdd43df238f2bfd2b89
2017-01-18 17:27:10 +00:00
Kenny Guy
b275a205af
Fix issue with saving admins before finishing loading.
...
am: f98ed6863a
Change-Id: I7f816c164548df86f9607c86772902efd0d53620
2017-01-18 17:13:31 +00:00
Kenny Guy
f98ed6863a
Fix issue with saving admins before finishing loading.
...
Saving device policy managers settings to clear out
password stats was happening before initializing mAdminList
so could wipe active admins.
Test: manual - flash with N2G05C add google account with dmagent flash wth this fix, check dmagent is still an active admin, reboot check admin is still active.
Test: runtest -c com.android.server.devicepolicy.DevicePolicyManagerTest frameworks-services
Bug: 34277435
Change-Id: I13660b47f30e9aba001eb13f2e457c3b3f36da3e
(cherry picked from commit adbda7474c )
2017-01-18 12:01:55 +00:00
TreeHugger Robot
332762aaf0
Merge "[DO NOT MERGE] Prevent crash from early Toast surface destruction." into nyc-mr1-dev
2017-01-17 22:53:42 +00:00
Andrew Scull
66d66dd50c
Merge "Don't save password metrics to disk." into nyc-dev am: 97848fc473
...
am: ea9463f542
Change-Id: I76b21c0ea4ab7394281ee8c82ed67179eb9ea966
2017-01-13 17:09:51 +00:00
Andrew Scull
eb35ad9969
resolve merge conflicts of ad4aa1ce7d to nyc-mr1-dev
...
Change-Id: I97ef31536cd06495a08a3f94f81df2d1376186e0
2017-01-13 15:28:36 +00:00
Andrew Scull
ea9463f542
Merge "Don't save password metrics to disk." into nyc-dev
...
am: 97848fc473
Change-Id: I12d9a6d18654673e5912416550c64e81aab857f9
2017-01-13 14:52:26 +00:00
Andrew Scull
ad4aa1ce7d
resolve merge conflicts of e4cefbf4fc to nyc-dr1-dev
...
Change-Id: Ib536a33ba381c28397320edd516d52727e5bdacc
2017-01-13 13:16:09 +00:00
Andrew Scull
97848fc473
Merge "Don't save password metrics to disk." into nyc-dev
2017-01-13 12:18:45 +00:00
Philip P. Moltmann
1f99f81bdc
Do not write if apply() did not change the file.
...
Bug: 33385963
Test: SharedPreferences CTS tests
Change-Id: I39955f8fbcdaa54faa539a3c503e12cb00808136
2017-01-12 16:43:30 -08:00
Philip P. Moltmann
d15c4f1da5
Only persist last Shared Preferences state
...
If multiple async shared preferences writes are queued, all but the
last one can be ignored as they will be overwritten by the last one
anyway.
For commit() we need to make sure that we have at least persisted the
state of the commit.
Generation counts are 64 bit, hence they never overflow.
Test: Produced a lot of SharedPreferences.Editor.apply and did not see
excessive writes anymore, ran SharedPreferences CTS tests
Bug: 33385963
Change-Id: I3968ed4b71befee6eeb90bea1666a0bb646544f6
(cherry picked from commit 31d6889f4c )
2017-01-12 16:42:59 -08:00
Andrew Scull
e4cefbf4fc
Don't save password metrics to disk.
...
On FBE devices, don't save the metrics to disk but compute them when the
password is first entered and only store them in RAM.
Merged-in: 5daf273b7e
Bug: 32793550
Change-Id: Icee7f615167761177b224b342970a36c7d90f6ba
2017-01-12 16:01:59 +00:00
David Friedman
bcc449eeca
Merge "Docs: Updates Javadoc documentation. Bug: 32532540" into nyc-dev am: 101f885826
...
am: c3b564e266
Change-Id: I23fdc92b08e32c643de8009bebf4e02c41741c7e
2017-01-07 02:39:33 +00:00
Dave Friedman
a111e0f7f0
Docs: Updates Javadoc documentation. Bug: 32532540 am: 2a3ebadcbe
...
am: e0fd4c8a3b
Change-Id: I8f65ad71433efbe1121e0617c6d7575b7db3a051
2017-01-07 02:38:45 +00:00
David Friedman
c3b564e266
Merge "Docs: Updates Javadoc documentation. Bug: 32532540" into nyc-dev
...
am: 101f885826
Change-Id: I5e6d948373c8f8ff2892c843329a7d2b540b8706
2017-01-07 02:30:48 +00:00
Dave Friedman
e0fd4c8a3b
Docs: Updates Javadoc documentation. Bug: 32532540
...
am: 2a3ebadcbe
Change-Id: Ibee55c5e73d9b51e5f5df24be01b0b797fa8a7a5
2017-01-07 02:30:45 +00:00
David Friedman
101f885826
Merge "Docs: Updates Javadoc documentation. Bug: 32532540" into nyc-dev
2017-01-07 02:24:57 +00:00
Dave Friedman
2a3ebadcbe
Docs: Updates Javadoc documentation.
...
Bug: 32532540
Change-Id: Ia811d9a51812206b18b75a98f6c5a55b92627404
2017-01-06 16:41:19 -08:00
Kevin Hufnagle
fb99d1450d
docs: Added descriptions of IAB subscription-specific settings. am: 145b377b38 am: 4418907d50 am: c32df53fc7
...
am: d7c1e9bcd0
Change-Id: I7f9ce1b661f8defca2918eece234a9c26d5f08a3
2017-01-04 01:37:00 +00:00
Kevin Hufnagle
d7c1e9bcd0
docs: Added descriptions of IAB subscription-specific settings. am: 145b377b38 am: 4418907d50
...
am: c32df53fc7
Change-Id: Ib2ac681a13b8d3b80feba803f25fdc8dbdcfe4f9
2017-01-04 01:32:24 +00:00
Kevin Hufnagle
c32df53fc7
docs: Added descriptions of IAB subscription-specific settings. am: 145b377b38
...
am: 4418907d50
Change-Id: I486f53410a427f373daec719bac522289d812e7a
2017-01-04 01:28:19 +00:00
Kevin Hufnagle
b7c9651555
Merge "docs: Added note - test subscriptions cannot use reserved IDs" into nyc-dev am: dbe9b81ef5
...
am: 2ff9c02bdc
Change-Id: I930313b754635e07b190793c3b79de39b71b6b8a
2017-01-04 01:25:12 +00:00
Kevin Hufnagle
4418907d50
docs: Added descriptions of IAB subscription-specific settings.
...
am: 145b377b38
Change-Id: I1b7a0885f613beb9b7baba8a6b35b59f00989ff3
2017-01-04 01:24:24 +00:00
Kevin Hufnagle
1c85b504e2
docs: Added note - test subscriptions cannot use reserved IDs am: 98a11580ef
...
am: c8ccc66e85
Change-Id: Id17c38ec7f6b85bcbfaaf676bf3a2f1414fca893
2017-01-04 01:24:23 +00:00
Kevin Hufnagle
2ff9c02bdc
Merge "docs: Added note - test subscriptions cannot use reserved IDs" into nyc-dev
...
am: dbe9b81ef5
Change-Id: Ie08ac386f441b16451538e21dcc8d5e5052258b0
2017-01-04 01:18:51 +00:00
Kevin Hufnagle
c8ccc66e85
docs: Added note - test subscriptions cannot use reserved IDs
...
am: 98a11580ef
Change-Id: I2c44d24b772d3df80dabab418875a1e9842aebbf
2017-01-04 01:18:47 +00:00
Kevin Hufnagle
dbe9b81ef5
Merge "docs: Added note - test subscriptions cannot use reserved IDs" into nyc-dev
2017-01-04 01:14:23 +00:00
Charles He
596e3a9d1a
Merge "Add @GuardedBy annotation to PersistentDataBlockService#mIsWritable." into lmp-mr1-dev am: 63a27d773b am: 1422a6074d am: a1d59972ad am: f027831c6b am: 5c74a1e9bb am: 1d84f619bf am: 0e2e913b04
...
am: b07ddf3814
Change-Id: I5fc69e1d8e02e405ae9ca8362a5c1f6312b4f53e
2016-12-29 10:58:44 +00:00
Charles He
b75b025578
Add @GuardedBy annotation to PersistentDataBlockService#mIsWritable. am: 71d2a41dd9 am: d0339c6e8f am: 6aa436bef2 am: 76ca2da7e8 am: 0cc0219089 am: ced5ab190c am: 3cc7f6acdc
...
am: e426dac4e2
Change-Id: I6451344efe089a7ff5de2082a9b8b77661c49ab7
2016-12-29 10:57:41 +00:00
Charles He
835c1bcedb
Merge "Prevent writing to FRP partition during factory reset." into lmp-mr1-dev am: 4bd97eb888 am: a8484b4f92 am: d7f2a4b0c7 am: b64af9bacd am: e15e0de7e5 am: 6bb6f02a15 am: 03fa83e216
...
am: c189f23dd4
Change-Id: I8426e0788ce1dcb12daac23e82663284633cae5b
2016-12-29 10:56:32 +00:00
Charles He
9bc2d6b446
Prevent writing to FRP partition during factory reset. am: a9437bd1ca am: 2ce5c4320d am: 133ff4d611 am: 00a581f882 am: e5156ec1e9 am: 9a47fa7fc0 am: 8bcdab7e6f
...
am: dd7837c5ad
Change-Id: I2124f52b38314199950d1448cddd2bbd328c85ce
2016-12-29 10:55:23 +00:00
Charles He
b07ddf3814
Merge "Add @GuardedBy annotation to PersistentDataBlockService#mIsWritable." into lmp-mr1-dev am: 63a27d773b am: 1422a6074d am: a1d59972ad am: f027831c6b am: 5c74a1e9bb am: 1d84f619bf
...
am: 0e2e913b04
Change-Id: I02047ef2536a6a77df84e1b203d3b5ee55439e32
2016-12-29 10:44:41 +00:00
Charles He
e426dac4e2
Add @GuardedBy annotation to PersistentDataBlockService#mIsWritable. am: 71d2a41dd9 am: d0339c6e8f am: 6aa436bef2 am: 76ca2da7e8 am: 0cc0219089 am: ced5ab190c
...
am: 3cc7f6acdc
Change-Id: I98e65fcf8180e5187a92e8d5b888eb794f89ab6d
2016-12-29 10:43:40 +00:00
Charles He
c189f23dd4
Merge "Prevent writing to FRP partition during factory reset." into lmp-mr1-dev am: 4bd97eb888 am: a8484b4f92 am: d7f2a4b0c7 am: b64af9bacd am: e15e0de7e5 am: 6bb6f02a15
...
am: 03fa83e216
Change-Id: I8f10fcf6b604848f68ecc086dd3723841e07ef8c
2016-12-29 10:42:32 +00:00
Charles He
dd7837c5ad
Prevent writing to FRP partition during factory reset. am: a9437bd1ca am: 2ce5c4320d am: 133ff4d611 am: 00a581f882 am: e5156ec1e9 am: 9a47fa7fc0
...
am: 8bcdab7e6f
Change-Id: I6e41bfad4ce66ca80bca636a5fb4ddc85b71e83a
2016-12-29 10:41:25 +00:00
Charles He
0e2e913b04
Merge "Add @GuardedBy annotation to PersistentDataBlockService#mIsWritable." into lmp-mr1-dev am: 63a27d773b am: 1422a6074d am: a1d59972ad am: f027831c6b am: 5c74a1e9bb
...
am: 1d84f619bf
Change-Id: Ic189edc98c3079ca98b258d08a5821b9c97dc027
2016-12-29 10:37:45 +00:00
Charles He
3cc7f6acdc
Add @GuardedBy annotation to PersistentDataBlockService#mIsWritable. am: 71d2a41dd9 am: d0339c6e8f am: 6aa436bef2 am: 76ca2da7e8 am: 0cc0219089
...
am: ced5ab190c
Change-Id: I59602f83fd659ce5192636d0e66feae217997d7c
2016-12-29 10:36:32 +00:00
Charles He
03fa83e216
Merge "Prevent writing to FRP partition during factory reset." into lmp-mr1-dev am: 4bd97eb888 am: a8484b4f92 am: d7f2a4b0c7 am: b64af9bacd am: e15e0de7e5
...
am: 6bb6f02a15
Change-Id: I849811a3be2c6989edea3ed6f938b4b36a4fabe7
2016-12-29 10:35:19 +00:00