2017-09-19 10:27 GMT+08:00 Chih-Wei Huang <
cwh...@android-x86.org>:
> Hi,
> What is the correct target to build an x86 emulator image for 8.0?
> I tried to build aosp_x86 target, but my built files are
> apparently different than the download emulator image of SDK.
> In particular, I don't have /vendor/manifest.xml,
> which is an essential file of 8.0 I believe.
> Where is it?
I copied the /vendor/manifest.xml from SDK emulator
to my image, and add these to
build/make/target/product/
emulator.mk
PRODUCT_PACKAGES +=
android.hardware....@2.0-service \
android.hardware....@2.0-impl \
android.hardware...@2.0-impl \
and with other hacking I probably forgot,
I finally made my built image boot to home:
http://i.imgur.com/YkTLfLP.png
However, a lot of functions still don't work.
For example, Settings and Webview Browser Tester
just crash. The logcat also shows some services
like gatekeeperd repeatedly crash.
09-19 08:36:50.093 1893 1893 F DEBUG : *** *** *** *** *** *** ***
*** *** *** *** *** *** *** *** ***
09-19 08:36:50.093 1893 1893 F DEBUG : Build fingerprint:
'Android/aosp_x86/generic_x86:8.0.0/OPR6.170623.017/lh09191511:eng/test-keys'
09-19 08:36:50.093 1893 1893 F DEBUG : Revision: '0'
09-19 08:36:50.093 1893 1893 F DEBUG : ABI: 'x86'
09-19 08:36:50.093 1893 1893 F DEBUG : pid: 1888, tid: 1888, name:
android.hardwar >>>
/vendor/bin/hw/android.hardw...@1.0-service <<<
09-19 08:36:50.093 1893 1893 F DEBUG : signal 6 (SIGABRT), code -6
(SI_TKILL), fault addr --------
09-19 08:36:50.093 1893 1893 F DEBUG : Abort message: 'Unable to
open GateKeeper HAL'
09-19 08:36:50.093 1893 1893 F DEBUG : eax 00000000 ebx
00000760 ecx 00000760 edx 00000006
09-19 08:36:50.093 1893 1893 F DEBUG : esi 00000760 edi bfd8a5e8
09-19 08:36:50.093 1893 1893 F DEBUG : xcs 00000073 xds
0000007b xes 0000007b xfs 00000000 xss 0000007b
09-19 08:36:50.093 1893 1893 F DEBUG : eip af6e5ac4 ebp
bfd8a608 esp bfd8a59c flags 00000296
09-19 08:36:50.096 1894 1894 I crash_dump32: obtaining output fd
from tombstoned
09-19 08:36:50.096 1894 1894 E libc : failed to connect to
tombstoned: No such file or directory
09-19 08:36:50.096 1893 1893 F DEBUG :
09-19 08:36:50.096 1893 1893 F DEBUG : backtrace:
09-19 08:36:50.096 1893 1893 F DEBUG : #00 pc 00000ac4
[vdso:af6e5000] (__kernel_vsyscall+16)
09-19 08:36:50.096 1893 1893 F DEBUG : #01 pc 00075b3c
/system/lib/libc.so (tgkill+28)
09-19 08:36:50.096 1893 1893 F DEBUG : #02 pc 0001f04e
/system/lib/libc.so (abort+110)
09-19 08:36:50.096 1893 1893 F DEBUG : #03 pc 00006a06
/system/lib/liblog.so (__android_log_assert+294)
09-19 08:36:50.096 1893 1893 F DEBUG : #04 pc 00002a9e
/system/vendor/lib/hw/
android.hardw...@1.0-impl.so
(HIDL_FETCH_IGatekeeper+174)
09-19 08:36:50.096 1893 1893 F DEBUG : #05 pc 0002a5e0
/system/lib/libhidltransport.so
(_ZN7android8hardware25PassthroughServiceManager3getERKNS0_11hidl_stringES4_+2336)
09-19 08:36:50.096 1893 1893 F DEBUG : #06 pc 0001e5c5
/system/lib/
android.hardw...@1.0.so
(_ZN7android8hardware10gatekeeper4V1_011IGatekeeper10getServiceERKNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEb+1877)
09-19 08:36:50.096 1893 1893 F DEBUG : #07 pc 000008f4
/system/vendor/bin/hw/android.hardw...@1.0-service
09-19 08:36:50.096 1893 1893 F DEBUG : #08 pc 0000087a
/system/vendor/bin/hw/android.hardw...@1.0-service
(main+106)
09-19 08:36:50.096 1893 1893 F DEBUG : #09 pc 00015f34
/system/lib/libc.so (__libc_init+100)
09-19 08:36:50.096 1893 1893 F DEBUG : #10 pc 00000761
/system/vendor/bin/hw/android.hardw...@1.0-service
(_start+97)
09-19 08:36:50.096 1894 1894 I crash_dump32: performing dump of
process 1887 (target tid = 1887)
09-19 08:36:50.096 1894 1894 F DEBUG : *** *** *** *** *** *** ***
*** *** *** *** *** *** *** *** ***
09-19 08:36:50.096 1894 1894 F DEBUG : Build fingerprint:
'Android/aosp_x86/generic_x86:8.0.0/OPR6.170623.017/lh09191511:eng/test-keys'
09-19 08:36:50.096 1894 1894 F DEBUG : Revision: '0'
09-19 08:36:50.096 1894 1894 F DEBUG : ABI: 'x86'
09-19 08:36:50.096 1894 1894 F DEBUG : pid: 1887, tid: 1887, name:
android.hardwar >>> /vendor/bin/hw/android.ha...@1.0-service
<<<
09-19 08:36:50.096 1894 1894 F DEBUG : signal 6 (SIGABRT), code -6
(SI_TKILL), fault addr --------
09-19 08:36:50.096 1894 1894 F DEBUG : Abort message: 'Binder
driver could not be opened. Terminating.'
09-19 08:36:50.096 1894 1894 F DEBUG : eax 00000000 ebx
0000075f ecx 0000075f edx 00000006
09-19 08:36:50.096 1894 1894 F DEBUG : esi 0000075f edi bff19938
09-19 08:36:50.096 1894 1894 F DEBUG : xcs 00000073 xds
0000007b xes 0000007b xfs 00000000 xss 0000007b
09-19 08:36:50.096 1894 1894 F DEBUG : eip b0baeac4 ebp
bff19958 esp bff198ec flags 00000296
09-19 08:36:50.098 1894 1894 F DEBUG :
09-19 08:36:50.098 1894 1894 F DEBUG : backtrace:
09-19 08:36:50.098 1894 1894 F DEBUG : #00 pc 00000ac4
[vdso:b0bae000] (__kernel_vsyscall+16)
09-19 08:36:50.098 1894 1894 F DEBUG : #01 pc 00075b3c
/system/lib/libc.so (tgkill+28)
09-19 08:36:50.098 1894 1894 F DEBUG : #02 pc 0001f04e
/system/lib/libc.so (abort+110)
09-19 08:36:50.098 1894 1894 F DEBUG : #03 pc 00006a06
/system/lib/liblog.so (__android_log_assert+294)
09-19 08:36:50.098 1894 1894 F DEBUG : #04 pc 0007d2bb
/system/lib/libbinder.so (_ZN7android12ProcessStateC1EPKc+427)
09-19 08:36:50.098 1894 1894 F DEBUG : #05 pc 0007d395
/system/lib/libbinder.so
(_ZN7android12ProcessState14initWithDriverEPKc+197)
09-19 08:36:50.098 1894 1894 F DEBUG : #06 pc 00000aad
/system/vendor/bin/hw/android.ha...@1.0-service (main+77)
09-19 08:36:50.098 1894 1894 F DEBUG : #07 pc 00015f34
/system/lib/libc.so (__libc_init+100)
09-19 08:36:50.098 1894 1894 F DEBUG : #08 pc 000009b1
/system/vendor/bin/hw/android.ha...@1.0-service (_start+97)
These don't happen in SDK emulator image, of course.
I feel frustrated and disappointed.
Android as an open source project,
this is totally unacceptable if
we can't build a workable emulator image
from the released source.
Please fix it ASAP.
Or if this is my bad, please tell me
how to build a correct emulator image
from the 8.0 codebase.
Thank you!