Can the Android API provide all the details required to make an AVD?
Premise being, if it can, could an Android create an AVD of itself?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No, not using the framework APIs and not without a modified device.
You’d need to construct a userdata.img file, which is essentially a block-level copy of the device’s user-writable storage. However, you do not have block-level access to the filesystem.
On top of that, your application wouldn’t have permission to read much of the filesystem.
Now, if you wanted to create a blank AVD, then you might be able to do that (but why?). That’s because the requirements to create an AVD are pretty basic.
You’d also need a system.img file, and you don’t have the permission to create that from the device either. (There may also be legal issues involved here, which I will not discuss.)