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

Commit d42ab257 authored by Android (Google) Code Review's avatar Android (Google) Code Review
Browse files

Merge change 23045 into eclair

* changes:
  Add persistent radio prop perms ; cleanup ws and typos.
parents 4ad30d28 3dfe6c66
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;