Skip to content

Commit

Permalink
sdm710-common: Add grus support
Browse files Browse the repository at this point in the history
Signed-off-by: Albert I <kras@raphielgang.org>
  • Loading branch information
krasCGQ committed Jul 13, 2019
1 parent eb4a7a7 commit a5c7788
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

LOCAL_PATH := $(call my-dir)

ifneq ($(filter sirius,$(TARGET_DEVICE)),)
ifneq ($(filter grus sirius,$(TARGET_DEVICE)),)
include $(call all-makefiles-under,$(LOCAL_PATH))

include $(CLEAR_VARS)
Expand Down
1 change: 1 addition & 0 deletions bluetooth/include/bdroid_buildcfg.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ typedef struct {
} device_t;

static const device_t devices[] = {
{"grus", "Xiaomi Mi 9 SE"},
{"sirius", "Xiaomi Mi 8 SE"},
};

Expand Down
6 changes: 3 additions & 3 deletions livedisplay/SunlightEnhancement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ static constexpr const char* kDispParamHbmFodOn = "0x20000";

bool hasAmoledPanel() {
std::string device = android::base::GetProperty("ro.product.device", "");
return device == "sirius";
return device == "grus" || device == "sirius";
}

bool hasFingerprintOnDisplay() {
//std::string device = android::base::GetProperty("ro.product.device", "");
return false;
std::string device = android::base::GetProperty("ro.product.device", "");
return device == "grus";
}

bool SunlightEnhancement::isSupported() {
Expand Down
2 changes: 1 addition & 1 deletion setup-makefiles.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ source "${HELPER}"
setup_vendor "${DEVICE_COMMON}" "${VENDOR}" "${LINEAGE_ROOT}" true

# Copyright headers and guards
write_headers "sirius"
write_headers "grus sirius"

# The standard common blobs
write_makefiles "${MY_DIR}/proprietary-files.txt" true
Expand Down

0 comments on commit a5c7788

Please sign in to comment.