Skip to content
Snippets Groups Projects
Select Git revision
  • c8cd2cc2ee29a983d1ed647974b2c8add3a0b78e
  • master default protected
  • android-7.1.2_r28_klist
  • pie-cts-release
  • pie-vts-release
  • pie-cts-dev
  • oreo-mr1-iot-release
  • sdk-release
  • oreo-m6-s4-release
  • oreo-m4-s12-release
  • pie-release
  • pie-r2-release
  • pie-r2-s1-release
  • oreo-vts-release
  • oreo-cts-release
  • oreo-dev
  • oreo-mr1-dev
  • pie-gsi
  • pie-platform-release
  • pie-dev
  • oreo-cts-dev
  • android-o-mr1-iot-release-1.0.4
  • android-9.0.0_r8
  • android-9.0.0_r7
  • android-9.0.0_r6
  • android-9.0.0_r5
  • android-8.1.0_r46
  • android-8.1.0_r45
  • android-n-iot-release-smart-display-r2
  • android-vts-8.1_r5
  • android-cts-8.1_r8
  • android-cts-8.0_r12
  • android-cts-7.1_r20
  • android-cts-7.0_r24
  • android-o-mr1-iot-release-1.0.3
  • android-cts-9.0_r1
  • android-8.1.0_r43
  • android-8.1.0_r42
  • android-n-iot-release-smart-display
  • android-p-preview-5
  • android-9.0.0_r3
41 results

Android.mk

  • Alex Klyubin's avatar
    e4665d7f
    Fix bugs in *_file_contexts targets · e4665d7f
    Alex Klyubin authored
    This fixes the following issues introduced in commit
    d225b697:
    * plat_file_contexts was empty because the target was referencing
      system/sepolicy/private/file_contexts via a misspelled variable
      name.
    * plat_file_contexts wasn't marked as dirty and thus wasn't rebuilt
      when system/sepolicy/private/file_contexts changed. This is because
      the file_contexts dependency was referenced via a misspelled
      variable name.
    * plat_file_contexts wasn't sorted (as opposed to other similar
      targets, such as nonplat_file_contexts and file_contexts.bin). This
      may lead to unnecessary non-determinism.
    * nonplat_file_contexts wasn't marked dirty and thus wasn't rebuilt
      when device-specific file_contexts file(s) changed. This is because
      the file_contexts files were referenced via a misspelled variable
      name.
    
    Test: "make plat_file_contexts" produces a non-empty file containing
          mappings from system/sepolicy/private/file_contexts
    Test: "make plat_file_contexts" updates output when
          system/sepolicy/private/file_contexts changes
    Test: "make plat_file_contexts" produces output which is sorted
          accroding to rules in fc_sort
    Test: "make nonplat_file_contexts" updates output when
          device/lge/bullhead/sepolicy/file_contexts changes (tested on
          aosp_bullhead-eng)
    Bug: 31363362
    Change-Id: I540555651103f02c96cf958bb93618f600e47a75
    e4665d7f
    History
    Fix bugs in *_file_contexts targets
    Alex Klyubin authored
    This fixes the following issues introduced in commit
    d225b697:
    * plat_file_contexts was empty because the target was referencing
      system/sepolicy/private/file_contexts via a misspelled variable
      name.
    * plat_file_contexts wasn't marked as dirty and thus wasn't rebuilt
      when system/sepolicy/private/file_contexts changed. This is because
      the file_contexts dependency was referenced via a misspelled
      variable name.
    * plat_file_contexts wasn't sorted (as opposed to other similar
      targets, such as nonplat_file_contexts and file_contexts.bin). This
      may lead to unnecessary non-determinism.
    * nonplat_file_contexts wasn't marked dirty and thus wasn't rebuilt
      when device-specific file_contexts file(s) changed. This is because
      the file_contexts files were referenced via a misspelled variable
      name.
    
    Test: "make plat_file_contexts" produces a non-empty file containing
          mappings from system/sepolicy/private/file_contexts
    Test: "make plat_file_contexts" updates output when
          system/sepolicy/private/file_contexts changes
    Test: "make plat_file_contexts" produces output which is sorted
          accroding to rules in fc_sort
    Test: "make nonplat_file_contexts" updates output when
          device/lge/bullhead/sepolicy/file_contexts changes (tested on
          aosp_bullhead-eng)
    Bug: 31363362
    Change-Id: I540555651103f02c96cf958bb93618f600e47a75