mseclab / nathan

Android Emulator for mobile security testing
MIT License
222 stars 46 forks source link

emulator is #4

Open sherry135 opened 7 years ago

sherry135 commented 7 years ago

it shows: Starting emulator with: ./sdk/tools/emulator -avd nathan_x86 -verbose -show-kernel -no-snapshot-save -gpu on -netspeed full -netdelay none -selinux disabled -qemu -no-reboot Nathan emulator boot in progress... Mapped system partition to:/tmp/android-root/emulator-NjoWXD Nathan closed emulator is closed for a while.

robgas commented 7 years ago

Hi,

could you retry the command with -v and send the logs?

./nathan.py -v start

sherry135 commented 7 years ago

emulator: Failed to parse .AndroidStudio preferences file usage.statistics.xml emulator: Defaulting user crash-report opt-in to false emulator: Skipping metrics reporting: No user opt-in. emulator: ERROR: Could not initialize OpenglES emulation, use '-gpu off' to disable it. emulator: Done with QEMU main loop emulator: User-config was not changed. Nathan closed. Byebye How can I solve it ? thank you~

robgas commented 7 years ago

Which is your OS? It seems that you don't have an Opengl on your OS.

whoot commented 7 years ago

Having the same issue!

uname -a 
Linux kali 4.9.0-kali1-amd64 #1 SMP Debian 4.9.6-3kali2 (2017-01-30) x86_64 GNU/Linux

-> Kali Linux running on VMWare Workstation 12 Player

apt-get update && apt-get upgrade -y && apt-get dist-upgrade 
Hit:1 http://ftp.halifax.rwth-aachen.de/kali kali-rolling InRelease
Reading package lists... Done
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
./nathan.py -v start

[...]
Concatenated QEMU options:
/root/Desktop/nathan/sdk/tools/emulator64-x86 -netspeed full -netdelay none -show-kernel -enable-kvm -no-reboot -android-hw /root/Desktop/nathan/nathan_x86/hardware-qemu.ini
Nathan emulator boot in progress...
emulator: Starting QEMU main loop
emulator: registered 'boot-properties' qemud service
emulator: Using kernel serial device prefix: ttyS
emulator: Ramdisk image contains fstab.goldfish file
emulator: Found format of system partition: 'ext4'
emulator: Found format of userdata partition: 'ext4'
emulator: Found format of cache partition: 'ext4'
emulator: system partition format: ext4
Mapped system partition to:/tmp/android-root/emulator-MjSZep
emulator: Mapping 'system' partition image to /tmp/android-root/emulator-MjSZep
emulator: nand_add_dev: system,size=0x2ee00000,file=/tmp/android-root/emulator-MjSZep,pagesize=512,extrasize=0
emulator: userdata partition format: ext4
emulator: nand_add_dev: userdata,size=0x40000000,file=/root/Desktop/nathan/nathan_x86/userdata-qemu.img,pagesize=512,extrasize=0
emulator: cache partition format: ext4
emulator: nand_add_dev: cache,size=0x4200000,file=/root/Desktop/nathan/nathan_x86/cache.img,pagesize=512,extrasize=0
emulator: Adding boot property: 'dalvik.vm.heapsize' = '384m'
emulator: Adding boot property: 'qemu.sf.lcd_density' = '420'
emulator: Adding boot property: 'qemu.hw.mainkeys' = '0'
emulator: Adding boot property: 'qemu.sf.fake_camera' = 'both'
emulator: Initializing hardware OpenGLES emulation support
emulator: Can't start OpenGLES renderer?
emulator: Kernel parameters: qemu.gles=0 qemu=1 console=ttyS0 android.qemud=ttyS1 androidboot.hardware=goldfish clocksource=pit android.checkjni=1 androidboot.selinux=permissive
emulator:     trying to find: /root/Desktop/nathan/sdk/tools/bios.bin

emulator:     trying to find: /root/Desktop/nathan/sdk/tools/lib/pc-bios/bios.bin

emulator:     trying to find: /root/Desktop/nathan/sdk/tools/vgabios-cirrus.bin

emulator:     trying to find: /root/Desktop/nathan/sdk/tools/lib/pc-bios/vgabios-cirrus.bin

serial0 console
emulator: Forcing ro.adb.qemud to "0".
emulator: control console listening on port 5554, ADB on port 5555
emulator: can't connect to ADB server: Transport endpoint is not connected (errno = 107)
emulator: android_hw_fingerprint_init: fingerprint qemud listen service initialized

emulator: Failed to parse .AndroidStudio preferences file usage.statistics.xml
emulator: Defaulting user crash-report opt-in to false
emulator: Skipping metrics reporting: No user opt-in.
emulator: ERROR: Could not initialize OpenglES emulation, use '-gpu off' to disable it.
emulator: Done with QEMU main loop
emulator: User-config was not changed.
Nathan closed. Byebye

However i have OpenglES installed:

glxinfo |  grep OpenGL
OpenGL vendor string: VMware, Inc.
OpenGL renderer string: Gallium 0.4 on llvmpipe (LLVM 3.9, 256 bits)
OpenGL core profile version string: 3.3 (Core Profile) Mesa 13.0.3
OpenGL core profile shading language version string: 3.30
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.0 Mesa 13.0.3
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.0 Mesa 13.0.3
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.00
OpenGL ES profile extensions: