[分享] CyanogenMod Compiler 編譯客製化的ROM

看板AndroidDev作者 (加油~~~)時間14年前 (2011/12/30 14:26), 編輯推噓2(200)
留言2則, 2人參與, 最新討論串1/1
網誌版: http://goo.gl/cve9w 很多人可能會覺得編譯一個客製化的 CyanogenMod ROM 是一件很複雜的事,因此遲遲不 敢動手進行,只能等待別人編譯好的 ROM 來下載使用,測試後覺得不滿意就再換另一個 人的 ROM 使用。您可能要試過幾個不同的 ROM 之後,才能找到一個適合自己的 ROM。不 過,現在不用這麼麻煩了,國外有人把編譯 CyanogenMod 的流程寫成一個 script 檔, 名為 Cyanogenmod Compiler (CMC) ,只要動手按幾個按鈕,就可以輕鬆編譯出屬於自己 的 ROM 了 有了 Cyanogenmod Compiler 後,編譯 CyanogenMod 變得很簡單,只要執行以下命令即 可: git clone https://github.com/lithid/CMC.git cd CMC ./CMCompiler 不過,在執行 Cyanogenmod Compile 之前,有一些相依套件要安裝,根據您的環境而有 所不同 32 bit: git-core gnupg flex bison gperf libsdl1.2-dev libesd0-dev libwxgtk2.6-dev squashfs-tools build-essential zip curl libncurses5-dev zlib1g-dev sun-java6-jdk pngcrush schedtool 64 bit: g++-multilib lib32z1-dev lib32ncurses5-dev lib32readline5-dev gcc-4.3-multilib g++-4.3-multilib 如果您是使用 ubuntu 11.04 或是更高的版本,以下有兩點要注意: 1. "lib32readline5-dev" 在 ubuntu 11.10 中,已經被 "lib32readline-gplv2-dev" 所取代 2. 從 ubuntu 11.04 之後的版本,不再需要 "gcc-4.3-multilib g++-4.3-multilib" 這兩個套件 成功執行 Cyanogenmod Compiler 後,就可以開始作一些客製化的動作,包含移除不需要 的語言、桌面及動態桌面…等,詳細功能如下: - Check for repo installation on startup / or create a repo - Add and remove devices quickly and easily - Remove all non english languages - Remove live wallpapers - Remove cm wallpapers - Check if adb is running or not - Update the repo - Compile cyanogenmod - Add unsupported device trees via plugin! - Built in color themes. > http://goo.gl/cED8t - Plugin support. (More information on this to come) - local config file for saving settings or manually editing them - Odex plugin built into the package. This will take your connected cyanogemod installed phone and odex the rom on the phone 作者目前還在持續增加功能當中,預計下一版會實現的功能如下: - Check for installed tools and tell you which are still needed - Installer/Remover - Updated information about CMC and plugin support - Pure AOSP via plugin - Adb installer - Better error checking support - Check for errors during compile and point to places to fix - Edit the name of your kanged rom! -- 部落格: http://schumi0901.blogspot.com/ 寫得不錯的話,麻煩幫忙點個廣告,謝謝~~ -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 221.120.1.14

12/31 09:59, , 1F
好文!
12/31 09:59, 1F

12/31 17:34, , 2F
12/31 17:34, 2F
文章代碼(AID): #1E_Lc2FA (AndroidDev)