In Android Studio, when one are going to create a new Android Virtual Device, there are the option to import the Hardware Profile instead of manually fill each device parameter.
I know there are some AVD config repositories around the internet. But, does anyone know if it is possible to generate the file to be imported based on a plugged device? Maybe via adb command?
You can have two AVDs running in Android Studio just not two of the same devices. When you start a device, it locks it's necessary files. This lock causes and error when you try to start a second instance of the same device.
In the Android SDK Manager, select Tools | Manage AVDs. In the Android Virtual Device Manager, click the New button to create a new virtual device. In the Create new Android Virtual Device (AVD) dialog box, select an Android device to emulate, and enter the details describing the Android device you want to emulate.
You need to mount your device filesystem, then use a list of shell command to scrap all information we need from different config file.
CPU, Partitionning, RAM size, flash memory size, screen size, android version etc...
Then build your own Hardware Profile using the results of all previous commands.
Just right click the profile that you want to export in the "Create virtual device" window, and the option to export your hardware profile as an xml shows up
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With