[ZenFone] AOSP device configuration files
雖然說是 alpha 版,還是先把目前的成果 release 給有興趣的朋友修改。 :)
檔案放在這:https://github.com/shakalaca/android_device_asus_a500cg
幾點注意事項:
可以先用原廠的 boot.img
- 單純 AOSP 是沒法編譯出可以動的 boot.img,得透過打包工具將 kernel & ramdisk.img 拼起來。
- ASUS 對 init 做了不少修改,所以就算拼湊出 boot.img,相機/WiFi/BT.. 都完全沒法用,如果不使用自行編譯的 init 其實整個 ramdisk.img 跟原廠的沒什麼兩樣。
- 測試過原廠的 boot.img 相對穩定許多。:)
編譯 CM11 開機 audio driver 無法正確載入
- audio policy 設定出錯,無法設定 output device,推測應該有個 library 得用原廠的。
- 如果硬要用其實可以刪除 (或跳過) /system/lib/hw/audio*.redhookbay.so,然後在螢幕還沒關起來的狀態下將聲音設定都關閉,可以稍微正常使用。
目前無法使用的功能
- GPS:gpsd 會 crash
- ARM program:AOSP 4.4.x 沒有整合 Houdini,不過可以參考 GeeksPhone 的 patch
- SDCARD:看起來應該是權限或者路徑設定問題,需要 patch。這會造成相機可以 preview 但無法存檔。
- Video:codec 沒有成功載入。
暫不提供編譯好的 system.img
- 家裡網路怪怪的,上傳會失敗,請有能力編譯有空間的朋友幫忙產生一版吧。 :)
- 編譯前請先接上手機執行 extract-files.sh,會從手機上將必要的檔案拉回來編譯 (../../../vendor/asus)
Still in alpha stage, but I think it is better to release early and people interested in AOSP build for ZenFone can jump in :)
Use stock boot.img
- Of course you can use my tool to pack kernel and ramdisk.img, but BT/WiFi/Camera ... won't work because lots of propietary library only work with
init
modified by ASUS. - Stock boot.img works fine with custom AOSP build .. for now you can just trust it.
Malfunction component
- GPS: gpsd crashes
- Program written for ARM platform: Houdini is not integrated in AOSP 4.4.x, but I think we can use the patch from GeeksPhone
- SD Card: Permission or path configuration issue I thought
- Video: Not fully tested but most of my test files cannot be played..
For CM11
- You can build for CM11, but you should remove audio*.redhookbay.so and uncheck all sound releated settings after boot.
- Need patch from GeeksPhone
For recovery
- Never have time to build and test :(