Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detox unable to connect or launch test apk on attached android device #4617

Open
2 tasks done
Anantha-sb opened this issue Oct 22, 2024 · 0 comments
Open
2 tasks done

Comments

@Anantha-sb
Copy link

Anantha-sb commented Oct 22, 2024

What happened?

I followed the instructions provided here - https://wix.github.io/Detox/docs/introduction/project-setup

I am able to build the project and generate the required APKs (including the test apk). However, detox fails to connect to the test app(s).
adblogs.txt

The execution command that I use: detox test --configuration android.att.debug

Logs:

11:38:22.611 detox[12700] B jest --config e2e/jest.config.js
11:38:48.206 detox[11292] i starter.test.js is assigned to AttachedDevice:19287B2023
11:40:48.241 detox[11292] i Example: should have welcome screen
11:40:48.245 detox[11292] i Example: should have welcome screen [FAIL]

11:40:48.278 detox[11292] i Detox can't seem to connect to the test app(s)!

HINT:

The test app might have crashed prematurely, or has had trouble setting up the connection.
Refer to our troubleshooting guide, for full details: https://wix.github.io/Detox/docs/troubleshooting/running-tests#tests-execution-hangs



11:40:48.288 detox[11292] i An error occurred while waiting for the app to become ready. Waiting for disconnection...
  error: Failed to run application on the device

  HINT: Most likely, your tests have timed out and called detox.cleanup() while it was waiting for "ready" message (over WebSocket) from the instrumentation process.
