  
  from common.android import ANDROID
  from common.apk import update_apks, start_offroad, pm_apply_packages, android_packages
  from common.params import Params
  from selfdrive.version import training_version
  from selfdrive.manager import start_managed_process, kill_managed_process, get_running
  
  def set_params_enabled():
    params = Params()
    params.put("HasAcceptedTerms", "1")
 
</s> remove   params.put("HasAcceptedTerms", "1")
 </s> add   params.put("HasAcceptedTerms", terms_version) </s> remove import selfdrive.manager as manager
 </s> add  </s> remove import threading
import _thread
import signal
 </s> add 
from selfdrive.version import training_version, terms_version
  
  from common.android import ANDROID
  from common.apk import update_apks, start_offroad, pm_apply_packages, android_packages
  from common.params import Params
from selfdrive.version import training_version, terms_version
  from selfdrive.manager import start_managed_process, kill_managed_process, get_running
  
  def set_params_enabled():
    params = Params()
    params.put("HasAcceptedTerms", "1")
keep keep keep keep replace keep keep keep keep keep
 Improve CPU usage test reliability (#2002)

* run phone tests in parallel

* better cpu test

* re-enable test

* no root

* terms version

* not one

* yes

* debug

* that's coverd by min cpu percent 
selfdrive/test/helpers.py