Fine, I figured out I need to do a clean build (or rebuild the necessary component, but I don't know which).
Now I've got another problem killing system_server... D/BluetoothService( 874): Bluetooth state 10 -> 11 V/BluetoothEventRedirector( 1110): Received android.bluetooth.adapter.action.STATE_CHANGED I/bluedroid( 874): Starting hciattach daemon D/dalvikvm( 1110): GC_CONCURRENT freed 594K, 50% free 3195K/6279K, external 1143K/1619K, paused 5ms+13ms I/bluedroid( 874): Starting bluetoothd deamon I/DEBUG ( 833): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** I/DEBUG ( 833): Build fingerprint: 'Android/full_ipaq214/ ipaq214:2.3.7/GWK74/eng.alvin.20120201.144711:eng/test-keys' I/DEBUG ( 833): pid: 874, tid: 1204 >>> system_server <<< I/DEBUG ( 833): signal 7 (SIGBUS), code 128 (?), fault addr 00000000 I/DEBUG ( 833): r0 ae718c6c r1 ae734e60 r2 fffe3e0c r3 00000000 I/DEBUG ( 833): r4 46f27af7 r5 0027b2b8 r6 00000031 r7 46f27a54 I/DEBUG ( 833): r8 46f27b58 r9 43c19f80 10 43c19f68 fp 41e97920 I/DEBUG ( 833): ip 00000073 sp 46f27978 lr ae718c2b pc ae718c6c cpsr a0000030 I/DEBUG ( 833): #00 pc 00018c6c /system/lib/libdbus.so I/DEBUG ( 833): #01 pc 0001b5b0 /system/lib/libdbus.so I/DEBUG ( 833): #02 pc 0001f96a /system/lib/libdbus.so I/DEBUG ( 833): #03 pc 0002023e /system/lib/libdbus.so I/DEBUG ( 833): #04 pc 00020384 /system/lib/libdbus.so I/DEBUG ( 833): #05 pc 0006567a /system/lib/ libandroid_runtime.so I/DEBUG ( 833): #06 pc 0006580a /system/lib/ libandroid_runtime.so I/DEBUG ( 833): #07 pc 00065944 /system/lib/ libandroid_runtime.so I/DEBUG ( 833): #08 pc 00011d74 /system/lib/libdvm.so I/DEBUG ( 833): #09 pc 00042f08 /system/lib/libdvm.so I/DEBUG ( 833): #10 pc 0003bab6 /system/lib/libdvm.so I/DEBUG ( 833): #11 pc 00016fd4 /system/lib/libdvm.so I/DEBUG ( 833): #12 pc 0001c0dc /system/lib/libdvm.so I/DEBUG ( 833): #13 pc 0001afd0 /system/lib/libdvm.so I/DEBUG ( 833): #14 pc 00059430 /system/lib/libdvm.so I/DEBUG ( 833): #15 pc 00059656 /system/lib/libdvm.so I/DEBUG ( 833): #16 pc 0004db4e /system/lib/libdvm.so I/DEBUG ( 833): #17 pc 00011a7c /system/lib/libc.so I/DEBUG ( 833): #18 pc 00011640 /system/lib/libc.so I/DEBUG ( 833): I/DEBUG ( 833): code around pc: I/DEBUG ( 833): ae718c4c d0552c00 2f002001 3601d052 e04f603e I/DEBUG ( 833): ae718c5c 1c288822 9b0a1c31 f7ff9700 e047fdef I/DEBUG ( 833): ae718c6c 1e536822 e000419a 1c286822 9b0a1c31 I/DEBUG ( 833): ae718c7c f7ff9700 e03bfe39 6822990a 1c286863 I/DEBUG ( 833): ae718c8c 1c319100 f7ff9701 e031ff2b 491e6820 I/DEBUG ( 833): I/DEBUG ( 833): code around lr: I/DEBUG ( 833): ae718c08 9f0b9203 fae6f00d 41981e43 493b4b3a I/DEBUG ( 833): ae718c18 447b4a3b 93003354 4b3a4479 f7fd447a I/DEBUG ( 833): ae718c28 9b03fca7 2b173b62 4937d85d 44790098 I/DEBUG ( 833): ae718c38 18505842 78224687 1c311c28 fddcf011 I/DEBUG ( 833): ae718c48 20001c04 d0552c00 2f002001 3601d052 I/DEBUG ( 833): I/DEBUG ( 833): stack: I/DEBUG ( 833): 46f27938 0027b27c [heap] I/DEBUG ( 833): 46f2793c 0029f9e8 [heap] I/DEBUG ( 833): 46f27940 00000062 I/DEBUG ( 833): 46f27944 ae73d5b7 /system/lib/libdbus.so I/DEBUG ( 833): 46f27948 0001c26e [heap] I/DEBUG ( 833): 46f2794c ae726205 /system/lib/libdbus.so I/DEBUG ( 833): 46f27950 ae736928 /system/lib/libdbus.so I/DEBUG ( 833): 46f27954 0027b27c [heap] I/DEBUG ( 833): 46f27958 00344808 [heap] I/DEBUG ( 833): 46f2795c ae736928 /system/lib/libdbus.so I/DEBUG ( 833): 46f27960 00344808 [heap] I/DEBUG ( 833): 46f27964 46f27af7 I/DEBUG ( 833): 46f27968 46f27af7 I/DEBUG ( 833): 46f2796c 0027b2b8 [heap] I/DEBUG ( 833): 46f27970 df002777 I/DEBUG ( 833): 46f27974 e3a070ad I/DEBUG ( 833): #00 46f27978 ae735160 /system/lib/libdbus.so I/DEBUG ( 833): 46f2797c 00344808 [heap] I/DEBUG ( 833): 46f27980 00000001 I/DEBUG ( 833): 46f27984 00000062 I/DEBUG ( 833): 46f27988 ae735d78 /system/lib/libdbus.so I/DEBUG ( 833): 46f2798c 46f27a44 I/DEBUG ( 833): 46f27990 00000062 I/DEBUG ( 833): 46f27994 46f27af7 I/DEBUG ( 833): 46f27998 ae735d78 /system/lib/libdbus.so I/DEBUG ( 833): 46f2799c ae71b5b5 /system/lib/libdbus.so I/DEBUG ( 833): #01 46f279a0 0000006c I/DEBUG ( 833): 46f279a4 46f27a54 I/DEBUG ( 833): 46f279a8 ae73c078 /system/lib/libdbus.so I/DEBUG ( 833): 46f279ac ae738278 /system/lib/libdbus.so I/DEBUG ( 833): 46f279b0 ae742478 /system/lib/libdbus.so I/DEBUG ( 833): 46f279b4 ae71f96f /system/lib/libdbus.so Please help. On 1月25日, 下午3時54分, Alvin Wong <[email protected]> wrote: > I am porting Android 2.3.7 to my custom platform. > I've added BOARD_HAVE_BLUETOOTH := true to my BoardConfig.mk > I've also added the hciattach service to my init.PLATFORM.rc. > > That's all I get when I try to switch on Bluetooth from the Settings > UI: It becomes gray for half a second and return unchecked. > > Logcat: > D/BluetoothService( 865): Bluetooth state 10 -> 11 > V/BluetoothEventRedirector( 1135): Received > android.bluetooth.adapter.action.STATE_CHANGED > D/BluetoothService( 865): Bluetooth state 11 -> 10 > V/BluetoothEventRedirector( 1135): Received > android.bluetooth.adapter.action.STATE_CHANGED > > As my board doesn't use rfkill for power control, I modified the code > of bluedroid to make it look for my sysfs path to toggle Bluetooth > power. > > Running `bttest enable` make `hcitool dev` show a device and I am able > to perform `hcitool scan` and `hcitool inq`. I also see logs in > `dmesg`. > > Can anyone help me with this? -- unsubscribe: [email protected] website: http://groups.google.com/group/android-porting
