5

关于 LineageOS 里各种设备的 device configuration 的疑问

 3 years ago
source link: https://www.v2ex.com/t/817890
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

V2EX  ›  Android

关于 LineageOS 里各种设备的 device configuration 的疑问

  jyjmrlk · 15 分钟前 · 54 次点击
疑问:开发者适配某个 ROM 的时候,device configuration 都是自己从头写起吗?假设没有其他开发者公开类似的配置的情况下,一般怎么生成这些配置文件呢?还是说有什么模版之类的。


背景:前几天抱着试试看的态度,研究了下构建 AOSP ,因为我正好有一个索尼的 Android 手机,型号是 Xperia XZ2 Compact ,然后我按照官方的教程 https://developer.sony.com/develop/open-devices/guides/aosp-build-instructions/build-aosp-android-android-11-0-0 成功构建了一个 AOSP 11 的 ROM 。

然后又看到 LineageOS 也官方对这个设备有支持,但想想自己编译一个和直接用官方编译好的没啥太大区别,就想着是不是能够移植到另一个 ROM ,经过一番修改还真成功了,基于 LineageOS 的 device configuration https://github.com/LineageOS/android_device_sony_xz2c 稍加修改,编译出了一个 PixelExperience 的 ROM ,使用上也没啥问题,于是就有了开头的疑问,LineageOS 的开发者最初是怎么弄出那个配置的。(我简单对比了下似乎和 Sony 官方那个 https://github.com/sonyxperiadev/device-sony-apollo 还很不一样。)

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK