I got an app that I'm perfectly able to run/debug while connected through USB from Android Studio on my Nexus 5 (Android 6) and LG Stylus 2 Plus (Android 8) phones, but it seems to fail when testing it on my Huawei P30 (Android 9).
I'm able to see all 3 devices as available from Android Studios' "Device File Explorer" tab, and browse the files in it, so I know that it is able to connect just fine.
Still, whenever I try to debug or run the app on my Huawei, the app is built, and as soon as it is going to start the install process, the phone disconnects and is immediately reconnected to the PC, resulting in a failed installation attempt.
All I can see from Android Studio is the following message:
Installation did not succeed.
The application could not be installed.
Installation failed due to: 'device 'ABCDEFGHIJKLM' not found'
I did have trouble getting the right drivers for the Huawei P30, but I believe that if I'm able to see the phone's files now, this should not be a driver issue anymore.
I've tried every phone configuration in the phone's developer options that I could find to no effect.