Create specific device tree for AOSP

試著忘記壹切 提交于 2019-12-20 17:32:16

问题


I followed official Google`s tutorial to build my own AOSP and succeeded in all steps: I have "Pure AOSP version" running on nexus emulator. https://source.android.com/source/building.html

The story is I have some rare device came with some Android version full of pre-installed app's obviously I don't want. I want to port Pure AOSP to my device - without any improvements or new features (So for example I don`t want to know how to build CM git repo).

  1. Is it working just add to my local above master branch correct files into /device/vendor/model and then under cwd of master branch execute $ . build/envsetup.sh ?

  2. If so, what are the files and their content I need to put under /device/vendor/model ? I found a lot of guides how to pull already existing tree of CM or something else (http://xda-university.com/as-a-developer/porting-aosp-roms-using-source-code) and including this Android device configuration for AOSP and looking on some git repo's of several devices, I tried to figure out the minimum complete set of files & their content but I didn't find correlation. I think there must be the minimum complete set and there is programming reason for the existence of each file. And what I saw in existed git repo`s was this set + custom extras each developer added by his own reasons.

  3. Aftermath How do I determine the Build name & Buildtype to exucte $ lunch <Build name>-<Buildtype > ?

  4. How to integrate $ make otapackage in order to build the familiar one zip file to load via recovery like CWM?

This is following my previous post: Porting AOSP to specific hardware device, But here the questions are more specific.

来源:https://stackoverflow.com/questions/31505474/create-specific-device-tree-for-aosp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!