Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to dump a device hardware profile to create an equivalent AVD?

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.

enter image description here

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?

like image 259
cassioso Avatar asked Dec 18 '14 16:12

cassioso


People also ask

Can we create more than one AVD?

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.

How do I make an AVD emulator?

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.


2 Answers

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.

like image 129
A STEFANI Avatar answered Sep 28 '22 21:09

A STEFANI


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

like image 36
Teodor Hurtigh Avatar answered Sep 28 '22 20:09

Teodor Hurtigh