Android x86蓝牙macbook

时间:2011-11-13 22:18:36

标签: android eclipse macos bluetooth

我一直在尝试开发应用并在虚拟机上的Android x86上测试它们。我遇到的问题是它打开蓝牙并且从未实际打开它。我正在使用macbook蓝牙。我在虚拟盒子上启用了它(旁边有勾号)。我想知道是否有一个修复,因为我没有Android手机来测试这个。我正在使用Android x86 2.2。

我的日志猫:

I/ActivityManager( 2052): Starting activity: Intent { cmp=com.project.saff/.FaultScreenConnect }
I/ActivityManager( 2052): Displayed activity com.project.saff/.FaultScreenConnect: 189 ms (total 189 ms)
I/ActivityManager( 2052): Starting activity: Intent { act=android.bluetooth.adapter.action.REQUEST_ENABLE cmp=com.android.settings/.bluetooth.RequestPermissionActivity }
I/ActivityManager( 2052): Starting activity: Intent { act=com.android.settings.bluetooth.ACTION_INTERNAL_REQUEST_BT_ON cmp=com.android.settings/.bluetooth.RequestPermissionHelperActivity }
I/ActivityManager( 2052): Displayed activity com.android.settings/.bluetooth.RequestPermissionHelperActivity: 193 ms (total 198 ms)
I/ActivityManager( 2052): Displayed activity com.android.settings/.bluetooth.RequestPermissionActivity: 198 ms (total 198 ms)
D/BluetoothService( 2052): Bluetooth state 10 -> 11
V/BluetoothEventRedirector( 2147): Received android.bluetooth.adapter.action.STATE_CHANGED
I/bluedroid( 2052): Starting hciattach daemon
I/bluedroid( 2052): Stopping bluetoothd deamon
I/bluedroid( 2052): Stopping hciattach deamon
I/bluedroid( 2052): Stopping bluetoothd deamon
I/bluedroid( 2052): Stopping hciattach deamon
I/bluedroid( 2052): Stopping bluetoothd deamon
I/bluedroid( 2052): Stopping hciattach deamon
D/dalvikvm( 2291): GC_EXPLICIT freed 1414 objects / 101976 bytes in 4ms
I/bluedroid( 2052): Stopping bluetoothd deamon
I/bluedroid( 2052): Stopping hciattach deamon
I/bluedroid( 2052): Stopping bluetoothd deamon
I/bluedroid( 2052): Stopping hciattach deamon
I/bluedroid( 2052): Stopping bluetoothd deamon
I/bluedroid( 2052): Stopping hciattach deamon
I/bluedroid( 2052): Stopping bluetoothd deamon
I/bluedroid( 2052): Stopping hciattach deamon
I/bluedroid( 2052): Stopping bluetoothd deamon
I/bluedroid( 2052): Stopping hciattach deamon
I/bluedroid( 2052): Stopping bluetoothd deamon
I/bluedroid( 2052): Stopping hciattach deamon
I/bluedroid( 2052): Stopping bluetoothd deamon
I/bluedroid( 2052): Stopping hciattach deamon
E/bluedroid( 2052): bt_enable: Timeout waiting for HCI device to come up
D/BluetoothService( 2052): Bluetooth state 11 -> 10
V/BluetoothEventRedirector( 2147): Received android.bluetooth.adapter.action.STATE_CHANGED

2 个答案:

答案 0 :(得分:1)

适用于Android的x86模拟器,您可以在其上运行Google TV,目前仅适用于 Linux with KVM - 支持的内核(以及BIOS中的Intel虚拟化支持)。 目前不支持Windows和Mac OS X.

System reqs

答案 1 :(得分:0)

你没有说明你从哪里获得了你的Android X86图像,所以我认为它来自www.android-x86.org。此系统构建需要运行特定的硬件,即使您的硬件实际受支持,它也可能无法通过Virtual Box运行。

有关实际测试硬件的列表,请参阅here。在我使用Virtual Box测试的版本中,大多数工作但设备支持有限,例如相机,全球定位系统,蓝牙,wifi无法正常工作(无法启动)。虚拟框here上有Android X86指南,还有this博客条目介绍了如何设置一些其他选项,以便模仿实际设备的属性(如手机的屏幕分辨率,等)