Greeting ,
我再修改 BlueZ 時,當我執行 ./build-android編譯完成之後,將產生新得 bluetoothd , libblue*.so, audio.so, input.so 等檔案,分別複製到
bluetoothd 複製到 /system/bin
libbluedroid.so libbluetoothd.so libbluetooth.so 這三個檔案複製到 /system/lib
audio.so , input.so 複製到 system/lib/bluez-plugin 目錄。
我沒有重新執行 genimage.sh or genroot.sh
而是直接覆蓋上面的檔案。但是經常在執行時會出問題。
我在 UI 上要啟動 Bluetooth.都會失敗。我去看 logcat 訊息。出現:
Warning bluedroid 1112 open(/sys/class/rfkill/rfkill0/type) failed: No such file or directory
這時我就必須重新執行 genimage.sh or genroot.sh , 重新建立系統才能執行了。
請問是不是我不能直接覆蓋這些檔案呢?因為程式在開發階段。總不能每次編譯完,就要做一次 image 吧?
謝謝