原 帖:http://forum.xda-developers.com/chef...tchen-t3202296
由 Android Lollipop 開始 rom 的架構多了一個選項 -- DAT 格式 !
之前有介紹過 [DEV] Lollipop/Marshmallow DAT files | Compression and Decompression 這是以指令型態的方式.
http://forum.xda-developers.com/andr...es-to-t2978952
對於習慣簡單化的同好來說 SuperR's Kitchen 工具是圖形化視窗界面採用選單操作應該較為平易近人些 . 原帖已有詳細程序說明這兒僅就 重點的提示補充說明應就可上手 . 當然還是有些步驟需要每個人自行去摸索了解的 .
首先編輯 DAT 格式 須為 64bit 系統 請留意相關下載注意事宜 . 該廚房工具亦須為 linux 作業系統 .
安裝方式:
1.下載 SuperRs_Kitchen_v1.0.2.5.zip(當前版本). 64-bit_binaries.zip . 32-bit_binaries.zip . 並解壓縮 前兩項 .zip 檔案
2.建立個資料夾 kitchen(自行決定檔名) 將解壓縮的 SuperRs_Kitchen_v1.0.2.5.zip 三個檔案複製進來 tools . README.md . superr
3.於 kitchen資料夾開啟 "終端機" 輸入
./superr
4.即會開啟視窗提示安裝資料庫程序 -- 依界面提示一路下下步即可 . 亦可用指令方式安裝 資料庫
代碼:
sudo apt-get install p7zip-full gawk
sudo apt-get install lzop bison gperf build-essential zlib1g-dev zlib1g-dev:i386 g++-multilib libxml2-utils bzip2 libbz2-dev libbz2-1.0 libghc-bzlib-dev libsepol1-dev dpkg-dev make
5.將解壓縮的 64-bit_binaries.zip 的 五個檔案 複製到 kitchen/tools 資料夾內 (64-bit 或 32-bit 依 linux 版本而定)
6.kitchen tool 安裝完成.
操作方式:
1.於 kitchen資料夾開啟 "終端機" 輸入
./superr
代碼:
------------------------------------------------------
SuperR's Kitchen
by SuperR
------------------------------------------------------
CURRENT PROJECT:
ANDROID VERSION:
Main Menu
1) Create new project
2) Choose a different project
3) Delete a project
4) Extract for new ROM
5) Check for updates (CURRENT: v1.0.2.5)
6) Zip all devices to share
7) Boot/Recovery tools
8) ROM tools
q = Quit
Please enter your choice:
2. 1) Create new project -- 建立工作資料夾
3. 4) Extract for new ROM -- tar/boot.img . win/boot.win . system.img/boot.img . system資料夾/boot.img
4. 8) ROM tools
代碼:
------------------------------------------------------
SuperR's Kitchen
by SuperR
------------------------------------------------------
CURRENT PROJECT: m9
ANDROID VERSION: 5.1
ROM Tools Menu
1) Deodex ROM (CURRENT: Odexed)
2) Root/Unroot ROM (CURRENT: No Root)
3) User app support (CURRENT: Add support)
4) Change perm type (CURRENT: sparse_dat)
5) Asserts: Add/Change devices (CURRENT: htc_himauhl,htc_himaul)
6) Debloat Menu
7) Build Menu
m = Main menu
q = Quit
Please enter your choice:
5. 4) Change perm type (CURRENT: sparse_dat) -- 選擇欲編輯之格式 . (預設為 dat)
6. 5) Asserts: Add/Change devices (CURRENT: htc_himauhl,htc_himaul) -- 修改或增添 機型號
7. 7) Build Menu -- 可以 build rom 了.
代碼:
------------------------------------------------------
SuperR's Kitchen
by SuperR
------------------------------------------------------
CURRENT PROJECT: m9
ANDROID VERSION: 5.1
Build Menu
1) Build full ROM Zip
2) Build system.img
3) Custom zip menu
4) ROM Tools menu
m = Main menu
q = Quit
Please enter your choice:
8.
1) Build full ROM Zip -- 直接 build DAT格式並製作成 rom.zip
2) Build system.img -- 將 system資料夾 編輯成 system.img
這兩個選項都將需要輸入 system partition 實際的大小
代碼:
------------------------------------------------------
SuperR's Kitchen
by SuperR
------------------------------------------------------
Choose system partition detection method
1) Device through adb shell (recommended)
2) Project system directory (BETA)
3) Enter manually
q = quit
Enter choice:
9. 3) Enter manually
代碼:
------------------------------------------------------
SuperR's Kitchen
by SuperR
------------------------------------------------------
Enter system partition size in bytes:
4697620480
10. 完成!
註:system partition 實際的大小 -- 可查看提取的 system partition 的大小並填入