summaryrefslogtreecommitdiffstats
path: root/services/java/com/android/server/SystemServer.java
diff options
context:
space:
mode:
authorAndres Morales <anmorales@google.com>2014-07-01 19:40:41 -0700
committerAndres Morales <anmorales@google.com>2014-07-09 16:27:17 -0700
commit68d4acd205e8c2da524e62734ca42847306cc029 (patch)
treeabe5eda5e7337866ec1dcabd7c9ac8a704177bca /services/java/com/android/server/SystemServer.java
parentdbbf07a5c7f514f2168f236e1df3b2ca70d4ab2f (diff)
downloadframeworks_base-68d4acd205e8c2da524e62734ca42847306cc029.zip
frameworks_base-68d4acd205e8c2da524e62734ca42847306cc029.tar.gz
frameworks_base-68d4acd205e8c2da524e62734ca42847306cc029.tar.bz2
Service for reading and writing blocks to PST partition
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
Diffstat (limited to 'services/java/com/android/server/SystemServer.java')
-rw-r--r--services/java/com/android/server/SystemServer.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/services/java/com/android/server/SystemServer.java b/services/java/com/android/server/SystemServer.java
index b63bbe7..e0ebd54 100644
--- a/services/java/com/android/server/SystemServer.java
+++ b/services/java/com/android/server/SystemServer.java
@@ -135,6 +135,7 @@ public final class SystemServer {
"com.android.server.ethernet.EthernetService";
private static final String JOB_SCHEDULER_SERVICE_CLASS =
"com.android.server.job.JobSchedulerService";
+ private static final String PERSISTENT_DATA_BLOCK_PROP = "ro.frp.pst";
private final int mFactoryTestMode;
private Timer mProfilerSnapshotTimer;
@@ -574,6 +575,10 @@ public final class SystemServer {
reportWtf("starting LockSettingsService service", e);
}
+ if (!SystemProperties.get(PERSISTENT_DATA_BLOCK_PROP).equals("")) {
+ mSystemServiceManager.startService(PersistentDataBlockService.class);
+ }
+
// Always start the Device Policy Manager, so that the API is compatible with
// API8.
mSystemServiceManager.startService(DevicePolicyManagerService.Lifecycle.class);