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

Commit 7d53c697 authored by Tammo Spalink's avatar Tammo Spalink Committed by Android Git Automerger
Browse files

am d42ab257: Merge change 23045 into eclair

Merge commit 'd42ab257' into eclair-plus-aosp

* commit 'd42ab257':
  Add persistent radio prop perms ; cleanup ws and typos.
parents a360f292 d42ab257
Loading
Loading
Loading
Loading
+29 −28
Original line number Diff line number Diff line
@@ -58,6 +58,7 @@ struct {
    { "net.ppp",          AID_RADIO },
    { "ril.",             AID_RADIO },
    { "gsm.",             AID_RADIO },
    { "persist.radio",    AID_RADIO },
    { "net.dns",          AID_RADIO },
    { "net.",             AID_SYSTEM },
    { "dev.",             AID_SYSTEM },
@@ -238,7 +239,7 @@ const char* property_get(const char *name)
    }
}

static void write_peristent_property(const char *name, const char *value)
static void write_persistent_property(const char *name, const char *value)
{
    const char *tempPath = PERSISTENT_PROPERTY_DIR "/.temp";
    char path[PATH_MAX];
@@ -315,7 +316,7 @@ int property_set(const char *name, const char *value)
         * Don't write properties to disk until after we have read all default properties
         * to prevent them from being overwritten by default values.
         */
        write_peristent_property(name, value);
        write_persistent_property(name, value);
    }
    property_changed(name, value);
    return 0;