mirror of
https://github.com/Evolution-X-Devices/device_xiaomi_stone
synced 2026-02-01 07:15:40 +00:00
sm6375-common: import libinit from sm8250-common
Change-Id: I81041b8feef9d33cb09c1416965d648193f33159
This commit is contained in:
23
libinit/include/libinit_dalvik_heap.h
Normal file
23
libinit/include/libinit_dalvik_heap.h
Normal file
@@ -0,0 +1,23 @@
|
||||
/*
|
||||
* Copyright (C) 2021 The LineageOS Project
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#ifndef LIBINIT_DALVIK_HEAP_H
|
||||
#define LIBINIT_DALVIK_HEAP_H
|
||||
|
||||
#include <string>
|
||||
|
||||
typedef struct dalvik_heap_info {
|
||||
std::string heapstartsize;
|
||||
std::string heapgrowthlimit;
|
||||
std::string heapsize;
|
||||
std::string heapminfree;
|
||||
std::string heapmaxfree;
|
||||
std::string heaptargetutilization;
|
||||
} dalvik_heap_info_t;
|
||||
|
||||
void set_dalvik_heap(void);
|
||||
|
||||
#endif // LIBINIT_DALVIK_HEAP_H
|
||||
18
libinit/include/libinit_utils.h
Normal file
18
libinit/include/libinit_utils.h
Normal file
@@ -0,0 +1,18 @@
|
||||
/*
|
||||
* Copyright (C) 2021 The LineageOS Project
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#ifndef LIBINIT_UTILS_H
|
||||
#define LIBINIT_UTILS_H
|
||||
|
||||
#include <string>
|
||||
|
||||
void property_override(std::string prop, std::string value, bool add = true);
|
||||
|
||||
void set_ro_build_prop(const std::string &prop, const std::string &value, bool product = false);
|
||||
|
||||
std::string fingerprint_to_description(std::string fingerprint);
|
||||
|
||||
#endif // LIBINIT_UTILS_H
|
||||
30
libinit/include/libinit_variant.h
Normal file
30
libinit/include/libinit_variant.h
Normal file
@@ -0,0 +1,30 @@
|
||||
/*
|
||||
* Copyright (C) 2021 The LineageOS Project
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#ifndef LIBINIT_VARIANT_H
|
||||
#define LIBINIT_VARIANT_H
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
typedef struct variant_info {
|
||||
std::string hwc_value;
|
||||
std::string sku_value;
|
||||
|
||||
std::string brand;
|
||||
std::string device;
|
||||
std::string marketname;
|
||||
std::string model;
|
||||
std::string build_fingerprint;
|
||||
|
||||
bool nfc;
|
||||
} variant_info_t;
|
||||
|
||||
void search_variant(const std::vector<variant_info_t> variants);
|
||||
|
||||
void set_variant_props(const variant_info_t variant);
|
||||
|
||||
#endif // LIBINIT_VARIANT_H
|
||||
Reference in New Issue
Block a user