简体   繁体   English

将 LineageOs 设备从 Cm-14.1 移植到 Lineage-16.0

[英]Porting LineageOs device from Cm-14.1 to Lineage-16.0

I am trying to contribute to lineageos for Sumire device.我正在尝试为 Sumire 设备的 lineageos 做出贡献。 I have already successfully build CM-14.1 and install it on my device.我已经成功构建了 CM-14.1 并将其安装在我的设备上。

Now I want to port it for lineage-16.0, the problem is the documentation I have found so far is very scarce.现在我想将它移植到 lineage-16.0,问题是我迄今为止发现的文档非常稀缺。

This is what I know up until now:这是我到目前为止所知道的:

In Lineage IRC someone told me:在 Lineage IRC 中,有人告诉我:

  1. Fork the cm-14.1 branch to lineage-16.0, change the required config files, and build in a 16.0 build env.将 cm-14.1 分支分叉到 lineage-16.0,更改所需的配置文件,并在 16.0 构建环境中构建。

So, I have forked the repo for my device.所以,我已经为我的设备分叉了 repo。 Now, I suppose I have to create a new branch from cm-14.1 and call it Lineage-16.0 and start building and beging fixing errors.现在,我想我必须从 cm-14.1 创建一个新分支并将其命名为 Lineage-16.0,然后开始构建并开始修复错误。

The problem is, How am I suppose to configure repo to pull https://github.com/elbaulp/android_device_sony_sumire instead of https://github.com/LineageOS/android_device_sony_sumire when building?问题是,我应该如何配置 repo 以在构建时拉https://github.com/elbaulp/android_device_sony_sumire而不是https://github.com/LineageOS/android_device_sony_sumire

Am I supposed to change this line in the Manifest我应该在 Manifest 中更改这一行吗

lineage/mirror/default.xml:  <project name="LineageOS/android_device_sony_sumire" />

by经过

lineage/mirror/default.xml:  <project name="elbaulp/android_device_sony_sumire" />

Resources:资源:

https://msystechnologies.com/porting-custom-rom-to-android-device/ https://msystechnologies.com/porting-custom-rom-to-android-device/

After a few days of searching, I have found the way to continue.经过几天的搜索,我找到了继续的方法。

This guide its a backup of the old CyanogenMod documentation, it seems that Cyanogen was better documented than LineageOs :本指南是旧 CyanogenMod 文档的备份,似乎 Cyanogen 的文档比 LineageOs 更好

How To Port CyanogenMod/LineageOS Android To Your Own Device如何将 CyanogenMod/LineageOS Android 移植到您自己的设备上

In order to tell repo it has to pull my github project instead of the official one, a new local_manifest has to be added to .repo/local_manifests/my_manifest.xml , in this case, I have call it sumire.xml , here are its contents:为了告诉repo它拉我github上的项目,而不是一个官方的,一个新的local_manifest已被添加到.repo/local_manifests/my_manifest.xml ,在这种情况下,我把它叫做sumire.xml ,这里是它内容:

<?xml version="1.0" encoding="UTF-8"?>
<manifest>
  <remove-project name="lineageos/device_sony_sumire" path="device/sony/sumire" remote="github" />
  <project name="elbaulp/device_sony_sumire" path="device/sony/sumire" remote="github"  />
</manifest>

After that, repo sync has to be executed.之后,必须执行repo sync

Hope it can help others.希望它可以帮助其他人。

I'm currently working on the same device sumire and I'm trying to get lineageos 17.1 working on this device.我目前正在使用相同的设备 sumire,我正在尝试让 lineageos 17.1 在此设备上工作。 Maybe you can give me some tips on this or even we can get in contact if you are still interested to work on this project.也许你可以给我一些关于这个的提示,或者如果你仍然有兴趣参与这个项目,我们甚至可以联系。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM