Skip to content

Android system UI configuration #4864

@d4vidi

Description

@d4vidi

Describe your idea

Proposal for introducing pre-test system UI preps performed automatically by Detox upon device allocation, alongside control via configuration:

Option1:

{
  devices: {
    'android.google.emulator': {
      type: 'android.emulator',
      device: {
        avdName: 'Pixel_10_API_36',
      },
      systemUI: 'default',
    },
  }
}

Option 2 (high granularity, all properties optional):

{
  devices: {
    'android.google.emulator': {
      type: 'android.emulator',
      device: {
        avdName: 'Pixel_10_API_36',
      },

      systemUI: {
        keyboard: 'hide',
        touches: 'show',
        pointerLocationBar: 'hide',
        navigationMode: '3-button',
        statusBar: {
          notifications: 'hidden',
          wifi: 'full',
          networkBar: 'hide',
          batteryLevel: 100,
          charging: true,
        },
      },

    },
  },
}

Option 3 (combo):

{
  devices: {
    'android.google.emulator': {
      type: 'android.emulator',
      device: {
        avdName: 'Pixel_10_API_36',
      },
      systemUI: {
         extends: 'default',
         navigationMode: 'gesture',
         statusBar: {
           charging: false,
         },
      },
    },
  }
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions