从源码构建android系统

发布于 2024-09-06 21:31:43 字数 479 浏览 9 评论 0原文

在使用 Openmoko 手机 2 年后,我最近购买了三星 Galaxy Android 手机。

选择 Android 的原因之一是它是开源的。 我不想依赖手机制造商为我的手机提供更新。我想自己做。 现在我正处于研究阶段,是否值得花时间。所以问题如下:

  1. 我找到了一些从源代码构建 ROM 映像的教程。他们说 Android 构建脚本会在构建内核之前询问手机的品牌。这是否意味着所有手机特定的内容都由脚本处理,或者我必须做一些巫术才能将其刷新到我的手机上?

  2. 驱动程序。它们是如何处理的?它们是否作为二进制文件包含在源代码中并自动添加(问题 1),或者我是否必须剖析旧固件才能获取它们并放入我的构建中?我意识到这意味着模块/内核版本兼容性会出现一些问题。

  3. 是否有一些我不知道的事情会阻止我构建自定义固件或使其非常耗时?

我不害怕安装 SDK 和工具链,毕竟我是 Openmoko 的所有者。

I've recently purchased Samsung Galaxy Android phone after using Openmoko phone for 2 years.

One of the reasons for choosing Android was is that it's open sourced.
I don't want to depend on phone maker to provide updates for my phone. I'd like to do it myself.
Right now I'm in research stage if it's worth the time or not. So here are the questions:

  1. I found some tutorials for building ROM images from source. They tell that Android build script will ask for make of the phone before building kernel. Does it mean that all the phone specific stuff is handled by the script or I will have to do some voodoo before I can flash it onto my phone?

  2. Drivers. How are they handled? Are they included in the source as binaries and added automatically (question 1) or will I have to dissect old firmware to get them and put in my build? I realize that would mean some problems with module/kernel versions compatibility.

  3. Is there is something I'm not aware of that would prevent me from building my custom firmware or make it very time-consuming?

I'm not afraid of installing SDK's and toolchains, after all I'm an Openmoko owner.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

苏别ゝ 2024-09-13 21:31:43

事情会比这稍微复杂一点。

  1. 在我见过的任何消费类 Android 手机上,用户都没有操作系统的 root 访问权限。所以第一步,就是找到一个漏洞来获取 root 权限。
  2. 即使获得 root 权限后,所有消费类 Android 手机也会“锁定”引导加载程序,以防止引导未经授权的操作系统映像。
  3. Android OpenSource 项目仅包含少数手机(Google 开发手机,可能是 Nexus One?)的设备驱动程序。对于其他手机,驱动程序是制造商加载到手机上的专有二进制文件。它们通常不单独提供。

即使面临所有这些障碍,一些有进取心的聪明人还是成功地创建了自定义“ROM”,将开源版本与手机上原始设备制造商安装的驱动程序混合在一起。CyanogenMod 是最著名的之一,可用于多种不同的 Android 设备,但遗憾的是三星 Galaxy 目前似乎并不是 Cyanogen 支持的设备之一。

我发现了一个旧的 链接到这里到在 Galaxy 上获取 root 并在其上加载自定义 ROM 的指南,但不幸的是,他们链接到的 ROM 似乎不再被积极维护。也许值得做一些更详尽的谷歌搜索,看看是否能找到任何人在 Galaxy 上进行积极的开发。

It's gonna be a little more complicated than that.

  1. On any consumer Android phones I've seen, the user doesn't have root access to the OS. So step one, would be finding an exploit to get root.
  2. Even after you get root, all consumer Android phones "lock" the bootloader to prevent unauthorized OS images from being booted.
  3. The Android OpenSource project only contains device drivers for a small number of phones (Google dev phones, possibly the Nexus One?). For other phones, the drivers are proprietary binaries that the manufacturer loads on the phone. They generally aren't available separately.

Even with all of those obstacles, some enterprising smart guys have managed to create custom "ROM's" that blend the OpenSource release with drivers ripped OEM install on the phone, etc. CyanogenMod is one of the best known and is available for several different Android devices, but unfortunately the Samsung Galaxy does not currently appear to be one of the device supported by Cyanogen.

I found an old link here to a guide to getting root on the Galaxy and loading a custom ROM on it, but unfortunately the ROM they link to doesn't seem to be actively maintained anymore. It might be worth doing some more exhaustive google searches to see if you can find anyone doing active development on the Galaxy.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文