關於Pixel XL的驅動程序二進制文件

* 首先你要確定AOSP的分支:

cd .repo/manifests
git rev-parse --abbrev-ref default@{upstream}

例如:

origin/android-10.0.0_r17

* 然後去如下網站:
https://source.android.google.cn/setup/start/build-numbers?hl=zh-cn
確定對應的Build Number, 例如: QP1A.191005.007.A3

* 然後去如下網站:
https://developers.google.com/android/drivers/
根據你設備(例如: Pixel XL), 下載對應的驅動二進制文件, 例如:
Pixel XL binaries for Android 10.0.0 (QP1A.191005.007.A3)

* 你會得到兩個文件, 在你的AOSP源碼目錄下, 對你得到的包中的sh分別加權限
然後你的AOSP下會多出目錄:

$ ls vendor
google_devices qcom

* 接下來重新編譯你的AOSP, 你將在你的out目錄得到一個vendor.img, 例如:

out/target/product/marlin/vendor.img

* 然後重新刷寫固件:

adb reboot bootloader
fastboot flashall -w

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章