1. 15 Jul, 2015 1 commit
  2. 10 Jul, 2015 1 commit
    • Tao Bao's avatar
      Pack file_contexts into target_files zip. · 2c15d9ee
      Tao Bao authored
      file_contexts (specified by SELINUX_FC) is needed both when building
      and (re)packaging. We used to use the copy in out/ when building, and
      looked for the copy in BOOT/RAMDISK/ when packaging from target_files
      zip. With system_root_image enabled, the file_contexts needed for
      building and packaging might be different from the one on device. So
      we explicitly pack the file as META/file_contexts in target_files zip.
      
      Also refactor out the overriding of selinux_fc property into
      common.LoadInfoDict().
      
      Change-Id: I94f9ea6671b3792c12c1c21573840743d63da39a
      (cherry picked from commit aa7318c3)
      2c15d9ee
  3. 30 Jun, 2015 1 commit
    • Tao Bao's avatar
      Retry adjusting the size computation for reserved blocks. · 4e66343b
      Tao Bao authored
      Due to the change in https://lwn.net/Articles/546473/, kernel reserves a
      few extra blocks (lesser of 2% and 4096 blocks) on ext4 FS which leads to
      OTA update failures. Adjust the size computation if the device has
      BOARD_HAS_EXT4_RESERVED_BLOCKS := true.
      
      It amends the last attemp in [1]. Now it computes the used blocks from the
      make_ext4fs output, instead of altering its argument.
      
      [1]: commit efbb5d2e.
      
      Bug: 21522719
      Bug: 22023465
      Bug: 22174684
      Change-Id: Iaae6507f6de68a5892f2e3035d330039287b4492
      (cherry picked from commit c7a6f1e4)
      4e66343b
  4. 25 Jun, 2015 1 commit
  5. 24 Jun, 2015 1 commit
  6. 23 Jun, 2015 1 commit
  7. 05 Jun, 2015 1 commit
  8. 04 Jun, 2015 1 commit
  9. 03 Jun, 2015 2 commits
  10. 14 Apr, 2015 1 commit
  11. 08 Apr, 2015 3 commits
    • Ying Wang's avatar
      Remove unnecessary confusing use of $(intermediate). · 62925a99
      Ying Wang authored
      Change-Id: I0e73c3c1bf94540419e1fd227a3096da148e2459
      62925a99
    • Tao Bao's avatar
      Fix the font size selection for recovery mode · abbc9116
      Tao Bao authored
      shamu has a 560dpi density, which is between xxhdpi and xxxhdpi. It
      deserves the large font (18x32), otherwise it falls back to use the
      small one and makes it mostly unreadable under recovery mode. Amend
      the list to include 560dpi and 400dpi that are higher than xhdpi.
      Ideally we should map string formats back to numbers for easy
      comparison (and to handle any high but odd density values).
      
      Change-Id: Ie08d9ce5e1c8850ff30a79bcbfd1b89e971b7e07
      abbc9116
    • Ying Wang's avatar
      Better way to package up the otatools-package. · c45a47b5
      Ying Wang authored
      With this, you can easily add more executables, jars or shared libraries
      to the package. Also now it automatically takes care of
      32-bit-v.s.-64-bit library issue.
      
      Change-Id: I5afe00fadc978d0da229b192eca1a4b1c149764e
      c45a47b5
  12. 02 Apr, 2015 2 commits
  13. 01 Apr, 2015 1 commit
    • Tao Bao's avatar
      Add support to sign bootable images with vboot_signer · d95e9fd2
      Tao Bao authored
      Add vboot properties to the dictionary file, which will be packed into
      the target_files zip. Add support in packaging and OTA scripts to
      sign the generated bootable images (boot.img and recovery.img) when
      vboot is enabled.
      
      Change-Id: I08758ced03d173219415bca762bbdb66c464a9f5
      (cherry picked from commit 5d5a3bd9e8d8b14b71d1b2105417a2958d13d3d2)
      d95e9fd2
  14. 26 Mar, 2015 1 commit
    • Ying Wang's avatar
      Support to build image of root file system with /system and ramdisk combined. · a2292c94
      Ying Wang authored
      Added support to build system.img that combines contents of /system and
      the ramdisk, and can be mounted at the root of the file system.
      To enable this feature, define BoardConfig.mk variable:
      BOARD_BUILD_SYSTEM_ROOT_IMAGE := true
      
      Ideally we would just change TARGET_OUT (the path of the staging system
      directory) to under TARGET_ROOT_OUT. But at this point many places in
      the build system assume TARGET_OUT is independent of TARGET_ROOT_OUT and
      we can't make it easily configurable.
      Instead this implementation takes the least intrusive approach:
      We don't change TARGET_OUT or TARGET_ROOT_OUT. We just assemble a
      temporary staging directory that contains contents of both TARGET_OUT
      and TARGET_ROOT_OUT, in build_image.BuildImage() of
      tools/releasetools/build_image.py.
      When build_image.py is directly called from the makefile, we pass in the
      parameters from the global dictionary; when build_image.BuildImage() is
      called from add_img_to_target_files.py, we need to override values to
      point to files extracted from the target_files zip file.
      We need to combine the fs_config files of both /system and ramdisk,
      when fs_config is enabled.
      
      Also this change refactored build_image.BuildImage() by moving the extra
      parameters to the image property dictionary.
      
      (cherry-picked from commit 0eabd4f2)
      
      Bug:19868522
      Change-Id: Iafc467a0e3427b0d6ad3b575abcc98ddcc9ea0f1
      a2292c94
  15. 25 Mar, 2015 1 commit
    • Per Astrand's avatar
      MKBOOTIMG override were missing in two places · cab66991
      Per Astrand authored
      The change follows the patten found in "Package OTA" and other places
      to allow for overriding the mkbootimg command.
      
      Now pass MKBOOTIMG variable to get make_recovery_patch and add_image_to_target
      to use the tool set in BOARD_CUSTOM_MKBOOTIMG for boot/recovery image
      generation.
      
      Change-Id: I78533c25e87c2750eb24ac1bf39e4b7ca321a441
      cab66991
  16. 13 Mar, 2015 4 commits
  17. 11 Mar, 2015 3 commits
    • Ying Wang's avatar
      Use "rsync -a" to copy over $(TARGET_ROOT_OUT) to $(TARGET_RECOVERY_OUT) · 437e43b5
      Ying Wang authored
      "cp -Rf" fails on Mac OS when some broken symlinks exist in the dest
      dir.
      Also switch to better shell error handling when copying
      init.recovery.*.rc.
      
      Change-Id: Idd05f7604736b234619f62be12dd108fac91fed1
      437e43b5
    • Ying Wang's avatar
      Support modules to be installed directly to recovery.img · f25838a7
      Ying Wang authored
      Previously the recovery binary was configured to be installed to the
      system.img and then got copied to recovery.img in the recovery.img's
      build rule.
      With this change, a module, such as the recovery binary, can configure
      itself to be installed directly to the recovery.img, just like how other
      modules get installed to system.img.
      
      Bug: 19667686
      Change-Id: I46b0b4a95cf078a68999db9c0f6635d6a3f5cd86
      f25838a7
    • Sami Tolvanen's avatar
      Change transfer list format to include block hashes · dd67a295
      Sami Tolvanen authored
      Add source and target block hashes as parameters to transfer list
      commands that copy or patch data to a partition. This allows the
      updater to verify the status of each command in the transfer list
      and makes resuming block based OTAs possible. Due to the changes,
      update the transfer list version to 3.
      
      Needs matching changes from
        I1e752464134aeb2d396946348e6041acabe13942
      
      Bug: 18262110
      Change-Id: Ia5c56379f570047f10f0aa7373a1025439495c98
      (cherry picked from commit cac671a9)
      dd67a295
  18. 04 Mar, 2015 1 commit
  19. 26 Feb, 2015 1 commit
    • Ying Wang's avatar
      Use a less freqent dummy file name: zipdummy · dcd90831
      Ying Wang authored
      Previously if user has a directory with name dummy in the root of the
      source tree, "zip -qd package.apk dummy" fails with:
      "zip error: Nothing to do!".
      This change mitigates the error.
      
      Change-Id: I642e3bf0378e5b9911a068ecb72f795b3e92f1fe
      dcd90831
  20. 11 Feb, 2015 1 commit
    • JP Abgrall's avatar
      core: remove dependencies on genext2fs · 7bb75e4f
      JP Abgrall authored
      We don't use EXT2 for bootimage anymore.
      This will allow getting rid of external/genext2fs
      
      Bug: 19282953
      Change-Id: Ie56528c7877036d2501a09888a4420637f9cd647
      7bb75e4f
  21. 09 Feb, 2015 1 commit
  22. 05 Feb, 2015 2 commits
    • Andres Morales's avatar
      Add system/build.prop dependency on vendor/bootimg · a09f2f44
      Andres Morales authored
      When incremental builds only affect the system partition,
      the build.prop file for other partitions might go out of
      date.
      
      Add a dependency on system/build.prop s.t. when
      it's rebuilt,
      the fingerprints are updated on the other
      partition's build.prop's.
      
      Bug:19058575
      Change-Id: Iea7b761e0800c402eb4ce1154e8f6af5a17f7b06
      a09f2f44
    • Elliott Hughes's avatar
      Remove mkyaffs2image references. · 65d4186f
      Elliott Hughes authored
      Change-Id: I1d112515bc92353a5b48ec668e1cadfb51ecdaad
      65d4186f
  23. 30 Jan, 2015 1 commit
  24. 27 Jan, 2015 1 commit
    • Ying Wang's avatar
      Allow to build "winsdk-tools" alone. · ff1fe685
      Ying Wang authored
      Allow to run "make winsdk-tools" without building the full win_sdk.
      
      Bug: 19149444
      Change-Id: If98495035f4f84dbcab7af2a74434e589bbfd4d1
      ff1fe685
  25. 16 Jan, 2015 1 commit
    • Narayan Kamath's avatar
      Add ro.product.locale · baf3eb93
      Narayan Kamath authored
      This is a BCP-47 language tag representing the default locale for a
      given device. Support for the earlier mechanism of supplying a language
      and region via ro.product.locale.region/language has been removed. This
      change also removes support for supplying these properties via
      PRODUCT_ADDITIONAL_PROPERTY_OVERRIDES. Devices that need to override
      this should either rearrange their PRODUCT_LANGUAGES or supply a custom
      .prop file.
      
      bug: 17691569
      
      Change-Id: I00c74098542b49b9c514a6ca39ea8d08179546c1
      baf3eb93
  26. 14 Jan, 2015 1 commit
  27. 04 Dec, 2014 1 commit
    • Ying Wang's avatar
      Add system propery ro.build.flavor. · 27eba54b
      Ying Wang authored
      ro.build.flavor is set to "$(TARGET_PRODUCT)-$(TARGET_BUILD_VARIANT)" in
      system.img build.prop at build time,
      and it won't be overridden by oem partition's build.prop.
      
      Bug: 18605832
      Change-Id: Ic917623dd43b74d9c601119db0b457483e8c4472
      27eba54b
  28. 03 Dec, 2014 1 commit
  29. 19 Nov, 2014 2 commits
    • Ying Wang's avatar
      Support journal size board config variables. · e91b83d5
      Ying Wang authored
      A device can set up BOARD_SYSTEMIMAGE_JOURNAL_SIZE (number of journal blocks)
      in its BoardConfig.mk.
      To disable journaling, set "BOARD_SYSTEMIMAGE_JOURNAL_SIZE := 0".
      
      BOARD_VENDORIMAGE_JOURNAL_SIZE and BOARD_OEMIMAGE_JOURNAL_SIZE work in
      similar way.
      
      Bug: 18430740
      
      (cherry picked from commit f3b86357)
      
      Change-Id: Icc6c7e1b3be25b8e21b6a737492d944428e4a35a
      e91b83d5
    • Ying Wang's avatar
      Support journal size board config variables. · f3b86357
      Ying Wang authored
      A device can set up BOARD_SYSTEMIMAGE_JOURNAL_SIZE (number of journal blocks)
      in its BoardConfig.mk.
      To disable journaling, set "BOARD_SYSTEMIMAGE_JOURNAL_SIZE := 0".
      
      BOARD_VENDORIMAGE_JOURNAL_SIZE and BOARD_OEMIMAGE_JOURNAL_SIZE work in
      similar way.
      
      Bug: 18430740
      Change-Id: I0594814fe19ffc54dff41ec2464e2e3a802b9419
      f3b86357