diff --git a/README_CUSTOM_CONFIG.md b/README_CUSTOM_CONFIG.md index 7605f4d..1fc3846 100644 --- a/README_CUSTOM_CONFIG.md +++ b/README_CUSTOM_CONFIG.md @@ -32,6 +32,14 @@ Passing following environment variable to be able to connect laptop / pc camera - EMULATOR_ARGS="-camera-back webcam0" +Custom Avd name Arguments +------------------------- + +Passing following environment variable to set a custom avd name + +- AVD_NAME="customName" + + Custom Emulator Arguments ------------------------- diff --git a/src/app.py b/src/app.py index 1b0ae8a..c352019 100644 --- a/src/app.py +++ b/src/app.py @@ -206,7 +206,7 @@ def run(): custom_args=os.getenv('EMULATOR_ARGS', '') logger.info('Custom Args: {custom_args}'.format(custom_args=custom_args)) - avd_name = '{device}_{version}'.format(device=device.replace(' ', '_').lower(), version=ANDROID_VERSION) + avd_name = os.getenv('AVD_NAME', '{device}_{version}'.format(device=device.replace(' ', '_').lower(), version=ANDROID_VERSION)) logger.info('AVD name: {avd}'.format(avd=avd_name)) is_first_run = not is_initialized(device)