If you ever encountered any issues with connecting your android device to your TestProject account, go ahead follow the tutorial below.
This could be done by going to: "Settings" -> "About Phone" -> repeatedly tapping the "Build number".
You should get a message that says you've enabled the developer options.
Inside "Developer options", enable the following:
"Disable Permissions Monitoring" option if it's available
Under "Select USB configuration" select "MTP" or "File transfer"
Scroll down and turn the animation off for: "Window animation scale", "Transition animation scale", "Animator duration scale".
When you plug the USB cable to your Android device, you will be asked 2 things:
Allow access to device data -> select "YES"
Allow USB debugging -> select "OK"
In Xiaomi/Oppo devices, there is an extra layer of security that you need to enable in the developer option in order to connect your device and work with TestProject.
Enable the "USB debugging (security option)" option. To do this, you will need to have a SIM card in your device.
Enable the "Install via USB" option.
Try going to the device settings and Disabling Permission Monitoring.
If none of the above helped you, try to disable the "MIUI Optimization" option
When automating tests on Xiaomi devices, the device's background power consumption setting may be interfering with our automation app.
You will need to disable this setting, by disabling Xiaomi's UIAutomator battery usage control. You can do this by heading to your device's settings:
Then go to "Battery & performance":
Select "Manage apps battery usage":
Select "Choose apps" from the "Manage apps battery usage":
Select Installed apps and choose UIAutomator, and then tap on "No restrictions":
If you cannot mirror and view your Huawei Android device, make sure to enable the following settings in your device's developer options:
Enable "Allow ADB debugging in charge only mode":
Tap on Select debug app and choose either Chrome or uiautomator server.