![](/img/trans.png)
[英]How can I join Multiple android system_.img files to create one single system.img file
[英]How can I calculate num_partition_sectors and start_sector to create rawprogram0.xml or rawprogram_unsparse.xml from system.img of android rom?
我想了解num_partition_sectors和start_sector,以便從android rom QFIL的system.img創建rawprogram0.xml或rawprogram_unsparse.xml ???
例如:我有來自android ROM QFIL的rawprogram0.xml,其中
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="system.img" label="system" num_partition_sectors="262144" physical_partition_number="0" start_sector="1054720" />
和
system.img file size is 128 MB (134,217,728 bytes).
在linux ubuntu中,我知道在ubuntu中掛載后如何編輯system.img文件。 如果我添加一些apk,則必須增加其大小,這沒什么大不了的,但是對我來說,問題是我不知道如何計算num_partition_sectors和start_sector以便從system.img(anysize)創建rawprogram0.xml或rawprogram_unsparse.xml嗎? 我正在根據我的需要編輯一個原始的android ROM QFIL ???
我需要您的幫助,可以從system.img文件或任何其他方式計算num_partition_sectors和start_sector的任何Linux命令或程序?
如果您對以上示例的解釋和計算不多,請多多關照。
size_in_KB = SECTOR_SIZE_IN_BYTES x num_partition_sectors(千字節)----->(字節)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.