11:40:48.289 detox[11292] i The app disconnected.
 FAIL  e2e/starter.test.js (144.269 s)
  Example
    × should have welcome screen (4 ms)

  ● Example › should have welcome screen

    thrown: "Exceeded timeout of 120000 ms for a hook.
    Add a timeout value to this test to increase the timeout, if this is a long-running test. See https://jestjs.io/docs/api#testname-fn-timeout."

      1 | describe('Example', () => {
    > 2 |   beforeAll(async () => {
        |   ^
      3 |     await device.launchApp();
      4 |   });
      5 |

      at beforeAll (e2e/starter.test.js:2:3)
      at Object.describe (e2e/starter.test.js:1:1)

Test Suites: 1 failed, 1 total
Tests:       1 failed, 1 total
Snapshots:   0 total
Time:        144.487 s, estimated 153 s
Ran all test suites.
11:40:48.433 detox[12700] E Command failed with exit code = 1:
jest --config e2e/jest.config.js

My .detoxrc.js file:

module.exports = {
  testRunner: {
    args: {
      '$0': 'jest',
      config: 'e2e/jest.config.js'
    },
    jest: {
      setupTimeout: 120000
    }
  },
  apps: {
    'uat.android.debug': {
      type: 'android.apk',
      binaryPath: "android/app/build/outputs/apk/uat/app-uat.apk",
      testBinaryPath: "android/app/build/outputs/apk/androidTest/debug/app-debug-androidTest.apk",
      build: "cd android && gradlew clean && gradlew app:assembleUat && gradlew app:assembleAndroidTest -DtestBuildType=debug && cd ..",
      reversePorts: [
        8081
      ]
    },
  },
  devices: {
    attached: {
      type: 'android.attached',
      device: {
        adbName: '.*'
      }
    },
  },
  configurations: {
    'android.att.debug': {
      device: 'attached',
      app: 'uat.android.debug'
    },
  }
};

My android\build.gradle file:

buildscript {
    ext {
        buildToolsVersion = "29.0.3"
        minSdkVersion = 21
        compileSdkVersion = 32
        targetSdkVersion = 32
        ndkVersion = "20.1.5948944"
        kotlinVersion = '1.9.0'
    }
    repositories {
        google()
        jcenter()
    }
    dependencies {
        classpath('com.android.tools.build:gradle:4.1.0')
        classpath 'com.google.gms:google-services:4.3.3'
        classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion")

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        mavenLocal()
        maven {
            // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
            url("$rootDir/../node_modules/react-native/android")
        }
        maven {
            // Android JSC is installed from npm
            url("$rootDir/../node_modules/jsc-android/dist")
        }

        google()

        maven {
             url("$rootDir/../node_modules/detox/Detox-android")
        }
        jcenter()
        maven { url 'https://www.jitpack.io' }

        // Scanbot SDK Maven repositories:
         maven { url 'https://nexus.scanbot.io/nexus/content/repositories/releases/' }
         maven { url 'https://nexus.scanbot.io/nexus/content/repositories/snapshots/' }
    }
}

My app\build.gradle contains the following:

defaultConfig {

        testBuildType System.getProperty('testBuildType', 'debug')
         testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'

}

dependencies {
    androidTestImplementation('com.wix:detox-legacy:+')
    implementation 'androidx.appcompat:appcompat:1.1.0'
}

My jestconfig.js

module.exports = {
  rootDir: '..',
  testMatch: ['<rootDir>/e2e/**/*.test.js'],
  testTimeout: 120000,
  maxWorkers: 1,
  globalSetup: 'detox/runners/jest/globalSetup',
  globalTeardown: 'detox/runners/jest/globalTeardown',
  reporters: ['detox/runners/jest/reporter'],
  testEnvironment: 'detox/runners/jest/testEnvironment',
  verbose: true,
};

My starter.test.js

describe('Example', () => {
  beforeAll(async () => {
    await device.launchApp();
  });

  beforeEach(async () => {
    await device.reloadReactNative();
  });

  it('should have welcome screen', async () => {
    await expect(element(by.id('welcome'))).toBeVisible();
  });

});

What was the expected behaviour?

No response

Was it tested on latest Detox?

  • I have tested this issue on the latest Detox release and it still reproduces.

Did your test throw out a timeout?

Help us reproduce this issue!

No response

In what environment did this happen?

Detox version: 20.26.2
React Native version: 0.64.4
Node version: 16.20.0
Android version: Android 10
Test-runner (select one): jest / other : jest

Detox logs

Detox logs
14:28:10.785 detox[10412] i ipc Server path not specified, so defaulting to ipc.config.socketRoot + ipc.config.appspace + ipc.config.id /tmp/detox.primary-10412
14:28:10.788 detox[10412] i ipc starting server on  /tmp/detox.primary-10412
14:28:10.789 detox[10412] i ipc starting TLS server false
14:28:10.790 detox[10412] i ipc starting server as Unix || Windows Socket
14:28:10.798 detox[10412] i ws-server Detox server listening on localhost:50928...
14:28:10.813 detox[10412] i lifecycle Serialized the session state at: C:\Users\CE363_~1\AppData\Local\Temp\69f426db-b01d-61ab-17c2-af9a3cbe1c8e.detox.json
14:28:10.816 detox[10412] B lifecycle jest --config e2e/jest.config.js
Determining test suites to run...14:28:18.907 detox[11108] i ipc Service path not specified, so defaulting to ipc.config.socketRoot + ipc.config.appspace + id
14:28:18.910 detox[11108] i ipc requested connection to  primary-10412 /tmp/detox.primary-10412
14:28:18.911 detox[11108] i ipc Connecting client on Unix Socket : /tmp/detox.primary-10412
14:28:18.913 detox[10412] i ipc ## socket connection to server detected ##
14:28:18.916 detox[11108] i ipc retrying reset
14:28:18.918 detox[11108] i ipc dispatching event to  primary-10412 /tmp/detox.primary-10412  :  registerContext , { id: 'secondary-11108' }
14:28:18.922 detox[10412] i ipc received event of :  registerContext { id: 'secondary-11108' }
14:28:18.923 detox[10412] i ipc dispatching event to socket  :  registerContextDone {
  testResults: [],
  testSessionIndex: 0,
  unsafe_earlyTeardown: undefined
}
14:28:18.925 detox[11108] i ipc ## received events ##
14:28:18.926 detox[11108] i ipc detected event registerContextDone { testResults: [], testSessionIndex: 0 }
14:28:20.862 detox[11108] B lifecycle e2e\starter.test.js
14:28:20.895 detox[11108] B lifecycle set up environment
14:28:20.898 detox[11108] i ipc dispatching event to  primary-10412 /tmp/detox.primary-10412  :  registerWorker , { workerId: 'w1' }
14:28:20.898 detox[10412] i ipc received event of :  registerWorker { workerId: 'w1' }

 RUNS  e2e/starter.test.js
14:28:20.901 detox[11108] i ipc ## received events ##socket  :  registerWorkerDone { workersCount: 1 }
14:28:20.908 detox[11108] i ipc detected event registerWorkerDone { workersCount: 1 }
14:28:22.494 detox[11108] i ipc ## received events ##
14:28:22.497 detox[11108] i ipc detected event sessionStateUpdate { workersCount: 1 }

14:28:22.505 detox[11108] i ws-client opened web socket to: ws://localhost:50928
14:28:22.509 detox[11108] i ws-client send message
  data: {"type":"login","params":{"sessionId":"4821b7ec-d06b-f1a9-f20c-20c2a507e943","role":"tester"},"messageId":0}

 RUNS  e2e/starter.test.js
14:28:22.510 detox[10412] i ws-server@50932 get
  data: {"type":"login","params":{"sessionId":"4821b7ec-d06b-f1a9-f20c-20c2a507e943","role":"tester"},"messageId":0}
14:28:22.510 detox[10412] i ws-server created session 4821b7ec-d06b-f1a9-f20c-20c2a507e943
14:28:22.511 detox[10412] i ws-server@50932 send
  data: {
    "type": "loginSuccess",
    "params": {
      "testerConnected": true,
      "appConnected": false
    },
    "messageId": 0
14:28:22.514 detox[11108] i ws-client get message
  data: {"type":"loginSuccess","params":{"testerConnected":true,"appConnected":false},"messageId":0}

14:28:23.672 detox[11108] i ipc dispatching event to  primary-10412 /tmp/detox.primary-10412  :  allocateDevice , {
  deviceConfig: { type: 'android.attached', device: { adbName: '.*' } }
}

 RUNS  e2e/starter.test.js
14:28:23.671 detox[10412] i ipc received event of :  allocateDevice {
  deviceConfig: { type: 'android.attached', device: { adbName: '.*' } }
}
14:28:23.766 detox[10412] B device init
  args: ()
14:28:23.775 detox[10412] E device init
14:28:23.776 detox[10412] B device@0 allocate
  data: {
    "type": "android.attached",
    "device": {
      "adbName": ".*"
    }
  }
 RUNS  e2e/starter.test.js
14:28:23.838 detox[10412] i child-process:EXEC_SUCCESS List of devices attached
19287B2023      device


14:28:23.842 detox[10412] i device:DEVICE_LOOKUP Found a matching & free device 19287B2023
14:28:23.845 detox[10412] i device settled on 19287B2023
  data: {
    "id": "19287B2023",
    "adbName": "19287B2023"
  }
14:28:23.845 detox[10412] E device@0 allocate
14:28:23.846 detox[10412] B device@0 post-allocate: 19287B2023
  data: {
    "id": "19287B2023",
    "adbName": "19287B2023"
  }
14:28:23.846 detox[10412] i child-process:EXEC_CMD "C:\Users\CE363_Admin\AppData\Local\Android\Sdk\platform-tools\adb.EXE" -s 19287B2023 shell "getprop ro.build.version.sdk"
14:28:23.999 detox[10412] i child-process:EXEC_SUCCESS 29

14:28:23.999 detox[10412] i child-process:EXEC_CMD "C:\Users\CE363_Admin\AppData\Local\Android\Sdk\platform-tools\adb.EXE" -s 19287B2023 shell "dumpsys power | grep \"^[ ]*m[UW].*=\""
14:28:24.120 detox[10412] i child-process:EXEC_SUCCESS   mWakefulness=Awake
  mWakefulnessChanging=false
  mWakeLockSummary=0x0
  mUserActivitySummary=0x1
  mWakeUpWhenPluggedOrUnpluggedConfig=true
  mWakeUpWhenPluggedOrUnpluggedInTheaterModeConfig=false
  mDreamsBatteryLevelMinimumWhenPoweredConfig=-1
  mDreamsBatteryLevelMinimumWhenNotPoweredConfig=15
  mScreenBrightnessOverrideFromWindowManager=-1
  mUserActivityTimeoutOverrideFromWindowManager=-1
  mUserInactiveOverrideFromWindowManager=false

14:28:24.124 detox[11108] i ipc ## received events ##9287B2023
14:28:24.125 detox[11108] i ipc detected event allocateDeviceDone { deviceCookie: { id: '19287B2023', adbName: '19287B2023' } }
14:28:24.858 detox[11108] B artifacts-manager onBootDevice
  args: ({"deviceId":"19287B2023"})
14:28:24.861 detox[11108] E artifacts-manager onBootDevice
14:28:24.865 detox[11108] B device installUtilBinaries
  args: ()
14:28:24.867 detox[11108] E device installUtilBinaries
14:28:24.868 detox[11108] B device selectApp
  args: ("default")
14:28:24.876 detox[11108] i child-process:EXEC_CMD "C:\Users\CE363_Admin\AppData\Local\Android\Sdk\build-tools\34.0.0\aapt.EXE" dump badging "C:\Users\CE363_Admin\Desktop\ScanningApplication\android\app\build\outputs\apk\uat\app-uat.apk"
14:28:25.005 detox[11108] i child-process:EXEC_SUCCESS package: name='com.nanosonics.audit_pro' versionCode='192' versionName='1.7.7' platformBuildVersionName='12' platformBuildVersionCode='32' compileSdkVersion='32' compileSdkVersionCodename='12'
sdkVersion:'21'
targetSdkVersion:'32'
uses-permission: name='android.permission.INTERNET'
uses-permission: name='android.permission.WRITE_EXTERNAL_STORAGE'
uses-permission: name='android.permission.READ_EXTERNAL_STORAGE'
uses-permission: name='com.honeywell.decode.permission.DECODE'
uses-permission: name='android.permission.WAKE_LOCK'
uses-permission: name='android.permission.FOREGROUND_SERVICE'
uses-permission: name='android.permission.CAMERA'
uses-permission: name='android.permission.ACCESS_NETWORK_STATE'
uses-permission: name='com.android.vending.CHECK_LICENSE'
uses-permission: name='android.permission.ACCESS_WIFI_STATE'
uses-permission: name='android.permission.NFC'
uses-permission: name='android.permission.RECEIVE_BOOT_COMPLETED'
uses-permission: name='com.google.android.c2dm.permission.RECEIVE'
uses-permission: name='com.google.android.finsky.permission.BIND_GET_INSTALL_REFERRER_SERVICE'
application-label:'Nanosonics - UAT'
application-label-af:'Nanosonics - UAT'
application-label-am:'Nanosonics - UAT'
application-label-ar:'Nanosonics - UAT'
application-label-as:'Nanosonics - UAT'
application-label-az:'Nanosonics - UAT'
application-label-be:'Nanosonics - UAT'
application-label-bg:'Nanosonics - UAT'
application-label-bn:'Nanosonics - UAT'
application-label-bs:'Nanosonics - UAT'
application-label-ca:'Nanosonics - UAT'
application-label-cs:'Nanosonics - UAT'
application-label-da:'Nanosonics - UAT'
application-label-de:'Nanosonics - UAT'
application-label-el:'Nanosonics - UAT'
application-label-en-AU:'Nanosonics - UAT'
application-label-en-CA:'Nanosonics - UAT'
application-label-en-GB:'Nanosonics - UAT'
application-label-en-IN:'Nanosonics - UAT'
application-label-en-XC:'Nanosonics - UAT'
application-label-es:'Nanosonics - UAT'
application-label-es-419:'Nanosonics - UAT'
application-label-es-US:'Nanosonics - UAT'
application-label-et:'Nanosonics - UAT'
application-label-eu:'Nanosonics - UAT'
application-label-fa:'Nanosonics - UAT'
application-label-fi:'Nanosonics - UAT'
application-label-fr:'Nanosonics - UAT'
application-label-fr-CA:'Nanosonics - UAT'
application-label-gl:'Nanosonics - UAT'
application-label-gu:'Nanosonics - UAT'
application-label-he:'Nanosonics - UAT'
application-label-hi:'Nanosonics - UAT'
application-label-hr:'Nanosonics - UAT'
application-label-hu:'Nanosonics - UAT'
application-label-hy:'Nanosonics - UAT'
application-label-in:'Nanosonics - UAT'
application-label-is:'Nanosonics - UAT'
application-label-it:'Nanosonics - UAT'
application-label-iw:'Nanosonics - UAT'
application-label-ja:'Nanosonics - UAT'
application-label-ka:'Nanosonics - UAT'
application-label-kk:'Nanosonics - UAT'
application-label-km:'Nanosonics - UAT'
application-label-kn:'Nanosonics - UAT'
application-label-ko:'Nanosonics - UAT'
application-label-ky:'Nanosonics - UAT'
application-label-lo:'Nanosonics - UAT'
application-label-lt:'Nanosonics - UAT'
application-label-lv:'Nanosonics - UAT'
application-label-mk:'Nanosonics - UAT'
application-label-ml:'Nanosonics - UAT'
application-label-mn:'Nanosonics - UAT'
application-label-mr:'Nanosonics - UAT'
application-label-ms:'Nanosonics - UAT'
application-label-my:'Nanosonics - UAT'
application-label-nb:'Nanosonics - UAT'
application-label-ne:'Nanosonics - UAT'
application-label-nl:'Nanosonics - UAT'
application-label-nn:'Nanosonics - UAT'
application-label-no:'Nanosonics - UAT'
application-label-or:'Nanosonics - UAT'
application-label-pa:'Nanosonics - UAT'
application-label-pl:'Nanosonics - UAT'
application-label-pt:'Nanosonics - UAT'
application-label-pt-BR:'Nanosonics - UAT'
application-label-pt-PT:'Nanosonics - UAT'
application-label-ro:'Nanosonics - UAT'
application-label-ru:'Nanosonics - UAT'
application-label-si:'Nanosonics - UAT'
application-label-sk:'Nanosonics - UAT'
application-label-sl:'Nanosonics - UAT'
application-label-sq:'Nanosonics - UAT'
application-label-sr:'Nanosonics - UAT'
application-label-sr-Latn:'Nanosonics - UAT'
application-label-sv:'Nanosonics - UAT'
application-label-sw:'Nanosonics - UAT'
application-label-ta:'Nanosonics - UAT'
application-label-te:'Nanosonics - UAT'
application-label-th:'Nanosonics - UAT'
application-label-tl:'Nanosonics - UAT'
application-label-tr:'Nanosonics - UAT'
application-label-uk:'Nanosonics - UAT'
application-label-ur:'Nanosonics - UAT'
application-label-uz:'Nanosonics - UAT'
application-label-vi:'Nanosonics - UAT'
application-label-zh-CN:'Nanosonics - UAT'
application-label-zh-HK:'Nanosonics - UAT'
application-label-zh-TW:'Nanosonics - UAT'
application-label-zu:'Nanosonics - UAT'
application-icon-120:'res/mipmap-mdpi-v4/ic_launcher.png'
application-icon-160:'res/mipmap-mdpi-v4/ic_launcher.png'
application-icon-240:'res/mipmap-hdpi-v4/ic_launcher.png'
application-icon-320:'res/mipmap-xhdpi-v4/ic_launcher.png'
application-icon-480:'res/mipmap-xxhdpi-v4/ic_launcher.png'
application-icon-640:'res/mipmap-xxxhdpi-v4/ic_launcher.png'
application-icon-65534:'res/mipmap-mdpi-v4/ic_launcher.png'
application: label='Nanosonics - UAT' icon='res/mipmap-mdpi-v4/ic_launcher.png'
launchable-activity: name='com.nanosonics.audit_pro.MainActivity'  label='Nanosonics - UAT' icon=''
feature-group: label=''
  uses-feature: name='android.hardware.camera'
  uses-feature-not-required: name='android.hardware.nfc'
  uses-feature: name='android.hardware.faketouch'
  uses-implied-feature: name='android.hardware.faketouch' reason='default feature for all apps'
  uses-feature: name='android.hardware.screen.portrait'
  uses-implied-feature: name='android.hardware.screen.portrait' reason='one or more activities have specified a portrait orientation'
  uses-feature: name='android.hardware.wifi'
  uses-implied-feature: name='android.hardware.wifi' reason='requested android.permission.ACCESS_WIFI_STATE permission'
main
other-activities
other-receivers
other-services
supports-screens: 'small' 'normal' 'large' 'xlarge'
supports-any-density: 'true'
locales: '--_--' 'af' 'am' 'ar' 'as' 'az' 'be' 'bg' 'bn' 'bs' 'ca' 'cs' 'da' 'de' 'el' 'en-AU' 'en-CA' 'en-GB' 'en-IN' 'en-XC' 'es' 'es-419' 'es-US' 'et' 'eu' 'fa' 'fi' 'fr' 'fr-CA' 'gl' 'gu' 'he' 'hi' 'hr' 'hu' 'hy' 'in' 'is' 'it' 'iw' 'ja' 'ka' 'kk' 'km' 'kn' 'ko' 'ky' 'lo' 'lt' 'lv' 'mk' 'ml' 'mn' 'mr' 'ms' 'my' 'nb' 'ne' 'nl' 'nn' 'no' 'or' 'pa' 'pl' 'pt' 'pt-BR' 'pt-PT' 'ro' 'ru' 'si' 'sk' 'sl' 'sq' 'sr' 'sr-Latn' 'sv' 'sw' 'ta' 'te' 'th' 'tl' 'tr' 'uk' 'ur' 'uz' 'vi' 'zh-CN' 'zh-HK' 'zh-TW' 'zu'
densities: '120' '160' '240' '320' '480' '640' '65534'
native-code: 'arm64-v8a' 'armeabi-v7a' 'x86' 'x86_64'

14:28:25.009 detox[11108] E device selectApp
14:28:25.010 detox[11108] B device uninstallApp
  args: ()
14:28:25.011 detox[11108] B artifacts-manager onBeforeUninstallApp
  args: ({"deviceId":"19287B2023","bundleId":"com.nanosonics.audit_pro"})
14:28:25.012 detox[11108] E artifacts-manager onBeforeUninstallApp
14:28:25.013 detox[11108] i child-process:EXEC_CMD "C:\Users\CE363_Admin\AppData\Local\Android\Sdk\platform-tools\adb.EXE" -s 19287B2023 shell "pm list packages com.nanosonics.audit_pro"
14:28:25.149 detox[11108] i child-process:EXEC_SUCCESS package:com.nanosonics.audit_pro.test
package:com.nanosonics.audit_pro

14:28:25.150 detox[11108] i child-process:EXEC_CMD "C:\Users\CE363_Admin\AppData\Local\Android\Sdk\platform-tools\adb.EXE" -s 19287B2023 uninstall com.nanosonics.audit_pro
14:28:26.170 detox[11108] i child-process:EXEC_SUCCESS Success

14:28:26.171 detox[11108] i child-process:EXEC_CMD "C:\Users\CE363_Admin\AppData\Local\Android\Sdk\platform-tools\adb.EXE" -s 19287B2023 shell "pm list packages com.nanosonics.audit_pro.test"
14:28:26.306 detox[11108] i child-process:EXEC_SUCCESS package:com.nanosonics.audit_pro.test

14:28:26.307 detox[11108] i child-process:EXEC_CMD "C:\Users\CE363_Admin\AppData\Local\Android\Sdk\platform-tools\adb.EXE" -s 19287B2023 uninstall com.nanosonics.audit_pro.test
14:28:27.167 detox[11108] i child-process:EXEC_SUCCESS Success

14:28:27.168 detox[11108] E device uninstallApp
14:28:27.170 detox[11108] B device selectApp
  args: ("default")
14:28:27.175 detox[11108] B device terminateApp
  args: ()
14:28:27.176 detox[11108] B artifacts-manager onBeforeTerminateApp
  args: ({"deviceId":"19287B2023","bundleId":"com.nanosonics.audit_pro"})
14:28:27.177 detox[11108] E artifacts-manager onBeforeTerminateApp
14:28:27.178 detox[11108] i child-process:EXEC_CMD "C:\Users\CE363_Admin\AppData\Local\Android\Sdk\platform-tools\adb.EXE" -s 19287B2023 shell "am force-stop com.nanosonics.audit_pro"
14:28:27.314 detox[11108] i child-process:EXEC_SUCCESS
14:28:27.315 detox[11108] B artifacts-manager onTerminateApp
  args: ({"deviceId":"19287B2023","bundleId":"com.nanosonics.audit_pro"})
14:28:27.316 detox[11108] E artifacts-manager onTerminateApp
14:28:27.319 detox[11108] E device terminateApp
14:28:27.320 detox[11108] E device selectApp
14:28:27.323 detox[11108] B device installApp
  args: ()
14:28:27.324 detox[11108] i child-process:EXEC_CMD "C:\Users\CE363_Admin\AppData\Local\Android\Sdk\build-tools\34.0.0\aapt.EXE" dump xmlstrings "C:\Users\CE363_Admin\Desktop\ScanningApplication\android\app\build\outputs\apk\uat\app-uat.apk" AndroidManifest.xml
14:28:27.365 detox[11108] i child-process:EXEC_SUCCESS String pool of 169 unique UTF-16 non-sorted strings, 169 entries and 0 styles using 13772 bytes:
String #0: theme
String #1: label
String #2: icon
String #3: name
String #4: permission
String #5: protectionLevel
String #6: enabled
String #7: exported
String #8: multiprocess
String #9: excludeFromRecents
String #10: authorities
String #11: initOrder
String #12: grantUriPermissions
String #13: priority
String #14: launchMode
String #15: screenOrientation
String #16: configChanges
String #17: value
String #18: resource
String #19: minSdkVersion
String #20: versionCode
String #21: versionName
String #22: windowSoftInputMode
String #23: targetSdkVersion
String #24: allowBackup
String #25: required
String #26: largeHeap
String #27: directBootAware
String #28: networkSecurityConfig
String #29: roundIcon
String #30: visibleToInstantApps
String #31: compileSdkVersion
String #32: compileSdkVersionCodename
String #33: appComponentFactory
String #34: requestLegacyExternalStorage
String #35:
String #36: 1.7.7
String #37: 12
String #38: action
String #39: activity
String #40: android
String #41: android.hardware.camera
String #42: android.hardware.nfc
String #43: android.intent.action.ACTION_POWER_CONNECTED
String #44: android.intent.action.ACTION_POWER_DISCONNECTED
String #45: android.intent.action.ACTION_SHUTDOWN
String #46: android.intent.action.BATTERY_LOW
String #47: android.intent.action.BATTERY_OKAY
String #48: android.intent.action.BOOT_COMPLETED
String #49: android.intent.action.DEVICE_STORAGE_LOW
String #50: android.intent.action.DEVICE_STORAGE_OK
String #51: android.intent.action.MAIN
String #52: android.intent.action.TIMEZONE_CHANGED
String #53: android.intent.action.TIME_SET
String #54: android.intent.category.LAUNCHER
String #55: android.net.conn.CONNECTIVITY_CHANGE
String #56: android.permission.ACCESS_NETWORK_STATE
String #57: android.permission.ACCESS_WIFI_STATE
String #58: android.permission.BIND_JOB_SERVICE
String #59: android.permission.CAMERA
String #60: android.permission.DUMP
String #61: android.permission.FOREGROUND_SERVICE
String #62: android.permission.INTERNET
String #63: android.permission.NFC
String #64: android.permission.READ_EXTERNAL_STORAGE
String #65: android.permission.RECEIVE_BOOT_COMPLETED
String #66: android.permission.SET_DATE
String #67: android.permission.SET_TIME
String #68: android.permission.SET_TIME_ZONE
String #69: android.permission.WAKE_LOCK
String #70: android.permission.WRITE_EXTERNAL_STORAGE
String #71: android.support.FILE_PROVIDER_PATHS
String #72: androidx.core.app.CoreComponentFactory
String #73: androidx.lifecycle.ProcessLifecycleOwnerInitializer
String #74: androidx.room.MultiInstanceInvalidationService
String #75: androidx.work.diagnostics.REQUEST_DIAGNOSTICS
String #76: androidx.work.impl.WorkManagerInitializer
String #77: androidx.work.impl.background.systemalarm.ConstraintProxy$BatteryChargingProxy
String #78: androidx.work.impl.background.systemalarm.ConstraintProxy$BatteryNotLowProxy
String #79: androidx.work.impl.background.systemalarm.ConstraintProxy$NetworkStateProxy
String #80: androidx.work.impl.background.systemalarm.ConstraintProxy$StorageNotLowProxy
String #81: androidx.work.impl.background.systemalarm.ConstraintProxyUpdateReceiver
String #82: androidx.work.impl.background.systemalarm.RescheduleReceiver
String #83: androidx.work.impl.background.systemalarm.SystemAlarmService
String #84: androidx.work.impl.background.systemalarm.UpdateProxies
String #85: androidx.work.impl.background.systemjob.SystemJobService
String #86: androidx.work.impl.diagnostics.DiagnosticsReceiver
String #87: androidx.work.impl.foreground.SystemForegroundService
String #88: androidx.work.impl.utils.ForceStopRunnable$BroadcastReceiver
String #89: application
String #90: backend:com.google.android.datatransport.cct.CctBackendFactory
String #91: category
String #92: cct
String #93: com.RNFetchBlob.Utils.FileProvider
String #94: com.android.vending.CHECK_LICENSE
String #95: com.android.vending.INSTALL_REFERRER
String #96: com.bugfender.sdk.ui.FeedbackActivity
String #97: com.google.android.c2dm.intent.RECEIVE
String #98: com.google.android.c2dm.permission.RECEIVE
String #99: com.google.android.c2dm.permission.SEND
String #100: com.google.android.datatransport.runtime.backends.TransportBackendDiscovery
String #101: com.google.android.datatransport.runtime.scheduling.jobscheduling.AlarmManagerSchedulerBroadcastReceiver
String #102: com.google.android.datatransport.runtime.scheduling.jobscheduling.JobInfoSchedulerService
String #103: com.google.android.finsky.permission.BIND_GET_INSTALL_REFERRER_SERVICE
String #104: com.google.android.gms.auth.api.signin.RevocationBoundService
String #105: com.google.android.gms.auth.api.signin.internal.SignInHubActivity
String #106: com.google.android.gms.auth.api.signin.permission.REVOCATION_NOTIFICATION
String #107: com.google.android.gms.common.api.GoogleApiActivity
String #108: com.google.android.gms.measurement.AppMeasurementJobService
String #109: com.google.android.gms.measurement.AppMeasurementReceiver
String #110: com.google.android.gms.measurement.AppMeasurementService
String #111: com.google.android.gms.version
String #112: com.google.firebase.MESSAGING_EVENT
String #113: com.google.firebase.components.ComponentDiscoveryService
String #114: com.google.firebase.components.ComponentRegistrar
String #115: com.google.firebase.components:com.google.firebase.analytics.connector.internal.AnalyticsConnectorRegistrar
String #116: com.google.firebase.components:com.google.firebase.datatransport.TransportRegistrar
String #117: com.google.firebase.components:com.google.firebase.iid.Registrar
String #118: com.google.firebase.components:com.google.firebase.installations.FirebaseInstallationsRegistrar
String #119: com.google.firebase.components:com.google.firebase.messaging.FirebaseMessagingRegistrar
String #120: com.google.firebase.iid.FirebaseInstanceIdReceiver
String #121: com.google.firebase.messaging.FirebaseMessagingService
String #122: com.google.firebase.messaging.default_notification_channel_id
String #123: com.google.firebase.messaging.default_notification_color
String #124: com.google.firebase.provider.FirebaseInitProvider
String #125: com.honeywell.decode.permission.DECODE
String #126: com.learnium.RNDeviceInfo.RNDeviceReceiver
String #127: com.nanosonics.audit_pro
String #128: com.nanosonics.audit_pro.BatteryReceiver
String #129: com.nanosonics.audit_pro.MainActivity
String #130: com.nanosonics.audit_pro.MainApplication
String #131: com.nanosonics.audit_pro.ShutdownReceiver
String #132: com.nanosonics.audit_pro.android_settings.AlarmReceiver
String #133: com.nanosonics.audit_pro.android_settings.BgSyncService
String #134: com.nanosonics.audit_pro.firebaseinitprovider
String #135: com.nanosonics.audit_pro.lifecycle-process
String #136: com.nanosonics.audit_pro.provider
String #137: com.nanosonics.audit_pro.workmanager-init
String #138: firebase_messaging_auto_init_enabled
String #139: http://schemas.android.com/apk/res/android
String #140: intent-filter
String #141: io.invertase.firebase.messaging.ReactNativeFirebaseMessagingHeadlessService
String #142: io.invertase.firebase.messaging.ReactNativeFirebaseMessagingReceiver
String #143: io.invertase.firebase.messaging.ReactNativeFirebaseMessagingService
String #144: io.scanbot.sdk.ui.view.barcode.BarcodeScannerActivity
String #145: io.scanbot.sdk.ui.view.barcode.batch.BatchBarcodeScannerActivity
String #146: io.scanbot.sdk.ui.view.camera.DocumentScannerActivity
String #147: io.scanbot.sdk.ui.view.edit.CroppingActivity
String #148: io.scanbot.sdk.ui.view.genericdocument.GenericDocumentRecognizerActivity
String #149: io.scanbot.sdk.ui.view.generictext.TextDataScannerActivity
String #150: io.scanbot.sdk.ui.view.hic.HealthInsuranceCardScannerActivity
String #151: io.scanbot.sdk.ui.view.licenseplate.LicensePlateScannerActivity
String #152: io.scanbot.sdk.ui.view.mc.MedicalCertificateRecognizerActivity
String #153: io.scanbot.sdk.ui.view.mrz.MRZScannerActivity
String #154: io.scanbot.sdk.ui.view.multiple_objects.MultipleObjectsDetectorActivity
String #155: io.scanbot.sdk.ui.view.nfc.NfcPassportScannerActivity
String #156: io.scanbot.sdk.ui.view.workflow.WorkflowScannerActivity
String #157: manifest
String #158: meta-data
String #159: package
String #160: permission
String #161: platformBuildVersionCode
String #162: platformBuildVersionName
String #163: provider
String #164: receiver
String #165: service
String #166: uses-feature
String #167: uses-permission
String #168: uses-sdk

14:28:27.369 detox[11108] i child-process:EXEC_CMD "C:\Users\CE363_Admin\AppData\Local\Android\Sdk\build-tools\34.0.0\aapt.EXE" dump xmlstrings "C:\Users\CE363_Admin\Desktop\ScanningApplication\android\app\build\outputs\apk\androidTest\debug\app-debug-androidTest.apk" AndroidManifest.xml
14:28:27.425 detox[11108] i child-process:EXEC_SUCCESS String pool of 42 unique UTF-16 non-sorted strings, 42 entries and 0 styles using 2128 bytes:
String #0: theme
String #1: label
String #2: name
String #3: debuggable
String #4: exported
String #5: priority
String #6: targetPackage
String #7: handleProfiling
String #8: functionalTest
String #9: minSdkVersion
String #10: targetSdkVersion
String #11: compileSdkVersion
String #12: compileSdkVersionCodename
String #13: 12
String #14: Tests for com.nanosonics.audit_pro
String #15: activity
String #16: android
String #17: android.intent.category.LAUNCHER
String #18: android.permission.REORDER_TASKS
String #19: android.test.runner
String #20: androidx.test.core.app.InstrumentationActivityInvoker$BootstrapActivity
String #21: androidx.test.core.app.InstrumentationActivityInvoker$EmptyActivity
String #22: androidx.test.core.app.InstrumentationActivityInvoker$EmptyFloatingActivity
String #23: androidx.test.orchestrator
String #24: androidx.test.runner.AndroidJUnitRunner
String #25: androidx.test.services
String #26: application
String #27: category
String #28: com.google.android.apps.common.testing.services
String #29: com.nanosonics.audit_pro
String #30: com.nanosonics.audit_pro.test
String #31: http://schemas.android.com/apk/res/android
String #32: instrumentation
String #33: intent-filter
String #34: manifest
String #35: package
String #36: platformBuildVersionCode
String #37: platformBuildVersionName
String #38: queries
String #39: uses-library
String #40: uses-permission
String #41: uses-sdk

14:28:27.427 detox[11108] i child-process:EXEC_CMD "C:\Users\CE363_Admin\AppData\Local\Android\Sdk\platform-tools\adb.EXE" -s 19287B2023 shell "getprop ro.build.version.sdk"
14:28:27.513 detox[11108] i child-process:EXEC_SUCCESS 29

14:28:27.526 detox[11108] i child-process:SPAWN_CMD C:\Users\CE363_Admin\AppData\Local\Android\Sdk\platform-tools\adb.EXE -s 19287B2023 install -r -g -t C:\Users\CE363_Admin\Desktop\ScanningApplication\android\app\build\outputs\apk\uat\app-uat.apk
14:28:45.185 detox[11108] i child-process:SPAWN_STDOUT Performing Streamed Install
Success

14:28:45.188 detox[11108] i child-process:SPAWN_END C:\Users\CE363_Admin\AppData\Local\Android\Sdk\platform-tools\adb.EXE -s 19287B2023 install -r -g -t C:\Users\CE363_Admin\Desktop\ScanningApplication\android\app\build\outputs\apk\uat\app-uat.apk exited with code #0
14:28:45.193 detox[11108] i child-process:SPAWN_CMD C:\Users\CE363_Admin\AppData\Local\Android\Sdk\platform-tools\adb.EXE -s 19287B2023 install -r -g -t C:\Users\CE363_Admin\Desktop\ScanningApplication\android\app\build\outputs\apk\androidTest\debug\app-debug-androidTest.apk
14:28:47.691 detox[11108] i child-process:SPAWN_STDOUT Performing Streamed Install
Success

14:28:47.693 detox[11108] i child-process:SPAWN_END C:\Users\CE363_Admin\AppData\Local\Android\Sdk\platform-tools\adb.EXE -s 19287B2023 install -r -g -t C:\Users\CE363_Admin\Desktop\ScanningApplication\android\app\build\outputs\apk\androidTest\debug\app-debug-androidTest.apk exited with code #0
14:28:47.695 detox[11108] B device reverseTcpPort
  args: (8081)
14:28:47.696 detox[11108] i child-process:EXEC_CMD "C:\Users\CE363_Admin\AppData\Local\Android\Sdk\platform-tools\adb.EXE" -s 19287B2023 reverse tcp:8081 tcp:8081
14:28:47.780 detox[11108] i child-process:EXEC_SUCCESS 8081

14:28:47.781 detox[11108] E device reverseTcpPort
14:28:47.782 detox[11108] E device installApp
14:28:47.783 detox[11108] B device selectApp
  args: ("default")
14:28:47.784 detox[11108] B device terminateApp
  args: ()
14:28:47.785 detox[11108] B artifacts-manager onBeforeTerminateApp
  args: ({"deviceId":"19287B2023","bundleId":"com.nanosonics.audit_pro"})
14:28:47.786 detox[11108] E artifacts-manager onBeforeTerminateApp
14:28:47.787 detox[11108] i child-process:EXEC_CMD "C:\Users\CE363_Admin\AppData\Local\Android\Sdk\platform-tools\adb.EXE" -s 19287B2023 shell "am force-stop com.nanosonics.audit_pro"
14:28:48.003 detox[11108] i child-process:EXEC_SUCCESS
14:28:48.004 detox[11108] B artifacts-manager onTerminateApp
  args: ({"deviceId":"19287B2023","bundleId":"com.nanosonics.audit_pro"})
14:28:48.006 detox[11108] E artifacts-manager onTerminateApp
14:28:48.007 detox[11108] E device terminateApp
14:28:48.009 detox[11108] E device selectApp
14:28:48.012 detox[11108] E lifecycle set up environment
14:28:54.509 detox[11108] i lifecycle starter.test.js is assigned to AttachedDevice:19287B2023
14:28:54.510 detox[11108] B lifecycle run the tests
14:28:54.511 detox[11108] B artifacts-manager onRunDescribeStart
  args: ({"name":"ROOT_DESCRIBE_BLOCK"})
14:28:54.513 detox[11108] E artifacts-manager onRunDescribeStart
14:28:54.515 detox[11108] B lifecycle Example
14:28:54.515 detox[11108] B artifacts-manager onRunDescribeStart
  args: ({"name":"Example"})
14:28:54.516 detox[11108] E artifacts-manager onRunDescribeStart
14:28:54.517 detox[11108] B lifecycle beforeAll
14:28:54.528 detox[11108] B device launchApp
  args: ()
14:28:54.530 detox[11108] B device terminateApp
  args: ("com.nanosonics.audit_pro")

Device logs

Device logs
paste your device.log here!
[adblogs.txt](https://github.com/user-attachments/files/17469291/adblogs.txt)

More data, please!

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant