sdk: Try getting LineageHardwareService again before checking for it

Currently if LineageHardwareManager couldn't get LineageHardwareService
on its first try, it stays disconnected and wouldn't retry in time.
Several one-time isSupported() checks during boot would then fail,
resulting in missing features e.g. HWC2-based LiveDisplay.

Change-Id: I85e6866543798ed4a805db5c99a28ef8a39335cc
This commit is contained in:
Andy CrossGate Yan
2025-01-01 11:22:29 +08:00
parent 59c2643018
commit 5e5212c76b

View File

@@ -807,6 +807,7 @@ public final class LineageHardwareManager {
* @return true if service is valid
*/
private boolean checkService() {
sService = getService();
if (sService == null) {
Log.w(TAG, "not connected to LineageHardwareManagerService");
return false;