You are not logged in.

#1 2016-12-14 12:15:53

Zzaponka
Member
From: Kyiv, Ukraine
Registered: 2014-07-03
Posts: 7

Android emulator can't start x86 image, permission denied.

Hi, everybody!

What I did.

1. Have installed android-sdk, android-sdk-build-tools and android-sdk-platform-tools from AUR.

2. Added myself to sdkusers group, as it recommended by wiki.

3. Created AVD with command:

[shydlovskyi@shydlovskyi mygingerx86.avd]$ android --verbose create avd --name mygingerx86 --abi x86 --target android-10
Android 2.3.3 is a basic Android platform.
Do you wish to create a custom hardware profile [no]n
Created AVD 'mygingerx86' based on Android 2.3.3, Intel Atom (x86) processor,
with the following hardware config:
hw.lcd.density=240
hw.ramSize=256
vm.heapSize=24

4. Trying to boot up Android 2.3.3 (API 10) Intel x86 Atom System Image, get such error:

[shydlovskyi@shydlovskyi mygingerx86.avd]$ /opt/android-sdk/tools/emulator -wipe-data -avd mygingerx86
qemu-system-i386: -drive if=none,index=0,id=system,file=/opt/android-sdk/system-images/android-10/default/x86/system.img: could not open disk image /opt/android-sdk/system-images/android-10/default/x86/system.img: Could not open '/opt/android-sdk/system-images/android-10/default/x86/system.img': Permission denied

Can't understand what's wrong, as at the same time if we create ARM-based emulator image, it starts flawlessly except complain that x86-based one will be much faster (the case why I'm trying to start x86 version).

Thanks in advance for helping.

Offline

#2 2016-12-14 13:36:39

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: Android emulator can't start x86 image, permission denied.

What are the ownership and permissions of that image?


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2016-12-14 18:26:30

Zzaponka
Member
From: Kyiv, Ukraine
Registered: 2014-07-03
Posts: 7

Re: Android emulator can't start x86 image, permission denied.

Trilby wrote:

What are the ownership and permissions of that image?

The whole /opt/android-sdk tree, including the image, is owned by root and sdkusers group.

Offline

#4 2016-12-14 19:55:04

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: Android emulator can't start x86 image, permission denied.

And the permissions?  Can you post the output of running `stat` on the system image file?


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#5 2016-12-19 10:27:58

Zzaponka
Member
From: Kyiv, Ukraine
Registered: 2014-07-03
Posts: 7

Re: Android emulator can't start x86 image, permission denied.

Trilby wrote:

And the permissions?  Can you post the output of running `stat` on the system image file?

Surly, here it is:

$ stat ./system.img
  File: './system.img'
  Size: 576716800       Blocks: 1126408    IO Block: 4096   regular file
Device: 802h/2050d      Inode: 8005174     Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: ( 1001/sdkusers)
Access: 2016-12-14 13:51:16.235286959 +0200
Modify: 2016-12-14 13:51:18.025286988 +0200
Change: 2016-12-14 14:12:32.161974132 +0200
 Birth: -

Offline

#6 2017-01-11 09:09:01

Zzaponka
Member
From: Kyiv, Ukraine
Registered: 2014-07-03
Posts: 7

Re: Android emulator can't start x86 image, permission denied.

Hi again!

Have an update: did check the same emulator under Windows, there I also have an error message that says about Intel HAXM isn't installed. Googled that abbreviation, it's some kind of virtualization technology, so, maybe, Arch Linux issue is also connected with similar packages that need to be installed.

Offline

Board footer

Powered by FluxBB