potter: Allow vendor init to override props
Change-Id: I7494376e34f22bcb21157a2621e03647cb3d8c7b
This commit is contained in:
@@ -28,12 +28,25 @@
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
#define _REALLY_INCLUDE_SYS__SYSTEM_PROPERTIES_H_
|
||||
#include <sys/_system_properties.h>
|
||||
|
||||
#include "vendor_init.h"
|
||||
#include "property_service.h"
|
||||
#include "log.h"
|
||||
#include "util.h"
|
||||
|
||||
void property_override(char const prop[], char const value[])
|
||||
{
|
||||
prop_info *pi;
|
||||
|
||||
pi = (prop_info*) __system_property_find(prop);
|
||||
if (pi)
|
||||
__system_property_update(pi, value, strlen(value));
|
||||
else
|
||||
__system_property_add(prop, strlen(prop), value, strlen(value));
|
||||
}
|
||||
|
||||
void num_sims() {
|
||||
std::string dualsim;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user