libexternal: change action safe property to persist
It is more probable that end user always use same TV to connect.
Hence make the action safe property persist, so that it is
persistent across reboot
Also, change property to sys. from hw. so that hwc can write
Change-Id: I5a77156012d121e28d1adbadb9162fcdf7ca3edd
CRs-fixed: 472431
diff --git a/libexternal/external.cpp b/libexternal/external.cpp
index e3de5ce..3e92f53 100644
--- a/libexternal/external.cpp
+++ b/libexternal/external.cpp
@@ -247,9 +247,9 @@
char actionsafeWidth[PROPERTY_VALUE_MAX];
char actionsafeHeight[PROPERTY_VALUE_MAX];
snprintf(actionsafeWidth, sizeof(actionsafeWidth), "%d", w);
- property_set("hw.actionsafe.width", actionsafeWidth);
+ property_set("persist.sys.actionsafe.width", actionsafeWidth);
snprintf(actionsafeHeight, sizeof(actionsafeHeight), "%d", h);
- property_set("hw.actionsafe.height", actionsafeHeight);
+ property_set("persist.sys.actionsafe.height", actionsafeHeight);
setExternalDisplay(true, mHdmiFbNum);
}