summaryrefslogtreecommitdiffstats
path: root/core/java/android/service/persistentdata/PersistentDataBlockManager.java
Commit message (Collapse)AuthorAgeFilesLines
* Prevent writing to FRP partition during factory reset.Charles He2017-03-221-0/+5
| | | | | | | | | | | | | | | | Avoid potential race condition between FRP wipe and write operations during factory reset by making the FRP partition unwritable after wipe. Bug: 30352311 Test: manual CVE-2017-0498 Change-Id: If3f024a1611366c0677a996705724458094fcfad (cherry picked from commit a629c772f4a7a5ddf7ff9f78fb19f7ab86c2a9c2) (cherry picked from commit a9437bd1caeeb38780d920a81bde8cc7ca280fe0) (cherry picked from commit 1c4d535d0806dbeb6d2fa5cea0373cbd9ab6d33b)
* Remove FRP wipe support for device initializersCraig Lafayette2015-06-111-74/+0
| | | | | | | | | - Remove ManagedProvisioning NFC parameter key from DevicePolicyManager - Remove wipeIfAllowed from PersistentDataBlockManager Bug: 21558883 Change-Id: I59354b7bb1ef7e0b0346ff9a7d1654780231dff0
* Reset protection in PersistentDataBlockManagerCraig Lafayette2015-04-101-0/+74
| | | | | | | | | | | | Add method to allow authorized data block wipe in support of factory reset protection. This will allow ManagedProvisioning to respond to and pass factory reset protection challenges during automated device setup. - Adds the wipeIfAllowed method to clear the data block - Creates a protected-broadcast to send to allowed package Bug: 19792435 Change-Id: I897f2ea2afb1222a1fc8ac49290ee45ea4d3f2d7
* Mark PDBManager as a SystemApiAndres Morales2014-08-131-0/+3
| | | | | | This will allow us to XTS test these APIs Change-Id: Ife942f73580ea24eb6801b079b642d7c67107ab0
* Permit settings to "wipe" the persistent partitionAndres Morales2014-07-171-15/+61
| | | | | | | | | | | | One of the requirements is that when the user does a factory reset through settings, all data on the persistent partition should be cleared. This adds one last API method that allows settings to wipe the partition. Bug: 14288780 Change-Id: Ib87ee741d1e5195814516ae1d66eb7c4cf754dcf
* Service for reading and writing blocks to PST partitionAndres Morales2014-07-091-0/+97
Permits apps with permission android.permission.ACCESS_PERSISTENT_PARTITION to obtain a read and write data blocks to the PST partition. Only one block ever exists at one time in PST. When a client writes another block, the previous one is overwritten. This permits storing a block of data that will live across factory resets. Change-Id: I8f23df3531f3c0512118eb4b7530eff8a8e81c83