2017-08-29 23 views

回答

0

我發現如何獲得這些文件。 您必須獲取vendor.img和system.img的文件,因爲該文件是在設備的「供應商分區」和「系統分區」上部署的文件。

步驟1

請參觀Driver Binaries for Nexus and Pixel Devices。 有兩個設備的圖像。

taimen (Pixel 2 XL) 
walleye (Pixel 2) 

第2步:文件的方法擴大

請閱讀README.md。 有下述代碼

$ simg2img system.img system.raw.img 

$ simg2img vendor.img vendor.raw.img 

$ mkdir system 

$ mkdir vendor 

$ sudo mount -o loop,ro system.raw.img system 

$ sudo mount -o loop,ro vendor.raw.img vendor 

$ sudo python3 vndk_definition_tool.py vndk \ 
    --system system \ 
    --vendor vendor \ 
    --aosp-system /path/to/aosp/generic/system \ 
    --tag-file eligible-list-v3.0.csv 

,詳情請參閱 「README.md」。

謝謝

+0

這並不提供答案的問題。一旦你有足夠的[聲譽](https://stackoverflow.com/help/whats-reputation),你將可以[對任何帖子發表評論](https://stackoverflow.com/help/privileges/comment);相反,[提供不需要提問者澄清的答案](https://meta.stackexchange.com/questions/214173/why-do-i-need-50-reputation-to-comment-what-c​​an- I-DO-代替)。 - [來自評論](/ review/low-quality-posts/17864753) –

-1
git clone https://android.googlesource.com/platform/development 
~/tools/development/vndk/tools/definition-tool/datasets[master]$ ls 
eligible-list-o-mr1-release.csv eligible-list-o-release.csv minimum_dlopen_deps.txt minimum_tag_file.csv 
+0

儘管此代碼片段可能會解決問題,[包括解釋](// meta.stackexchange.com/questions/114762/explaining-entirely-code - 基於答案)真的有助於提高您的帖子的質量。請記住,您將來會爲讀者回答問題,而這些人可能不知道您的代碼建議的原因。也請儘量不要用解釋性註釋來擠佔代碼,這會降低代碼和解釋的可讀性! –

相關問題