flippening is only for android

old-commit-hash: ec8b69cb14
commatwo_master
Adeeb Shihadeh 5 years ago
parent 8b2ae9319a
commit 10be5dad65
  1. 9
      selfdrive/manager.py

@ -546,11 +546,12 @@ def uninstall():
def main(): def main():
os.environ['PARAMS_PATH'] = PARAMS os.environ['PARAMS_PATH'] = PARAMS
# the flippening! if ANDROID:
os.system('LD_LIBRARY_PATH="" content insert --uri content://settings/system --bind name:s:user_rotation --bind value:i:1') # the flippening!
os.system('LD_LIBRARY_PATH="" content insert --uri content://settings/system --bind name:s:user_rotation --bind value:i:1')
# disable bluetooth # disable bluetooth
os.system('service call bluetooth_manager 8') os.system('service call bluetooth_manager 8')
params = Params() params = Params()
params.manager_start() params.manager_start()

Loading…
Cancel
Save