Adding TARGET_OTA_ASSERT_DEVICE flag for custom device asserts

Should be handled via device tree's BoardConfig
Sample will be TARGET_OTA_ASSERT_DEVICE := le_zl1,zl1,lepro3,lex720,lex727,LEX720,LEX727 in BoardConfig
Only applicable for AB or VAB devices

Change-Id: I1fbe6155d3f79eee089a31dbe62ee9d04c33d65c
This commit is contained in:
DarthJabba9
2021-11-28 01:09:44 +05:30
committed by bigbiff
parent 74ea1a7d66
commit 45a8d148b5
3 changed files with 27 additions and 0 deletions
+4
View File
@@ -377,6 +377,10 @@ int main(int argc, char **argv) {
property_set("ro.twrp.boot", "1");
property_set("ro.twrp.version", TW_VERSION_STR);
#ifdef TARGET_OTA_ASSERT_DEVICE
property_set("ro.twrp.target.devices", TARGET_OTA_ASSERT_DEVICE);
#endif
time_t StartupTime = time(NULL);
printf("Starting TWRP %s-%s on %s (pid %d)\n", TW_VERSION_STR, TW_GIT_REVISION, ctime(&StartupTime), getpid());