Android: AVD creation application activity

Can the Android API provide all the details needed to create an AVD?

A room, if possible, can Android create an AVD on its own?

+3
source share
4 answers

No, do not use the framework APIs and not without a modified device.

You will need to create the userdata.img file, which is essentially a copy at the level of the storage block that is writable on the device. However, you do not have block-level access to the file system.

In addition, your application will not have read access to most of the file system.

Now, if you want to create an empty AVD, then you can do it (but why?). This is because the requirements for creating an AVD are pretty simple.

system.img, . ( , .)

+4

, Android, ( ), ? , Android.

0

I do not understand what you are trying to do. AVD is useful with an emulator, but there is no emulator that runs on Android hardware. Perhaps you are thinking of making a full copy of the “drive,” which is an Android device? To do this, you need root access and write it somewhere. Something like dd, which somehow writes to the network. Is that what you think?

0
source

Source: https://habr.com/ru/post/1782964/


All Articles