Файлы System/bin Android 12. Справочник.


  Все     Команда     Скрипт     Служба     Приложение  

lpadd
Добавление образов в файл super.img или раздела в файл super_empty.img

Тип файла: команда
  Рус  
usage:  lpadd 

[options] 
SUPER 
PARTNAME 
PARTGROUP 
[IMAGE]

@@  SUPER   Path to the super image. It can be sparsed or  unsparsed.
If sparsed, it will be unsparsed temporarily and re-sparsed
over the original file. This will consume extra space during the
 execution of lpadd

@@  PARTNAME  Name of the partition to add

@@  PARTGROUP  Name of the partition group to use.
If the partition can be updated over OTA,
the group  should match its updatable group

@@  IMAGE    If specified, the contents of the given image
will be added to the super image.
If the image is sparsed, it will be temporarily unsparsed.
If no image is specified, the partition will be zero-sized

Extra options:

  • --readonly The partition should be mapped read-only

  • --replace The partition contents should be replaced with the input image ========================== lpadd is a command-line tool for adding images to a super.img file, or a partition to a super_empty.img file. This is useful for mixed or split builds involving dynamic partitions. usage: lpadd [options] SUPER_FILE PART_NAME GROUP_NAME [IMAGE_FILE] The parameters are:

  • --readonly - The partition should be mapped as read-only. SUPER_FILE - The super.img or super_empty.img file. If the image is sparsed, it will be temporarily unsparsed, and re-sparsed at the end. PART_NAME - The partition name. It must not already exist GROUP_NAME - The updateable group name for the partition IMAGE_FILE - If specified, the contents of the image will be embedded in the given super.img. This does not work for a super_empty.img file. If the source image is sparsed, the unsparsed content will be embedded. The new partition size will be the smallest block-aligned size capable of holding the entire image. Note that when interacting with sparsed images, lpadd can consume a great deal of space in TMPDIR. If TMPDIR does not have enough free space, it can be set in the environment, eg: TMPDIR=/path/to/temp lpadd ...
  •    

    Комментарии
    https://android.googlesource.com/platform/system/extras/+/master/partition_tools/lpadd.cc