Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d5f32019 authored by Akilesh Kailash's avatar Akilesh Kailash
Browse files

snapuserd: Avoid checking system properties when daemon launched


from fist stage init and during selinux transition

Bug: 207298357
Test: OTA
Signed-off-by: default avatarAkilesh Kailash <akailash@google.com>
Change-Id: I449de1939531dbf3cc35e05c80e51237c4dc2b99
parent 4b740075
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -51,7 +51,12 @@ bool Daemon::StartDaemon(int argc, char** argv) {
    // is applied will check for the property. This is ok as the system
    // properties are valid at this point. We can't do this during first
    // stage init and hence use the command line flags to get the information.
    if (!IsDmSnapshotTestingEnabled() && (FLAGS_user_snapshot || IsUserspaceSnapshotsEnabled())) {
    bool user_snapshots = FLAGS_user_snapshot;
    if (!user_snapshots) {
        user_snapshots = (!IsDmSnapshotTestingEnabled() && IsUserspaceSnapshotsEnabled());
    }

    if (user_snapshots) {
        LOG(INFO) << "Starting daemon for user-space snapshots.....";
        return StartServerForUserspaceSnapshots(arg_start, argc, argv);
    } else {