|
|
|
|
@ -1312,6 +1312,17 @@ static void ExportKernelBootProps() {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static void ExportLowRamProps() {
|
|
|
|
|
std::string value = GetProperty("ro.boot.low_ram", "false");
|
|
|
|
|
if (value == "1" || value == "true" || value == "yes") {
|
|
|
|
|
InitPropertySet("ro.config.low_ram", "true");
|
|
|
|
|
InitPropertySet("ro.config.per_app_memcg", "false");
|
|
|
|
|
InitPropertySet("dalvik.vm.systemservercompilerfilter", "speed-profile");
|
|
|
|
|
InitPropertySet("dalvik.vm.heapgrowthlimit", "128m");
|
|
|
|
|
InitPropertySet("dalvik.vm.heapsize", "384m");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static void ProcessKernelDt() {
|
|
|
|
|
if (!is_android_dt_value_expected("compatible", "android,firmware")) {
|
|
|
|
|
return;
|
|
|
|
|
@ -1389,6 +1400,9 @@ void PropertyInit() {
|
|
|
|
|
ExportKernelBootProps();
|
|
|
|
|
|
|
|
|
|
PropertyLoadBootDefaults();
|
|
|
|
|
|
|
|
|
|
// Export properties for low ram device on runtime
|
|
|
|
|
ExportLowRamProps();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static void HandleInitSocket() {
|
|
|
|
|
|