From 10be5dad659a8cc5515e8dee35bced0fbacc1d3b Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Tue, 30 Jun 2020 14:01:40 -0700 Subject: [PATCH] flippening is only for android old-commit-hash: ec8b69cb14fa83c90e9f5388d52ced603613e9bf --- selfdrive/manager.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/selfdrive/manager.py b/selfdrive/manager.py index ee2e2f42d3..1ff62d93c2 100755 --- a/selfdrive/manager.py +++ b/selfdrive/manager.py @@ -546,11 +546,12 @@ def uninstall(): def main(): os.environ['PARAMS_PATH'] = PARAMS - # the flippening! - os.system('LD_LIBRARY_PATH="" content insert --uri content://settings/system --bind name:s:user_rotation --bind value:i:1') + if ANDROID: + # the flippening! + os.system('LD_LIBRARY_PATH="" content insert --uri content://settings/system --bind name:s:user_rotation --bind value:i:1') - # disable bluetooth - os.system('service call bluetooth_manager 8') + # disable bluetooth + os.system('service call bluetooth_manager 8') params = Params() params.manager_start()