klte: init: Update for O
Change-Id: I60475e3dbf68329a46c421e8c8465a4ea2e28203
This commit is contained in:
parent
dae898b8e8
commit
3ee701fac2
|
@ -31,13 +31,16 @@
|
|||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include "vendor_init.h"
|
||||
#include <android-base/properties.h>
|
||||
|
||||
#include "property_service.h"
|
||||
#include "vendor_init.h"
|
||||
#include "log.h"
|
||||
#include "util.h"
|
||||
|
||||
#include "init_msm8974.h"
|
||||
|
||||
using android::base::GetProperty;
|
||||
|
||||
void set_rild_libpath(char const *variant)
|
||||
{
|
||||
std::string libpath("/system/vendor/lib/libsec-ril.");
|
||||
|
@ -74,11 +77,11 @@ void gsm_properties(char const *rild_lib_variant)
|
|||
|
||||
void init_target_properties()
|
||||
{
|
||||
std::string platform = property_get("ro.board.platform");
|
||||
std::string platform = GetProperty("ro.board.platform", "");
|
||||
if (platform != ANDROID_TARGET)
|
||||
return;
|
||||
|
||||
std::string bootloader = property_get("ro.bootloader");
|
||||
std::string bootloader = GetProperty("ro.bootloader", "");
|
||||
|
||||
if (bootloader.find("G900AZ") == 0) {
|
||||
/* klteaio - Cricket MVNO */
|
||||
|
@ -149,6 +152,7 @@ void init_target_properties()
|
|||
gsm_properties("gsm");
|
||||
}
|
||||
|
||||
std::string device = property_get("ro.product.device");
|
||||
INFO("Found bootloader id %s setting build properties for %s device\n", bootloader.c_str(), device.c_str());
|
||||
std::string device = GetProperty("ro.product.device", "");
|
||||
LOG(INFO) << "Found bootloader id " << bootloader << " setting build properties for "
|
||||
<< device << " device" << std::endl;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue