|
|
@ -282,7 +282,6 @@ def thermald_thread(end_event, hw_queue): |
|
|
|
startup_conditions["up_to_date"] = params.get("Offroad_ConnectivityNeeded") is None or params.get_bool("DisableUpdates") or params.get_bool("SnoozeUpdate") |
|
|
|
startup_conditions["up_to_date"] = params.get("Offroad_ConnectivityNeeded") is None or params.get_bool("DisableUpdates") or params.get_bool("SnoozeUpdate") |
|
|
|
startup_conditions["not_uninstalling"] = not params.get_bool("DoUninstall") |
|
|
|
startup_conditions["not_uninstalling"] = not params.get_bool("DoUninstall") |
|
|
|
startup_conditions["accepted_terms"] = params.get("HasAcceptedTerms") == terms_version |
|
|
|
startup_conditions["accepted_terms"] = params.get("HasAcceptedTerms") == terms_version |
|
|
|
startup_conditions["offroad_min_time"] = (not started_seen) or ((off_ts is not None) and (sec_since_boot() - off_ts) > 5.) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# with 2% left, we killall, otherwise the phone will take a long time to boot |
|
|
|
# with 2% left, we killall, otherwise the phone will take a long time to boot |
|
|
|
startup_conditions["free_space"] = msg.deviceState.freeSpacePercent > 2 |
|
|
|
startup_conditions["free_space"] = msg.deviceState.freeSpacePercent > 2 |
|
|
|